@font-face {
  font-family: 'Beirut Display';
  src: url('../fonts/BeirutDisplay-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Beirut Display';
  src: url('../fonts/BeirutDisplay-SemiBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --lime: #ecff00;
  --ink: #080808;
  --muted: #d4d4d8;
  --footer-wordmark: #878b89;
  --card-bg: rgba(255, 255, 255, 0.1);
  --copy-muted: rgba(255, 255, 255, 0.86);
  --copyright: rgba(255, 255, 255, 0.78);
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Suisse Intl', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 32px 0 0;
}

.container {
  width: 100%;
  margin: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Header ─────────────────────────────────── */

.header {
  position: relative;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 5px;
}

.brand-symbol {
  width: 54px;
  height: 54px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 24px;
  line-height: 22px;
  font-weight: 400;
}

.nav-links a {
  transition: color 200ms ease;
}

.nav-links a:hover {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: 'Suisse Intl', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

/* ── Intro ─────────────────────────────────── */

.intro {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 36px;
  align-items: end;
}

.intro-headline {
  grid-column: 1 / span 3;
  margin: 0;
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.intro-tagline {
  grid-column: 4 / span 2;
  margin: 0;
  font-size: 20px;
  line-height: 22px;
  text-align: right;
}

/* ── Work grid ─────────────────────────────── */

.work-section {
  padding: 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 124px var(--gutter);
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-image {
  margin: 0;
  height: 340px;
  overflow: hidden;
  background: #111;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  opacity: 0;
  transition:
    transform 500ms ease,
    opacity 420ms ease;
  backface-visibility: hidden;
}

.case-image img.is-loaded {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover .case-image img {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
}

/* Subtle scroll reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .case-image img,
  .case-gallery-item img {
    opacity: 1;
    transition: none;
  }
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-meta h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: var(--muted);
  transition: color 500ms ease;
}

.case-meta p {
  margin: 0;
  max-width: 32ch;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  color: var(--muted);
  transition: color 500ms ease;
}

.case-card:hover .case-meta h3,
.case-card:hover .case-meta p {
  color: var(--white);
}

.case-card--soon {
  position: relative;
  cursor: none;
}

.case-card-soon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 20px 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 16px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 150ms ease;
}

.case-card--soon.is-active .case-card-soon {
  opacity: 1;
}

@media (pointer: coarse), (max-width: 900px) {
  .case-card--soon {
    cursor: default;
  }

  .case-card-soon {
    top: 50%;
    left: 50%;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ── Services ──────────────────────────────── */

.services-section {
  padding: clamp(120px, 18vw, 300px) 0 clamp(80px, 12vw, 200px);
}

.services-heading {
  margin: 0 0 72px;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.services-heading span {
  display: block;
}

.services-grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 40px;
  min-height: 400px;
  padding: 48px;
  border-radius: 24px;
  background: var(--card-bg);
}

.service-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  opacity: 0.55;
  filter: brightness(0) invert(1);
}

.service-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 400;
  line-height: 1.43;
  color: var(--copy-muted);
}

/* ── Studio ────────────────────────────────── */

.studio-section {
  padding: clamp(64px, 8vw, 115px) 0;
}

.statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.statement .cadara-symbol-host {
  width: 92px;
  height: 92px;
}

.statement p {
  max-width: 1157px;
  margin: 0;
  font-size: clamp(32px, 4.5vw, 72px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

/* ── Footer ────────────────────────────────── */

.footer {
  position: relative;
  min-height: 751px;
  overflow: clip;
  contain: paint;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  padding-top: 130px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  padding: 20px 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  transition:
    gap 240ms ease,
    padding-right 240ms ease,
    opacity 200ms ease;
}

.pill-arrow {
  display: inline-block;
  overflow: hidden;
  width: 22px;
  height: 20px;
  max-width: 0;
  opacity: 0;
  transform: translateX(-6px);
  background: currentColor;
  font-size: 0;
  line-height: 0;
  mask-image: url('../asset/arrow.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('../asset/arrow.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition:
    max-width 240ms ease,
    opacity 200ms ease,
    transform 240ms ease;
}

.pill:hover {
  gap: 6px;
  opacity: 0.88;
}

.pill:hover .pill-arrow {
  max-width: 20px;
  opacity: 1;
  transform: translateX(0);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 28px;
  font-weight: 600;
}

.footer-socials a {
  position: relative;
  transition: color 180ms ease;
}

.footer-socials a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer-socials a:hover::after {
  animation: link-swipe 400ms forwards;
}

@keyframes link-swipe {
  0% {
    transform: scaleX(1);
    transform-origin: bottom right;
  }
  45% {
    transform: scaleX(0);
    transform-origin: bottom right;
  }
  50% {
    transform: scaleX(0);
    transform-origin: bottom left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
}

.footer-copyright {
  margin: 0;
  max-width: 400px;
  font-size: 15px;
  line-height: normal;
  text-align: center;
  color: var(--copyright);
}

.copyright-rest {
  display: inline;
}

.footer-logo-wrap {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: clamp(278px, calc(14vw + 128px), 338px);
  overflow: hidden;
  pointer-events: none;
}

.footer-logo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  transform: translateY(calc(62% - 128px));
  color: var(--footer-wordmark);
  font-family: 'Beirut Display', Georgia, serif;
  font-size: clamp(180px, 30vw, 560px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

/* ── Mobile menu ───────────────────────────── */

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px var(--gutter) 64px;
  background: var(--black);
  color: var(--white);
}

.mobile-menu-panel.is-open {
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-symbol {
  width: 54px;
  height: 54px;
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: 'Suisse Intl', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-links {
  display: grid;
  gap: 24px;
  margin-top: 72px;
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 600;
  line-height: 0.95;
}

.mobile-menu-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-top: 48px;
  text-align: center;
}

.mobile-menu-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 24px;
  font-weight: 600;
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 1024px) {
  :root {
    --gutter: 12px;
  }
}

@media (max-width: 1200px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px var(--gutter);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .header-inner {
    align-items: center;
  }

  .brand {
    padding: 0;
  }

  .brand-symbol,
  .brand .cadara-symbol-host--md {
    width: 32px;
    height: 32px;
  }

  .nav-toggle {
    display: inline-flex;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .mobile-menu-close {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .mobile-menu-symbol,
  .mobile-menu-top .cadara-symbol-host--md {
    width: 32px;
    height: 32px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro-headline,
  .intro-tagline {
    grid-column: auto;
  }

  .intro-tagline {
    text-align: left;
  }

  .services-heading {
    margin-bottom: 48px;
    text-align: left;
  }

  .services-grid {
    flex-direction: column;
    gap: 16px;
  }

  .service-card {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 32px 24px;
    gap: 32px;
  }

  .service-copy {
    gap: 24px;
  }

  .footer-logo-wrap {
    left: 0;
    right: 0;
    height: clamp(240px, 46vw, 300px);
  }

  .footer-logo {
    left: 50%;
    right: auto;
    width: max-content;
    font-size: clamp(116px, 29vw, 193px);
    transform: translate(-50%, calc(72% - 40px));
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site {
    gap: 56px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 56px var(--gutter);
  }

  .case-image {
    height: 280px;
  }

  .services-section {
    padding: 80px 0 64px;
  }

  .service-card {
    padding: 28px 20px;
    gap: 28px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
  }

  .footer-copyright {
    max-width: none;
    line-height: 1.35;
  }

  .copyright-rest {
    display: block;
    margin-top: 4px;
  }

  .footer-inner {
    gap: 72px;
    min-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
