:root {
  --bg: #000;
  --fg: #f2f2f2;
  --mute: #8a8a8a;
  --dim: #3a3a3a;
  --line: #1c1c1c;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
video { display: block; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.label {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
}
.line { display: block; overflow: hidden; }
.line > span { display: block; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader__word {
  display: flex; overflow: hidden;
  font-family: var(--display);
  font-size: clamp(64px, 16vw, 220px);
  line-height: 1; letter-spacing: -.01em;
}
.loader__word span { display: block; }
.loader__count {
  position: absolute; right: var(--pad); bottom: var(--pad);
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 120px);
  line-height: .8; color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* ---------- grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}
.cursor { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff;
  mix-blend-mode: difference;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s;
}
html.has-cursor .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
html.has-cursor .cursor.is-label {
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  mix-blend-mode: normal; background: var(--fg);
}
.cursor__label {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #000; opacity: 0; transition: opacity .2s;
}
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  font-size: 14px;
}
.nav__logo { font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: .01em; }
.nav__links { display: flex; gap: 32px; }
.nav__links a, .nav__cta { position: relative; }
.nav__links a::after, .nav__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid currentColor; border-radius: 999px; padding: 8px 18px; }
.nav__cta::after { display: none; }

.concept-pill {
  position: fixed; left: var(--pad); bottom: 18px; z-index: 50;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); mix-blend-mode: difference;
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__stage { position: relative; height: 100%; overflow: hidden; background: var(--bg); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__mask {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  mix-blend-mode: multiply;
}
.hero__black { position: absolute; inset: 0; background: #000; }
.hero__title {
  position: relative;
  font-family: var(--display); font-weight: 400;
  font-size: min(19vw, 40vh);
  line-height: .9; letter-spacing: -.005em;
  text-transform: uppercase; text-align: center;
  color: #fff;
}
.hero__i { font-weight: inherit; }
.hero.is-in .line { overflow: visible; }
.hero__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.hero__eyebrow, .hero__scroll {
  position: absolute; left: var(--pad); right: var(--pad);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute);
}
.hero__eyebrow { top: 96px; }
.hero__scroll { bottom: 28px; text-align: right; }
.hero__scroll span { display: inline-block; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- manifesto ---------- */
.manifesto {
  position: relative; z-index: 2; background: var(--bg);
  padding: 22vh var(--pad) 26vh;
  display: grid; gap: 40px;
}
.manifesto__text {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 6.4vw, 104px);
  line-height: 1.02; text-transform: uppercase;
  max-width: 15em;
}
.manifesto__text .w { display: inline-block; white-space: pre; }

/* ---------- services ---------- */
.services {
  position: relative; z-index: 2; background: var(--bg);
  height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  border-top: 1px solid var(--line);
}
.services__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 96px var(--pad) 0;
}
.services__count { font-family: var(--display); font-size: 22px; color: var(--mute); }
.services__index { color: var(--fg); }
.services__track {
  display: flex; width: max-content; height: 100%;
  padding: 0 var(--pad);
  will-change: transform;
}
.svc {
  position: relative;
  width: clamp(300px, 40vw, 620px);
  padding: 0 clamp(20px, 3vw, 48px);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 6vh; overflow: hidden;
}
.svc__num {
  position: absolute; top: 2vh; left: clamp(12px, 2vw, 32px);
  font-family: var(--display);
  font-size: clamp(140px, 30vh, 360px); line-height: .85;
  color: transparent; -webkit-text-stroke: 1px #4a4a4a;
}
.svc__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 3.8vw, 64px); line-height: .98;
  text-transform: uppercase; margin-bottom: 20px; max-width: 9em;
}
.svc__desc { color: #bdbdbd; max-width: 30em; font-size: clamp(15px, 1.15vw, 18px); font-weight: 300; }
.svc__tags { margin-top: 24px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.services__progress { height: 1px; margin: 0 var(--pad) 28px; background: var(--line); }
.services__progress i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }

/* ---------- work ---------- */
.work {
  --cw: min(39vh, 64vw);
  position: relative; z-index: 2; background: var(--bg);
  height: 100vh; height: 100svh; overflow: hidden;
  border-top: 1px solid var(--line);
}
.work__label { position: absolute; top: 96px; left: var(--pad); z-index: 3; }
.work__names {
  position: absolute; left: 0; top: 50%; z-index: 0;
  display: flex; transform: translateY(-50%);
  will-change: transform; pointer-events: none;
}
.work__names span {
  flex: 0 0 100vw; text-align: center; white-space: nowrap;
  font-family: var(--display); text-transform: uppercase;
  font-size: min(26vw, 50vh); line-height: .85;
  color: transparent; -webkit-text-stroke: 1px #333;
}
.work__stage {
  position: absolute; inset: 0; z-index: 1;
  perspective: 1800px; perspective-origin: 50% 50%;
}
.work__ring {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
}
.card {
  position: absolute;
  width: var(--cw); height: calc(var(--cw) * 16 / 9);
  left: calc(var(--cw) / -2); top: calc(var(--cw) * 16 / 9 / -2);
  backface-visibility: hidden;
  --dim: .6;
}
.card video {
  width: 100%; height: 100%; object-fit: cover;
  background: #0a0a0a; border-radius: 6px;
  outline: 1px solid #1f1f1f;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  background: #000; opacity: var(--dim); pointer-events: none;
}
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: -34px;
  display: flex; gap: 10px; justify-content: center;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
  opacity: calc(1 - var(--dim) * 1.6);
}
.card figcaption span { color: var(--fg); }
.card__hit { position: absolute; inset: 0; z-index: 2; background: none; border: 0; border-radius: 6px; }
.work__meta {
  position: absolute; left: var(--pad); bottom: 28px; z-index: 3;
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--display); text-transform: uppercase;
}
.work__idx { font-size: clamp(48px, 6vw, 88px); line-height: .8; }
.work__of { color: var(--mute); font-size: 20px; }
.work__brand { margin-left: 14px; font-size: 20px; letter-spacing: .02em; }
.work__hint {
  position: absolute; right: var(--pad); bottom: 30px; z-index: 3;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
}

/* ---------- clients ---------- */
.clients {
  position: relative; z-index: 2; background: var(--bg);
  padding: 20vh 0; border-top: 1px solid var(--line);
  overflow: hidden;
}
.clients .label { padding: 0 var(--pad); margin-bottom: 6vh; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__inner { display: inline-flex; align-items: center; will-change: transform; }
.marquee span, .marquee i {
  font-family: var(--display); text-transform: uppercase; font-style: normal;
  font-size: clamp(64px, 11vw, 180px); line-height: 1.05;
}
.marquee i { font-size: clamp(24px, 3vw, 48px); margin: 0 .9em; color: var(--mute); }
.marquee--outline span { color: transparent; -webkit-text-stroke: 1px #6a6a6a; }

/* ---------- contact ---------- */
.contact {
  position: relative; z-index: 2; background: var(--bg);
  padding: 22vh var(--pad) 16vh; border-top: 1px solid var(--line);
  display: grid; gap: 48px;
}
.contact__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 12vw, 200px); line-height: .9;
}
.contact__body { display: grid; gap: 48px; grid-template-columns: 1fr; }
.contact__lede { color: #bdbdbd; font-weight: 300; font-size: clamp(17px, 1.5vw, 22px); max-width: 26em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #2a2a2a;
  padding: 10px 0 12px; font-size: 20px; font-weight: 300; border-radius: 0;
  transition: border-color .3s; resize: vertical;
}
html.has-cursor .field input, html.has-cursor .field textarea { cursor: text; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field.is-invalid input { border-bottom-color: #9a9a9a; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--mute); }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--fg); color: #000; border: 0; border-radius: 999px;
  padding: 22px 36px; font-size: 16px; font-weight: 500;
}
.btn b { transition: transform .4s var(--ease); }
.btn:hover b { transform: translateX(6px); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; background: var(--bg); padding: 0 var(--pad) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__row { display: flex; gap: 32px; padding: 28px 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.footer__row span { margin-left: auto; }
.footer__row a:hover { color: var(--fg); }
.footer__word {
  display: flex; justify-content: center; overflow: hidden;
  font-family: var(--display); line-height: .78;
  font-size: 42vw; letter-spacing: -.01em;
}
.footer__word span { display: block; }
.footer__concept { margin-top: 28px; font-size: 12px; color: var(--mute); max-width: 60em; }
.footer__concept a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, .94);
  display: grid; place-items: center; padding: 24px;
}
.modal[hidden] { display: none; }
.modal__inner { display: grid; gap: 14px; max-height: 100%; }
.modal__video { height: min(80vh, 160vw); width: auto; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 6px; }
.modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modal__title { font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.modal__close { background: none; border: 1px solid #444; border-radius: 999px; padding: 8px 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.modal__close:hover { border-color: var(--fg); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav { padding-top: 18px; }
  .hero__eyebrow { top: 80px; }
  .services__head, .work__label { padding-top: 0; }
  .services__head { padding-top: 84px; }
  .work__label { top: 84px; }
  .svc { width: 84vw; }
  .svc__num { font-size: 34vh; }
  .work__hint { display: none; }
  .form { grid-template-columns: 1fr; }
  .footer__row { flex-wrap: wrap; gap: 18px; }
  .concept-pill { bottom: 12px; }
}
@media (min-width: 1000px) {
  .contact__body { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

/* ---------- reduced motion: same content, no pinning, no scrubbing ---------- */
html.rm .grain { animation: none; }
html.rm .hero__scroll span { animation: none; }
html.rm .services { height: auto; overflow: visible; }
html.rm .services__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; }
html.rm .svc { flex: 0 0 auto; min-height: 60vh; scroll-snap-align: start; }
html.rm .services__progress { display: none; }
html.rm .work { height: auto; overflow: visible; padding: 160px var(--pad) 120px; }
html.rm .work__names, html.rm .work__meta, html.rm .work__hint { display: none; }
html.rm .work__stage { position: static; perspective: none; }
html.rm .work__ring { position: static; width: auto; height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 56px 24px; }
html.rm .card { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 9 / 16; --dim: 0; }
html.rm .marquee { white-space: normal; padding: 0 var(--pad); }
html.rm .marquee__inner { flex-wrap: wrap; }
html.rm .marquee span, html.rm .marquee i { font-size: clamp(40px, 7vw, 96px); }
html.rm .marquee--outline { display: none; }
