/* =========================================================
   Vishwa Vasu — Video Producer portfolio
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0a0a0b;
  --bg-2: #101013;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(237, 232, 224, 0.12);
  --line-strong: rgba(237, 232, 224, 0.24);
  --text: #ede8e0;
  --muted: #a29d94;
  --dim: #6f6b65;
  --accent: #ff4a3d;   /* tally-light red */
  --amber: #f2b45a;    /* tungsten */

  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

body.no-scroll, body.menu-open { overflow: hidden; }

/* Film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, -6%); }
  40% { transform: translate(5%, 3%); }
  60% { transform: translate(-2%, 7%); }
  80% { transform: translate(6%, -3%); }
}

/* ---------- Shared type ---------- */
.eyebrow,
.section-label,
.mini-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label {
  color: var(--accent);
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(46px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin-top: 16px;
}

.section-title em,
.contact-title em,
.intro-lead em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--amber);
}
.section-title em,
.contact-title em { font-size: 1.08em; }

.section-intro {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
}

.section { padding: clamp(96px, 12vw, 168px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(44px, 6vw, 80px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

.btn-arrow {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.play-dot {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.play-dot svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 74, 61, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 74, 61, 0.04); } }

.nav-links { display: flex; gap: 36px; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px;
  height: 1.5px; background: var(--text);
  transition: transform 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu li a {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(44px, 13vw, 76px);
  line-height: 1.1;
  padding: 2px 0;
}
.mobile-menu-email {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--amber);
}

/* ---------- Hero: lens assembles on scroll ---------- */
/* Default values = the finished lens. That is what you see with JS off or
   with reduced motion. js/main.js animates these while you scroll. */
.lens-hero {
  position: relative;
  isolation: isolate;
  background: #0b0a0a;
}
.lens-stage {
  --D: min(62svh, 40vw, 640px);                     /* lens diameter */
  --cy: calc(50% + var(--nav-h) / 2 - 6px);         /* lens centre */
  --gap: clamp(20px, 2.6vw, 44px);
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));  /* lines up with the nav */
  --zoom: 1; --e1: 1; --e2: 1; --e3: 1; --e4: 1;
  --open: 1; --fin: 1; --cue: 0; --vb: 0px;
  --spin2: 56deg; --spin3: 0deg; --rx: 0deg; --ry: 0deg;
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.lens-hero.is-anim { height: 440vh; }
.lens-hero.is-anim .lens-stage { position: sticky; top: 0; }

.hero-bg { position: absolute; inset: 0; z-index: -1; background: #0b0a0a; }
.hero-light {
  position: absolute; inset: -20%;
  background:
    radial-gradient(30% 40% at 50% 50%, rgba(242, 180, 90, 0.20), transparent 70%),
    radial-gradient(32% 42% at 14% 78%, rgba(255, 74, 61, 0.16), transparent 70%),
    radial-gradient(40% 50% at 88% 18%, rgba(70, 105, 170, 0.20), transparent 70%);
  filter: blur(24px);
  animation: drift 20s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.6) 0%, transparent 24%, transparent 70%, rgba(10, 10, 11, 0.85) 100%),
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

/* Top row: eyebrow + camera HUD */
.lens-top {
  position: absolute; z-index: 3;
  top: calc(var(--nav-h) + 18px); left: var(--edge); right: var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted);
  margin: 0;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.lens-hud {
  display: flex; align-items: center; gap: 16px;
  margin: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lens-rec { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.lens-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, start) infinite; }
.hud-f { min-width: 5ch; color: var(--amber); }
@keyframes blink { to { visibility: hidden; } }

/* Name either side of the lens */
.lens-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.005em;
  font-size: clamp(48px, calc(((100vw - var(--D)) / 2 - var(--gutter) - var(--gap)) / 2.72), 184px);
}
.lt {
  position: absolute; z-index: 3;
  top: var(--cy);
  translate: 0 -50%;
  white-space: nowrap;
}
.lt-1 { right: calc(50% + var(--D) / 2 + var(--gap)); transform: translateX(calc(var(--fin) * -1vw)); }
.lt-2 {
  left: calc(50% + var(--D) / 2 + var(--gap));
  transform: translateX(calc(var(--fin) * 1vw));
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

/* Lens */
.lens-cell {
  position: absolute; z-index: 1;
  left: 50%; top: var(--cy);
  width: var(--D); height: var(--D);
  translate: -50% -50%;
}
.lens-wrap { position: relative; width: 100%; height: 100%; perspective: 1600px; }
.lens-wrap::before {               /* light spilling from behind the lens */
  content: "";
  position: absolute; inset: -32%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 180, 90, 0.30), rgba(255, 74, 61, 0.10) 48%, transparent 76%);
  opacity: calc(0.3 + var(--open) * 0.7);
  pointer-events: none;
}
.lens {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: scale(var(--zoom)) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}
.lens-layer { position: absolute; inset: 0; border-radius: 50%; }

/* Element 0: glass + iris */
.lens-core { transform: translateZ(-26px); }
.core-in {
  position: absolute; inset: 23.8%;
  border-radius: 50%;
  overflow: hidden;
  background: #050506;
  box-shadow: 0 0 0 2px #030304, 0 0 0 3px rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.lens-media { position: absolute; inset: 0; }
.lens-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.lens-stage.is-blur .lens-video { filter: blur(var(--vb)); }
.lens-iris { position: absolute; inset: 0; width: 100%; height: 100%; }
.iris-seams { fill: none; stroke: rgba(0, 0, 0, 0.9); stroke-width: 1.3; }
.iris-edge { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 0.7; }

.lens-glass, .lens-glass::before, .lens-glass::after, .lens-glint {
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.lens-glass {
  background: radial-gradient(circle, transparent 52%, rgba(0, 0, 0, 0.5) 84%, rgba(0, 0, 0, 0.85) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.lens-glass::before {              /* coatings + internal reflections */
  content: "";
  mix-blend-mode: screen;
  background:
    radial-gradient(40% 26% at 33% 25%, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.05) 60%, transparent 76%),
    radial-gradient(circle at 70% 74%, rgba(150, 95, 255, 0.34), transparent 32%),
    radial-gradient(circle at 25% 72%, rgba(70, 230, 170, 0.16), transparent 28%),
    radial-gradient(circle at 77% 23%, rgba(255, 170, 80, 0.16), transparent 26%),
    radial-gradient(circle, transparent 33%, rgba(255, 255, 255, 0.06) 34%, transparent 36.5%, transparent 61%, rgba(170, 140, 255, 0.09) 62.5%, transparent 65%, transparent 80%, rgba(255, 255, 255, 0.05) 81.5%, transparent 84%);
}
.lens-glass::after {               /* crescent rim highlight */
  content: "";
  box-shadow: inset 5px 7px 0 -3px rgba(255, 255, 255, 0.2), inset -4px -6px 0 -3px rgba(150, 120, 255, 0.14);
}
.lens-glint {
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%);
  background-size: 300% 100%;
  background-position: 100% 0;
}
@keyframes glint {
  0% { opacity: 1; background-position: 100% 0; }
  100% { opacity: 1; background-position: 0% 0; }
}
@keyframes glint2 {
  0% { opacity: 1; background-position: 100% 0; }
  100% { opacity: 1; background-position: 0% 0; }
}

/* Elements 1-4: rings. --e goes 0 → 1 as each one flies in from the camera. */
.lens-ring {
  --e: 1;
  opacity: clamp(0, calc(var(--e) * 3), 1);
  transform: translateZ(var(--z, 0px)) scale(calc(1 + (1 - var(--e)) * 1.9)) rotate(calc((1 - var(--e)) * var(--turn, -60deg)));
  will-change: transform, opacity;
}
.lens-hero.is-anim .lens-ring:not(.locked) { filter: blur(calc((1 - var(--e)) * 7px)); }
.lens-ring.is-off { visibility: hidden; }
.ring-1 { --e: var(--e1); --z: 0px;  --turn: -70deg; --ring-inset: 20%; }
.ring-2 { --e: var(--e2); --z: 10px; --turn: 60deg;  --ring-inset: 14.8%; }
.ring-3 { --e: var(--e3); --z: 20px; --turn: -50deg; --ring-inset: 7.2%; }
.ring-4 { --e: var(--e4); --z: 32px; --turn: 40deg;  --ring-inset: 0%; }

.ring-body, .ring-marks, .ring-shade {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
}
.ring-body {
  -webkit-mask: radial-gradient(closest-side, transparent calc(var(--ri) - 0.35%), #000 var(--ri), #000 calc(var(--ro) - 0.35%), transparent var(--ro));
          mask: radial-gradient(closest-side, transparent calc(var(--ri) - 0.35%), #000 var(--ri), #000 calc(var(--ro) - 0.35%), transparent var(--ro));
}
.ring-marks { overflow: visible; }
.ring-2 .ring-marks { transform: rotate(var(--spin2)); }
.ring-3 .ring-marks { transform: rotate(var(--spin3)); }

.ring-1 .ring-body {
  --ri: 50.8%; --ro: 60%;
  background:
    conic-gradient(from 270deg, transparent, rgba(255, 255, 255, 0.16) 45deg, transparent 95deg, transparent 180deg, rgba(255, 255, 255, 0.07) 225deg, transparent 275deg),
    radial-gradient(closest-side, #000 50.8%, #000 51.4%, #34343b 52.2%, #16161a 53.4%, #0e0e11 56.6%, #27272e 58%, #050506 58.6%);
}
.ring-2 .ring-body {
  --ri: 58.4%; --ro: 70.4%;
  background:
    conic-gradient(from 270deg, transparent, rgba(255, 255, 255, 0.14) 45deg, transparent 100deg, transparent 180deg, rgba(255, 255, 255, 0.06) 225deg, transparent 280deg),
    radial-gradient(closest-side, #000 58.4%, #000 59%, #3a3a42 59.8%, #1f1f24 61%, #19191d 66%, #2d2d34 67.8%, #060607 68.8%);
}
.ring-3 .ring-body {
  --ri: 68.8%; --ro: 85.6%;
  background:
    conic-gradient(from 270deg, transparent, rgba(255, 255, 255, 0.13) 45deg, transparent 100deg, transparent 180deg, rgba(255, 255, 255, 0.05) 225deg, transparent 280deg),
    radial-gradient(closest-side, #000 68.8%, #000 69.4%, #35353c 70.2%, #1c1c21 71.4%, #18181c 75.2%, #050506 76.2%, #0c0c0f 76.8%, #0c0c0f 83%, #25252b 83.6%, #050506 84.2%);
}
.ring-4 .ring-body {
  --ri: 84%; --ro: 100%;
  background:
    conic-gradient(from 270deg, transparent, rgba(255, 255, 255, 0.12) 45deg, transparent 100deg, transparent 180deg, rgba(255, 255, 255, 0.05) 225deg, transparent 280deg),
    radial-gradient(closest-side, #000 84%, #000 84.6%, #2f2f36 85.4%, #141417 86.6%, #0f0f12 94%, #1f1f25 96.4%, #3d3d45 98.2%, #0b0b0d 99.4%, #000 100%);
}
.ring-shade {
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 0 70px -12px rgba(242, 180, 90, 0.22);
}

/* Lock pulse when a ring clicks into place */
.lens-ring::after {
  content: "";
  position: absolute; inset: var(--ring-inset);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.lens-ring.pulse::after { animation: lock-pulse 0.9s var(--ease); }
@keyframes lock-pulse {
  0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 1.5px rgba(242, 180, 90, 0.95), 0 0 34px rgba(242, 180, 90, 0.55); }
  100% { opacity: 0; transform: scale(1.07); box-shadow: 0 0 0 1.5px rgba(242, 180, 90, 0), 0 0 34px rgba(242, 180, 90, 0); }
}

/* Engravings */
.mk { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 3.2px; fill: rgba(237, 232, 224, 0.66); }
.mk-lg { font-size: 16px; letter-spacing: 5px; }
.mk-dim { fill: rgba(237, 232, 224, 0.4); }
.mk-index { fill: var(--accent); }
.mk-red { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.mk-knurl { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 8; stroke-dasharray: 0.5 0.5; }
.mk-ribs { fill: none; stroke: #1d1d22; stroke-width: 30; stroke-dasharray: 0.56 0.44; }
.mk-ribs-hi { fill: none; stroke: rgba(255, 255, 255, 0.075); stroke-width: 30; stroke-dasharray: 0.1 0.9; }
.mk-scale text {
  font-family: var(--font-mono); font-size: 17px;
  fill: rgba(237, 232, 224, 0.85);
  text-anchor: middle; dominant-baseline: central;
}
.mk-scale line { stroke: rgba(237, 232, 224, 0.55); stroke-width: 2; }
.mk-amber text { font-size: 15px; fill: var(--amber); }
.mk-amber line { stroke: rgba(242, 180, 90, 0.6); }

/* Play button in the glass */
.lens-play {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  width: clamp(78px, 17%, 108px); aspect-ratio: 1;
  translate: -50% -50%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.lens-play:hover { transform: scale(1.06); background: rgba(10, 10, 11, 0.62); }
.lens-play .play-dot { width: 38%; height: 38%; }
.lens-play .play-dot svg { width: 42%; height: 42%; }
.lens-play-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: spin 14s linear infinite;
}
.lens-play-ring text { font-family: var(--font-mono); font-size: 8.6px; fill: rgba(237, 232, 224, 0.8); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bottom: intro, step captions, progress, finished-state CTA */
.lens-bottom {
  position: absolute; z-index: 3;
  left: var(--edge); right: var(--edge);
  bottom: clamp(20px, 4.4svh, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}
.lens-intro, .lens-steps, .lens-progress, .lens-cue { display: none; }
.lens-intro, .lens-steps {
  grid-row: 1; grid-column: 1;
  max-width: min(400px, calc((100vw - var(--D)) / 2 - var(--gutter) - 24px));
}
.lens-intro {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  text-wrap: pretty;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.lens-steps { display: none; }
.lens-step {
  grid-area: 1 / 1;
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.lens-step.is-active { opacity: 1; transform: none; transition-delay: 0.08s; }
.ls-tag {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.ls-tag::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.ls-title {
  margin-top: 10px;
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 0.95;
}
.ls-text { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }

.lens-progress {
  grid-row: 1; grid-column: 2;
  justify-self: end;
  flex-direction: column; align-items: flex-end; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  opacity: calc(1 - var(--fin));
}
.lp-bars { display: flex; gap: 6px; }
.lp-bars i {
  --f: 0;
  position: relative;
  width: 34px; height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}
.lp-bars i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--f));
}

.lens-final {
  grid-row: 1; grid-column: 1 / -1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero-sub {
  max-width: min(440px, calc((100vw - var(--D)) / 2 - var(--gutter)));
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 2.7vw, 42px);
  line-height: 1.08;
}
.hero-sub em { color: var(--amber); }
.lens-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.hero-status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3fd68a; box-shadow: 0 0 0 4px rgba(63, 214, 138, 0.15);
}

.lens-cue {
  position: absolute; z-index: 3;
  left: 50%; bottom: 22px;
  translate: -50% 0;
  flex-direction: column; align-items: center; gap: 10px;
  margin: 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  opacity: var(--cue);
  pointer-events: none;
}
.lens-cue i {
  width: 1px; height: 38px;
  background: linear-gradient(var(--text), transparent);
  animation: cue-line 1.8s var(--ease) infinite;
}
@keyframes cue-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Animated mode (JS on, motion allowed) */
.is-anim .lens-intro, .is-anim .lens-steps { display: grid; }
.is-anim .lens-progress, .is-anim .lens-cue { display: flex; }
.is-anim .lens-stage:not(.is-intro) .lens-intro { opacity: 0; transform: translateY(-12px); }
.is-anim .lens-final {
  opacity: var(--fin);
  transform: translateY(calc((1 - var(--fin)) * 28px));
}
.is-anim .lens-play { opacity: var(--fin); }
.is-anim .lens-stage:not(.is-final) .hero-actions,
.is-anim .lens-stage:not(.is-final) .lens-play { visibility: hidden; }
.is-anim .lens-stage.is-final .lens-glint { animation: glint2 1.5s var(--ease) both; }

/* Entrance on page load: the first lens arrives, then the name opens around it */
.is-anim .core-in { animation: core-in 1.6s var(--ease) 0.15s backwards; }
.is-anim .lens-glint { animation: glint 1.6s var(--ease) 1.2s both; }
.is-anim .lt-1 { animation: wipe-l 1.3s var(--ease) 0.75s backwards; }
.is-anim .lt-2 { animation: wipe-r 1.3s var(--ease) 0.75s backwards; }
.is-anim .lens-top,
.is-anim .lens-bottom,
.is-anim .lens-cue { animation: rise 1s var(--ease) 1.15s backwards; }
@keyframes core-in {
  from { opacity: 0; transform: scale(0.3) rotate(-90deg); filter: blur(16px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes wipe-l {
  from { clip-path: inset(-20% -10% -20% 100%); }
  to { clip-path: inset(-20% -10% -20% -10%); }
}
@keyframes wipe-r {
  from { clip-path: inset(-20% 100% -20% -10%); }
  to { clip-path: inset(-20% -10% -20% -10%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Portrait screens: stack name / lens / captions */
@media (max-width: 760px), (max-aspect-ratio: 5/4) {
  .lens-stage {
    display: flex; flex-direction: column;
    padding: calc(var(--nav-h) + 14px) var(--gutter) 22px;
  }
  .lens-top { position: static; }
  .lens-title {
    margin-top: 16px;
    text-align: center;
    font-size: clamp(50px, 17.4vw, 132px);
  }
  .lt { position: static; display: inline-block; translate: none; transform: none; }
  .lens-cell {
    position: relative; left: auto; top: auto;
    translate: none;
    width: auto; height: auto;
    flex: 1 1 0; min-height: 0;
    margin: 10px 0 14px;
    display: grid; place-items: center;
    container-type: size;
  }
  .lens-wrap { width: min(84vw, 44svh); height: auto; aspect-ratio: 1; }
  @supports (width: 1cqmin) { .lens-wrap { width: min(100cqw, 100cqh, 560px); } }
  .lens-bottom {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .lens-progress {
    grid-row: 1; grid-column: 1;
    justify-self: stretch;
    flex-direction: row; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
  }
  .lens-intro, .lens-steps, .lens-final { grid-row: 2; grid-column: 1; max-width: 520px; }
  .lens-final { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-sub { max-width: 20ch; font-size: clamp(28px, 7.4vw, 40px); }
  .lens-cta, .hero-actions { align-items: flex-start; justify-content: flex-start; }
  .is-anim .lens-cue { display: none; }
}
@media (max-width: 560px) {
  .eb-more, .hud-tc, .hud-mm { display: none; }
  .eyebrow::before { width: 20px; }
  .ls-title { font-size: 32px; }
  .ls-text { font-size: 14.5px; }
  .lp-bars i { width: 22px; }
  .hero-actions .btn { height: 46px; padding: 0 18px; }
}
@media (max-height: 560px) and (min-aspect-ratio: 5/4) {
  .ls-text, .lens-intro, .hero-status { display: none !important; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-track span {
  display: flex; align-items: center; gap: 44px;
  padding-right: 44px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(237, 232, 224, 0.55); }
.marquee-track span::after {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro { padding: clamp(88px, 11vw, 150px) 0 0; }
.intro-lead {
  max-width: 22ch;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.intro-lead em { font-size: 1.1em; letter-spacing: -0.01em; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.fact {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px;
  padding: 28px 24px 0 0;
}
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dd {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}
.fact dt { color: var(--muted); font-size: 15px; max-width: 22ch; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.filter {
  height: 38px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 72px) clamp(20px, 3vw, 40px);
}
.work-card[hidden] { display: none; }
.work-card.just-shown { animation: rise 0.6s var(--ease) both; }

.work-thumb {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e0e11;
  text-align: left;
}
.thumb-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 75% at var(--x, 30%) var(--y, 40%), var(--c1), transparent 72%),
    radial-gradient(50% 70% at calc(100% - var(--x, 30%)) calc(100% - var(--y, 40%) + 20%), var(--c2), transparent 70%),
    linear-gradient(180deg, #141418, #09090b);
  transition: transform 1.2s var(--ease);
}
.thumb-art::after {
  /* faint horizon + scanlines for a "still frame" feel */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, 0.06) 58.3%, transparent 59%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}
.thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work-thumb::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 26%, transparent 70%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.work-thumb:hover .thumb-art,
.work-thumb:hover .thumb-img { transform: scale(1.05); }

.thumb-index,
.thumb-dur {
  position: absolute; top: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
}
.thumb-index { left: 18px; color: rgba(255, 255, 255, 0.85); }
.thumb-dur {
  right: 14px;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(10, 10, 11, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.thumb-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(237, 232, 224, 0.14);
  border: 1px solid rgba(237, 232, 224, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.35s, transform 0.45s var(--ease), background-color 0.3s;
}
.thumb-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.work-thumb:hover .thumb-play,
.work-thumb:focus-visible .thumb-play { opacity: 1; transform: scale(1); }
.work-thumb:hover .thumb-play { background: var(--accent); border-color: var(--accent); }
@media (hover: none) { .thumb-play { opacity: 1; transform: scale(0.9); } }

.work-meta {
  display: grid;
  gap: 8px;
  padding-top: 20px;
}
.work-tags {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.work-tags span:first-child { color: var(--accent); }
.work-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: 0.01em;
}
.work-desc { margin: 0; color: var(--muted); max-width: 58ch; }
.work-role { margin: 4px 0 0; font-size: 14px; color: var(--text); opacity: 0.9; }

/* Featured (case study) card */
.work-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(242, 180, 90, 0.08), transparent 70%),
    var(--bg-2);
}
.work-thumb.is-vertical { aspect-ratio: 9 / 16; max-height: 720px; }
.is-featured .work-meta { padding: 0 clamp(0px, 1vw, 16px) 0 0; gap: 14px; }
.is-featured .work-title { font-size: clamp(38px, 4.6vw, 68px); line-height: 0.95; }
.is-featured .work-desc { font-size: 17px; }

.work-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
  border-block: 1px solid var(--line);
}
.work-specs div { padding: 14px 12px 14px 0; }
.work-specs div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.work-specs dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.work-specs dd { margin-top: 4px; font-size: 15px; font-weight: 500; }

.filmstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.filmstrip li {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.filmstrip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.filmstrip li:hover img { transform: scale(1.06); }

.work-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}
.work-foot .work-role { margin: 0; }
.work-foot .btn { gap: 10px; padding-left: 8px; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }

.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.phase { padding: 32px 32px 8px; }
.phase:first-child { padding-left: 0; }
.phase:last-child { padding-right: 0; }
.phase + .phase { border-left: 1px solid var(--line); }
.phase-top {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.phase-num { color: var(--accent); }
.phase h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(36px, 3.4vw, 50px);
  line-height: 1;
  margin: 52px 0 14px;
}
.phase p { margin: 0 0 28px; color: var(--muted); }
.phase ul { border-top: 1px solid var(--line); }
.phase li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.phase li::before { content: "+"; font-family: var(--font-mono); color: var(--accent); }

.formats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin-top: clamp(56px, 6vw, 80px);
}
.formats-label,
.mini-label { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
}

/* ---------- Process ---------- */
.timeline {
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
  padding: 16px 0 32px;
  background: linear-gradient(var(--bg) 80%, transparent);
}
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  row-gap: 6px;
  padding: 12px 16px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}
.tl-ruler {
  grid-column: 2;
  display: flex; justify-content: space-between;
  height: 24px;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 25%) bottom / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2.5%) bottom / 100% 5px no-repeat;
}
.tl-ruler span:last-child { transform: translateX(4px); }
.tl-label {
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.tl-lane { display: flex; gap: 3px; height: 42px; min-width: 0; }
.tl-clip {
  flex: var(--w) 1 0;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  background: color-mix(in srgb, var(--clip) 22%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--clip) 45%, transparent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color 0.35s, box-shadow 0.35s;
}
.tl-clip.is-active {
  background: color-mix(in srgb, var(--clip) 55%, var(--surface-2));
  box-shadow: 0 0 0 1px var(--clip), 0 0 26px -6px var(--clip);
}
.tl-wave {
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 6px;
  overflow: hidden;
  border-radius: 6px;
  background: color-mix(in srgb, #3fb98a 12%, var(--surface-2));
  border: 1px solid color-mix(in srgb, #3fb98a 30%, transparent);
}
.tl-wave i { flex: 1 1 0; min-width: 1px; border-radius: 1px; background: #3fb98a; opacity: 0.7; }
.tl-head-area { grid-column: 2; grid-row: 1 / -1; position: relative; pointer-events: none; }
.tl-playhead {
  position: absolute; top: 2px; bottom: -6px;
  left: calc(var(--p, 0) * 100%);
  width: 2px; margin-left: -1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 74, 61, 0.65);
}
.tl-playhead::before {
  content: "";
  position: absolute; top: -4px; left: 50%;
  width: 12px; height: 14px;
  transform: translateX(-50%);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 16px 32px;
  align-items: baseline;
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); transition: color 0.4s; }
.step h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1;
  transition: color 0.4s;
}
.step p { margin: 0; color: var(--muted); max-width: 52ch; }
.js .step h3 { color: var(--dim); }
.js .step.is-active h3 { color: var(--text); }
.step.is-active .step-num { color: var(--accent); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: start;
}
.about-media { position: sticky; top: calc(var(--nav-h) + 32px); }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 30% 22%, rgba(242, 180, 90, 0.32), transparent 70%),
    radial-gradient(60% 60% at 82% 88%, rgba(255, 74, 61, 0.22), transparent 70%),
    var(--surface);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: clamp(120px, 16vw, 230px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(237, 232, 224, 0.35);
}
.portrait-caption {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.about-copy > p { color: var(--muted); max-width: 60ch; margin: 0 0 18px; }
.about-copy > .about-lead {
  margin: 32px 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.18;
  color: var(--text);
}
.toolkit { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.toolkit .mini-label { margin-bottom: 16px; }

/* Software with app logos (Adobe-style marks drawn in CSS) */
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tool {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tool:hover { border-color: var(--tm-fg); transform: translateY(-2px); }
.tool-mark {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--tm-bg);
  color: var(--tm-fg);
  font-family: var(--font-sans); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: -0.01em;
}
.tool:has(.is-ai), .tool-mark.is-ai { --tm-bg: #330000; --tm-fg: #ff9a00; }
.tool:has(.is-ae), .tool-mark.is-ae,
.tool:has(.is-pr), .tool-mark.is-pr { --tm-bg: #00005b; --tm-fg: #9999ff; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(58px, 8.4vw, 132px);
  line-height: 0.9;
  margin-top: 16px;
}
.contact-text { color: var(--muted); max-width: 46ch; margin: 28px 0 32px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.2;
  word-break: break-all;
  transition: color 0.3s, border-color 0.3s;
}
.contact-email svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.35s var(--ease); }
.contact-email:hover { color: var(--amber); border-color: var(--amber); }
.contact-email:hover svg { transform: translate(3px, -3px); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.socials a {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.socials a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a29d94' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { background: var(--surface); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 180, 90, 0.16);
}
.field.invalid input,
.field.invalid textarea { border-color: var(--accent); }
.form-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.form-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 32ch; }
.form-note.error { color: #ff8a80; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top, .footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px 32px;
  font-size: 14px; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a:hover, .back-top:hover { color: var(--text); }
.footer-mark {
  margin: 40px 0 28px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15vw;
  line-height: 0.82;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 232, 224, 0.32);
}
.footer-bottom { font-size: 13px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: var(--gutter);
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in 0.3s ease; }
.lightbox::backdrop {
  background: rgba(5, 5, 6, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@keyframes fade-in { from { opacity: 0; } }

.lightbox-inner {
  --arw: 16; --arh: 9;
  width: min(1200px, 100%, calc((100svh - 2 * var(--gutter) - 64px) * var(--arw) / var(--arh)));
}
.lightbox-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-bottom: 14px;
}
.lightbox-title {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.lightbox-close {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.25s, color 0.25s;
}
.lightbox-close:hover { background: var(--text); color: var(--bg); }
.lightbox-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lightbox-frame {
  aspect-ratio: var(--arw) / var(--arh);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.lightbox-frame iframe,
.lightbox-frame video { width: 100%; height: 100%; border: 0; }
.lightbox-empty {
  display: grid; place-content: center; gap: 10px;
  height: 100%;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 40%, rgba(242, 180, 90, 0.14), transparent 70%),
    var(--surface);
}
.lightbox-empty strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.lightbox-empty p { margin: 0; color: var(--muted); }
.lightbox-empty a { color: var(--amber); border-bottom: 1px solid currentColor; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .phases { grid-template-columns: 1fr; }
  .phase, .phase:first-child, .phase:last-child { padding: 32px 0; }
  .phase + .phase { border-left: 0; border-top: 1px solid var(--line); }
  .phase h3 { margin-top: 28px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { margin-top: 28px; border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }

  .work-card.is-featured { grid-template-columns: minmax(0, 1fr); }
  .work-thumb.is-vertical { aspect-ratio: 4 / 5; max-height: none; }
  .work-thumb.is-vertical .thumb-img { object-position: 50% 30%; }

  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { position: static; max-width: 460px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .step p { grid-column: 2; }
  .timeline { position: relative; top: auto; }
  .tl-clip { font-size: 9px; padding: 6px 4px; letter-spacing: 0; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .work-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .work-specs div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { padding-left: 0; border-left: 0; margin-top: 0; border-top: 1px solid var(--line); }
  .fact { padding-bottom: 24px; }
  .fact:nth-child(n + 3) { margin-top: 0; }
  .filmstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  body::after { display: none; }
}
