/* ==========================================================================
   NEIL RIOT — Creative Production Director, AI / CGI / Motion
   Design system
   --------------------------------------------------------------------------
   Type scale, colour, grid, motion primitives and components.
   No external requests. Swap --accent in one place to re-tune the whole site.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Colour ------------------------------------------------------------- */
  --ink:        #0B0B0C;   /* near-black, the default ground              */
  --ink-soft:   #141416;   /* raised surfaces on dark                     */
  --ink-line:   #26262A;   /* hairlines on dark                           */
  --paper:      #EFEDE8;   /* warm off-white, the light ground            */
  --paper-soft: #E4E1DA;
  --paper-line: #D2CEC5;
  --grey:       #8C8C90;   /* secondary text on dark                      */
  --grey-dark:  #6B6862;   /* secondary text on light                     */
  --accent:     #D8FF3C;   /* the one accent. Used sparingly, on purpose. */
  --accent-ink: #0B0B0C;   /* text colour on accent                       */

  /* Typography --------------------------------------------------------- */
  --font-display: "Söhne", "Neue Haas Grotesk Display", "Helvetica Neue",
                  "Inter", "Helvetica", Arial, sans-serif;
  --font-text:    "Söhne", "Helvetica Neue", "Inter", "Helvetica", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", "Menlo",
                  "Consolas", monospace;

  /* A fluid scale. Every step is clamp(min, fluid, max). */
  --t-mega:  clamp(3rem, 10.2vw, 9.5rem);
  --t-xxl:   clamp(2.5rem, 6.6vw, 6.25rem);
  --t-xl:    clamp(2.1rem,  5.2vw, 4.6rem);
  --t-lg:    clamp(1.6rem,  3.1vw, 2.7rem);
  --t-md:    clamp(1.15rem, 1.6vw, 1.5rem);
  --t-base:  clamp(1rem,    1.06vw, 1.125rem);
  --t-sm:    0.875rem;
  --t-xs:    0.6875rem;

  /* Space -------------------------------------------------------------- */
  --margin:  clamp(1.25rem, 4.4vw, 5.5rem);
  --gutter:  clamp(1rem, 1.6vw, 1.75rem);
  --sec:     clamp(5.5rem, 13vw, 14rem);   /* section rhythm              */
  --sec-sm:  clamp(3.5rem, 7vw, 7rem);
  --maxw:    112rem;

  /* Motion ------------------------------------------------------------- */
  --ease:      cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.62, .05, .28, .99);
  --dur:       .8s;
  --dur-fast:  .38s;

  --nav-h: 4.75rem;

  /* Film grain, inline so nothing extra is fetched */
  --grain: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* --- 2. Reset ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: var(--t-base);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

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

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1.25rem; font: 500 var(--t-sm)/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- 3. Layout ----------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--margin);
}

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

.section { padding-block: var(--sec); position: relative; }
.section--sm { padding-block: var(--sec-sm); }
.section--tight-top { padding-top: var(--sec-sm); }

/* Ground switches */
.ground-light { background: var(--paper); color: var(--ink); }
.ground-light .eyebrow { color: var(--grey-dark); }
.ground-light .lede { color: #2A2A2C; }
.ground-light hr, .ground-light .rule { border-color: var(--paper-line); }

/* --- 4. Typography ------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.display--mega { font-size: var(--t-mega); letter-spacing: -0.05em; }
.display--xxl  { font-size: var(--t-xxl); }
.display--xl   { font-size: var(--t-xl); }
.display--lg   { font-size: var(--t-lg); line-height: 1.02; letter-spacing: -0.03em; }

.display .dim { color: var(--grey); }
.ground-light .display .dim { color: var(--grey-dark); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--grey);
  display: block;
}
.eyebrow--accent { color: var(--accent); }

.lede {
  font-size: var(--t-md);
  line-height: 1.45;
  letter-spacing: -0.017em;
  color: #C9C7C2;
  text-wrap: pretty;
}
.ground-light .lede { color: #34332F; }

.body-copy p + p { margin-top: 1.1em; }
.body-copy { color: #B9B7B2; text-wrap: pretty; }
.ground-light .body-copy { color: #3A3934; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.measure    { max-width: 46ch; }
.measure-lg { max-width: 62ch; }

.rule {
  border: 0;
  border-top: 1px solid var(--ink-line);
  margin: 0;
}
.ground-light .rule { border-color: var(--paper-line); }

/* --- 5. Navigation ------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              backdrop-filter var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav.is-stuck {
  height: 3.5rem;
  background: rgba(11, 11, 12, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--ink-line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav { transition-property: height, background-color, border-color, transform; }

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  white-space: nowrap;
}
.brand__logo { height: 1.3rem; width: auto; display: block; }
.brand__role {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}
@media (max-width: 60rem) { .brand__role { display: none; } }

.nav__menu {
  display: flex;
  gap: clamp(1rem, 2.1vw, 2.25rem);
  align-items: center;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--paper);
  position: relative;
  padding-block: .35rem;
  opacity: .82;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: .1rem;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { opacity: 1; color: var(--accent); }

.nav__cta {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  border: 1px solid var(--ink-line);
  padding: .7rem 1.1rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.nav__cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.nav__toggle { display: none; }

@media (max-width: 62rem) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem; height: 2.75rem;
    align-items: flex-end;
    margin-right: -.5rem;
  }
  .nav__toggle span {
    display: block; height: 1px; width: 1.5rem; background: var(--paper);
    transition: transform .5s var(--ease), opacity .3s var(--ease), width .5s var(--ease);
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: calc(var(--nav-h) + 2rem) var(--margin) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
  overflow-y: auto;
}
.drawer.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.drawer__list li { overflow: hidden; }
.drawer__list a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.18;
  display: block;
  transform: translateY(105%);
  transition: transform .8s var(--ease);
}
.drawer.is-open .drawer__list a { transform: translateY(0); }
.drawer__list li:nth-child(1) a { transition-delay: .05s; }
.drawer__list li:nth-child(2) a { transition-delay: .10s; }
.drawer__list li:nth-child(3) a { transition-delay: .15s; }
.drawer__list li:nth-child(4) a { transition-delay: .20s; }
.drawer__list li:nth-child(5) a { transition-delay: .25s; }
.drawer__list li:nth-child(6) a { transition-delay: .30s; }
.drawer__foot { display: grid; gap: .35rem; padding-top: 2rem; }
.drawer__foot a { font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: .04em; color: var(--grey); }
.drawer__foot a:hover { color: var(--accent); }

body.is-locked { overflow: hidden; }

/* --- 6. Buttons / links -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .16em;
  padding: 1.05rem 1.6rem;
  border-radius: 100px;
  border: 1px solid var(--ink-line);
  color: var(--paper);
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn .arw { transition: transform .5s var(--ease); }
.btn:hover .arw { transform: translateX(.35rem); }
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.ground-light .btn { border-color: var(--paper-line); color: var(--ink); }
.ground-light .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ground-light .btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ground-light .btn--accent:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Understated text link with a drawing underline */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .16em;
  padding-bottom: .3rem;
}
.tlink::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor; opacity: .35;
  transform-origin: left;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.tlink:hover::after { opacity: 1; transform: scaleX(1.0); }
.tlink:hover .arw { transform: translateX(.35rem); }
.tlink .arw { transition: transform .5s var(--ease); }

/* --- 7. Motion primitives ------------------------------------------------ */

/* Line-by-line text reveal.
   The padding/margin pair keeps descenders (g, y, p) out of the clip. */
.rv-line {
  display: block;
  overflow: hidden;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
.rv-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}
.is-in .rv-line > span,
.rv-line.is-in > span { transform: translateY(0); }
.rv-line:nth-child(2) > span { transition-delay: .07s; }
.rv-line:nth-child(3) > span { transition-delay: .14s; }
.rv-line:nth-child(4) > span { transition-delay: .21s; }

/* Generic fade + rise */
.rv {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.rv.is-in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .08s; }
.rv[data-d="2"] { transition-delay: .16s; }
.rv[data-d="3"] { transition-delay: .24s; }
.rv[data-d="4"] { transition-delay: .32s; }
.rv[data-d="5"] { transition-delay: .40s; }

/* Image mask reveal.
   The clip sits on the CHILD, never on the observed element itself: a
   zero-area clip-path makes IntersectionObserver report ratio 0 forever,
   so a self-clipping element can never trigger its own reveal. */
.rv-mask > * {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s var(--ease);
}
.rv-mask.is-in > * { clip-path: inset(0 0 0% 0); }

/* Hairline draw */
.rv-rule { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.rv-rule.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv, .rv-line > span, .rv-mask > *, .rv-rule {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .marquee__track { animation: none !important; }
}

/* --- 8. Media frames ----------------------------------------------------- */

.frame {
  position: relative;
  overflow: hidden;
  background: #151517;
}
.frame > img, .frame > video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.frame--16x9  { aspect-ratio: 16 / 9; }
.frame--3x2   { aspect-ratio: 3 / 2; }
.frame--4x3   { aspect-ratio: 4 / 3; }
.frame--1x1   { aspect-ratio: 1 / 1; }
.frame--4x5   { aspect-ratio: 4 / 5; }
.frame--2x3   { aspect-ratio: 2 / 3; }
.frame--21x9  { aspect-ratio: 21 / 9; }

/* Slow zoom on hover, the only "effect" allowed on imagery */
.zoomable > img, .zoomable > video { transition: transform 1.4s var(--ease), filter 1.4s var(--ease); }
a:hover .zoomable > img, a:hover .zoomable > video { transform: scale(1.035); }

.cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--grey);
}
.ground-light .cap { color: var(--grey-dark); }

/* --- 9. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.72) contrast(1.06) brightness(.62);
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11,11,12,.72) 0%, rgba(11,11,12,.18) 32%, rgba(11,11,12,.86) 88%, rgba(11,11,12,1) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: var(--grain);
  background-size: 180px 180px;
}
.hero__inner { width: 100%; }

.hero__title { font-size: var(--t-xxl); }
.hero__sub {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}
.hero__role { grid-column: 1 / span 5; }
.hero__lede { grid-column: 7 / span 5; }
@media (max-width: 62rem) {
  .hero__role, .hero__lede { grid-column: 1 / -1; }
}
.hero__actions { margin-top: clamp(1.75rem, 3vw, 2.75rem); }

.hero__foot {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(239,237,232,.16);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.scroll-hint { display: inline-flex; align-items: center; gap: .6rem; }
.scroll-hint__line {
  width: 2.5rem; height: 1px; background: currentColor; opacity: .5;
  position: relative; overflow: hidden;
}
.scroll-hint__line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%);
  animation: sweep 2.6s var(--ease-io) infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Page hero (interior pages) */
.phero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 11vw, 10rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.phero__title { font-size: var(--t-xxl); }
.phero__meta {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  display: grid; gap: var(--gutter);
  grid-template-columns: repeat(12, minmax(0,1fr));
}
.ground-light .phero__meta { border-color: var(--paper-line); }
.phero__meta .lede { grid-column: 6 / span 6; }
@media (max-width: 62rem) { .phero__meta .lede { grid-column: 1 / -1; } }

/* --- 10. Marquee --------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--ink-line);
  padding-block: clamp(.9rem, 1.4vw, 1.4rem);
  --speed: 42s;
}
.ground-light .marquee { border-color: var(--paper-line); }
.marquee__track {
  display: flex; width: max-content;
  animation: marquee var(--speed) linear infinite;
}
.marquee__track > * { flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  letter-spacing: -0.02em;
  padding-inline: clamp(1rem, 2vw, 2rem);
  display: inline-flex; align-items: center; gap: clamp(1rem,2vw,2rem);
  color: var(--paper);
  white-space: nowrap;
}
.marquee__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }

/* --- 11. Stat band ------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--ink-line);
}
.ground-light .stats { border-color: var(--paper-line); }
.stats__cell {
  padding: clamp(1.5rem,3vw,2.5rem) clamp(1rem,1.5vw,1.5rem) clamp(1.5rem,3vw,2.5rem) 0;
  border-right: 1px solid var(--ink-line);
}
.ground-light .stats__cell { border-color: var(--paper-line); }
.stats__cell:last-child { border-right: 0; }
.stats__cell:not(:first-child) { padding-left: clamp(1rem,1.5vw,1.5rem); }
.stats__val {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  letter-spacing: -0.035em; line-height: 1.05; font-weight: 500;
}
.stats__lab { margin-top: .5rem; }
@media (max-width: 48rem) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats__cell:nth-child(2n) { border-right: 0; }
  .stats__cell:nth-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
  .ground-light .stats__cell:nth-child(-n+2) { border-bottom-color: var(--paper-line); }
  .stats__cell:nth-child(odd) { padding-left: 0; }
}

/* --- 12. Work list ------------------------------------------------------- */

.work-list { display: grid; gap: clamp(3.5rem, 8vw, 8rem); }

.work-item { position: relative; display: block; }
.work-item__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: var(--gutter);
  align-items: end;
}
.work-item__media { grid-column: 1 / span 12; }
.work-item--offset .work-item__media { grid-column: 2 / span 10; }
.work-item--half .work-item__media { grid-column: 1 / span 7; }
.work-item--half-r .work-item__media { grid-column: 6 / span 7; }

.work-item__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .75rem 2rem;
  padding-bottom: 1rem;
}
.work-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.3vw, 3rem);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1;
}
.work-item__idx { color: var(--grey); }
.work-item__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .6rem 2rem; padding-top: .9rem;
  border-top: 1px solid var(--ink-line);
}
.ground-light .work-item__foot { border-color: var(--paper-line); }
.work-item__tags { color: var(--grey); }
.work-item:hover .work-item__view { color: var(--accent); }
.work-item__view { transition: color var(--dur-fast) var(--ease); }

@media (max-width: 62rem) {
  .work-item__media,
  .work-item--offset .work-item__media,
  .work-item--half .work-item__media,
  .work-item--half-r .work-item__media { grid-column: 1 / -1; }
}

/* --- 13. Capability rows ------------------------------------------------- */

.cap-list { border-top: 1px solid var(--ink-line); }
.ground-light .cap-list { border-color: var(--paper-line); }
.cap-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 22rem) minmax(0, 1fr);
  gap: var(--gutter);
  padding-block: clamp(1.4rem, 2.6vw, 2.4rem);
  border-bottom: 1px solid var(--ink-line);
  align-items: baseline;
  position: relative;
}
.ground-light .cap-row { border-color: var(--paper-line); }
.cap-row__no { color: var(--grey); }
.cap-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
}
.cap-row__desc { color: #AFADA8; }
.ground-light .cap-row__desc { color: #4A4945; }
.cap-row__tools { margin-top: .75rem; color: var(--grey); }
@media (max-width: 62rem) {
  .cap-row { grid-template-columns: 3rem minmax(0,1fr); }
  .cap-row__desc { grid-column: 2 / -1; margin-top: .5rem; }
}

/* --- 14. Pipeline -------------------------------------------------------- */

.pipeline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem clamp(.5rem, 1.4vw, 1.25rem);
}
.pipeline__step {
  font-family: var(--font-mono);
  font-size: clamp(.7rem, 1.15vw, .95rem);
  text-transform: uppercase; letter-spacing: .14em;
  padding: .55rem .9rem;
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  white-space: nowrap;
  transition: border-color .5s var(--ease), color .5s var(--ease), background-color .5s var(--ease);
}
.ground-light .pipeline__step { border-color: var(--paper-line); }
.pipeline__step.is-lit { border-color: var(--accent); color: var(--accent); }
.ground-light .pipeline__step.is-lit { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pipeline__arw { color: var(--grey); font-family: var(--font-mono); font-size: .8rem; }

/* --- 15. Process (numbered, sticky question) ---------------------------- */

.proc { border-top: 1px solid var(--ink-line); }
.ground-light .proc { border-color: var(--paper-line); }
.proc__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: var(--gutter);
  padding-block: clamp(1.75rem, 3.4vw, 3rem);
  border-bottom: 1px solid var(--ink-line);
}
.ground-light .proc__row { border-color: var(--paper-line); }
.proc__no { grid-column: 1 / span 2; color: var(--grey); }
.proc__name { grid-column: 3 / span 4; }
.proc__q { grid-column: 7 / span 6; }
.proc__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.06;
}
.proc__ans { margin-top: .7rem; color: #AFADA8; }
.ground-light .proc__ans { color: #4A4945; }
.proc__qtext {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  letter-spacing: -0.025em; line-height: 1.2; color: var(--grey);
}
.ground-light .proc__qtext { color: var(--grey-dark); }
@media (max-width: 62rem) {
  .proc__no { grid-column: 1 / span 2; }
  .proc__name { grid-column: 3 / -1; }
  .proc__q { grid-column: 3 / -1; margin-top: .75rem; }
}

/* --- 16. Product cards --------------------------------------------------- */

.products { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter); }
.product {
  grid-column: span 4;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem,2.4vw,2.25rem);
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  min-height: 20rem;
  transition: border-color .5s var(--ease), transform .7s var(--ease), background-color .5s var(--ease);
}
.ground-light .product { border-color: var(--paper-line); background: rgba(255,255,255,.45); }
.product:hover { border-color: var(--accent); transform: translateY(-4px); }
.product__no { color: var(--grey); }
.product__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.08;
  margin-top: 1.5rem;
}
.product__claim { margin-top: .75rem; color: var(--paper); font-size: var(--t-base); }
.ground-light .product__claim { color: var(--ink); }
.product__desc { margin-top: .75rem; color: var(--grey); font-size: var(--t-sm); line-height: 1.5; }
.ground-light .product__desc { color: var(--grey-dark); }
.product__for {
  margin-top: auto; padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  color: var(--grey);
}
.ground-light .product__for { border-color: var(--paper-line); }
@media (max-width: 68rem) { .product { grid-column: span 6; } }
@media (max-width: 44rem) { .product { grid-column: 1 / -1; min-height: 0; } }

/* --- 17. Compare slider (AI RAW → FINAL) -------------------------------- */

.compare {
  position: relative; overflow: hidden; user-select: none;
  aspect-ratio: 16 / 9; background: #151517; cursor: ew-resize;
  touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 1px; background: var(--paper); transform: translateX(-.5px);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--paper);
  background: rgba(11,11,12,.5);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
}
.compare__tag {
  position: absolute; bottom: 1rem;
  font-family: var(--font-mono); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: .16em;
  padding: .4rem .7rem; background: rgba(11,11,12,.6); color: var(--paper);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.compare__tag--l { left: 1rem; }
.compare__tag--r { right: 1rem; }

/* --- 18. Case study ------------------------------------------------------ */

.case-block {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--ink-line);
}
.ground-light .case-block { border-color: var(--paper-line); }
.case-block__label { grid-column: 1 / span 3; }
.case-block__body { grid-column: 5 / span 7; }
@media (max-width: 62rem) {
  .case-block__label { grid-column: 1 / -1; }
  .case-block__body { grid-column: 1 / -1; margin-top: .75rem; }
}
.case-media { display: grid; gap: var(--gutter); }
.case-media--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 48rem) { .case-media--2 { grid-template-columns: 1fr; } }

.impact { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--ink-line); }
.ground-light .impact { border-color: var(--paper-line); }
.impact__cell { padding: clamp(1.25rem,2.4vw,2rem) 1.25rem clamp(1.25rem,2.4vw,2rem) 0; border-right: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.ground-light .impact__cell { border-color: var(--paper-line); }
.impact__cell:nth-child(3n) { border-right: 0; }
.impact__cell:not(:nth-child(3n+1)) { padding-left: 1.25rem; }
.impact__t { font-family: var(--font-display); font-size: clamp(1rem,1.5vw,1.25rem); font-weight: 500; letter-spacing: -0.025em; }
.impact__d { margin-top: .5rem; color: var(--grey); font-size: var(--t-sm); line-height: 1.5; }
.ground-light .impact__d { color: var(--grey-dark); }
@media (max-width: 48rem) {
  .impact { grid-template-columns: 1fr; }
  .impact__cell { border-right: 0; padding-left: 0 !important; }
}

/* Next case */
.next-case { display: block; position: relative; }
.next-case__inner { padding-block: clamp(3rem,7vw,6rem); }
.next-case__title {
  font-family: var(--font-display);
  font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  transition: color var(--dur-fast) var(--ease);
}
.next-case:hover .next-case__title { color: var(--accent); }

/* --- 19. Insights -------------------------------------------------------- */

.notes { border-top: 1px solid var(--ink-line); }
.ground-light .notes { border-color: var(--paper-line); }
.note {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter);
  padding-block: clamp(1.5rem, 2.8vw, 2.5rem);
  border-bottom: 1px solid var(--ink-line);
  align-items: baseline;
  transition: background-color .5s var(--ease);
}
.ground-light .note { border-color: var(--paper-line); }
.note__meta { grid-column: 1 / span 3; color: var(--grey); }
.note__title {
  grid-column: 4 / span 7;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.12;
  transition: color var(--dur-fast) var(--ease), transform .6s var(--ease);
}
.note__arw { grid-column: 12 / span 1; justify-self: end; color: var(--grey); transition: transform .6s var(--ease), color var(--dur-fast) var(--ease); }
.note:hover .note__title { color: var(--accent); }
.note:hover .note__arw { transform: translateX(.4rem); color: var(--accent); }
@media (max-width: 62rem) {
  .note__meta { grid-column: 1 / -1; }
  .note__title { grid-column: 1 / span 11; margin-top: .5rem; }
  .note__arw { grid-column: 12 / span 1; }
}

/* Article */
.article { max-width: 44rem; }
.article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.12;
  margin-top: 2.75rem; margin-bottom: .9rem;
}
.article p { margin-bottom: 1.1em; color: #B9B7B2; }
.ground-light .article p { color: #3A3934; }
.article ul { margin: 0 0 1.4em; display: grid; gap: .55rem; }
.article li { padding-left: 1.5rem; position: relative; color: #B9B7B2; }
.ground-light .article li { color: #3A3934; }
.article li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: .6rem; height: 1px; background: var(--accent);
}
.article strong { color: var(--paper); font-weight: 500; }
.ground-light .article strong { color: var(--ink); }
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.12;
  color: var(--paper);
  margin: 2.5rem 0; padding-left: 1.5rem;
  border-left: 1px solid var(--accent);
}
.ground-light .pull { color: var(--ink); }

/* --- 20. Contact --------------------------------------------------------- */

.contact-cta { position: relative; overflow: hidden; }
.contact-cta__title { font-size: var(--t-mega); }
.contact-list { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter); border-top: 1px solid var(--ink-line); padding-top: 1.5rem; }
.ground-light .contact-list { border-color: var(--paper-line); }
.contact-list__item { grid-column: span 3; }
@media (max-width: 62rem) { .contact-list__item { grid-column: span 6; } }
@media (max-width: 40rem) { .contact-list__item { grid-column: 1 / -1; } }
.contact-list__val {
  display: block; margin-top: .5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -0.02em;
  transition: color var(--dur-fast) var(--ease);
  word-break: break-word;
}
a.contact-list__val:hover { color: var(--accent); }

/* --- 21. Footer ---------------------------------------------------------- */

.footer { border-top: 1px solid var(--ink-line); padding-block: clamp(2.5rem,5vw,4rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter) var(--gutter); }
.footer__brand { grid-column: span 4; }
.footer__col { grid-column: span 2; }
.footer__col:last-of-type { grid-column: span 2; }
.footer__list { display: grid; gap: .5rem; margin-top: 1rem; }
.footer__list a { font-size: var(--t-sm); color: var(--grey); transition: color var(--dur-fast) var(--ease); }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  color: var(--grey);
}
.footer__bottom a:hover { color: var(--accent); }
@media (max-width: 62rem) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 6; margin-top: 1.5rem; }
}

.footer__wordmark {
  display: block;
  height: clamp(3.5rem, 15vw, 15rem);
  width: auto;
  max-width: 100%;
  margin-top: clamp(2rem,5vw,4rem);
  user-select: none;
  filter: grayscale(1) brightness(1.7);
  opacity: .5;
}

/* --- 22. Utilities ------------------------------------------------------- */

.col-12 { grid-column: 1 / -1; }
.c1-6  { grid-column: 1 / span 6; }
.c1-7  { grid-column: 1 / span 7; }
.c1-8  { grid-column: 1 / span 8; }
.c1-9  { grid-column: 1 / span 9; }
.c1-5  { grid-column: 1 / span 5; }
.c1-4  { grid-column: 1 / span 4; }
.c1-3  { grid-column: 1 / span 3; }
.c4-9  { grid-column: 4 / span 9; }
.c5-8  { grid-column: 5 / span 8; }
.c6-7  { grid-column: 6 / span 7; }
.c7-6  { grid-column: 7 / span 6; }
.c7-5  { grid-column: 7 / span 5; }
.c8-5  { grid-column: 8 / span 5; }
.c9-4  { grid-column: 9 / span 4; }
.c3-8  { grid-column: 3 / span 8; }
.c2-10 { grid-column: 2 / span 10; }
@media (max-width: 62rem) {
  .c1-6, .c1-7, .c1-8, .c1-9, .c1-5, .c1-4, .c1-3,
  .c4-9, .c5-8, .c6-7, .c7-6, .c7-5, .c8-5, .c9-4, .c3-8, .c2-10 { grid-column: 1 / -1; }
}

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mt-5 { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.mt-6 { margin-top: clamp(3.5rem, 8vw, 7rem); }
.mb-3 { margin-bottom: 1.75rem; }
.mb-4 { margin-bottom: 2.5rem; }
.mb-5 { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.tight { line-height: 1.3; }
.accent { color: var(--accent); }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
