/* ===================================================================
   AVALON STUDIO — Design System
   Palette sampled directly from the studio's own brand film.
   Style: Motion-Driven × Dark Mode (OLED) × selective glass.
=================================================================== */

:root {
  /* --- Surface --- */
  --void:      #05070d;
  --ink:       #080b14;
  --raise:     #0d1220;
  --raise-2:   #131a2c;

  /* --- Type --- */
  --paper:     #eef1f8;   /* 17.8:1 on --void */
  --dim:       #9aa4bd;   /*  8.1:1 on --void */
  --faint:     #78829c;   /*  5.3:1 on --void — muted but still WCAG AA */

  /* --- Brand light --- */
  --primary:   #3355ff;   /* photon blue   */
  --secondary: #57e0ff;   /* cyan trail    */
  --accent:    #8b6cf5;   /* violet edge   */
  --highlight: #f2d59a;   /* signal gold — rare, precious */

  /* --- Lines --- */
  --line:      rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.055);
  --line-hot:  rgba(87,224,255,.34);

  /* --- Type stacks --- */
  --f-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --f-body:    'Manrope', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'Space Mono', ui-monospace, 'Courier New', monospace;
  --f-edit:    'Bodoni Moda', 'Times New Roman', serif;

  /* --- Metrics --- */
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);

  /* --- Motion --- */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-io:  cubic-bezier(.65,.05,.36,1);

  /* --- Z scale --- */
  --z-base: 1;
  --z-raise: 10;
  --z-sticky: 20;
  --z-nav: 30;
  --z-cursor: 40;
  --z-modal: 50;
  --z-boot: 60;
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--primary); color: #fff; }

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

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

.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;
}

/* ===================================================================
   TYPE PRIMITIVES
=================================================================== */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary));
  flex: none;
}
.eyebrow--plain::before { display: none; }

.h-sec {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}

.h-sub {
  max-width: 58ch;
  color: var(--dim);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.68;
  margin: 0;
}

/* Bodoni Moda's (--f-edit) hairline strokes read poorly at display sizes
   against this dark theme — every use of .edit sits inside a large heading.
   Outfit italic keeps the same accented, editorial break from the display
   weight while staying legible everywhere on the site. */
.edit { font-family: var(--f-display); font-style: italic; font-weight: 500; }
.grad {
  background: linear-gradient(96deg, var(--secondary), var(--primary) 46%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===================================================================
   BOOT SEQUENCE
=================================================================== */
.boot {
  position: fixed; inset: 0;
  z-index: var(--z-boot);
  background: var(--void);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__inner { display: grid; place-items: center; gap: 26px; }
.boot__mark { width: 54px; height: 54px; opacity: 0; animation: bootMark 1.1s var(--ease-out) forwards; }
@keyframes bootMark {
  from { opacity: 0; transform: translateY(10px) scale(.94); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.boot__bar {
  width: 150px; height: 2px;
  background: rgba(255,255,255,.1);
  overflow: hidden; border-radius: 2px;
}
.boot__bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .25s var(--ease-out);
}
.boot__pct {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .2em; color: var(--faint);
}

/* ===================================================================
   CURSOR (desktop, fine pointer only)
=================================================================== */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: var(--z-cursor);
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor {
  width: 34px; height: 34px;
  border: 1px solid rgba(238,241,248,.42);
  margin: -17px 0 0 -17px;
  transition: width .3s var(--ease), height .3s var(--ease),
              border-color .3s var(--ease), background .3s var(--ease),
              margin .3s var(--ease), opacity .3s;
}
.cursor-dot {
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  background: var(--secondary);
  transition: opacity .3s, transform .3s var(--ease);
}
body.cursor-ready .cursor, body.cursor-ready .cursor-dot { opacity: 1; }
body.cursor-hot .cursor {
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-color: var(--line-hot);
  background: rgba(87,224,255,.08);
}
body.cursor-hot .cursor-dot { opacity: 0; }

/* ===================================================================
   NAV
=================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex; align-items: center; gap: 30px;
  padding: 20px var(--gut);
  transition: background .4s var(--ease), padding .4s var(--ease),
              border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5,7,13,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
  padding-block: 13px;
}
.nav__brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.nav__brand img { width: 26px; height: 26px; }
.nav__brand span {
  font-family: var(--f-display); font-weight: 600;
  font-size: 16.5px; letter-spacing: -0.015em;
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  position: relative;
  font-size: 14px; color: var(--dim);
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--secondary);
  transition: width .35s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--paper); }
.nav__links a:hover::after, .nav__links a.is-current::after { width: 100%; }

.nav__prog {
  position: absolute; left: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  box-shadow: 0 0 12px rgba(87,224,255,.5);
}

.burger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 9px; right: 9px; height: 1.5px;
  background: var(--paper); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ===================================================================
   BUTTONS
=================================================================== */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  font-family: var(--f-display);
  font-weight: 500; font-size: 14.5px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s var(--ease), color .3s var(--ease),
              transform .35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(96deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: -1;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { border-color: transparent; }
.btn:hover::before { opacity: 1; }
.btn i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--secondary);
  transition: background .3s, transform .35s var(--ease-out);
  flex: none;
}
.btn:hover i { background: #fff; transform: translateX(2px) scale(1.25); }

.btn--solid {
  --btn-bg: var(--primary);
  border-color: transparent;
}
.btn--solid::before { background: linear-gradient(96deg, var(--accent), var(--primary)); }
.btn--ghost { color: var(--dim); }
.btn--ghost:hover { color: var(--paper); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 13px;
  letter-spacing: .06em;
  color: var(--secondary);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { border-bottom-color: var(--secondary); gap: 14px; }

/* ===================================================================
   SCROLL REVEALS
=================================================================== */
[data-rise] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-rise].is-in { opacity: 1; transform: none; }

.lines span { display: block; overflow: hidden; }
.lines span > i {
  display: block; font-style: normal;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
/* The reveal animation above resets font-style to normal at higher
   specificity than the bare .edit rule can win back — every accented word
   in a heading lives inside this structure, so restore italic here once. */
.lines span > i.edit { font-style: italic; }
.lines.is-in span > i { transform: none; }

/* ===================================================================
   AMBIENT CANVAS
=================================================================== */
.motes {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

.page { position: relative; z-index: var(--z-base); }

/* ===================================================================
   HERO — the scroll-scrubbed film
=================================================================== */
.hero { position: relative; height: 620vh; }
.hero__stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--void);
}
.hero__media { position: absolute; inset: 0; }
.hero__poster, .hero__film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__poster { z-index: 1; }
.hero__film {
  z-index: 2; opacity: 0;
  transition: opacity .6s var(--ease);
}
.hero__film.is-painted { opacity: 1; }
.hero.no-film .hero__film { display: none; }
/* The scroll-chapters now carry the hero heading on every viewport, mobile
   included, so this <h1> stays in the DOM for SEO/accessibility but is never
   shown. */
.hero__mobile-title { display: none; }

.hero__vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 45%, transparent 38%, rgba(5,7,13,.62) 100%),
    linear-gradient(to bottom, rgba(5,7,13,.72) 0%, transparent 20%, transparent 62%, rgba(5,7,13,.9) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* chapters */
.chapters { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.chapter {
  position: absolute; left: 0; right: 0;
  top: 50%;
  padding-inline: var(--gut);
  text-align: center;
  opacity: 0;
  transform: translateY(-50%) translateY(22px);
  transition: opacity .55s var(--ease), transform .75s var(--ease-out), filter .55s var(--ease);
  filter: blur(5px);
}
.chapter.is-on { opacity: 1; transform: translateY(-50%); filter: none; }
.chapter__k {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--secondary); margin: 0 0 18px;
}
.chapter__t {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 16ch;
  text-shadow: 0 4px 60px rgba(5,7,13,.8);
}
.chapter--last { top: auto; bottom: 16%; transform: none; }
.chapter--last.is-on { transform: none; }
/* Pushed down so it clears the "Avalon Studio" title card baked into the
   brand film at this point in the scroll, instead of sitting on top of it. */
.chapter--low { top: 80%; }
.chapter__s {
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--dim);
  margin: 0;
  letter-spacing: .01em;
}

.hero__cue {
  position: absolute; z-index: 6;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--faint);
  transition: opacity .5s var(--ease);
}
.hero__cue i {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
  animation: cueRun 2s var(--ease-io) infinite;
}
@keyframes cueRun {
  0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .35; }
  50%     { transform: scaleY(1);  transform-origin: top; opacity: 1; }
}
.hero__cue.is-gone { opacity: 0; }

/* film load ring */
.hero__load {
  position: absolute; inset: 0; z-index: 7;
  display: grid; place-items: center;
  background: var(--void);
  transition: opacity .6s var(--ease);
}
.hero__load.is-gone { opacity: 0; pointer-events: none; }
.ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.14);
  border-top-color: var(--secondary);
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================================
   SECTION SHELL
=================================================================== */
.sec { position: relative; padding-block: clamp(96px, 13vw, 176px); }
.sec__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ===================================================================
   STATEMENT
=================================================================== */
.statement { position: relative; overflow: hidden; text-align: center; }
.statement__bg {
  position: absolute; inset: -14% 0;
  background-size: cover; background-position: center;
  opacity: .2;
  will-change: transform;
}
.statement::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(78% 62% at 50% 50%, rgba(5,7,13,.28), var(--void) 76%);
}
.statement .wrap { position: relative; z-index: 1; }
.statement__t {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 5.6vw, 72px);
  line-height: 1.07;
  letter-spacing: -0.032em;
  margin: 0 auto 30px;
  max-width: 20ch;
}
.statement__p {
  max-width: 54ch; margin-inline: auto; color: var(--dim);
  font-size: 1.1em;
}

/* ===================================================================
   SERVICES
=================================================================== */
.svc__grid {
  border-top: 1px solid var(--line);
}
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) minmax(0,1.05fr) 54px;
  gap: 28px;
  align-items: start;
  padding: 32px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .45s var(--ease), padding-inline .45s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width .65s var(--ease-out);
}
.svc:hover::before, .svc.is-open::before { width: 100%; }
.svc:hover, .svc.is-open { background: linear-gradient(90deg, rgba(51,85,255,.07), transparent 64%); padding-inline: 18px 8px; }

.svc__n {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--faint); letter-spacing: .12em;
  padding-top: 8px;
  transition: color .35s var(--ease);
}
.svc:hover .svc__n, .svc.is-open .svc__n { color: var(--secondary); }

.svc__name {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(21px, 2.5vw, 31px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0;
}
.svc__btn {
  display: flex; align-items: center; gap: 16px;
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; letter-spacing: inherit; color: inherit; text-align: left;
  cursor: pointer; border-radius: 6px;
}
.svc__btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 6px; }
.svc__ico {
  width: 30px; height: 30px; flex: none;
  color: var(--accent);
  transition: color .35s var(--ease), transform .55s var(--ease-out);
}
.svc:hover .svc__ico, .svc.is-open .svc__ico { color: var(--secondary); transform: rotate(-8deg) scale(1.08); }
.svc__ico svg { width: 100%; height: 100%; }

.svc__body { padding-top: 6px; }
.svc__d { margin: 0; color: var(--dim); font-size: 16.5px; line-height: 1.6; }
.svc__more {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}
.svc.is-open .svc__more { grid-template-rows: 1fr; }
.svc__more > div { overflow: hidden; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.svc__tags span {
  font-family: var(--f-mono); font-size: 12.5px;
  letter-spacing: .07em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
  background: rgba(255,255,255,.02);
}
.svc__x {
  justify-self: end; align-self: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--dim);
  transition: border-color .35s, color .35s, transform .45s var(--ease-out);
}
.svc__x::before, .svc__x::after {
  content: ""; position: absolute;
  background: currentColor;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.svc__x::before { width: 10px; height: 1px; }
.svc__x::after  { width: 1px; height: 10px; }
.svc.is-open .svc__x { border-color: var(--line-hot); color: var(--secondary); transform: rotate(90deg); }
.svc.is-open .svc__x::after { opacity: 0; }

/* ===================================================================
   CREDITS MARQUEE
=================================================================== */
.creds { padding-block: clamp(56px, 7vw, 82px); border-block: 1px solid var(--line-soft); overflow: hidden; }
.creds__lead {
  text-align: center; color: var(--faint);
  font-family: var(--f-mono); font-size: 12.5px;
  letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 34px;
}
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__row { display: flex; flex: none; gap: 52px; padding-right: 52px; animation: slide 44s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.marquee__row span {
  font-family: var(--f-display);
  font-weight: 500; font-size: clamp(19px, 2.3vw, 30px);
  letter-spacing: -0.01em;
  color: var(--faint);
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.marquee__row span:hover { color: var(--paper); }

/* ===================================================================
   WORK
=================================================================== */
.work__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.wk { grid-column: span 2; position: relative; }
.wk--wide { grid-column: span 3; }
.wk--hero { grid-column: span 6; }

.wk__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--raise);
  border: 1px solid var(--line-soft);
  aspect-ratio: 16/9;
  transition: border-color .4s var(--ease), transform .55s var(--ease-out);
}
.wk--hero .wk__frame { aspect-ratio: 21/9; }
.wk:hover .wk__frame { border-color: var(--line-hot); transform: translateY(-3px); }
.wk__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out), filter .5s var(--ease);
}
.wk:hover .wk__frame img { transform: scale(1.045); filter: brightness(.62) saturate(1.05); }
.wk__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.wk__play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(5,7,13,.34);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; transform: scale(.86);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out),
              background .35s, border-color .35s;
}
.wk:hover .wk__play { opacity: 1; transform: none; }
.wk__play:focus-visible { opacity: 1; transform: none; }
.wk__play svg { width: 16px; height: 16px; margin-left: 2px; }
.wk__play:hover { background: rgba(51,85,255,.45); border-color: var(--secondary); }

.wk__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 2px 0; }
.wk__t { font-family: var(--f-display); font-weight: 500; font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.wk__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; flex: none; }
.work__more { margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }

/* ===================================================================
   PROCESS
=================================================================== */
.proc { position: relative; }
.proc .sec__head { margin-inline: auto; text-align: center; }
.proc .sec__head .eyebrow { justify-content: center; }
.proc__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding-top: 54px; }
.proc__rail { position: absolute; top: 5px; left: 0; width: 100%; height: 2px; overflow: visible; }
.proc__rail line { stroke: var(--line); stroke-width: 2; }
.proc__rail line.hot {
  stroke: url(#railGrad); stroke-width: 2;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.proc.is-lit .proc__rail line.hot { stroke-dashoffset: 0; }

.step {
  position: relative; text-align: center;
  padding: 22px 18px;
  margin: -22px -18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover {
  transform: scale(1.045);
  border-color: rgba(87,224,255,.35);
  background: rgba(87,224,255,.045);
  box-shadow: 0 20px 44px rgba(5,7,13,.4);
}
.step__dot {
  position: absolute; top: -53px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--faint);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
  transition-delay: var(--d, 0ms);
}
.proc.is-lit .step__dot { border-color: var(--secondary); box-shadow: 0 0 0 5px rgba(87,224,255,.09); }
.step__n { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; color: var(--accent); display: block; margin-bottom: 14px; }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: 22.5px; margin: 0 0 10px; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--dim); font-size: 16px; line-height: 1.6; }

/* ===================================================================
   FOUNDER TEASER
=================================================================== */
.fnd { position: relative; overflow: hidden; }
.fnd__inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 84px); align-items: center;
}
.fnd__card {
  position: relative;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: var(--raise);
}
.fnd__card img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.fnd__card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,7,13,.94), transparent 62%);
}
.fnd__plate {
  position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px;
}
/* Was Bodoni Moda italic (--f-edit) — its fine hairline strokes read poorly
   at this size over a photo/video background. Outfit italic keeps the same
   accented, editorial feel with far more legible strokes. */
.fnd__nm { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin: 0 0 8px; }
.fnd__rl { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); margin: 0; }

.fnd__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin: 34px 0 34px; }
.fact__n { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; margin: 0 0 4px; }
.fact__l { font-family: var(--f-mono); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin: 0; }

/* ===================================================================
   CONTACT
=================================================================== */
.cta { position: relative; overflow: hidden; }
.cta__bg {
  position: absolute; inset: -12% 0;
  background-size: cover; background-position: center 34%;
  opacity: .26; will-change: transform;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--void), rgba(5,7,13,.44) 42%, var(--void));
}
.cta .wrap { position: relative; z-index: 1; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--f-mono); font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--paper);
  font-family: var(--f-body); font-size: 15.5px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--secondary);
  background: rgba(87,224,255,.05);
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--raise); color: var(--paper); }
.form__note { font-size: 13px; color: var(--faint); margin: 2px 0 0; }
.form__note a { color: var(--secondary); }
.form__ok {
  font-size: 14.5px; color: var(--secondary);
  border: 1px solid var(--line-hot); border-radius: 10px;
  padding: 14px 16px; margin: 0;
  background: rgba(87,224,255,.05);
}

.reach { display: grid; gap: 22px; }
.reach__row { display: grid; gap: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.reach__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.reach__v { font-size: 16.5px; }
.reach__v a { transition: color .3s var(--ease); }
.reach__v a:hover { color: var(--secondary); }

/* ===================================================================
   FOOTER
=================================================================== */
.foot { border-top: 1px solid var(--line); padding-top: 58px; padding-bottom: 26px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.foot__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot__brand img { width: 30px; height: 30px; }
.foot__brand span { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.foot p { margin: 0; color: var(--faint); font-size: 15px; line-height: 1.65; }
.foot__col h3 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; font-weight: 400; }
.foot__col a { display: block; font-size: 15.5px; color: var(--dim); padding: 5px 0; transition: color .25s var(--ease); }
.foot__col a:hover { color: var(--paper); }
.foot__base {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  border-top: 1px solid var(--line-soft); padding-top: 22px;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--faint);
  letter-spacing: .05em;
}

/* ===================================================================
   LIGHTBOX
=================================================================== */
.lb {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center;
  background: rgba(3,4,9,.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: var(--gut);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__box { width: min(1120px, 100%); aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; transform: scale(.97); transition: transform .45s var(--ease-out); }
.lb.is-open .lb__box { transform: none; }
.lb__box iframe { width: 100%; height: 100%; border: 0; }
.lb__x {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--paper); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.lb__x:hover { border-color: var(--secondary); background: rgba(87,224,255,.1); transform: rotate(90deg); }

/* ===================================================================
   FOUNDER PAGE
=================================================================== */
.fhero { position: relative; padding-top: clamp(140px, 18vw, 210px); padding-bottom: clamp(60px, 8vw, 96px); overflow: hidden; }
.fhero__glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 130vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(51,85,255,.2), rgba(139,108,245,.07) 42%, transparent 66%);
  pointer-events: none;
}
.fhero .wrap { position: relative; z-index: 1; }
.fhero__name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(36px, 7.15vw, 99px);
  line-height: .96; letter-spacing: -0.04em;
  margin: 0 0 22px;
}
/* Heavier than the shared .edit default so the surname matches the weight
   of "Saif Ali" beside it at this page's huge hero scale. */
.fhero__name .edit { font-weight: 600; }
/* The reveal wrapper below clips to exactly 100% width for the slide-up
   mask effect; an italic final letter (the "h" in "Shaikh") can render
   slightly past its own logical advance width and get clipped by that mask.
   A little extra box width, invisible against the dark background, gives it
   room without touching the actual text layout. */
.fhero__name > span { width: calc(100% + 0.15em); }
.fhero__role {
  font-family: var(--f-mono); font-size: clamp(12.5px, 1.5vw, 14.5px);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--secondary); margin: 0 0 30px;
}
.fhero__sum { max-width: 68ch; color: var(--dim); font-size: clamp(16.5px, 1.8vw, 19.5px); line-height: 1.72; margin: 0 0 34px; }
.fhero__acts { display: flex; flex-wrap: wrap; gap: 14px; }

.slab { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.slab + .slab { margin-top: clamp(52px, 7vw, 88px); }
.slab__k { position: sticky; top: 108px; }
.slab__k h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; margin: 0 0 8px; }
.slab__k p { margin: 0; color: var(--faint); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }

.role { padding: 26px 0; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.role__t { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2.3vw, 26px); margin: 0; letter-spacing: -0.015em; }
.role__co { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; color: var(--secondary); }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.role li { position: relative; padding-left: 20px; color: var(--dim); font-size: 16.5px; line-height: 1.6; }
.role li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: .75;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .05em;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--dim);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--line-hot); color: var(--paper); transform: translateY(-2px); }

.skillset + .skillset { margin-top: 28px; }
.skillset h3 { font-family: var(--f-display); font-weight: 500; font-size: 17.5px; margin: 0 0 13px; color: var(--paper); }

.edu { display: grid; gap: 14px; }
.edu__row { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg, rgba(51,85,255,.05), transparent 62%); }
.edu__t { font-family: var(--f-display); font-weight: 500; font-size: 18.5px; margin: 0 0 5px; }
.edu__m { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .09em; color: var(--faint); margin: 0; }

/* ===================================================================
   WEBSITES PAGE — live client sites in browser windows
=================================================================== */
.shero .fhero__name { font-size: clamp(38px, 7.4vw, 104px); }
.shero .fhero__name > span { width: calc(100% + 0.15em); }

.sindex {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px;
}
.sindex a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 14.5px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
  color: var(--dim);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease-out);
}
.sindex a span { font-family: var(--f-mono); font-size: 11.5px; color: var(--secondary); letter-spacing: .06em; }
.sindex a em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--highlight); opacity: .85; }
.sindex a:hover { border-color: var(--line-hot); color: var(--paper); transform: translateY(-2px); }

.snote { margin: 0; color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 10px 4px; border-radius: 999px;
  vertical-align: middle; white-space: nowrap;
}
.tag--concept { color: var(--highlight); border: 1px solid rgba(242,213,154,.34); background: rgba(242,213,154,.06); }

.sites { padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
/* the colour pools are wider than a phone screen; clip them sideways only */
@supports (overflow: clip) { .sites { overflow: visible; overflow-x: clip; } }
.site { position: relative; }
.site + .site { margin-top: clamp(110px, 15vw, 200px); }

/* a soft pool of each client's own colour behind its window */
.site::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(1200px, 120vw); height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%);
  opacity: .55; pointer-events: none; filter: blur(10px);
}

.site__head {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: end; gap: clamp(16px, 2.6vw, 32px);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.site__n {
  margin: 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em;
  color: var(--secondary); padding-bottom: 10px;
  border-bottom: 1px solid var(--line-hot);
}
.site__name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.03em;
  margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
.site__kind { margin: 0; color: var(--dim); font-size: clamp(15px, 1.5vw, 17px); }
.site__visit svg { width: 13px; height: 13px; position: relative; z-index: 1; }

.site__foot {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px); align-items: start;
  margin-top: clamp(24px, 3vw, 36px);
}
.site__desc { margin: 0; color: var(--dim); font-size: clamp(15.5px, 1.5vw, 17.5px); line-height: 1.7; max-width: 60ch; }
.site__chips { list-style: none; margin: 0; padding: 0; justify-content: flex-end; }

/* ---------- the browser window ---------- */
.stage {
  --p: 1;
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--raise-2), var(--raise));
  box-shadow:
    0 40px 90px -40px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.02) inset,
    0 30px 120px -60px color-mix(in srgb, var(--tint) 55%, transparent);
  overflow: hidden;
  transform-origin: 50% 100%;
  transform: perspective(1800px) rotateX(calc((1 - var(--p)) * 9deg)) scale(calc(.94 + var(--p) * .06));
  opacity: calc(.35 + var(--p) * .65);
  will-change: transform;
  transition: border-color .4s var(--ease);
}
.stage.is-live { border-color: var(--line-hot); }

.stage__bar {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center; gap: 14px;
  height: 46px; padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8,11,20,.72);
}
.stage__dots { display: flex; gap: 7px; }
.stage__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.stage__dots i:first-child { background: color-mix(in srgb, var(--tint) 70%, #222); }
.stage__url {
  justify-self: center; max-width: 100%;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--faint);
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stage__url b { font-weight: 400; color: var(--dim); }
.stage__modes { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.stage__mode {
  width: 34px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--faint);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.stage__mode svg { width: 17px; height: 17px; }
.stage__mode:hover { color: var(--paper); }
.stage__mode[aria-pressed="true"] { background: rgba(87,224,255,.12); color: var(--secondary); }
.stage__open {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-soft); color: var(--dim);
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.stage__open svg { width: 13px; height: 13px; }
.stage__open:hover { border-color: var(--line-hot); color: var(--paper); background: rgba(87,224,255,.08); }

.stage__view {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 50% 110%, color-mix(in srgb, var(--tint) 18%, transparent), transparent 60%),
    var(--ink);
}
.stage__screen { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.stage__screen iframe {
  display: block; border: 0; width: 100%; height: 100%;
  background: #fff; pointer-events: none;
}
.stage.is-live .stage__screen iframe { pointer-events: auto; }

/* phone mode: the same live site inside a handset */
.stage.is-phone .stage__screen {
  border-radius: 46px; overflow: hidden;
  box-shadow: 0 0 0 10px #0b0e17, 0 0 0 11px rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.9);
}

.stage__load {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  text-align: center; pointer-events: none;
  background: inherit;
  transition: opacity .6s var(--ease), visibility .6s;
}
.stage.is-ready .stage__load { opacity: 0; visibility: hidden; }
.stage__ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.1); border-top-color: var(--secondary);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage__lname { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.02em; }
.stage__note { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.stage.is-offline .stage__ring { display: none; }
.stage.is-offline .stage__note { max-width: 34ch; line-height: 1.7; text-transform: none; letter-spacing: .02em; font-size: 13px; }

/* the "click to explore" veil keeps page scrolling smooth until the visitor opts in */
.stage__cover {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: end center; padding-bottom: clamp(18px, 3vw, 30px);
  border: 0; background: transparent; cursor: pointer; color: var(--paper);
}
.stage__pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 14px;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(5,7,13,.72); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease-out), border-color .3s var(--ease);
}
.stage__pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
.stage.is-ready .stage__pill { opacity: 1; transform: none; }
.stage__cover:hover .stage__pill, .stage__cover:focus-visible .stage__pill { border-color: var(--line-hot); }
.stage.is-live .stage__cover { display: none; }

.stage__done {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  display: none;
  font-family: var(--f-display); font-weight: 500; font-size: 13.5px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  color: var(--paper); background: rgba(5,7,13,.82); border: 1px solid var(--line-hot);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.stage.is-live .stage__done { display: block; }

/* the custom cursor can't follow the mouse inside another page, so it steps aside */
body.cursor-away .cursor, body.cursor-away .cursor-dot { opacity: 0 !important; }

/* five nav links: tighten the bar on tablets so nothing wraps */
.nav__brand span, .nav .btn { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1020px) {
  .nav { gap: 20px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13.5px; }
  .nav .btn { padding: 11px 18px; font-size: 13.5px; }
}
@media (min-width: 721px) and (max-width: 860px) {
  .nav__brand span { display: none; }
}

@media (max-width: 860px) {
  .site__foot { grid-template-columns: 1fr; }
  .site__chips { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .site__head { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .site__n { justify-self: start; padding-bottom: 6px; }
  .site__visit { justify-self: start; }
  .stage { border-radius: 14px; }
  .stage__bar { grid-template-columns: minmax(0,1fr) auto auto; height: 44px; padding: 0 8px 0 12px; gap: 8px; }
  .stage__dots { display: none; }
  .stage__url { justify-self: start; font-size: 11px; padding: 5px 12px; }
  .stage.is-phone .stage__view { aspect-ratio: auto; height: min(76svh, 720px); }
  .stage.is-phone .stage__screen { border-radius: 30px; box-shadow: 0 0 0 7px #0b0e17, 0 0 0 8px rgba(255,255,255,.14); }
}

/* ===================================================================
   REDUCED MOTION
=================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rise] { opacity: 1; transform: none; }
  .lines span > i { transform: none; }
  .chapter { filter: none; }
  .motes { display: none; }
  .marquee__row { animation: none; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: 100svh; }
  .hero__film { display: none; }
  .stage { transform: none; opacity: 1; }
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 1080px) {
  .work__grid { grid-template-columns: repeat(4, 1fr); }
  .wk { grid-column: span 2; }
  .wk--wide { grid-column: span 2; }
  .wk--hero { grid-column: span 4; }
  .proc__track { grid-template-columns: 1fr 1fr; row-gap: 46px; }
  .proc__rail { display: none; }
  .step__dot { position: static; margin-bottom: 16px; }
  .fnd__inner { grid-template-columns: 1fr; }
  .slab { grid-template-columns: 1fr; }
  .slab__k { position: static; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .cta__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 46px minmax(0,1fr) 34px; gap: 16px; }
  .svc__body { grid-column: 2 / -1; padding-top: 12px; }
  .svc__x { grid-column: 3; grid-row: 1; }
}

@media (max-width: 720px) {
  .nav__links, .nav .btn { display: none; }
  .burger { display: block; }
  /* No backdrop-filter here: it would make .nav the containing block for its
     position:fixed children (.nav__links, .btn below), so their top/bottom
     values resolve against this thin header bar instead of the viewport —
     squashing the full-screen menu into a sliver near the top. */
  .nav.is-open { background: rgba(5,7,13,.96); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; left: 0; right: 0; top: 62px; bottom: 0;
    padding: 16px var(--gut) 40px;
    background: var(--void);
  }
  .nav.is-open .nav__links a {
    font-family: var(--f-display); font-size: 26px; font-weight: 500;
    color: var(--paper); padding: 17px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.is-open .nav__links a::after { display: none; }
  .nav.is-open .btn { display: inline-flex; position: fixed; left: var(--gut); right: var(--gut); bottom: 34px; justify-content: center; }

  .motes { display: none; }
  .cursor, .cursor-dot { display: none; }

  .work__grid { grid-template-columns: 1fr; gap: 26px; }
  .wk, .wk--wide, .wk--hero { grid-column: span 1; }
  .wk--hero .wk__frame { aspect-ratio: 16/9; }
  .wk__play { opacity: 1; transform: none; width: 54px; height: 54px; }

  .proc__track { grid-template-columns: 1fr; }
  .fnd__facts { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__base { flex-direction: column; }
}

