/* ══ NOÉSO ════════════════════════════════════════════════════════════
 * 1. Reset            5. Hero / Showcase composition (1:1 port)
 * 2. Tokens           6. Site sections
 * 3. Base             7. Pages: work, case, studio, contact
 * 4. Transitions      8. Responsive
 * ═════════════════════════════════════════════════════════════════════ */

/* ══ 1. Reset ════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; border: 0 solid; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd, pre, hr { margin: 0; }
ul, ol, menu { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { margin: 0; padding: 0; font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

/* ══ 2. Tokens ═══════════════════════════════════════════════════════
 * The --sc-* set is the Showcase composition, in pixels measured at a
 * 1920×1080 frame; the RESPONSIVE block restates them per breakpoint.
 * The rest serves the sections below the hero. */
:root {
  --font-general: "General Sans", system-ui, sans-serif;

  --sc-page: #0c0c0c;
  --sc-ink: #f2f2f2;
  --sc-surface: #171717;
  --sc-chip: #242424;
  --lk-asset: #000;

  --sc-pad: 30px;
  --sc-gap: 30px;
  --sc-radius: 32px;
  --sc-text: 24px;
  --sc-stat: 64px;
  --sc-wm: 256px;
  --sc-pill-px: 40px;
  --sc-pill-py: 16px;
  --sc-pill-r: 47px;
  --sc-navpill-w: 160px;
  --sc-navpill-gap: 4px;
  --sc-btn-w: 293px;
  --sc-btn-py: 26px;
  --sc-btn-r: 81px;
  --sc-btn-gap: 20px;
  --sc-lead-w: 606px;
  --sc-card-h: 267px;
  --sc-card-pad: 32px;
  --sc-card-gap: 20px;
  --sc-card1-w: 293px;
  --sc-card2-w: 607px;
  --sc-card2-title-w: 386px;
  --sc-tags-w: 458px;
  --sc-tag-gap: 4px;
  --sc-stat-gap: 12px;
  --sc-plate-min: 180px;

  /* site */
  --dim: rgba(242, 242, 242, 0.56);
  --faint: rgba(242, 242, 242, 0.14);
  --line: rgba(242, 242, 242, 0.1);
  --line-2: rgba(242, 242, 242, 0.24);
  --warm: #b8663a;
  --cool: #5a7f92;
  --sec-y: clamp(96px, 11vw, 200px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.28, 0.5, 1);
}

/* ══ 3. Base ═════════════════════════════════════════════════════════ */
html {
  background: var(--sc-page);
  color-scheme: dark;
  /* nothing may ever scroll sideways — slide-in effects included */
  overflow-x: clip;
  /* no grey flash on tap; no rubber-band showing black above the full-bleed hero */
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--sc-page);
  font-family: var(--font-general);
  font-size: 16px;
  line-height: 1.5;
  color: var(--sc-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--warm); color: var(--sc-page); }
:focus-visible { outline: 2px solid var(--sc-ink); outline-offset: 3px; }

.skip {
  position: fixed; z-index: 200; left: 16px; top: -80px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--sc-ink); color: var(--sc-page);
  transition: top 0.3s var(--ease-out);
}
.skip:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* Controls respond on the tap, not after it (no double-tap-zoom wait),
   and long-pressing a label never selects it. Content text stays selectable. */
a, button, [role="button"], label { touch-action: manipulation; }
.sc-pill, .sc-btn, .link-arrow, .island a, .island button, .menu-links a,
.filters button, .chips span, .work-card, .sc-rail, .hb-d-steps li {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* press feedback for touch, where there is no hover */
.work-card:active .media { transform: scale(0.985); transition: transform 120ms var(--ease-out); }
.link-arrow:active, .island a:active, .filters button:active, .menu-links a:active { opacity: 0.7; }

/* ══ 4. Transitions ══════════════════════════════════════════════════
 * Cross-document view transitions: every link between pages animates
 * with no router and no JS. The nav holds still (it is the same element
 * on every page), the page beneath it slides and fades, and a project
 * card grows into its case-page hero because both carry the same
 * `view-transition-name: p-<slug>`. Browsers without support simply
 * navigate. */
@view-transition { navigation: auto; }

.sc-nav { view-transition-name: site-nav; }

::view-transition-group(*) {
  animation-duration: 0.8s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation: vt-out 0.5s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.85s var(--ease-out) 0.08s both; }

@keyframes vt-out {
  to { opacity: 0; transform: translate3d(0, -32px, 0) scale(0.985); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translate3d(0, 48px, 0); }
}

/* Work filter: only the cards move, the page does not crossfade. */
html.vt-local::view-transition-old(root) { animation: none; opacity: 0; }
html.vt-local::view-transition-new(root) { animation: none; }

/* Elements that cascade in start hidden — but only with JS on. */
html.lk-js [data-rise] { opacity: 0; }
html.vt-reveal [data-rise-persist] { opacity: 1; }

html.lk-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 1.2s var(--ease-out) var(--d, 0s);
}
html.lk-js [data-reveal].in { opacity: 1; transform: none; }
/* arriving through a view transition: whatever is on screen is already there */
html.vt-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }

/* ══ 5. Hero — the Showcase composition ══════════════════════════════
 * Ported 1:1 from the Figma frame (2123:2322). The composition never
 * paints its own ground: the plate is a window whose box-shadow paints
 * the page colour outward, so the live gradient shows only through the
 * rounded opening. */
.lk-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--lk-asset);
}

.lk-bg {
  position: absolute;
  inset: 0;
  background: var(--lk-asset);
}
.lk-bg canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.lk-bg canvas.is-ready { opacity: 1; }
/* no WebGL2: a still version of the same palette */
.lk-bg.no-gl {
  background: linear-gradient(180deg, #e9c9a8 0%, #b8663a 24%, #5a7f92 48%, #3c5563 62%, #14110f 82%, #0a0908 100%);
}
.lk-bg.no-gl canvas { opacity: 0; transition: none; }

.sc {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sc-gap);
  padding: var(--sc-pad);
  font-size: var(--sc-text);
  line-height: 1;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.sc-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  font-size: var(--sc-text);
  line-height: 1;
}
.sc-navlinks {
  display: flex;
  align-items: center;
  gap: var(--sc-navpill-gap);
}
.sc-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
}
/* NOÉSO │ MORE THAN AI — the name, a hairline, the slogan in small tracked caps */
.sc-brand { display: inline-flex; align-items: center; gap: 0.9em; }
.sc-brand .b-name { font-weight: 500; letter-spacing: 0.01em; }
.sc-brand .b-tag {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.9em;
  border-left: 1px solid var(--line-2);
  color: rgba(242, 242, 242, 0.7);
}

.sc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sc-pill-py) var(--sc-pill-px);
  border-radius: var(--sc-pill-r);
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.5s var(--ease-spring);
}
.sc-navlinks .sc-pill {
  width: var(--sc-navpill-w);
  padding-left: 0;
  padding-right: 0;
  background: var(--sc-surface);
}
@media (hover: hover) and (pointer: fine) { .sc-navlinks .sc-pill:hover { background: #222; } }
.sc-navlinks .sc-pill[aria-current="page"] { background: #262626; }
.sc-navlinks .sc-pill[aria-current="page"]::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm); margin-right: 2px;
}
.sc-pill-dark {
  background: var(--sc-ink);
  color: var(--sc-page);
}
@media (hover: hover) and (pointer: fine) { .sc-pill-dark:hover { background: #fff; } }
@media (hover: hover) and (pointer: fine) { .sc-pill-dark:hover .sc-arrow { transform: translateX(4px); } }
.sc-pill-chip { background: var(--sc-chip); }
.sc-menu-btn { display: none; background: var(--sc-surface); }

.sc-arrow {
  flex: none;
  width: 0.834em;
  height: 0.614em;
  transition: transform 0.5s var(--ease-spring);
}

/* ── The plate ───────────────────────────────────────────────────── */
.sc-plate {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: var(--sc-plate-min);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sc-radius);
  box-shadow: 0 0 0 4000px var(--sc-page);
}

/* ── The wordmark ────────────────────────────────────────────────────
 * Vertical gradient clipped to each glyph, alternating direction letter
 * by letter. --wm-k scales the lockup for longer words (page titles);
 * the letter gap is tuned for five letters — NOÉSO — instead of the
 * reference's four. Vertical padding gives the É accent room inside
 * the clipped box. */
.sc-wordmark {
  display: flex;
  align-items: center;
  gap: calc(var(--sc-wm) * var(--wm-k, 1) * var(--wm-gap, 0.3));
  font-size: calc(var(--sc-wm) * var(--wm-k, 1));
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.sc-wordmark span {
  display: block;
  padding: 0.16em 0 0.04em;
  text-align: center;
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sc-wordmark span:nth-child(2n) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

/* the wordmark drifts up and dims as the hero scrolls away */
@supports (animation-timeline: scroll()) {
  .lk-stage--hero .sc-wordmark {
    animation: wm-away linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100svh;
  }
  @keyframes wm-away {
    to { transform: translate3d(0, -18%, 0) scale(0.96); opacity: 0.15; }
  }
}

/* ── Bottom row ──────────────────────────────────────────────────── */
.sc-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: var(--sc-card-gap);
  flex: none;
  height: var(--sc-card-h);
}
.sc-lead {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.sc-para {
  max-width: var(--sc-lead-w);
  line-height: 1.2;
}
.sc-cta {
  display: flex;
  gap: var(--sc-btn-gap);
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--sc-btn-w);
  padding: calc(var(--sc-btn-py) - 1px) 0;
  border: 1px solid transparent;
  border-radius: var(--sc-btn-r);
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-size: var(--sc-text);
  line-height: 1;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.5s var(--ease-spring);
}
.sc-btn:active, .sc-pill:active { transform: scale(0.97); }
.sc-btn-solid { background: var(--sc-ink); color: var(--sc-page); }
@media (hover: hover) and (pointer: fine) { .sc-btn-solid:hover { background: #fff; } }
.sc-btn-ghost { border-color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) { .sc-btn-ghost:hover { background: var(--sc-ink); color: var(--sc-page); } }

.sc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: var(--sc-card-pad);
  border-radius: var(--sc-radius);
  background: var(--sc-surface);
}
.sc-card-stat { flex: none; width: var(--sc-card1-w); }
.sc-card-tags { flex: none; width: var(--sc-card2-w); }
.sc-cardtitle { font-weight: 500; line-height: 1.2; }
.sc-card-tags .sc-cardtitle { max-width: var(--sc-card2-title-w); }
.sc-statblock { display: flex; flex-direction: column; gap: var(--sc-stat-gap); }
.sc-figure { font-size: var(--sc-stat); font-weight: 500; line-height: 1.2; }
.sc-figure sup { font-size: 0.4em; vertical-align: top; position: relative; top: 0.3em; color: var(--dim); }
.sc-statfoot { line-height: 1.2; color: var(--dim); }
.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sc-tag-gap);
  width: var(--sc-tags-w);
  max-width: 100%;
}

/* ── Inner page headers: the same composition, a page word on the plate ── */
.lk-stage--page { height: max(640px, 86svh); }
.pg-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sc-card-gap);
  flex: none;
}
.pg-lead {
  max-width: calc(var(--sc-lead-w) * 1.15);
  line-height: 1.2;
}
.pg-lead .eyebrow { margin-bottom: 18px; }
.pg-card {
  flex: none;
  width: var(--sc-card2-w);
  min-height: calc(var(--sc-card-h) * 0.72);
}
.pg-index { display: grid; gap: 12px; font-size: 0.8em; }
.pg-index li { display: flex; gap: 16px; align-items: baseline; }
.pg-index li span { color: var(--dim); font-size: 0.8em; width: 2em; }

/* ══ 6. Site sections ════════════════════════════════════════════════ */
.section { padding: var(--sec-y) var(--sc-pad); }
.section + .section { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warm);
}
.h-display {
  font-size: clamp(48px, 7.4vw, 140px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h-2 {
  font-size: clamp(34px, 4.2vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.dim { color: var(--dim); }
.lede {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.45;
  color: var(--dim);
  max-width: 46ch;
  text-wrap: pretty;
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px 40px;
  margin-bottom: clamp(48px, 6vw, 110px);
}
.sec-head > .eyebrow { grid-column: 1 / -1; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.link-arrow svg { width: 18px; height: 13px; transition: transform 0.5s var(--ease-spring); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { background: var(--sc-ink); color: var(--sc-page); border-color: var(--sc-ink); } }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(4px); } }

/* ── Client marks ("Trusted by") ───────────────────────────────── */
.clients {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(56px, 7vw, 120px) 0 0;
}
.clients > .eyebrow { margin-left: var(--sc-pad); }
.clients-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.clients-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.clients-group {
  display: flex; align-items: center;
  gap: clamp(56px, 7vw, 120px);
  padding-right: clamp(56px, 7vw, 120px);
}
.clients-group img {
  display: block; width: auto;
  height: calc(var(--logo-h, 44px) * 0.62);
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .clients:hover .clients-track { animation-play-state: paused; }
  .clients-group img:hover { opacity: 1; }
}
.clients-group .is-name {
  font-size: clamp(14px, 1.2vw, 18px); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  white-space: nowrap; color: #fff; opacity: 0.55;
}
@media (max-width: 768px) { .clients-group img { height: calc(var(--logo-h, 44px) * 0.5); } }
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .clients-group[aria-hidden] { display: none; }
}

/* ── Manifesto ───────────────────────────────────────────────────── */
.manifesto {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 4fr;
  gap: 32px 40px;
  align-items: start;
}
.manifesto .eyebrow { padding-top: 0.9em; }
.manifesto-text {
  font-size: clamp(32px, 4.7vw, 92px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.manifesto-text .w { color: var(--faint); transition: color 0.6s ease; }
.manifesto-text .w.lit { color: var(--sc-ink); }
.manifesto-text em { font-style: normal; }

/* ── Media placeholder / video plate ─────────────────────────────── */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--sc-radius);
  background: var(--c1, #111);
  aspect-ratio: var(--ar, 16 / 10);
  contain: paint;
}
.media-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 1.4s var(--ease-out);
}
.media-inner::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 46% at 28% 38%, var(--c2), transparent 70%),
    radial-gradient(34% 42% at 72% 66%, var(--c3), transparent 72%),
    radial-gradient(26% 30% at 62% 26%, color-mix(in srgb, var(--c4) 55%, transparent), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, #000, transparent 70%);
  filter: blur(24px);
  animation: drift 22s ease-in-out infinite alternate;
}
.media:nth-of-type(2n) .media-inner::before { animation-duration: 27s; animation-direction: alternate-reverse; }
@keyframes drift {
  0% { transform: translate3d(-4%, 3%, 0) rotate(-6deg) scale(1); }
  100% { transform: translate3d(5%, -4%, 0) rotate(8deg) scale(1.12); }
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
}
.media-mark {
  position: relative;
  font-size: clamp(40px, 7vw, 140px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  mix-blend-mode: overlay;
  text-align: center;
  padding: 0.1em 0.2em;
}
.media-label {
  position: absolute;
  z-index: 4;
  left: 18px;
  top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(12, 12, 12, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(242, 242, 242, 0.8);
}
.media video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.media.is-playing video { opacity: 1; }
.media.is-film video { object-fit: contain; background: #000; }

/* ── Work cards ──────────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 120px) var(--sc-card-gap);
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  grid-column: span 6;
}
@media (hover: hover) and (pointer: fine) { .work-card:hover .media-inner { transform: scale(1.045); } }
.work-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.work-title {
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.work-type { color: var(--dim); font-size: 17px; }
.chip {
  margin-left: auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--sc-chip);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

/* home: an editorial mosaic */
/* card shape follows the film: tall for vertical, wide for wide.
   Rows pair one of each, alternating sides, offset for rhythm. */
.work-card.is-vertical { --ar: 4 / 5; }
.work-card.is-wide { --ar: 16 / 11; }
/* home: tall + wide, then two talls, then the panorama closes the section */
.work-grid--home .work-card:nth-child(1) { grid-column: 1 / 6; }
.work-grid--home .work-card:nth-child(2) { grid-column: 6 / 13; margin-top: clamp(80px, 12vw, 220px); }
.work-grid--home .work-card:nth-child(3) { grid-column: 1 / 6; }
.work-grid--home .work-card:nth-child(4) { grid-column: 7 / 12; margin-top: clamp(80px, 12vw, 220px); }
.work-grid--home .work-card:nth-child(5) { grid-column: 1 / -1; }

/* ── Services list ───────────────────────────────────────────────── */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 4fr 5fr;
  gap: 20px 40px;
  align-items: end;
  padding: clamp(32px, 3.6vw, 60px) 0;
  border-bottom: 1px solid var(--line);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--sc-pad) * -1);
  z-index: -1;
  background: linear-gradient(90deg, rgba(184, 102, 58, 0.16), rgba(90, 127, 146, 0.1) 60%, transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
}
@media (hover: hover) and (pointer: fine) { .svc:hover::before { opacity: 1; } }
.svc-n { align-self: start; padding-top: 0.6em; color: var(--dim); font-size: 17px; font-variant-numeric: tabular-nums; }
.svc-t {
  font-size: clamp(40px, 5.4vw, 104px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  transition: transform 0.8s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .svc:hover .svc-t { transform: translateX(14px); } }
.svc-d {
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.45;
  color: var(--dim);
  max-width: 44ch;
  text-wrap: pretty;
}
.services { position: relative; z-index: 0; }

/* ── Marquee ─────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding: clamp(28px, 4vw, 60px) 0;
  border-block: 1px solid var(--line);
  margin-bottom: var(--sec-y);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding-right: 0.45em;
  font-size: clamp(56px, 10vw, 200px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  white-space: nowrap;
}
.marquee-group span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 242, 0.55);
}
.marquee-group i { font-style: normal; font-size: 0.32em; color: var(--warm); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ── Closing CTA: a second window onto the gradient ──────────────── */
.lk-stage--cta {
  height: auto;
  min-height: clamp(560px, 86svh, 980px);
  display: flex;
}
.cta-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  padding: 0 var(--sc-pad) var(--sc-pad);
}
.cta-plate {
  flex-direction: column;
  gap: 36px;
  padding: 48px 24px;
  text-align: center;
}
.cta-plate .eyebrow { color: rgba(242, 242, 242, 0.85); }
.cta-plate .eyebrow::before { background: var(--sc-ink); }
.cta-title {
  font-size: clamp(48px, 8vw, 156px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.35);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  padding: clamp(56px, 6vw, 96px) var(--sc-pad) calc(var(--sc-pad) + env(safe-area-inset-bottom));
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: clamp(48px, 6vw, 96px);
}
.foot-grid h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; font-weight: 500; }
.foot-grid li + li { margin-top: 8px; }
.foot-grid a { font-size: 18px; transition: color 0.3s; }
@media (hover: hover) and (pointer: fine) { .foot-grid a:hover { color: var(--warm); } }
.foot-tag { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.25; letter-spacing: -0.02em; max-width: 22ch; }
.foot-mark {
  display: flex;
  justify-content: space-between;
  font-size: clamp(64px, 24.5vw, 520px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.04em;
  padding-top: 0.12em;
  color: #1f1f1f;
  user-select: none;
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}
@media (hover: hover) and (pointer: fine) { .foot-legal a:hover { color: var(--sc-ink); } }

/* ── Island nav ──────────────────────────────────────────────────── */
.island {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transform: translate3d(-50%, -140%, 0);
  transition: transform 0.8s var(--ease-spring), opacity 0.4s ease;
}
.island.is-on { opacity: 1; transform: translate3d(-50%, 0, 0); }
.island a, .island button {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) { .island a:hover, .island button:hover { background: rgba(255, 255, 255, 0.08); } }
.island a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
.island-brand { font-weight: 600; letter-spacing: 0.02em; margin-right: 8px; }
.island-cta { background: var(--sc-ink); color: var(--sc-page); margin-left: 6px; }
@media (hover: hover) and (pointer: fine) { .island a.island-cta:hover { background: #fff; } }
.island-menu { display: none !important; }

/* ── Menu (phones) ───────────────────────────────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  clip-path: inset(0 0 100% 0 round 0 0 32px 32px);
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
  visibility: hidden;
}
.menu.is-open {
  clip-path: inset(0 0 0 0 round 0);
  visibility: visible;
  transition: clip-path 0.9s var(--ease-io), visibility 0s;
}
.menu .lk-stage { height: 100%; }
.menu-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sc-gap);
  padding: var(--sc-pad);
  padding-top: calc(var(--sc-pad) + env(safe-area-inset-top));
  padding-bottom: calc(var(--sc-pad) + env(safe-area-inset-bottom));
  font-size: var(--sc-text);
  line-height: 1;
}
/* above the plate's page-coloured shadow */
.menu-top, .menu-foot { position: relative; z-index: 2; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top .sc-brand { position: static; transform: none; }
.menu-plate {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 20px 22px;
}
.menu-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 0;
  font-size: clamp(52px, 15vw, 120px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: transform 0.9s var(--ease-out), opacity 0.6s ease;
}
.menu-links a small { font-size: 14px; letter-spacing: 0.1em; opacity: 0.75; }
.menu.is-open .menu-links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.28s + var(--i) * 0.07s);
}
.menu-links a[aria-current="page"] small::after { content: " ●"; color: var(--sc-ink); }
.menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--dim);
}

/* ── Cursor ──────────────────────────────────────────────────────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; }
.cursor span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--sc-ink);
  color: var(--sc-page);
  font-size: 15px;
  font-weight: 500;
  transform: scale(0);
  transition: transform 0.55s var(--ease-spring);
}
.cursor.is-on span { transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  [data-cursor] { cursor: none; }
}

/* ══ 7. Pages ════════════════════════════════════════════════════════ */

/* ── Work index ──────────────────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filters button {
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) { .filters button:hover { border-color: var(--sc-ink); } }
.filters button[aria-pressed="true"] { background: var(--sc-ink); color: var(--sc-page); border-color: var(--sc-ink); }
.work-grid--all .work-card.is-vertical { grid-column: span 4; }
.work-grid--all .work-card.is-wide { grid-column: span 8; }
.work-grid--all .work-card.is-col3 { grid-column: span 3; }
.work-card.is-pano { --ar: 3174 / 1052; }
.work-grid--all .work-card.is-pano { grid-column: 1 / -1; }

/* ── Case ────────────────────────────────────────────────────────── */
.case-top { padding: var(--sc-pad) var(--sc-pad) 0; }
.case-hero { position: relative; padding: var(--sc-gap) var(--sc-pad) 0; }
.media--hero {
  aspect-ratio: auto;
  height: calc(100svh - var(--sc-pad) * 2 - var(--sc-gap) - 56px);
  min-height: 420px;
}
.media--hero .media-mark { opacity: 0; }
.case-hero-copy {
  position: absolute;
  z-index: 5;
  left: calc(var(--sc-pad) + clamp(20px, 3vw, 56px));
  right: calc(var(--sc-pad) + clamp(20px, 3vw, 56px));
  bottom: clamp(20px, 3vw, 56px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.case-title {
  font-size: clamp(60px, 12vw, 240px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.3);
}
.case-hero-copy .eyebrow { color: rgba(242, 242, 242, 0.85); margin-bottom: 18px; }
.case-hero-copy .eyebrow::before { background: var(--sc-ink); }
.case-summary { margin-top: 0.9em; max-width: 32ch; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.4; text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4); }

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px var(--sc-card-gap);
  padding: clamp(40px, 5vw, 80px) var(--sc-pad);
}
.case-meta dt { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.case-meta dd { font-size: clamp(17px, 1.4vw, 22px); line-height: 1.35; }

.case-body { padding-top: 0; }
.case-block {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 4fr 5fr;
  gap: 16px 40px;
  padding: clamp(36px, 4vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.case-block .svc-n { padding-top: 0.5em; }
.case-block h2 { font-size: clamp(28px, 2.8vw, 48px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.case-block p { font-size: clamp(20px, 1.9vw, 32px); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }

.case-film { padding-bottom: clamp(20px, 2vw, 32px); }
.case-film .media { --ar: 16 / 9; }
.film-note {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 16px; line-height: 1; white-space: nowrap;
}
.film-note::before {
  content: ""; width: 12px; height: 14px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.media.is-film .film-note { display: none; }

.case-stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sc-card-gap);
}
.case-stills .media:first-child { grid-column: 1 / -1; --ar: 21 / 9; }
.case-stills .media { --ar: 4 / 3; }

.case-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.case-next .h-display { transition: transform 0.8s var(--ease-out), color 0.4s; }
@media (hover: hover) and (pointer: fine) { .case-next:hover .h-display { transform: translateX(16px); color: var(--warm); } }
.case-next .media { width: clamp(160px, 22vw, 380px); --ar: 4 / 3; }

/* ── Real media: posters, logos, case layout ─────────────────────── */
.media-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media.has-img .media-inner::before { opacity: 0.6; }
/* client marks on cards: a soft fade from the bottom keeps them legible on
   any frame; height comes from --logo-h (equal visual area per logo) */
.media-shade {
  position: absolute; inset: auto 0 0; height: 55%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0) 0%, rgba(8, 7, 6, 0.38) 45%, rgba(8, 7, 6, 0.78) 100%);
}
.media-logo {
  position: absolute; z-index: 4;
  left: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 28px);
  width: auto; height: calc(var(--logo-h, 44px) * var(--logo-scale, 1)); max-width: 58%;
  object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.7s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .work-card:hover .media-logo { transform: translate3d(0, -4px, 0); } }
.media-logo.is-text {
  height: auto; max-width: 70%;
  font-size: clamp(14px, 1.2vw, 18px); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  line-height: 1.2; color: #fff; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}
.work-card.is-col3 .media-logo { --logo-scale: 0.8; }
@media (max-width: 768px) { .media-logo { --logo-scale: 0.85; } }
.work-n { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }

/* vertical films: copy left, the film in a tall 9:16 frame right */
.case-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--sc-gap) clamp(32px, 5vw, 96px);
  padding: var(--sc-gap) var(--sc-pad) 0;
}
.case-hero--split .case-hero-copy {
  position: static;
  display: grid;
  align-content: end;
  gap: 20px;
  padding-bottom: 6px;
}
.case-hero--split .case-title, .case-hero--split .case-summary { text-shadow: none; }
.case-hero--split .case-summary { color: var(--dim); }
.case-hero--split .case-hero-copy .eyebrow { color: var(--dim); margin: 0; }
.case-hero--split .case-hero-copy .eyebrow::before { background: var(--warm); }
.media--tall {
  aspect-ratio: 9 / 16;
  height: calc(100svh - 56px - var(--sc-pad) * 2 - var(--sc-gap));
  min-height: 480px;
  max-height: 920px;
}
.case-logo {
  display: block;
  height: calc(var(--logo-h, 40px) * 0.9);
  width: auto; max-width: 240px;
  object-fit: contain; object-position: left center;
}
.case-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 16px clamp(24px, 3vw, 48px);
  margin: 8px 0 0;
}
.case-facts dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-size: 17px; }
.case-facts-row { padding: clamp(28px, 4vw, 56px) var(--sc-pad) 0; }

/* architecture of the idea */
.case-idea {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: center;
}
.idea-sketch {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: #141210;
}
.idea-sketch img { width: 100%; height: 100%; object-fit: cover; }
.idea-sketch figcaption {
  position: absolute; left: 20px; bottom: 18px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(242, 242, 242, 0.72);
}
.idea-text { display: grid; gap: 20px; }
.idea-steps { margin-top: 12px; border-top: 1px solid var(--line); }
.idea-steps li {
  display: grid;
  grid-template-columns: 44px 120px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.idea-steps span { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.idea-steps h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm); }
.idea-steps p { font-size: clamp(19px, 1.6vw, 26px); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }

/* the film, in its own shape */
.film-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.case-film .media--film { --ar: var(--film-ar, 16 / 9); background: #000; }
.case-film.is-vertical .media--film { width: min(100%, calc(min(88svh, 960px) * 9 / 16)); height: auto; margin: 0 auto; }

/* stills */
.case-stills .still { margin: 0; border-radius: var(--sc-radius); overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.case-stills .still:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.case-stills .still img { width: 100%; height: 100%; object-fit: cover; }
.case-stills.is-vertical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-stills.is-vertical .still,
.case-stills.is-vertical .still:first-child { grid-column: auto; aspect-ratio: 9 / 16; }

@media (max-width: 1024px) {
  .case-hero--split { grid-template-columns: 1fr; align-items: start; }
  .case-hero--split .media--tall { order: -1; width: 100%; height: auto; min-height: 0; max-height: 82svh; }
  .case-idea { grid-template-columns: 1fr; }
  .idea-sketch { max-width: 560px; }
  .idea-steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .idea-steps p { grid-column: 2; }
}
@media (max-width: 768px) {
  .case-facts { grid-template-columns: repeat(3, auto); gap: 12px 22px; }
  .case-stills.is-vertical {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--sc-pad) * -1); padding-inline: var(--sc-pad); scrollbar-width: none;
  }
  .case-stills.is-vertical .still { flex: 0 0 72%; scroll-snap-align: start; }
  .case-stills .still, .case-stills .still:first-child { aspect-ratio: 4 / 5; }
}

/* ── Studio ──────────────────────────────────────────────────────── */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sc-card-gap);
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 2.4vw, 40px);
  border-radius: var(--sc-radius);
  background: var(--sc-surface);
  min-height: 520px;
  transition: background-color 0.4s ease, transform 0.8s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .svc-card:hover { background: #1b1b1b; } }
.svc-card .svc-n { padding: 0; }
.svc-card h3 { font-size: clamp(36px, 3.6vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-top: auto; }
.svc-card p { color: var(--dim); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; }
.svc-card ul { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-card li { padding: 9px 14px; border-radius: 999px; background: var(--sc-chip); font-size: 14px; line-height: 1; }

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sc-card-gap);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 36px;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: "";
  position: absolute;
  left: 0; top: -5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sc-ink);
}
.step:nth-child(odd)::before { background: var(--warm); }
.step span { display: block; color: var(--dim); font-size: 14px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(24px, 2vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 12px; }
.step p { color: var(--dim); font-size: 16px; line-height: 1.5; }

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sc-card-gap);
}
.mode {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mode .media { --ar: 4 / 3; }
.mode .media-mark { font-size: clamp(48px, 7vw, 128px); }
.mode h3 { font-size: clamp(28px, 2.6vw, 44px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.mode p { color: var(--dim); font-size: clamp(16px, 1.2vw, 20px); line-height: 1.5; max-width: 48ch; }

/* ── Before / after slider (Studio: live action + AI) ───────────── */
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: #111;
  isolation: isolate;
  touch-action: pan-y;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos);
  width: 1px; translate: -0.5px 0;
  background: rgba(242, 242, 242, 0.9);
  pointer-events: none;
}
.ba-handle i {
  position: absolute; left: 50%; top: 50%;
  width: 52px; height: 52px; translate: -50% -50%;
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(242, 242, 242, 0.7);
}
.ba-handle i::before, .ba-handle i::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 10px; translate: 0 -50%;
  background: var(--sc-ink);
}
.ba-handle i::before { left: 12px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.ba-handle i::after { right: 12px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ba-tag {
  position: absolute; z-index: 2; top: 18px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 12px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(12, 12, 12, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(242, 242, 242, 0.85);
  pointer-events: none;
}
.ba-tag--l { left: 18px; }
.ba-tag--r { right: 18px; }
.ba-range {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba-range:focus-visible + .ba-handle i, .ba:has(.ba-range:focus-visible) .ba-handle i { outline: 2px solid var(--sc-ink); outline-offset: 3px; }

/* ── Contact ─────────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px clamp(40px, 6vw, 120px);
  align-items: start;
}
.contact-side { position: sticky; top: 120px; display: grid; gap: 36px; }
.channels { display: grid; gap: 0; border-top: 1px solid var(--line); }
.channels a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(19px, 1.6vw, 26px);
  letter-spacing: -0.015em;
  transition: color 0.3s, padding 0.6s var(--ease-out);
}
.channels a span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
@media (hover: hover) and (pointer: fine) { .channels a:hover { color: var(--warm); padding-left: 10px; } }

.form-card {
  padding: clamp(24px, 3vw, 56px);
  border-radius: var(--sc-radius);
  background: var(--sc-surface);
}
.form { display: grid; gap: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.field { display: grid; gap: 10px; }
.field label, .fieldset legend {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.fieldset legend { margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: clamp(19px, 1.6vw, 26px);
  letter-spacing: -0.01em;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 242, 242, 0.28); }
.field input:focus, .field textarea:focus { border-color: var(--sc-ink); }
.field input:user-invalid { border-color: #d0785a; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) { .chips label:hover span { border-color: var(--sc-ink); } }
.chips input:checked + span { background: var(--sc-ink); color: var(--sc-page); border-color: var(--sc-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--sc-ink); outline-offset: 3px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-foot p { color: var(--dim); font-size: 14px; max-width: 40ch; }
.form-foot a { text-decoration: underline; text-underline-offset: 3px; }
.form-foot .sc-btn { --sc-text: 18px; width: auto; padding-inline: 40px; }
.form-sent, .form-error { display: none; }
.form.is-sent > :not(.form-sent) { display: none; }
.form.is-sent .form-sent { display: grid; gap: 16px; outline: none; }
.form.is-error .form-error { display: block; color: #e08a6c; font-size: 15px; }
.form-sent h3 { font-size: clamp(32px, 3.4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.form-sent p { color: var(--dim); font-size: 18px; }

/* ── Legal ───────────────────────────────────────────────────────── */
.prose { max-width: 72ch; display: grid; gap: 20px; font-size: 18px; line-height: 1.6; color: rgba(242, 242, 242, 0.8); }
.prose h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--sc-ink); margin-top: 24px; }

/* ══ 8. RESPONSIVE ═══════════════════════════════════════════════════
 * Down to 1025px only the composition's numbers change (×0.875, ×0.75,
 * ×0.625 of the design). Below that the composition restacks. */

@media (max-width: 1680px) {
  :root {
    --sc-pad: 26px; --sc-gap: 26px; --sc-radius: 28px; --sc-text: 21px; --sc-stat: 56px; --sc-wm: 224px;
    --sc-pill-px: 35px; --sc-pill-py: 14px; --sc-pill-r: 41px; --sc-navpill-w: 140px;
    --sc-btn-w: 256px; --sc-btn-py: 23px; --sc-btn-r: 71px; --sc-btn-gap: 18px;
    --sc-lead-w: 530px; --sc-card-h: 234px; --sc-card-pad: 28px; --sc-card-gap: 18px;
    --sc-card1-w: 256px; --sc-card2-w: 531px; --sc-card2-title-w: 338px; --sc-tags-w: 401px; --sc-stat-gap: 10px;
  }
}

@media (max-width: 1440px) {
  :root {
    --sc-pad: 22px; --sc-gap: 22px; --sc-radius: 24px; --sc-text: 18px; --sc-stat: 48px; --sc-wm: 192px;
    --sc-pill-px: 30px; --sc-pill-py: 12px; --sc-pill-r: 35px; --sc-navpill-w: 120px;
    --sc-btn-w: 220px; --sc-btn-py: 20px; --sc-btn-r: 61px; --sc-btn-gap: 15px;
    --sc-lead-w: 455px; --sc-card-h: 200px; --sc-card-pad: 24px; --sc-card-gap: 15px;
    --sc-card1-w: 220px; --sc-card2-w: 455px; --sc-card2-title-w: 290px; --sc-tags-w: 344px; --sc-stat-gap: 9px;
  }
}

@media (max-width: 1200px) {
  :root {
    --sc-pad: 19px; --sc-gap: 19px; --sc-radius: 20px; --sc-text: 15px; --sc-stat: 40px; --sc-wm: 160px;
    --sc-pill-px: 25px; --sc-pill-py: 10px; --sc-pill-r: 29px; --sc-navpill-w: 100px;
    --sc-btn-w: 183px; --sc-btn-py: 16px; --sc-btn-r: 51px; --sc-btn-gap: 13px;
    --sc-lead-w: 379px; --sc-card-h: 167px; --sc-card-pad: 20px; --sc-card-gap: 13px;
    --sc-card1-w: 183px; --sc-card2-w: 379px; --sc-card2-title-w: 241px; --sc-tags-w: 286px; --sc-stat-gap: 8px;
  }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; }
  .svc-card h3 { margin-top: 0; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}

/* ── 1024px · the composition restacks ───────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --sc-pad: 20px; --sc-gap: 20px; --sc-radius: 20px; --sc-text: 16px; --sc-stat: 44px; --sc-wm: 150px;
    --sc-pill-px: 22px; --sc-pill-py: 10px; --sc-pill-r: 28px;
    --sc-btn-w: 200px; --sc-btn-py: 16px; --sc-btn-r: 60px; --sc-btn-gap: 12px;
    --sc-card-pad: 24px; --sc-card-gap: 12px; --sc-stat-gap: 8px; --sc-plate-min: 380px;
  }

  .lk-stage { height: auto; min-height: 100svh; }
  .lk-stage--page { min-height: 0; }
  .sc { position: relative; inset: auto; min-height: 100svh; }
  .lk-stage--page .sc { min-height: max(600px, 86svh); }

  .sc-navlinks .sc-pill { width: auto; padding-left: var(--sc-pill-px); padding-right: var(--sc-pill-px); }

  .sc-bottom { flex-wrap: wrap; height: auto; }
  .sc-lead { flex: 1 0 100%; }
  .sc-para { max-width: none; }
  .sc-card-stat { flex: 1 1 220px; width: auto; }
  .sc-card-tags { flex: 2 1 360px; width: auto; }
  .sc-card-tags .sc-cardtitle { max-width: none; }
  .sc-tags { width: auto; }

  .pg-bottom { flex-direction: column; align-items: stretch; }
  .pg-lead { max-width: none; }
  .pg-card { width: auto; min-height: 0; }

  .manifesto { grid-template-columns: 1fr; }
  .manifesto .eyebrow { padding-top: 0; }
  .svc { grid-template-columns: 56px 1fr; }
  .svc-d { grid-column: 2; }
  .case-block { grid-template-columns: 56px 1fr; }
  .case-block p { grid-column: 2; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}

/* ── 768px · the phone ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --sc-pad: 16px; --sc-gap: 16px; --sc-radius: 18px; --sc-text: 15px; --sc-stat: 40px; --sc-wm: 105px;
    --sc-pill-px: 18px; --sc-pill-py: 11px; --sc-pill-r: 24px;
    --sc-btn-py: 16px; --sc-btn-gap: 10px; --sc-card-pad: 20px; --sc-card-gap: 12px; --sc-plate-min: 300px;
  }

  /* the pill row cannot fit: brand left, menu + action right */
  .sc-navlinks { display: none; }
  .sc-brand { position: static; transform: none; margin-right: auto; }
  .sc-menu-btn { display: inline-flex; }
  .sc-nav-cta .sc-nav-cta-long { display: none; }

  .sc-btn { width: auto; flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
  .sc-card-stat, .sc-card-tags { flex: 1 1 100%; }
  .sc-card { gap: 20px; }
  .sc-lead { gap: 20px; }

  /* phones get vertical, full-bleed-feeling media */
  .work-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .work-grid .work-card,
  .work-grid--home .work-card:nth-child(n),
  .work-grid--all .work-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; --ar: 4 / 5; }
  .work-grid .work-card.is-wide { --ar: 4 / 3; }
  .work-grid .work-card.is-pano { --ar: 3174 / 1052; }

  .sec-head { grid-template-columns: 1fr; }
  .sec-head .link-arrow { justify-self: start; }

  .svc { grid-template-columns: 1fr; gap: 14px; }
  .svc-d { grid-column: 1; }
  .svc-n { padding-top: 0; }

  /* process: a swipeable rail */
  .process {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--sc-pad) * -1);
    padding: 6px var(--sc-pad) 8px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .process::-webkit-scrollbar { display: none; }
  .step {
    flex: 0 0 78%;
    scroll-snap-align: start;
    scroll-margin-left: var(--sc-pad);
    padding: 28px 22px 26px;
    border: 0;
    border-radius: var(--sc-radius);
    background: var(--sc-surface);
  }
  .step::before { left: 22px; top: 22px; }
  .step span { margin: 22px 0 10px; }

  .modes { grid-template-columns: 1fr; gap: 48px; }
  .mode .media { --ar: 4 / 5; }

  .media--hero { height: auto; aspect-ratio: 4 / 5; min-height: 0; max-height: 78svh; width: 100%; }
  .case-hero-copy { position: static; padding: 24px 0 0; }
  .case-title { text-shadow: none; }
  .case-hero-copy .eyebrow { color: var(--dim); }
  .case-hero-copy .eyebrow::before { background: var(--warm); }
  .case-summary { text-shadow: none; color: var(--dim); }
  .case-block { grid-template-columns: 1fr; }
  .case-block p { grid-column: 1; }
  .case-stills { grid-template-columns: 1fr; }
  .case-stills .media:first-child, .case-stills .media { --ar: 4 / 5; }
  .case-next { grid-template-columns: 1fr; }
  .case-next .media { width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .island { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate3d(-50%, 170%, 0); }
  .island .island-link { display: none; }
  .island-menu { display: inline-flex !important; }
  .island-brand { margin-right: 4px; }

  .marquee-group span:nth-of-type(even) { -webkit-text-stroke-width: 0.75px; }
  .cta-title { font-size: clamp(44px, 13vw, 96px); }
  .lk-stage--cta { min-height: max(520px, 78svh); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}

@media (max-width: 480px) {
  :root {
    --sc-pad: 14px; --sc-gap: 14px; --sc-radius: 16px; --sc-text: 14px; --sc-stat: 34px; --sc-wm: 66px;
    --sc-pill-px: 16px; --sc-pill-py: 11px; --sc-btn-py: 15px; --sc-card-pad: 16px; --sc-plate-min: 260px;
  }
  .sc-nav-cta { display: none; }
  .case-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 414px) { :root { --sc-wm: 60px; } }

@media (max-width: 380px) {
  :root { --sc-text: 13px; --sc-stat: 30px; --sc-wm: 52px; --sc-plate-min: 220px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ── Shallow desktop windows: only the wordmark comes down ───────── */
@media (min-width: 1025px) and (max-height: 820px) { :root { --sc-wm: 200px; } }
@media (min-width: 1025px) and (max-height: 820px) and (max-width: 1440px) { :root { --sc-wm: 176px; } }
@media (min-width: 1025px) and (max-height: 820px) and (max-width: 1200px) { :root { --sc-wm: 150px; } }
@media (min-width: 1025px) and (max-height: 680px) { :root { --sc-wm: 156px; } }
@media (min-width: 1025px) and (max-height: 680px) and (max-width: 1200px) { :root { --sc-wm: 128px; } }

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.lk-js [data-rise] { opacity: 1; }
  html.lk-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .media-inner::before, .marquee-track { animation: none; }
  .lk-stage--hero .sc-wordmark { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .menu, .menu.is-open, .menu-links a { transition: none; }
}
