/* Rooftop · styles
   1. tokens · base · layout · type
   2. background (gradient · white · sunset · stars · grain)
   3. nav (topnav → pill · fixed contact)
   4. sections: hero · clients · how · stack · work slider · about · epilogue ·
      spotlight · feature · project · legal · talk · footer
   5. micro-interactions · responsive · reduced motion

   Motion is driven by js/main.js (GSAP + ScrollTrigger + SplitText + Lenis).
   CSS only ever transitions transform/opacity/color — never layout properties
   per frame; one-shot state changes (compact headlines) are the exception. */

/* ---------- 1. tokens ---------- */
:root {
  /* colour */
  --ink: #111111;
  --ink-2: #3a3a3a;
  --grey: #8a8a8a;
  --grey-2: #9a9a9a;
  --media: #ededed;
  --paper: #ffffff;
  --night: #03060d;
  --night-2: #0b1f44;

  /* layout */
  --margin: 32px;
  --maxw: 1696px;
  --indent: 16.28%;              /* hanging indent of the statements */
  --m-body: 440px;               /* text measures */
  --m-head: 520px;
  --m-lead: 400px;
  --topnav-h: 72px;
  --pill-space: 88px;            /* room under the fixed pill for pinned content */

  /* spacing scale — the only spacing values sections may use */
  --s-3xs: 4px;
  --s-2xs: 8px;
  --s-xs: 12px;
  --s-sm: 16px;
  --s-md: 24px;
  --s-lg: 40px;
  --s-xl: 64px;
  --s-2xl: 96px;
  --sec-pad: clamp(88px, 9.5vw, 144px);     /* vertical rhythm between sections */
  --head-gap: clamp(32px, 4vw, 56px);       /* section head → section body */

  /* type scale */
  --t-hero: clamp(30px, 3.61vw, 52px);
  --t-statement: clamp(28px, 3.06vw, 44px);
  --t-cta: clamp(28px, 3.33vw, 48px);
  --t-word: clamp(26px, 2.78vw, 40px);
  --t-quote: clamp(26px, 2.5vw, 36px);

  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* easing — custom curves only */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* expo out: reveals, hovers */
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1);     /* expo in-out: state changes */
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);       /* quart out: small moves */
  --d-fast: 0.25s;
  --d-med: 0.6s;
  --d-slow: 1.2s;

  --gradient: linear-gradient(to bottom, #03060d 0%, #070f24 10%, #0b1f44 20%, #11497c 32%, #076db0 45%, #2f91d2 59%, #66b7e4 73%, #99d1e9 86%, #c3e1ee 100%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: transparent;         /* the fixed .bg layer paints behind everything */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { max-width: 100%; height: auto; }

::selection { background: var(--night-2); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 8px 12px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }

/* ---------- layout + type ---------- */
.wrap { width: min(100% - 2 * var(--margin), var(--maxw)); margin-inline: auto; }
.section { padding: var(--sec-pad) 0; }
.section--flush { padding: 0; }
.halves { display: grid; grid-template-columns: 1fr 1fr; }

.word { font-size: var(--t-word); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--grey); margin-bottom: var(--s-2xs); }
.statement { font-size: var(--t-statement); font-weight: 600; letter-spacing: -0.022em; line-height: 1.04; }
.statement--hero { font-size: var(--t-hero); letter-spacing: -0.025em; line-height: 1.02; }
.statement--cta { font-size: var(--t-cta); letter-spacing: -0.024em; line-height: 1.04; }
.statement--quote { font-size: var(--t-quote); letter-spacing: -0.018em; line-height: 1.08; }
.label { font-size: 14px; color: var(--grey); line-height: 1.4; }
.link-lg { font-size: 20px; font-weight: 500; line-height: 1.4; }
.small { font-size: 14px; color: var(--grey); line-height: 1.45; max-width: var(--m-body); }

/* hanging indent: an inline spacer at the start of a statement. Unlike text-indent
   it survives SplitText line splitting, so the wipe lines always break correctly. */
.ind { display: inline-block; width: var(--indent); }

.wipe, .js .statement--hero { padding-bottom: 0.1px; }   /* blocks margin collapse-through of the split lines */

/* line wipes: main.js splits the big statements into lines; each line wipes in
   from the left through a soft mask, scrubbed by its position in the viewport */
.wipe__line { display: block; --p: 0%; padding-bottom: 0.18em; margin-bottom: -0.18em; -webkit-mask-image: linear-gradient(to right, #000 calc(var(--p) - 35%), transparent var(--p)); mask-image: linear-gradient(to right, #000 calc(var(--p) - 35%), transparent var(--p)); }
.wipe.is-done .wipe__line, .no-js .wipe__line { -webkit-mask-image: none; mask-image: none; }

/* ---------- 2. background ----------
   A fixed gradient of which only the night (top 30 %) is in view on load; 400 ms
   later main.js lifts it to the day window. While the clients section is pinned a
   white layer scrubs in and is fully there before the next section. The sunset is
   a 220 vh gradient below the viewport that rises for the contact section. */
.bg { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: -1; overflow: hidden; pointer-events: none; background: var(--night); }
.bg__gradient { position: absolute; left: 0; right: 0; top: 0; height: 333.333vh; background-image: var(--gradient); transition: height 2.4s var(--ease-inout), transform 2.4s var(--ease-inout); }
.bg__white { position: absolute; inset: 0; background: var(--paper); opacity: 0; }
.bg__sunset { position: absolute; left: 0; right: 0; top: 0; height: 220vh; transform: translateY(100vh); transition: transform 1.6s var(--ease-inout); background: linear-gradient(to top, #0b1f44 0%, #11497c 12%, #076db0 26%, #2f91d2 38%, #66b7e4 47%, #99d1e9 56%, #c3e1ee 64%, #f4f4f5 70%, rgba(244, 244, 245, 0) 100%); }
.is-sunset .bg__sunset { transform: translateY(-120vh); }
.is-plain .bg__white { opacity: 1 !important; }
.bg__star {
  position: absolute; top: 7vh; left: 22vw; width: 180px; height: 1px; opacity: 0;
  transform: rotate(14deg); transform-origin: 100% 50%;
  background: linear-gradient(to left, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
}
.bg__star::after { content: ""; position: absolute; right: -1px; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .4); }
.bg__star.is-flying { animation: shoot 1.4s cubic-bezier(.25, .6, .3, 1) forwards; }
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(14deg) translateX(0); }
  12%  { opacity: .32; }
  75%  { opacity: .22; }
  100% { opacity: 0; transform: rotate(14deg) translateX(36vw); }
}
.bg__dot { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .28; box-shadow: 0 0 3px 0 rgba(255, 255, 255, .5); transition: opacity 2s var(--ease-inout); }
.bg__dot:nth-child(3) { top: 11vh; left: 17vw; }
.bg__dot:nth-child(4) { top: 6vh;  left: 43vw; width: 1px; height: 1px; opacity: .22; }
.bg__dot:nth-child(5) { top: 15vh; left: 71vw; opacity: .24; }
.bg__dot:nth-child(6) { top: 8vh;  left: 89vw; width: 1px; height: 1px; opacity: .2; }
.is-day .bg__dot { opacity: 0; }

/* film grain: desktop only — the blended fixed layer is too expensive on phones */
.grain { position: fixed; top: -100%; left: -100%; width: 300%; height: 300%; z-index: 10; pointer-events: none; opacity: .13; mix-blend-mode: overlay; background: url("../img/grain.png") repeat; animation: grain .9s steps(1) infinite; will-change: transform; }
@keyframes grain {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(-6%, -9%); }
  25%  { transform: translate(-14%, 4%); }
  37%  { transform: translate(5%, -14%); }
  50%  { transform: translate(-11%, 11%); }
  62%  { transform: translate(9%, 2%); }
  75%  { transform: translate(-3%, 15%); }
  87%  { transform: translate(13%, -6%); }
}

/* on the gradient (hero, clients): white type, white tints for the greys */
.has-bg .topnav, .has-bg .hero { color: #fff; }
.has-bg .hero .word { color: rgba(255, 255, 255, .6); }
.has-bg .hero .small { color: rgba(255, 255, 255, .72); }
.has-bg .clients { color: #fff; --ink: #fff; --ink-2: rgba(255, 255, 255, .8); --grey: rgba(255, 255, 255, .6); }

/* ---------- 3. nav ---------- */
.topnav { position: relative; z-index: 5; padding: var(--s-md) 0 var(--s-sm); transition: opacity var(--d-fast) var(--ease-soft), transform var(--d-fast) var(--ease-soft); }
.topnav__row { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.topnav__brand { display: inline-flex; }
.topnav__brand .wordmark { height: 20px; width: auto; display: block; }
.topnav__links { display: flex; gap: 20px; margin-left: auto; margin-right: 140px; }
.topnav__links a { position: relative; }
.topnav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
.topnav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.is-scrolled .topnav { opacity: 0; transform: translateY(-32px); pointer-events: none; }
.topnav__brand, .topnav__links, .cta-fixed { opacity: 0; transition: opacity .8s var(--ease-soft); }
.is-ready .topnav__brand, .is-ready .cta-fixed, .is-ready .topnav__links { opacity: 1; }

.pill {
  position: fixed; top: 24px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; align-items: center; padding: 0 var(--margin);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.is-scrolled .pill { opacity: 1; transform: none; pointer-events: auto; }
.pill__group { display: flex; align-items: center; gap: 8px; }
.pill__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--media); color: var(--ink); transition: background-color var(--d-fast) var(--ease-soft), color var(--d-fast) var(--ease-soft), transform .3s var(--ease-out); }
.pill__mark:hover { background: #e4e4e4; }
.pill__mark .mark { width: 20px; height: auto; display: block; }
.pill__links { position: relative; display: flex; align-items: center; padding: 2px; border-radius: 8px; background: var(--media); transition: background-color var(--d-fast) var(--ease-soft); }
.pill__link, .pill__work, .pill__dropdown a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color .2s var(--ease-soft), color var(--d-fast) var(--ease-soft); }
.pill__link:hover, .pill__link.is-current, .pill__dropdown a:hover, .pill__dropdown a.is-current, .pill__work[aria-expanded="true"] { background: #fff; }
.pill__work { display: none; gap: 8px; }
.pill__caret { transition: transform .3s var(--ease-out); }
.pill__work[aria-expanded="true"] .pill__caret { transform: rotate(180deg); }
.pill__dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px; padding: 4px; border-radius: 8px; background: var(--media); display: flex; flex-direction: column; transition: background-color var(--d-fast) var(--ease-soft); transform-origin: 16px -6px; }
.pill__dropdown[hidden] { display: none; }
.pill__dropdown a { height: 40px; font-size: 15px; }
.js .pill__dropdown:not([hidden]) { animation: drop .35s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.cta-fixed { position: fixed; top: 24px; right: var(--margin); z-index: 101; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--ink); color: #fff; transition: background-color var(--d-fast) var(--ease-soft), color var(--d-fast) var(--ease-soft), opacity .8s var(--ease-soft); }
.cta-fixed:hover { background: #333; }

.is-dark .pill__mark, .is-dark .pill__links, .is-dark .pill__dropdown { background: #3a3a3a; color: #fff; }
.is-dark .pill__mark:hover { background: #4a4a4a; }
.is-dark .pill__link, .is-dark .pill__work, .is-dark .pill__dropdown a { color: #fff; }
.is-dark .pill__link:hover, .is-dark .pill__link.is-current, .is-dark .pill__dropdown a:hover, .is-dark .pill__dropdown a.is-current, .is-dark .pill__work[aria-expanded="true"] { background: var(--ink); }
.is-dark .cta-fixed { background: #fff; color: var(--ink); }
.is-dark .cta-fixed:hover { background: #ededed; }

/* ---------- 4. sections ---------- */

/* hero */
.hero { min-height: calc(100vh - var(--topnav-h)); min-height: calc(100svh - var(--topnav-h)); display: flex; flex-direction: column; justify-content: center; padding: var(--sec-pad) 0; }
.hero__statement { position: relative; }
.hero__mark {
  position: absolute; left: 0; top: 0; width: var(--indent); height: calc(1.02 * var(--t-hero));
  display: flex; justify-content: center; align-items: flex-start; font-size: var(--t-hero);
}
.hero__mark .mark { height: .546em; width: auto; margin-top: calc(.328em - 3.5px); opacity: 0; transition: opacity .8s var(--ease-soft); }
.hero__cta { display: grid; grid-template-columns: 1fr 1fr; padding-top: var(--s-xl); opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.hero__cta-box { display: flex; flex-direction: column; gap: var(--s-xs); }
.is-ready .hero__mark .mark { opacity: 1; }
.is-ready .hero__cta { opacity: 1; transform: none; }
.js .statement--hero { opacity: 0; }
.js .statement--hero.is-revealing, .js.is-ready .statement--hero { opacity: 1; }

/* clients: the grid sticks inside .clients__pin for the length of .clients__hold */
.clients { padding-top: 12vh; padding-bottom: 0; }
.clients__grid { position: sticky; top: 30vh; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--margin); align-items: start; }
.clients__hold { height: 78vh; }
.clients__space { height: 35vh; }
.clients__head { font-size: var(--t-statement); font-weight: 600; letter-spacing: -0.022em; line-height: 1.04; margin-top: var(--s-md); max-width: 600px; }
.clients__head .ind { display: none; }                    /* the clients headline only hangs on phones */
.clients__body { font-size: 14px; line-height: 1.45; color: var(--grey); max-width: calc(var(--m-lead) - 40px); margin-top: var(--s-md); }
.wheel { --row: 48px; --rows: 7; height: calc(var(--row) * var(--rows)); overflow: hidden; }
.wheel__track { will-change: transform; }
.wheel__track li { height: var(--row); line-height: var(--row); font-size: 44px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; color: rgba(255, 255, 255, .15); }
.wheel--static li:nth-child(2), .wheel--static li:nth-child(6) { color: rgba(255, 255, 255, .3); }
.wheel--static li:nth-child(3), .wheel--static li:nth-child(5) { color: rgba(255, 255, 255, .55); }
.wheel--static li:nth-child(4) { color: #fff; }

/* how we work: the headline sticks; when the block reaches it the headline
   compacts, the block pins and the chapters are scrubbed (main.js). */
.how { position: relative; }
.how__headwrap { position: absolute; top: 0; left: 0; right: 0; height: var(--head-wrap, 100%); pointer-events: none; z-index: 2; }
.how__head { position: sticky; top: var(--pill-space); padding: var(--s-lg) 0; pointer-events: auto; }
.how__space { height: calc(var(--head-space, 0px) + 55vh); }
.how__head .word, .how__head .statement { transition: font-size .4s var(--ease-inout); }
.how.is-compact .how__head .word { font-size: 24px; }
.how.is-compact .how__head .statement { font-size: clamp(17px, 1.84vw, 26px); }
.how.is-compact .how__head .wipe__line { display: inline !important; padding-left: 0 !important; -webkit-mask-image: none; mask-image: none; }
.how.is-compact .how__head .wipe__line::after { content: " "; }
.how.is-compact .how__head .ind { display: none; }
.acc { position: sticky; top: var(--acc-top, 320px); height: min(760px, calc(100vh - var(--pill-space) - 40px)); }   /* constant flow height: compacting never shifts the sections below */
.how__range { height: 260vh; }
.acc__grid { gap: var(--margin); align-items: start; }
.acc__grid > * { min-width: 0; }
.acc__media { position: relative; height: min(760px, calc(100vh - var(--pill-space) - 40px)); width: min(100%, calc(min(760px, 100vh - var(--pill-space) - 40px) * 560 / 760)); background: var(--media); overflow: hidden; transition: width .45s var(--ease-inout), height .45s var(--ease-inout); }
.how.is-compact .acc__media { width: 100%; height: calc(100vh - var(--acc-top, 320px) - 40px); }
.acc__fig { position: absolute; inset: 0; margin: 0; opacity: 0; }
.acc__fig .acc__img { transform: scale(1.1); }
.acc__fig.is-on { opacity: 1; }
.acc__fig.is-on .acc__img { transform: scale(1); }
.acc__fig { transition: opacity .5s var(--ease-soft); }
.acc__fig .acc__img { transition: transform 1.6s var(--ease-out); }
.acc__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 88px 24px 24px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
.acc__cap-brand { font-size: 18px; font-weight: 500; line-height: 1.3; }
a.acc__cap-brand:hover { text-decoration: underline; text-underline-offset: .14em; }
.acc__cap-text { font-size: 14px; line-height: 1.45; }
.acc__list { border-bottom: 1px solid var(--ink); }
.acc__item { border-top: 1px solid var(--ink); }
.acc__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 20px; font-weight: 500; line-height: 1.2; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 500; line-height: 1; transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft); }
.acc__item.is-active .num { background: var(--ink); color: #fff; }
.acc__content { height: 0; overflow: hidden; }
.acc__inner { padding-top: 34px; padding-bottom: 75px; }
.acc__head { font-size: 26px; font-weight: 600; letter-spacing: -0.008em; line-height: 1.18; max-width: var(--m-head); }
.acc__body { margin-top: var(--s-xs); color: var(--ink-2); max-width: var(--m-body); }
/* static (reduced motion): nothing sticks, every chapter open */
.how--static .how__headwrap, .how--static .how__head, .how--static .acc { position: static; height: auto; }
.how--static .how__head { padding: var(--sec-pad) 0 var(--s-lg); }
.how--static .how__space, .how--static .how__range { display: none; }
.how--static .acc__media { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.how--static .acc__fig:first-child { opacity: 1; }
.how--static .acc__fig:first-child .acc__img { transform: none; }
.how--static .acc__content { height: auto !important; }
.how--static .acc__inner { padding-top: 20px; padding-bottom: 36px; }

/* what we do: an editorial, static section — the headline stays large, the
   three service rows sit at full width and fade in as they scroll into view
   (main.js adds .is-in per row and staggers the content). */
.stack { position: relative; }
.stack__head { padding: var(--sec-pad) 0 var(--s-lg); }
.band { position: relative; }
.band__bg { position: absolute; inset: 0; z-index: -1; background: var(--paper); }
.band__bg::after { content: ""; position: absolute; left: var(--margin); right: var(--margin); top: 0; border-top: 1px solid var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out); }
.band.is-in .band__bg::after, .no-js .band__bg::after { transform: scaleX(1); }
.service { padding: var(--s-lg) 0 var(--s-xl); display: grid; grid-template-columns: 300fr 560fr 920fr; column-gap: 48px; row-gap: var(--s-lg); align-items: start; }
.service__name { font-size: clamp(30px, 2.8vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.service__lead { font-size: 20px; font-weight: 500; line-height: 1.3; }
.service__body { color: var(--ink-2); }
.service__tags { grid-column: 2 / -1; align-self: center; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.service__tags li { font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: 6px; background: var(--media); }
.service__link { grid-column: 1; grid-row: 2; justify-self: start; align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; transition: background-color var(--d-fast) var(--ease-soft); }
.service__link:hover { background: #333; }
.service__arrow { font-size: 16px; line-height: 1; }

/* work: an editorial two-column grid of the twelve projects; the second
   column rides a little lower, images keep their native aspect ratios */
.workgrid__head { margin-bottom: var(--head-gap); }
.workgrid__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--margin); row-gap: clamp(48px, 5vw, 80px); align-items: start; }
.card__media { position: relative; display: block; overflow: hidden; background: var(--media); }
.card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.card__media:hover .card__img { transform: scale(1.03); }
}
.card__tags { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__tags li { font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-md); margin-top: var(--s-sm); }
.card__name { font-size: 22px; font-weight: 600; letter-spacing: -0.008em; line-height: 1.2; }
.card__text { flex: 0 1 58%; text-align: right; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ---------- project pages ---------- */
.hero--project .hero__statement { margin-bottom: 0; }
.project__meta { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: var(--margin); margin-top: var(--s-xl); padding-top: var(--s-sm); border-top: 1px solid rgba(255, 255, 255, .35); font-size: 14px; }
.project__meta span { display: block; color: rgba(255, 255, 255, .6); margin-bottom: 6px; }
.project__meta a:hover { text-decoration: underline; text-underline-offset: .15em; }
.project { padding-top: var(--s-md); }
.project__lead { height: min(82vh, 860px); }
.project__brand { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--margin); margin-top: var(--s-xl); }
.project__brand .label { color: var(--ink); }
.project__brandtext { max-width: 560px; text-indent: 80px; line-height: 1.5; }
/* the gallery is a two-column masonry: every gap is exactly 24px, image sits on image */
.gallery { margin-top: var(--s-2xl); columns: 2; column-gap: 24px; }
.gallery__item { background: var(--media); overflow: hidden; break-inside: avoid; margin: 0 0 24px; }
.gallery__item img { width: 100%; height: auto; display: block; }
.project__next { margin-top: var(--sec-pad); border-top: 1px solid var(--ink); padding-top: var(--s-sm); }
.project__next .label { color: var(--grey); }
.project__nextlink { display: block; font-size: clamp(30px, 3.06vw, 44px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; }
.project__nextline { display: block; margin-top: 10px; font-size: 18px; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--ink-2); max-width: 640px; }
.project__nextlink:hover .project__nextname { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }

/* ---------- legal pages ---------- */
.is-plain .topnav, .is-plain .hero { color: var(--ink); }
.is-plain .hero--sub .word { color: var(--grey); }
.is-plain .project__meta { border-top-color: var(--ink); }
.is-plain .project__meta span { color: var(--grey); }
.legal { padding-top: 160px; }
.legal__intro { margin-top: var(--s-xs); font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; max-width: 820px; }
.legal__body { max-width: 640px; margin-top: var(--s-xl); }
.legal__body h2 { font-size: 16px; font-weight: 600; margin-top: 36px; margin-bottom: 8px; }
.legal__body p, .legal__body li { color: var(--ink-2); line-height: 1.5; }
.legal__body ul { list-style: disc; padding-left: 20px; margin: 8px 0; }
.legal__body a { text-decoration: underline; text-underline-offset: .14em; }

/* ---------- arrows + image arrows ---------- */
.arr { display: inline-block; transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a:hover .arr--ne, button:hover .arr--ne { transform: translate(3px, -3px); }
  a:hover .arr--e, button:hover .arr--e { transform: translateX(4px); }
}
.img-arrow { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; transition: transform .4s var(--ease-out), background-color var(--d-fast) var(--ease-soft); }
a.img-arrow:hover, a:hover > .img-arrow { background: #fff; transform: scale(1.08); }
a:hover > .img-arrow .arr--ne { transform: translate(2px, -2px); }

/* ---------- fade-ins: .rv and the children of [data-stagger] rise in on enter ---------- */
.js .rv, .js [data-stagger] > * { opacity: 0; transform: translateY(24px); }
.js .rv.is-in, .js [data-stagger] > .is-in { opacity: 1; transform: none; }

/* ---------- subpage sections ---------- */
.hero--sub .word { color: rgba(255, 255, 255, .6); margin-bottom: var(--s-2xs); }
.has-bg .hero--sub .word { color: rgba(255, 255, 255, .6); }

.badges { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.badges li { font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: #fff; }
.badges--about { display: none; margin-top: 20px; }
.badges--about li { background: var(--media); color: var(--ink); }

.about { padding-top: 0; }
.about__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--margin); border-top: 1px solid var(--ink); padding-top: 13px; }
.about__row .label { color: var(--ink); }
.about__text { text-indent: 80px; line-height: 1.45; }
.about__media { margin: var(--s-md) 0 0; height: min(80vh, 820px); }
.mediafig { position: relative; overflow: hidden; background: var(--media); }
.mediafig img { width: 100%; height: 100%; object-fit: cover; display: block; }

.how--long.is-compact .how__head .statement { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.25; }
.how--long.is-compact .how__head { padding-bottom: var(--s-md); }
.how--long .acc__inner { padding-top: 20px; padding-bottom: 32px; }
.how--long .acc__head { font-size: 24px; }
.how--long .acc__body { font-size: 14px; line-height: 1.5; max-width: 480px; margin-top: 10px; }
.how--long .ticker { margin-top: 12px; }
.how--long .ticker li { font-size: 11px; padding: 5px 8px; }
.how--long .ticker { order: 1; }
.ticker { overflow: hidden; margin-top: 14px; max-width: 520px; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 22s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker.is-off .ticker__track { animation-play-state: paused; }
.ticker li { flex: none; margin-right: 6px; font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: 6px; background: var(--media); color: var(--ink-2); white-space: nowrap; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.acc__toggle { display: inline-block; margin-top: 10px; padding: 0; font-size: 14px; color: var(--grey); }
.acc__toggle:hover { color: var(--ink); }

.epi { padding-top: var(--s-lg); }
.epi__grid { margin-top: var(--s-xl); column-gap: var(--margin); align-items: start; }
.epi__grid .label { color: var(--ink); }
.hold { border-bottom: 1px solid var(--line, var(--grey-2)); }
.hold li { border-top: 1px solid var(--grey-2); padding: 12px 0 14px; font-size: 20px; font-weight: 500; line-height: 1.3; }
.hold__num { display: inline-block; width: 36px; }

.spot__head { margin-top: var(--s-xs); font-size: clamp(30px, 3.06vw, 44px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.04; }
.spot__sub { margin-top: 20px; font-size: clamp(19px, 1.67vw, 24px); line-height: 1.35; letter-spacing: -0.003em; color: var(--ink-2); max-width: 900px; }
.spot__label { margin-top: var(--s-xl); color: var(--ink); }
.numbers { margin-top: var(--s-sm); border-top: 1px solid var(--ink); }
.numbers__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--margin); align-items: start; padding: 20px 0 24px; border-bottom: 1px solid var(--grey-2); }
.numbers__num { font-size: clamp(40px, 3.9vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers__text { color: var(--ink-2); max-width: 440px; }
.spot__close { margin-top: var(--s-xl); }
.spot__foot { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--margin); margin-top: var(--s-lg); align-items: start; }
.spot__foot .small { font-size: 13px; max-width: 440px; }

.feature { padding-top: 0; }
.feature__row { display: grid; grid-template-columns: 209fr 676fr 443fr; column-gap: var(--s-md); align-items: start; border-top: 1px solid var(--ink); padding: 25px 0 var(--s-xl); }
.feature__meta { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.feature__no { font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: var(--s-sm); }
.feature__media { position: relative; display: block; overflow: hidden; background: var(--media); }
.feature__media img { width: 100%; aspect-ratio: 676 / 480; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.feature__media:hover img { transform: scale(1.03); }
.feature__head { font-size: 26px; font-weight: 600; letter-spacing: -0.008em; line-height: 1.18; }
.feature__body { margin-top: var(--s-sm); color: var(--ink-2); }
.feature__stats { margin-top: 20px; border-bottom: 1px solid var(--grey-2); }
.feature__stats li { border-top: 1px solid var(--grey-2); padding: 8px 0; font-size: 14px; }
.feature__link { display: inline-block; margin-top: 20px; font-weight: 500; text-decoration: underline; text-underline-offset: .16em; }
.feature__all { border-top: 1px solid var(--ink); padding-top: 14px; font-weight: 500; }
.feature__all a:hover { text-decoration: underline; text-underline-offset: .15em; }

/* talk */
.cta { padding: var(--sec-pad) 0; transition: color .8s var(--ease-soft); }
.cta .word { margin-bottom: 20px; transition: color .8s var(--ease-soft); }
.is-sunset .cta { color: #fff; }
.is-sunset .cta .word { color: rgba(255, 255, 255, .6); }
.cta__mail { display: inline-block; margin-top: var(--s-xl); font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.015em; }
.cta__mail { position: relative; text-decoration: none; }
.cta__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(1); transform-origin: 0 50%; transition: transform .5s var(--ease-out); }
.cta__mail:hover::after { animation: redraw .7s var(--ease-inout); }
@keyframes redraw { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 49% { transform: scaleX(0); transform-origin: 100% 50%; } 50% { transform: scaleX(0); transform-origin: 0 50%; } 100% { transform: scaleX(1); transform-origin: 0 50%; } }

/* footer */
.footer { color: #fff; padding: var(--sec-pad) 0 var(--margin); }
.footer a { color: inherit; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: var(--margin); }
.footer__mark .mark { width: 22px; height: auto; display: block; }
.footer__times { display: flex; gap: var(--margin); font-size: 14px; margin-left: auto; }
.footer__times span { color: rgba(255, 255, 255, .6); margin-right: 8px; }
.footer__times time { font-variant-numeric: tabular-nums; }
.footer__legal { font-size: 13px; color: rgba(255, 255, 255, .8); }
.footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: .15em; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - var(--topnav-h)); display: flex; flex-direction: column; justify-content: center; }
.notfound__code { font-size: clamp(100px, 18vw, 280px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.notfound__text { margin-top: var(--s-md); font-size: 20px; max-width: 480px; }
.notfound__link { display: inline-block; margin-top: var(--s-lg); font-size: 20px; font-weight: 500; text-decoration: underline; text-underline-offset: .16em; }

/* ---------- 5. responsive ---------- */
@media (min-width: 1600px) {
  :root { --m-body: 520px; --m-head: 620px; --m-lead: 480px; }
}
@media (min-width: 768px) and (max-height: 760px) {
  .stack .service__body { display: none; }
}
@media (min-width: 768px) and (max-height: 840px) {
  .how--long .ticker { display: none; }
}
@media (max-width: 767px) {
  :root { --margin: 20px; --pill-space: 60px; }
  body { font-size: 15px; }
  .grain { display: none; }

  .topnav { padding: var(--s-sm) 0; }
  .topnav__links { display: none; }
  .pill { top: 16px; justify-content: flex-start; }
  .cta-fixed { top: 16px; }
  .pill__link { display: none; }
  .pill__work { display: inline-flex; }
  .is-dark .pill__mark, .is-dark .pill__links, .is-dark .pill__dropdown { background: var(--media); color: var(--ink); }
  .is-dark .pill__mark:hover { background: #e4e4e4; }
  .is-dark .pill__link, .is-dark .pill__work, .is-dark .pill__dropdown a { color: var(--ink); }
  .is-dark .pill__dropdown a:hover, .is-dark .pill__work[aria-expanded="true"] { background: #fff; }

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

  .hero { padding: var(--s-lg) 0 136px; }
  .hero__cta { grid-template-columns: 1fr; padding-top: var(--s-lg); }

  .clients { padding-top: 10vh; }
  .clients__grid { top: 8vh; grid-template-columns: 1fr; row-gap: 28px; }
  .clients__head .ind { display: inline-block; }
  .clients__hold { height: 110vh; }
  .clients__space { height: 25vh; }
  .wheel { --row: 46px; }
  .wheel__track li { font-size: 40px; }

  .how.is-compact .how__head { padding: 12px 0; }
  .how.is-compact .how__head .word { font-size: 20px; }
  .how.is-compact .how__head .statement { font-size: 12px; line-height: 1.3; }
  .acc { height: auto; }                                   /* single column: media and list stack */
  .acc__grid { gap: var(--s-sm); }
  .acc__media { width: 100%; height: 72vw; }
  .how.is-compact .acc__media { height: 50vw; }
  .acc__cap { grid-template-columns: 1fr 2fr; column-gap: 16px; padding: 40px 16px 14px; }
  .acc__cap-text { text-align: right; font-size: 12px; }
  .acc__cap-brand { font-size: 16px; }
  .acc__row { font-size: 17px; padding: 8px 0; }
  .acc__inner { padding-top: 12px; padding-bottom: 18px; }
  .acc__head { font-size: 20px; line-height: 1.2; }
  .acc__body { font-size: 14px; line-height: 1.45; margin-top: 10px; }
  .how__space { height: calc(var(--head-space, 0px) + 35vh); }
  .how.is-leaving .acc, .how.is-leaving .how__head { opacity: 0; }
  .acc, .how__head { transition: opacity .4s var(--ease-soft); }

  .service { padding: 28px 0 40px; grid-template-columns: 1fr; row-gap: 14px; }
  .service__name { font-size: 28px; }
  .service__lead { font-size: 19px; }
  .service__body { font-size: 15px; }
  .service__tags { grid-column: 1; justify-content: flex-start; align-self: start; }
  .service__link { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 4px; order: 10; }

  .workgrid__list { grid-template-columns: 1fr; row-gap: var(--s-xl); }
  .card__row { gap: 12px; margin-top: 12px; }
  .card__text { flex-basis: 70%; font-size: 12px; }
  .card__name { font-size: 18px; }
  .card__tags { left: 12px; right: 12px; bottom: 12px; }
  .card__tags li { font-size: 11px; padding: 5px 8px; }

  .badges--clients { display: none; }
  .badges--about { display: flex; }
  .about__row { grid-template-columns: 1fr; row-gap: 12px; }
  .about__text { text-indent: 40px; }
  .about__media { height: 70vh; }
  .epi__grid { grid-template-columns: 1fr; row-gap: var(--s-sm); margin-top: var(--s-lg); }
  .hold li { font-size: 17px; }
  .hold__num { width: 30px; }
  .spot__sub { font-size: 18px; }
  .spot__label { margin-top: var(--s-lg); }
  .numbers__row { grid-template-columns: 1fr; row-gap: 10px; }
  .spot__close { margin-top: var(--s-lg); }
  .spot__foot { grid-template-columns: 1fr; }
  .how--long .how__headwrap, .how--long .how__head { position: static; height: auto; }
  .how--long .how__head { padding: var(--sec-pad) 0 var(--s-md); }
  .how--long .how__space { display: none; }
  .how--long .acc__media { height: 50vw; }
  .how--long .acc__inner { padding-top: 12px; padding-bottom: 18px; }
  .how--long .acc__head { font-size: 18px; }
  .how--long .acc__body { font-size: 13px; line-height: 1.4; max-width: none; }
  .how--long .acc__toggle { margin-top: 6px; font-size: 13px; }
  .how--long .ticker { margin-top: 10px; max-width: 100%; }
  .feature__row { grid-template-columns: 1fr; row-gap: 20px; padding: 20px 0 var(--s-lg); }
  .feature__head { font-size: 22px; }

  .project__meta { grid-template-columns: 1fr; row-gap: 14px; margin-top: var(--s-lg); }
  .project__lead { height: 70vh; }
  .project__brand { grid-template-columns: 1fr; row-gap: 10px; margin-top: var(--s-lg); }
  .project__brandtext { text-indent: 40px; }
  .gallery { margin-top: var(--s-xl); columns: 1; }
  .project__next { margin-top: var(--s-2xl); }
  .legal { padding-top: 112px; }
  .cta__mail { margin-top: var(--s-lg); font-size: 20px; }

  .footer__row { flex-wrap: wrap; row-gap: 20px; }
  .footer__times { gap: var(--s-sm); margin-left: 0; width: 100%; order: 3; flex-direction: column; }
  .footer__legal { margin-left: auto; }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .rv, .js [data-stagger] > * { opacity: 1; transform: none; }
  .js .statement--hero { opacity: 1; }
  .wipe__line { -webkit-mask-image: none !important; mask-image: none !important; }
  .bg__star { display: none; }
  .grain { animation: none; }
  .ticker__track { animation: none; }
  .is-scrolled .pill { transition: none; }
}
