/* ==========================================================
   Nfilms — design tokens (from logo: emerald #01BE83, teal #144444)
   ========================================================== */
:root {
  --bg: #061312;
  --surface: #0c1f1e;
  --line: #1b3533;
  --ink: #eef4f1;
  --muted: #86a19b;
  --accent: #01be83;
  --teal: #144444;

  --f-display: "Syne", system-ui, sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

.display { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: .92; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 300; letter-spacing: -0.03em; }
.serif-r { font-family: var(--f-serif); font-weight: 300; letter-spacing: -0.025em; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--muted); }
.acc { color: var(--accent); }
.section { padding: clamp(96px, 12vw, 160px) var(--gutter); }
.section-x { padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.eyebrow b { color: var(--accent); font-weight: 500; }
.eyebrow i { width: 48px; height: 1px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 28px; border-radius: 999px;
  font: 600 14px/1 var(--f-body);
  transition: background .5s var(--ease), color .5s var(--ease), gap .5s var(--ease), border-color .5s var(--ease);
  will-change: transform;
}
.btn__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-style: normal; font-size: 16px; transition: transform .5s var(--ease), background .5s var(--ease), color .5s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary .btn__arrow { background: var(--bg); color: var(--ink); }
.btn--primary:hover { background: var(--ink); gap: 28px; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost .btn__arrow { background: var(--ink); color: var(--bg); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(1,190,131,.08); gap: 28px; }
.btn--ghost:hover .btn__arrow { background: var(--accent); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn--lg { font-size: 16px; padding-left: 34px; }
.btn--lg .btn__arrow { width: 52px; height: 52px; }

.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d3d; margin: 0 6px; vertical-align: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow: hidden; }
.preloader__tc { position: absolute; top: 40px; left: var(--gutter); }
.preloader__word {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: flex; overflow: hidden; font: 800 clamp(64px, 13vw, 190px)/1 var(--f-display); letter-spacing: -0.04em;
}
.preloader__word span { display: inline-block; transform: translateY(110%); }
.preloader__sub { position: absolute; left: 50%; top: calc(46% + clamp(48px, 8vw, 120px)); transform: translateX(-50%); color: var(--muted); opacity: 0; white-space: nowrap; }
.preloader__label { position: absolute; bottom: 48px; left: var(--gutter); color: var(--muted); }
.preloader__count { position: absolute; right: var(--gutter); bottom: 24px; font-size: clamp(72px, 12vw, 160px); color: var(--accent); }
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.preloader__curtain { position: absolute; inset: 0; background: var(--accent); transform: translateY(100%); display: grid; place-items: center; }
.preloader__curtain p { color: var(--bg); font-size: clamp(48px, 8vw, 120px); }

/* ---------- Cursor ---------- */
/* Contextual media label only — the native cursor is never replaced */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
}
.cursor__inner { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .5s var(--ease); }
.cursor__label { color: var(--bg); font-size: 11px; }
.cursor.is-label .cursor__inner { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 88px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(6,19,18,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 40px; }
.nav__links a { position: relative; }
.nav__links sup { color: var(--accent); font-size: 9px; margin-right: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__menu { display: none; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100dvh; min-height: 680px; overflow: hidden; }
.hero__media { position: absolute; inset: -6% 0 0; will-change: clip-path, transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,19,18,.6) 0%, rgba(6,19,18,.05) 35%, rgba(6,19,18,.45) 65%, var(--bg) 100%); }
.grain-fixed { position: fixed; inset: -50%; z-index: 80; opacity: .06; pointer-events: none;
  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='2' 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(-5%,4%)} 40%{transform:translate(4%,-6%)} 60%{transform:translate(-3%,2%)} 80%{transform:translate(6%,5%)} 100%{transform:translate(0,0)} }

.vf { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(238,244,241,.85); }
.vf--tl { top: 112px; left: 32px; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf--tr { top: 112px; right: 32px; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf--bl { bottom: 32px; left: 32px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf--br { bottom: 32px; right: 32px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud { position: absolute; font-size: 11px; opacity: .85; }
.hud--tl { top: 124px; left: 72px; } .hud--tr { top: 124px; right: 72px; }
.hud--bl { bottom: 44px; left: 72px; } .hud--br { bottom: 44px; right: 72px; }

.hero__intro { position: absolute; top: 200px; left: var(--gutter); max-width: 360px; display: grid; gap: 28px; justify-items: start; }
.badge { position: absolute; top: 190px; right: var(--gutter); width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid rgba(238,244,241,.35); border-radius: 50%; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge__ring text { font: 500 10.5px var(--f-mono); letter-spacing: .32em; fill: var(--ink); }
.badge__play { font-size: 34px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__title { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(80px, 11vh, 110px); font-weight: inherit; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line__in { display: inline-flex; align-items: center; gap: .25em; will-change: transform; }
.hero__title .display { font-size: clamp(34px, 6.9vw, 112px); white-space: nowrap; }
.hero__title .serif { font-size: clamp(32px, 6vw, 96px); color: var(--accent); line-height: 1.05; white-space: nowrap; }
.pill { display: inline-block; width: 1.9em; height: .95em; border-radius: 999px; overflow: hidden; vertical-align: middle; font-size: clamp(32px, 6vw, 96px); flex: none; }
.pill img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }

/* ---------- Marquee ---------- */
.marquee { position: relative; height: clamp(200px, 22vw, 300px); overflow: hidden; }
.band { position: absolute; left: -10%; width: 120%; padding: 18px 0; overflow: hidden; white-space: nowrap; }
.band--a { background: var(--accent); color: var(--bg); top: 44%; transform: rotate(-2.5deg); }
.band--b { background: var(--teal); color: var(--ink); top: 22%; transform: rotate(2.5deg); }
.band__track { display: inline-flex; font-size: clamp(32px, 4.6vw, 64px); will-change: transform; }
.band__track span { padding-right: .4em; }

/* ---------- About ---------- */
.manifesto { font-size: clamp(34px, 5.6vw, 82px); line-height: 1.04; max-width: 1300px; margin-bottom: clamp(64px, 8vw, 120px); }
.manifesto em { color: var(--accent); }
.manifesto .w { opacity: .15; }
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.reveal-img { position: relative; overflow: hidden; border-radius: 4px; }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }
.about__img { aspect-ratio: 4/5; }
.about__img figcaption { position: absolute; left: 20px; bottom: 18px; font-size: 11px; }
.about__body { display: grid; gap: 24px; }
.about__mission { font-size: clamp(30px, 3.4vw, 50px); line-height: 1; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
.values { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.values li { border-top: 1px solid var(--line); padding: 28px 32px 28px 0; display: grid; gap: 10px; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
.values h3 { font-size: 32px; }
.values p { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(80px, 10vw, 140px); }
.stat { border-left: 1px solid var(--line); padding-left: 28px; }
.stat .display { font-size: clamp(56px, 7vw, 110px); display: block; margin-bottom: 8px; }
.stat p { color: var(--muted); }

/* ---------- Section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(56px, 7vw, 96px); }
.sec-head__side { flex: 0 0 auto; width: min(320px, 100%); display: grid; gap: 24px; justify-items: end; text-align: right; }
.big { font-weight: inherit; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em; line-height: .9; }
.big .display { font-size: clamp(36px, 6.6vw, 108px); }
.big .serif { font-size: clamp(38px, 6.8vw, 112px); color: var(--accent); }
.big sup { align-self: flex-start; }
.big--stack { flex-direction: column; gap: 0; }
.split-chars .ch { display: inline-block; }
.split-chars .chw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .05em; white-space: nowrap; }

/* ---------- Work ---------- */
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4.5vw, 64px); }
.work__col { display: grid; gap: clamp(64px, 8vw, 120px); align-content: start; }
.work__col--offset { padding-top: clamp(80px, 16vw, 240px); }
.card__media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16/11; background: var(--surface); }
.card--tall .card__media { aspect-ratio: 4/5; }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.card__media video { opacity: 0; }
.card:hover .card__media video { opacity: 1; }
.tag { position: absolute; top: 18px; left: 18px; background: rgba(6,19,18,.6); backdrop-filter: blur(8px); padding: 7px 12px; border-radius: 999px; font-size: 10.5px; }
.card__meta { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 20px; position: relative; }
.card__meta::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.card:hover .card__meta::after { transform: scaleX(1); }
.card__meta h3 { font-size: clamp(26px, 2.8vw, 42px); margin-top: 6px; transition: color .5s; }
.card:hover h3 { color: var(--accent); }

/* ---------- Services ---------- */
.srv { border-bottom: 1px solid var(--line); }
.srv__row {
  position: relative; display: grid; grid-template-columns: 64px 1fr minmax(240px, 340px) 64px; align-items: center; gap: 24px;
  padding: 36px 0; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; cursor: pointer;
}
.srv__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.srv__row h3 { font-size: clamp(24px, 3.5vw, 54px); transition: transform .6s var(--ease); }
.srv__row p { color: var(--muted); transition: color .4s; }
.srv__row > span { color: var(--muted); transition: transform .6s var(--ease), color .4s; }
.srv__arrow { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 50%; font-style: normal; font-size: 22px; transition: transform .6s var(--ease), background .4s, color .4s; }
.srv__row:hover::before { transform: scaleY(1); }
.srv__row:hover { color: var(--bg); }
.srv__row:hover h3 { transform: translateX(32px); }
.srv__row:hover > span { transform: translateX(20px); color: var(--bg); }
.srv__row:hover p { color: var(--bg); }
.srv__row:hover .srv__arrow { background: var(--bg); color: var(--accent); border-color: var(--bg); transform: rotate(45deg); }

/* ---------- Approach ---------- */
.approach { position: relative; height: 100dvh; min-height: 720px; overflow: hidden; }
.approach__media, .approach__media img, .approach__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.approach__media img { object-fit: cover; }
.approach__shade { background: linear-gradient(180deg, rgba(6,19,18,.88) 0%, rgba(6,19,18,.35) 45%, rgba(6,19,18,.95) 100%); }
.approach__inner { position: relative; height: 100%; padding: clamp(96px, 12vh, 140px) var(--gutter) clamp(56px, 9vh, 110px); display: flex; flex-direction: column; }
.approach__q { font-size: clamp(30px, 4.8vw, 74px); line-height: 1.05; max-width: 1150px; }
.approach__q em { color: var(--accent); }
.approach__q .w { opacity: .15; }
.steps { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { border-top: 1px solid rgba(238,244,241,.25); padding: 28px 32px 0 0; display: grid; gap: 12px; }
.steps h3 { font-size: clamp(20px, 2.1vw, 32px); }
.steps p { opacity: .7; font-size: 15px; }

/* ---------- Locations ---------- */
.locations { position: relative; }
.locations__pin { height: 100dvh; min-height: 760px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 96px 0 56px; }
.locations .sec-head { margin-bottom: 48px; }
.loc__track { display: flex; gap: 24px; padding-left: var(--gutter); width: max-content; will-change: transform; }
.loc { position: relative; flex: none; width: clamp(260px, 28vw, 420px); aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; display: block; }
.loc img { position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%; object-fit: cover; }
.loc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,19,18,.9)); }
.loc > span { position: absolute; top: 20px; left: 22px; z-index: 1; }
.loc > div { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; transform: translateY(14px); transition: transform .7s var(--ease); }
.loc h3 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; margin-top: 8px; }
.loc:hover > div { transform: none; }
.loc__progress { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.loc__bar { flex: 1; height: 2px; background: var(--line); }
.loc__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Clients ---------- */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.logo-cell { display: grid; place-items: center; aspect-ratio: 1/1.1; border-left: 1px solid var(--line); transition: background .5s var(--ease); }
.logo-cell:first-child { border-left: 0; }
.logo-cell img { width: 55%; opacity: .7; filter: grayscale(1); transition: opacity .5s, transform .8s var(--ease); }
.logo-cell:hover { background: rgba(1,190,131,.07); }
.logo-cell:hover img { opacity: 1; transform: scale(1.08); }

/* ---------- Footer ---------- */
.footer { padding-bottom: 0; }
.cta { display: grid; justify-items: center; text-align: center; gap: 40px; margin-bottom: clamp(96px, 12vw, 160px); }
.cta .eyebrow { margin: 0; }
.cta__title { font-weight: inherit; }
.cta__title .line__in { justify-content: center; }
.cta__title .display { font-size: clamp(38px, 7.6vw, 124px); white-space: nowrap; }
.cta__title .serif { font-size: clamp(38px, 7.2vw, 118px); color: var(--accent); line-height: 1.05; }
.cta__title .pill--lg { font-size: clamp(38px, 7.2vw, 118px); }
.cta__btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 48px; }
.footer__cols > div { display: grid; gap: 12px; align-content: start; }
.footer__cols a { transition: color .3s; width: fit-content; }
.footer__cols a:hover { color: var(--accent); }
.news { display: flex; border-bottom: 1px solid var(--line); }
.news input { flex: 1; background: none; border: 0; color: var(--ink); font: inherit; padding: 8px 0; outline: none; }
.news button { color: var(--accent); font-size: 20px; }
.wordmark {
  display: flex; justify-content: space-between; overflow: hidden; margin-top: clamp(64px, 8vw, 120px);
  font-size: clamp(48px, 15.6vw, 240px); line-height: .86; letter-spacing: -0.04em;
  background: url("../assets/img/sahara.jpg") center 70% / cover;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark span { display: inline-block; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 32px; font-size: 11px; flex-wrap: wrap; }
.totop { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links, .status { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .srv__row { grid-template-columns: 48px 1fr 56px; }
  .srv__row p { display: none; }
  .srv__arrow { width: 52px; height: 52px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { height: 72px; }
  .nav__right .btn { display: none; }
  .nav__menu { display: block; }
  .hud--tr, .hud--bl, .badge { display: none; }
  .vf--tl, .vf--tr { top: 84px; }
  .hud--tl { top: 96px; left: 52px; }
  .hero__intro { top: auto; bottom: 40px; max-width: none; right: var(--gutter); }
  .hero__intro p { display: none; }
  .hero__title { bottom: 120px; }
  .hud--br { bottom: 52px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head__side { justify-items: start; text-align: left; }
  .work__grid { grid-template-columns: 1fr; }
  .work__col--offset { padding-top: 0; }
  .values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-top: 16px; }
  .steps p { display: none; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logo-cell:nth-child(4) { border-left: 0; }
  .logo-cell:nth-child(n+4) { border-top: 1px solid var(--line); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .srv__row { padding: 24px 0; }
  .hero__title .display { font-size: 11.6vw; white-space: normal; }
  .hero__title .serif { font-size: 8.4vw; }
  .hero__title .pill { font-size: 8.4vw; }
  .line__in { flex-wrap: wrap; max-width: 100%; }
  .hud--br { display: none; }
  .stat .display { font-size: 13vw; }
  .stat { padding-left: 16px; }
  .wordmark { font-size: 14.4vw; }
}
html, main { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .2s !important; }
}


/* ==========================================================
   Awwwards layer — hover + scroll extras
   ========================================================== */

/* Tactile press */
.btn:active, .srv__arrow:active, .news button:active { transform: scale(.97); }

/* Rolling button labels */
.roll { display: inline-grid; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.roll > span { grid-area: 1 / 1; transition: transform .6s var(--ease); }
.roll > span:last-child { transform: translateY(110%); }
.btn:hover .roll > span:first-child { transform: translateY(-110%); }
.btn:hover .roll > span:last-child { transform: translateY(0); }

/* Scroll timecode HUD */
.scroll-tc { position: fixed; right: var(--gutter); bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 12px; font-size: 11px; mix-blend-mode: difference; color: #fff; pointer-events: none; opacity: 0; }
.scroll-tc__label { color: var(--accent); mix-blend-mode: normal; }
.scroll-tc__bar { width: 80px; height: 1px; background: rgba(255,255,255,.3); }
.scroll-tc__bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* Eyebrow line draws in */
.eyebrow i { transform-origin: left; }

/* Hero curtain (clip handled in JS) */
.hero__media { clip-path: inset(0% 0% 0% 0% round 0px); }

/* Work cards — 3D tilt */
.card__media { transform-style: preserve-3d; will-change: transform; }
.card { perspective: 1200px; }
.skew { will-change: transform; }

/* Reel — text-mask zoom */
.reel { position: relative; }
.reel__pin { position: relative; height: 100dvh; min-height: 640px; overflow: hidden; background: var(--bg); }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__mask {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--bg); mix-blend-mode: multiply; will-change: opacity;
}
.reel__mask span { color: #fff; font-size: clamp(120px, 30vw, 520px); line-height: .8; letter-spacing: -0.05em; transform-origin: 46% 52%; will-change: transform; }
.reel__hud { position: absolute; z-index: 2; font-size: 11px; }
.reel__hud--tl { top: 120px; left: var(--gutter); } .reel__hud--tr { top: 120px; right: var(--gutter); }
.reel__hud--bl { bottom: 48px; left: var(--gutter); } .reel__hud--br { bottom: 48px; right: var(--gutter); }
.reel__caption { position: absolute; z-index: 2; left: 50%; bottom: 18%; width: min(760px, 90vw); transform: translateX(-50%); text-align: center; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.1; opacity: 0; text-shadow: 0 2px 30px rgba(6,19,18,.6); }

/* Services — directional fill + floating preview */
.srv { position: relative; }
.srv__row::before { transform-origin: var(--fill-origin, bottom); }
.srv-preview {
  position: fixed; top: 0; left: 0; z-index: 40; width: 300px; height: 380px; margin: -190px 0 0 -150px;
  pointer-events: none; overflow: hidden; border-radius: 6px; clip-path: inset(50% 50% 50% 50%);
}
.srv-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.25); }
.srv-preview img.is-active { opacity: 1; }
@media (hover: none) { .srv-preview { display: none; } }

/* Clients — spotlight */
.logo-cell { position: relative; overflow: hidden; }
.logo-cell::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(1,190,131,.18), transparent 70%);
}
.logo-cell:hover::before { opacity: 1; }
.logo-cell img { position: relative; }

/* CTA — image trail */
.cta { position: relative; }
.trail { position: absolute; inset: -80px calc(var(--gutter) * -1); pointer-events: none; overflow: hidden; }
.trail img { position: absolute; width: 200px; height: 140px; object-fit: cover; border-radius: 4px; margin: -70px 0 0 -100px; will-change: transform, opacity; }
.cta > *:not(.trail) { position: relative; z-index: 1; }

/* Footer wordmark — kinetic letters */
.wordmark span { cursor: default; will-change: transform; }

/* Section rule draw */
.rule-draw { transform-origin: left; }

@media (max-width: 720px) {
  .scroll-tc { display: none; }
  .reel__hud--tr, .reel__hud--bl { display: none; }
  .reel__mask span { font-size: 25vw; }
}
@media (prefers-reduced-motion: reduce) {
  .grain-fixed { display: none; }
  .reel__mask { display: none; }
  .reel__caption { opacity: 1; }
}
