/* ==========================================================================
   MAKEE — makee-full
   Funnel Display · JetBrains Mono · black · liquid · glass · soft motion
   ========================================================================== */

:root {
  --bg: #000000;
  --text: #ffffff;
  --dim: #575960;
  --muted: rgba(163, 163, 163, 0.6);
  --soft: #f5f5f5;
  --line: rgba(163, 163, 163, 0.6);
  --glass: rgba(18, 18, 20, 0.42);
  --glass-deep: rgba(12, 12, 14, 0.38);
  --glass-highlight: rgba(255, 255, 255, 0.2);
  --focus: #e8d4b0;
  --font: "Funnel Display", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4.2vw, 5rem);
  --gap: clamp(7rem, 14vw, 12rem);
  --radius: 1.25rem;
  /* Figma makee-full @ 1920: 110 / 52 / 28 / 22 / 26 / 32 / 18 */
  --fs-hero: clamp(3.5rem, 4.2vw + 1.5rem, 6.875rem);
  --fs-title: clamp(2.25rem, 1.8vw + 1.25rem, 3.25rem);
  --lh-title: 1.1538; /* 60/52 */
  --fs-card: clamp(1.375rem, 0.7vw + 0.85rem, 1.75rem);
  --fs-body: clamp(1.125rem, 0.55vw + 0.75rem, 1.375rem);
  --fs-lead: clamp(1.25rem, 0.65vw + 0.75rem, 1.625rem);
  --fs-lead-strong: clamp(1.5rem, 0.85vw + 0.85rem, 2rem);
  --fs-mono: clamp(1rem, 0.4vw + 0.75rem, 1.125rem);
  --lh-mono: 2.222; /* 40/18 */
  /* Apple-like motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --motion: 1.05s;
  --motion-fast: 0.7s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

/* Freeze liquid motion while the viewport is being resized */
html.is-resizing .liquid-hero,
html.is-resizing .liquid-hero__img,
html.is-resizing .liquid {
  animation: none !important;
  transition: none !important;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.35;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.35rem;
}

.skip-link:focus {
  top: 1rem;
}

.mono {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: var(--lh-mono);
}

.dim {
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Liquids — makee-full exact (frame 1920×4976)
   1: x=-394 y=-56 w=1913 h=1077 opacity 1
   2: x=-29 y=772 w=3589 h=2020 opacity 0.6
   3: work soft x=-394 y=2767 w=1913 h=1077 opacity 0.4
   4: x=-1512 y=4215 w=2621 h=1475 opacity 0.6
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.liquids {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.liquid {
  position: absolute;
  max-width: none;
  height: auto;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

  /* Desktop liquids — prefer stable px tops via --liq-*-top; % fallback */
  .liquid--1 {
    left: calc(100vw * -394 / 1920);
    top: var(--liq-1-top, calc(100% * -56 / 4976));
    width: calc(100vw * 1913 / 1920);
    aspect-ratio: 1913 / 1077;
    opacity: 1;
  }

  .liquid--2 {
    left: calc(100vw * -29 / 1920);
    top: var(--liq-2-top, calc(100% * 772 / 4976));
    width: calc(100vw * 3589 / 1920);
    aspect-ratio: 3589 / 2020;
    opacity: 0.6;
  }

  .liquid--3 {
    left: calc(100vw * -394 / 1920);
    top: var(--liq-3-top, calc(100% * 2767 / 4976));
    width: calc(100vw * 1913 / 1920);
    aspect-ratio: 1913 / 1077;
    opacity: 0.4;
  }

  .liquid--4 {
    left: calc(100vw * -1512 / 1920);
    top: var(--liq-4-top, calc(100% * 4215 / 4976));
    width: calc(100vw * 2621 / 1920);
    aspect-ratio: 2621 / 1475;
    opacity: 0.6;
  }

/* Mobile-only liquids (hidden on desktop) */
.liquid--5,
.liquid--fit {
  display: none;
}

/* Hero liquid — premium multi-axis drift (header only; no glints) */
.liquid-hero {
  transform-origin: 52% 42%;
  will-change: transform;
  animation: liquid-hero-drift 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.liquid-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 48% 58%;
  will-change: transform, filter;
  animation:
    liquid-hero-breathe 16s cubic-bezier(0.4, 0.05, 0.6, 0.95) infinite,
    liquid-hero-lumen 20s ease-in-out infinite;
}

/* Slow orbital drift — confident, asymmetric path */
@keyframes liquid-hero-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  18% {
    transform: translate3d(1.6%, -2.1%, 0) rotate(0.55deg);
  }
  36% {
    transform: translate3d(2.4%, -0.4%, 0) rotate(0.25deg);
  }
  52% {
    transform: translate3d(0.3%, 1.8%, 0) rotate(-0.45deg);
  }
  68% {
    transform: translate3d(-2.1%, 1.2%, 0) rotate(-0.7deg);
  }
  84% {
    transform: translate3d(-1.4%, -1.1%, 0) rotate(-0.2deg);
  }
}

/* Independent organic scale breathe — offset timing vs drift */
@keyframes liquid-hero-breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  22% {
    transform: scale(1.035) rotate(-0.35deg);
  }
  48% {
    transform: scale(1.055) rotate(0.2deg);
  }
  72% {
    transform: scale(0.978) rotate(0.45deg);
  }
}

/* Living material — subtle brightness/contrast only (no sheen overlays) */
@keyframes liquid-hero-lumen {
  0%,
  100% {
    filter: brightness(1) contrast(1) saturate(1);
  }
  30% {
    filter: brightness(1.06) contrast(1.04) saturate(1.03);
  }
  55% {
    filter: brightness(1.02) contrast(1.02) saturate(1.01);
  }
  78% {
    filter: brightness(0.97) contrast(1.05) saturate(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-hero,
  .liquid-hero__img {
    animation: none;
    will-change: auto;
    filter: none;
  }
}

main {
  position: relative;
  z-index: 1;
  padding: 0 max(var(--pad), env(safe-area-inset-right, 0px)) max(5rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  max-width: 100%;
  overflow-x: clip;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Glass — premium frost (clear, not muddy grey)
   -------------------------------------------------------------------------- */

.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.05) 38%,
      rgba(255, 255, 255, 0.02) 62%,
      rgba(8, 8, 10, 0.35) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 28px 64px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.55) brightness(1.08);
  backdrop-filter: blur(32px) saturate(1.55) brightness(1.08);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 80% 55% at 18% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(196, 160, 106, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.glass--inset {
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      rgba(10, 10, 12, 0.4) 100%
    );
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 32px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.4) brightness(1.06);
  backdrop-filter: blur(24px) saturate(1.4) brightness(1.06);
}

.glass--inset::before {
  opacity: 0.7;
  background: radial-gradient(ellipse at 25% 10%, rgba(255, 255, 255, 0.2), transparent 55%);
}

/* --------------------------------------------------------------------------
   Hero — 1920×1080 composition
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 1.875rem 0 2.5rem;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.hero__logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 7.5rem;
  margin-left: var(--pad);
}

.hero__logo img {
  width: 100%;
  height: auto;
}

/* Desktop Figma 2:381 — left stack under logo (x=80 y=154); hidden ONLY on mobile ≤900px */
.hero__services {
  display: block;
  position: absolute;
  z-index: 5;
  left: var(--pad);
  top: 9.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 18rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  line-height: var(--lh-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__services li {
  margin: 0;
  display: block;
}

@media (min-width: 901px) {
  .hero__services {
    display: block !important;
  }
}

.hero__content {
  display: contents;
}

.hero__title {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  top: 28%;
  margin: 0;
  max-width: min(43rem, 44vw);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero__title-make {
  position: relative;
  display: block;
  width: fit-content;
}

.hero__title-word {
  position: relative;
  z-index: 1;
}

.hero__title-e {
  position: absolute;
  /* Final tuck under Make — most of grey e peeks out */
  left: calc(100% - 0.18em);
  top: 0;
  z-index: 0;
  color: var(--dim);
  pointer-events: none;
  transform-origin: 0% 50%;
}

/*
  Make → Makee — unfolds with hero entrance (+ micro delay)
*/
@media (prefers-reduced-motion: no-preference) {
  .hero__title-e {
    opacity: 0;
    clip-path: inset(0 100% 0 -12%);
    transform: translate3d(-0.4em, 0, 0);
    will-change: transform, opacity, clip-path;
  }

  body.is-ready .hero__title.is-in .hero__title-e {
    animation: makee-unfold 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
    /* Same beat as title reveal (--d), + micro lag */
    animation-delay: calc(var(--d, 320ms) + 80ms);
  }
}

@keyframes makee-unfold {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 -12%);
    transform: translate3d(-0.4em, 0, 0);
    color: #fff;
  }
  35% {
    opacity: 1;
    color: #fff;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 -5% 0 -12%);
    transform: translate3d(0, 0, 0);
    color: var(--dim);
  }
}

.hero__title-line {
  display: block;
}

.hero__lead {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: 4rem;
  margin: 0;
  max-width: min(51rem, 54vw);
  font-size: var(--fs-lead);
  font-weight: 400;
  color: #fff;
}

.hero__lead-line {
  display: block;
  margin-bottom: 0.15em;
  font-size: var(--fs-lead-strong);
  font-weight: 700;
  color: #fff;
}

.hero__lead strong {
  font-weight: 800;
  color: #fff;
}

.hero__nav {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: min(18rem, 42vw);
}

.hero__nav a {
  text-decoration: none;
  color: #fff;
  font-size: var(--fs-mono);
  font-weight: 800;
  line-height: var(--lh-mono);
}

.hero__nav a .dim {
  font-weight: 400;
  color: var(--dim);
}

.hero__nav a:hover {
  color: var(--focus);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  margin-top: var(--gap);
  z-index: 1;
  isolation: isolate;
}

.section__label {
  margin: 0 0 1.875rem;
  color: #fff;
  font-size: var(--fs-mono);
  font-weight: 800;
  line-height: var(--lh-mono);
}

.section__label .dim {
  color: var(--dim);
  font-weight: 800;
}

.section__title {
  margin: 0;
  max-width: min(50.625rem, 92%);
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: var(--lh-title);
  letter-spacing: -0.03em;
  color: #fff;
}

.section__title--wide {
  max-width: min(55.375rem, 96%);
}

.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 1.875rem;
}

.section__head--split .section__title {
  flex: 0 1 50.625rem;
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 42.5rem;
  margin-top: 1.875rem;
}

.section__head--split .aside {
  margin-top: 0;
  flex: 0 1 42.5rem;
}

.aside__plus {
  width: 1.66rem;
  height: 1.66rem;
}

.aside p {
  margin: 0;
  font-size: var(--fs-body);
  color: #fff;
}

/* --------------------------------------------------------------------------
   FIT stage
   -------------------------------------------------------------------------- */

.fit-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.875rem;
  min-height: 39rem;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

.fit-stage > * {
  position: relative;
  z-index: 1;
}

.fit-stage__left {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  grid-template-rows: repeat(4, auto);
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
  row-gap: 1.25rem;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}

/* Desktop: unwrap items so pills stack left, panels stack right */
.fit-item {
  display: contents;
}

.fit-pill {
  -webkit-appearance: none;
  appearance: none;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 1.875rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  color: #fff;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 2.22;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  touch-action: manipulation;
}

.fit-pill img {
  width: 1.66rem;
  height: 1.66rem;
  flex-shrink: 0;
}

.fit-pill.is-active {
  background: #fff;
  color: var(--dim);
  border-color: var(--line);
}

/* Icon swap handled in JS — content:url() is unreliable in Safari/Firefox */

/* Stacked panels — fill leftover space toward the photo */
.fit-panel {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  margin: 0;
  padding: 1.875rem;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s linear 0.35s;
}

.fit-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s linear 0s;
}

.fit-panel h3 {
  margin: 0 0 1.25rem;
  font-size: var(--fs-card);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.fit-panel p {
  margin: 0;
  font-size: var(--fs-body);
  color: #fff;
}

.fit-visual {
  position: relative;
  min-height: 35.625rem;
  display: grid;
  place-items: center;
}

.fit-visual img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, 855px);
  max-height: 35.625rem;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.94) translate3d(0, 12px, 0);
  transition:
    opacity var(--motion) var(--ease-out),
    transform var(--motion) var(--ease-out),
    visibility 0s linear var(--motion);
}

.fit-visual img.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: scale(1) translate3d(0, 0, 0);
  transition:
    opacity var(--motion) var(--ease-out),
    transform var(--motion) var(--ease-out),
    visibility 0s linear 0s;
}

/* --------------------------------------------------------------------------
   REAL
   -------------------------------------------------------------------------- */

#brands .section__title {
  margin-bottom: 0;
}

.brands__caption {
  margin: 1.875rem 0 1.25rem;
  color: var(--muted);
  font-size: var(--fs-mono);
  font-weight: 400;
  line-height: var(--lh-mono);
}

.brands__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brands__list li {
  padding: 0.85rem 1rem 0.85rem 0;
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
  color: #fff;
}

/* Last row only — drop cell borders; list border-bottom spans full width */
.brands__list li:nth-child(4n + 1):nth-last-child(-n + 4),
.brands__list li:nth-child(4n + 2):nth-last-child(-n + 3),
.brands__list li:nth-child(4n + 3):nth-last-child(-n + 2),
.brands__list li:nth-child(4n + 4):nth-last-child(-n + 1) {
  border-bottom: none;
}

.brands__more {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: var(--fs-mono);
  font-weight: 400;
  line-height: var(--lh-mono);
}

/* --------------------------------------------------------------------------
   WORK cards
   -------------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.875rem;
  margin-top: 1.875rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.875rem;
  overflow: visible;
}

.work-card > * {
  position: relative;
  z-index: 1;
}

.work-card__num {
  margin: 0;
  color: var(--soft);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
}

.work-card h3 {
  margin: 0;
  font-size: var(--fs-card);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.work-card__media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Soften residual aliasing from source cutouts */
  filter: blur(0.25px) contrast(1.02);
  transform: translateZ(0);
}

.work-card > p:last-child {
  margin: 0;
  font-size: var(--fs-body);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Direct
   -------------------------------------------------------------------------- */

.direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.direct__copy {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

.direct__copy .aside {
  margin-top: 0;
}

.direct__list {
  padding-top: 3.75rem;
}

.direct__item {
  padding: 1.875rem;
  border-top: 1px solid var(--line);
}

.direct__item:last-child {
  border-bottom: 1px solid var(--line);
}

.direct__item-head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.direct__item-head .mono {
  color: var(--soft);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
}

.direct__item-head h3 {
  margin: 0;
  font-size: var(--fs-card);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.direct__item p {
  margin: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Closer
   -------------------------------------------------------------------------- */

.section--closer {
  padding-bottom: 2rem;
}

.closer__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 6rem);
  margin-top: 1.875rem;
}

.closer__fields {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 7.5rem);
}

.closer__field p,
.closer__field a {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-mono);
  text-decoration: none;
  color: #fff;
  text-transform: none;
  letter-spacing: normal;
}

.closer__field p.mono {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.closer__field a:hover {
  color: var(--focus);
}

.closer__logo {
  width: min(20rem, 32vw);
  height: auto;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

  /* Pills stack, then shared panel stage below (desktop/tablet, not mobile accordion) */
  .fit-stage__left {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto) minmax(0, 1fr);
    min-width: 0;
    row-gap: 1.25rem;
    column-gap: 0;
  }

  .fit-pill {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
  }

  .fit-panel {
    grid-column: 1;
    grid-row: 5;
    max-width: none;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 14rem;
  }
}

@media (max-width: 1100px) {
  .fit-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-top: 5rem;
    min-height: auto;
  }

  .hero__logo {
    position: relative;
    top: auto;
    left: auto;
    margin-left: 0;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .hero__services,
  .hero__title,
  .hero__lead,
  .hero__nav {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    max-width: none;
    width: auto;
  }

  .section__head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Column flex: rem flex-basis must NOT become forced height (was 810px / 680px) */
  .section__head--split .section__title,
  .section__head--split .aside {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
  }

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

  .direct__list {
    padding-top: 0;
  }

  .closer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  /* Mobile spacing scale — Figma 375: pad 20, section 120, inner 20/30/40 */
  :root {
    --pad: 1.25rem; /* 20 */
    --gap: 7.5rem; /* 120 — major section rhythm */
    --space-1: 1.25rem; /* 20 */
    --space-2: 1.875rem; /* 30 */
    --space-3: 2.5rem; /* 40 */
    --fs-hero: 5rem;
    --fs-title: 2.375rem;
    --lh-title: 1.15;
    --fs-lead: 1.5rem;
    --fs-lead-strong: 1.875rem;
    --fs-body: 1.25rem;
    --fs-card: 1.75rem;
    --fs-mono: 1.125rem;
    --lh-mono: 1.2;
  }

  /* ---- Liquids: absolute layer behind content; never affect document flow ---- */
  .page {
    isolation: isolate;
  }

  .liquids {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 100%;
    pointer-events: none;
    contain: paint;
  }

  .liquid,
  .liquid--1,
  .liquid--2,
  .liquid--3,
  .liquid--4,
  .liquid--5,
  .liquid--fit {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    max-width: none;
    /* Prevent layout thrash while size/position settle on resize */
    transition: none;
  }

  main {
    position: relative;
    z-index: 1;
  }

  .hero,
  .section {
    position: relative;
    z-index: 1;
    isolation: auto; /* don't trap liquids above content */
  }

  /* 3:682 hero-liquid 1 — x=-196 y=-70 w=839 h=472 */
  .liquid--1.liquid-hero {
    left: calc(100vw * -196 / 375);
    right: auto;
    top: var(--liq-1-top, -70px);
    width: calc(100vw * 839 / 375);
    height: auto;
    aspect-ratio: 839 / 472;
    opacity: 1;
    transform: none;
    transform-origin: 45% 40%;
    will-change: auto;
    animation: none;
  }

  .liquid-hero__img {
    object-fit: cover;
    object-position: center;
    will-change: auto;
    animation: liquid-hero-breathe-mobile 16s ease-in-out infinite;
  }

  /* 3:681 hero-liquid 2 — x=-29 y=772 w=3589 h=2020 opacity 0.6 */
  .liquid--2 {
    left: calc(100vw * -29 / 375);
    top: var(--liq-2-top, 772px);
    width: calc(100vw * 3589 / 375);
    aspect-ratio: 3589 / 2020;
    opacity: 0.6;
  }

  /* 3:815 hero-liquid 3 — x=-1153 y=3406 w=1595.596 h=898 */
  .liquid--3 {
    left: calc(100vw * -1153 / 375);
    top: var(--liq-3-top, 3406px);
    width: calc(100vw * 1595.596 / 375);
    aspect-ratio: 1595.596 / 898;
    opacity: 1;
  }

  /* 3:817 hero-liquid 4 — Figma x=-324 (50%+32 − half width), y=5191 */
  .liquid--4 {
    left: calc(100vw * -324 / 375);
    right: auto;
    top: var(--liq-4-top, 5191px);
    width: calc(100vw * 1087 / 375);
    aspect-ratio: 1087 / 612;
    opacity: 1;
    transform: none;
  }

  /* 3:816 hero-liquid 3 — x=-696 y=7397 w=1595.596 h=898 opacity 0.6 */
  .liquid--5 {
    display: block;
    left: calc(100vw * -696 / 375);
    top: var(--liq-5-top, 7397px);
    width: calc(100vw * 1595.596 / 375);
    aspect-ratio: 1595.596 / 898;
    opacity: 0.6;
  }

  /* 3:814 FIT-local — in .liquids layer; top via --liq-fit-top (JS) */
  .liquid--fit {
    display: block;
    left: calc(100vw * -538 / 375);
    top: var(--liq-fit-top, 929px);
    width: calc(100vw * 1585 / 375);
    aspect-ratio: 1585 / 892;
    opacity: 1;
  }

  /* Glass: solid frost without backdrop-filter (Android / mid-range) */
  .glass,
  .glass--inset,
  .fit-pill {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .glass {
    background:
      linear-gradient(
        155deg,
        rgba(40, 40, 44, 0.92) 0%,
        rgba(18, 18, 20, 0.94) 50%,
        rgba(10, 10, 12, 0.96) 100%
      );
  }

  .glass--inset {
    background:
      linear-gradient(
        160deg,
        rgba(48, 48, 52, 0.9) 0%,
        rgba(16, 16, 18, 0.94) 100%
      );
  }

  .fit-pill {
    background: rgba(57, 58, 61, 0.8);
    min-height: 2.75rem;
  }

  .fit-pill.is-active {
    background: #fff;
    color: var(--dim);
  }

  /* ---- Hero: logo → title → nav → lead (tight stack; liquid behind) ---- */
  .hero__services {
    display: none;
  }

  .hero {
    overflow: visible;
    gap: var(--space-2);
    min-height: 0;
    padding-top: max(var(--space-2), env(safe-area-inset-top, 0px));
    padding-bottom: 0;
  }

  .hero__logo {
    width: 7.5rem;
    margin-left: 0;
  }

  .hero__content {
    gap: var(--space-2);
  }

  .hero__title {
    font-size: 5rem;
    line-height: 5rem;
    letter-spacing: -0.04em;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero__lead {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: 1.5rem;
    line-height: normal;
  }

  .hero__lead-line {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0;
  }

  .hero__nav {
    width: 100%;
    gap: 0.625rem;
  }

  .hero__nav a {
    display: block;
    min-height: 0;
    padding: 0;
    line-height: 1.35;
    font-size: 1.125rem;
    font-weight: 800;
    touch-action: manipulation;
  }

  .hero__nav a .dim {
    font-weight: 400;
  }

  /* ---- Sections: unified rhythm ---- */
  .section {
    margin-top: var(--gap);
  }

  .section__label {
    margin: 0 0 var(--space-2);
  }

  .section__title {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: 2.375rem;
    line-height: normal;
    letter-spacing: -0.02em;
  }

  .aside {
    max-width: 100%;
    margin-top: 0;
    gap: var(--space-1);
  }

  .aside p {
    font-size: 1.25rem;
  }

  .section__head--split {
    position: relative;
    overflow: visible;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
  }

  /* FIT: image on top, accordion (panel under active pill) */
  .fit-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0.625rem;
    gap: var(--space-2);
    box-sizing: border-box;
    background: rgba(34, 35, 38, 0.8);
  }

  .fit-stage__left {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: var(--space-1);
  }

  .fit-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    width: 100%;
    min-width: 0;
  }

  .fit-visual {
    position: relative;
    min-height: 0;
    order: -1;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1536 / 1024;
    overflow: hidden;
    display: block;
  }

  .fit-visual img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fit-visual img:not(.is-active) {
    display: none;
  }

  .fit-pill {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    padding: 0.625rem 1.875rem;
    font-size: 1rem;
    line-height: 2.5rem;
    min-height: 3.75rem; /* Figma 60px */
    box-sizing: border-box;
    overflow: hidden;
  }

  .fit-panel {
    position: relative;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    padding: var(--space-2);
    gap: var(--space-1);
    box-sizing: border-box;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .fit-panel.is-active {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .fit-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .fit-panel p {
    font-size: 1.25rem;
  }

  .glass,
  .work-card,
  .section,
  .direct,
  .closer__row,
  .brands__list {
    max-width: 100%;
    min-width: 0;
  }

  /* REAL */
  .brands__caption {
    margin: var(--space-2) 0 var(--space-1);
  }

  .brands__more {
    margin: var(--space-1) 0 0;
  }

  .brands__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brands__list li {
    padding: 0.75rem 0.4rem 0.75rem 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .brands__list li:nth-child(4n + 1):nth-last-child(-n + 4),
  .brands__list li:nth-child(4n + 2):nth-last-child(-n + 3),
  .brands__list li:nth-child(4n + 3):nth-last-child(-n + 2),
  .brands__list li:nth-child(4n + 4):nth-last-child(-n + 1) {
    border-bottom: 1px solid var(--line);
  }

  .brands__list li:nth-child(2n + 1):nth-last-child(-n + 2),
  .brands__list li:nth-child(2n):nth-last-child(-n + 1) {
    border-bottom: none;
  }

  /* WORK */
  .work-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    margin-top: var(--space-2);
  }

  .work-card {
    overflow: hidden;
    padding: var(--space-2);
    gap: var(--space-1);
  }

  .work-card h3 {
    font-size: 1.75rem;
  }

  .work-card > p:last-child {
    font-size: 1.375rem;
  }

  /* DIRECT */
  .direct {
    gap: var(--space-2);
  }

  .direct__copy {
    gap: var(--space-2);
  }

  .direct__list {
    padding-top: 0;
  }

  .direct__item {
    padding: var(--space-2) 0.625rem;
  }

  .direct__item-head {
    gap: var(--space-1);
    margin-bottom: var(--space-1);
  }

  .direct__item-head h3 {
    font-size: 1.625rem;
  }

  .direct__item p {
    font-size: 1.25rem;
  }

  /* Contact / happen */
  .section--closer {
    padding-bottom: var(--space-2);
  }

  .closer__row {
    gap: var(--space-2);
    margin-top: var(--space-2);
  }

  .closer__fields {
    flex-direction: column;
    gap: 0.625rem;
  }

  .closer__field p,
  .closer__field a {
    font-size: 1.375rem;
    line-height: 2.5rem;
  }

  .closer__field p.mono {
    font-size: 1.125rem;
    line-height: 2.5rem;
  }

  .closer__logo {
    width: 20rem;
    max-width: 100%;
  }

  .reveal {
    transform: translate3d(0, 1.25rem, 0);
  }

  .contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    touch-action: manipulation;
  }
}

@keyframes liquid-hero-drift-mobile {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.5%, 1%, 0);
  }
}

@keyframes liquid-hero-breathe-mobile {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 1.25rem;
    --gap: 7.5rem;
    --space-1: 1.25rem;
    --space-2: 1.875rem;
    --space-3: 2.5rem;
  }

  .mono {
    line-height: 1.35;
  }
}

/* --------------------------------------------------------------------------
   Motion — Apple Mac Studio style (soft rise, long ease, staggered)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 2.25rem, 0);
  filter: blur(0);
  will-change: opacity, transform;
}

.reveal--soft {
  transform: translate3d(0, 1.5rem, 0) scale(0.985);
}

.reveal.is-in,
body.is-ready .reveal--hero.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity var(--motion) var(--ease-out),
    transform var(--motion) var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: auto;
}

.reveal.reveal--instant.is-in {
  transition: none !important;
  transition-delay: 0ms !important;
}

.work-card.reveal.is-in .work-card__media img {
  animation: media-settle 1.2s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

@keyframes media-settle {
  from {
    transform: scale(0.92);
    opacity: 0.55;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.fit-pill {
  transition:
    background var(--motion-fast) var(--ease-soft),
    color var(--motion-fast) var(--ease-soft),
    border-color var(--motion-fast) var(--ease-soft),
    transform 0.45s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .fit-pill:hover:not(.is-active) {
    transform: translate3d(0.15rem, 0, 0);
    border-color: rgba(255, 255, 255, 0.38);
  }

  .work-card {
    transition: transform 0.7s var(--ease-out), border-color 0.7s var(--ease-soft);
  }

  .work-card:hover {
    transform: translate3d(0, -0.35rem, 0);
  }

  .work-card:hover .work-card__media img {
    transform: scale(1.03);
    transition: transform 1s var(--ease-out);
  }

  .work-card__media img {
    transition: transform 1s var(--ease-out);
  }
}

.direct__item {
  transition: opacity var(--motion) var(--ease-out), transform var(--motion) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--soft,
  .reveal.is-in,
  body.is-ready .reveal--hero.is-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }

  .hero__title-e {
    opacity: 1;
    transform: none;
    clip-path: none;
    color: var(--dim);
    transition: none;
    animation: none;
    will-change: auto;
  }

  .work-card.reveal.is-in .work-card__media img,
  .fit-visual img,
  .fit-pill,
  .work-card,
  .work-card__media img {
    animation: none;
    transition: none !important;
    transform: none !important;
  }

  .liquid-hero,
  .liquid-hero__img {
    animation: none;
    will-change: auto;
    filter: none;
  }
}
