/* ═══════════════════════════════════════════════════════════════
   Another Studio — redesign
   Idea: the page is plain "reality" (monochrome, wireframe). Colour
   only ever appears in the augmented layer, which the visitor reveals
   with the pointer. --acc is therefore reserved for augmented states.
   ═══════════════════════════════════════════════════════════════ */

@property --r { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --acc { syntax: '<color>'; inherits: true; initial-value: #7bbbff; }
@property --acc-ink { syntax: '<color>'; inherits: true; initial-value: #04122b; }

:root {
  --bg: #060607;
  --bg-2: #0d0d0f;
  --ink: #f2fdff;
  --dim: rgba(242, 253, 255, .58);
  --faint: rgba(242, 253, 255, .34);
  --line: rgba(242, 253, 255, .13);
  --acc: #7bbbff;
  --acc-ink: #04122b;
  --violet: #7a5cff;
  --cyan: #22e3ff;

  /* Clash Display + General Sans are by Indian Type Foundry (Fontshare).
     They are loaded as static weights, not variable fonts, so outlined
     text draws one clean contour with no seams inside the letters. */
  --display: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  --body: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --stroke: max(1.5px, .014em);

  --gut: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Until the visitor enters the realm the whole page is monochrome:
   the accent simply resolves to the ink colour. */
html { transition: --acc 1.3s ease, --acc-ink 1.3s ease; }
html:not(.realm) { --acc: #f2fdff; --acc-ink: #060607; }
html.gated, html.gated body { overflow: hidden; }
/* Easter egg: a hidden third layer turns everything hot. */
html.secret { --acc: #ff3df2; --acc-ink: #1a0018; }

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

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #333 var(--bg);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--acc); color: var(--acc-ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
/* Emphasis is the same typeface drawn as an outline: bold + outline, one family. */
/* Outlined text is never tracked tight: with negative letter-spacing the
   neighbouring letters' outlines cross each other and look like bleeding. */
em { font-style: normal; color: transparent; -webkit-text-stroke: var(--stroke) var(--ink); letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--acc); color: var(--acc-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ── The field: the shader canvas every section sits on ── */
#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; display: block; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(92, 225, 255, .10), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, rgba(122, 92, 255, .12), transparent 70%),
    var(--bg);
}

/* ── Shared type ── */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.label { color: var(--dim); display: flex; align-items: center; gap: 10px; margin-bottom: clamp(18px, 2.4vw, 32px); }
.label::before { content: ''; width: 7px; height: 7px; border: 1px solid currentColor; }
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 7.2vw, 124px); line-height: .92; letter-spacing: -.035em;
  text-wrap: balance; max-width: 15ch;
}
.h2 em, .contact-title em { -webkit-text-stroke-color: var(--acc); }
.head { margin-bottom: clamp(36px, 6vw, 88px); position: relative; }
.head-note { color: var(--dim); max-width: 46ch; margin-top: 22px; font-size: clamp(15px, 1.25vw, 18px); }
.pad { padding: clamp(90px, 13vw, 200px) var(--gut); }
.pad-x { padding-inline: var(--gut); }

.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); display: inline-block; box-shadow: 0 0 0 0 rgba(123, 187, 255, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(123, 187, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 187, 255, 0); } }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(6, 6, 7, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 100px;
  border: 1px solid var(--faint); font-size: 14px; font-weight: 500; letter-spacing: .01em;
  background: rgba(6, 6, 7, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), translate .3s var(--ease);
  white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-wide { width: 100%; }
@media (hover: hover) {
  .btn:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
}
.btn:active { transform: scale(.97); }

.link-arrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { color: var(--acc); border-color: var(--acc); }
.head .link-arrow { position: absolute; right: var(--gut); bottom: 8px; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Loader: two arrows collide and become the logo ── */
.boot { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #030305; transition: opacity .7s ease, visibility .7s; }
.boot.out { opacity: 0; visibility: hidden; }
.seen .boot, .still .boot { display: none; }
/* Navy backdrop with a violet light falling from the right, matching the
   rim light on the loader portrait. */
.boot { --cx: 50%; --cy: 44%; background: radial-gradient(58% 80% at 100% 34%, rgba(122, 92, 255, .6), rgba(122, 92, 255, .18) 45%, transparent 75%), radial-gradient(70% 60% at 50% 40%, #0f1a3a 0%, #070a18 45%, #030305 82%); }
/* Before the page picks the 3D scene or the flat fallback (app.js), only
   the navy backdrop and the floor grid show. */
.boot:not(.is-flat):not(.is-3d) :is(.boot-pct, .boot-glow, .boot-stage, .boot-grid .ceil) { visibility: hidden; }
.boot.is-flat { background: #030305; }
/* Same box as the hero's logo, so the finished mark lands exactly where the hero's stands. */
/* Full-bleed so the pieces enter from the screen edges. Its centre sits at
   44% so the name underneath never touches the mark. When the logo has
   formed, the canvas glides to the hero logo's spot (set from JS). */
.boot-3d { position: absolute; inset: 0; width: 100vw; height: 100svh; }
/* His cut-out while the 3D scene loads, placed by app.js exactly where the
   3D portrait appears; its bottom fades out the way the 3D one does. Not in
   the flat fallback. */
.boot-me { position: absolute; left: 50%; top: 20%; width: 40vh; opacity: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); transition: opacity .25s ease; }
.boot-me.on { opacity: 1; }
.boot.is-flat .boot-me { display: none; }
.boot.is-flat .boot-sil { display: none; }
.boot.is-3d { background: radial-gradient(58% 80% at 100% 34%, rgba(122, 92, 255, .6), rgba(122, 92, 255, .18) 45%, transparent 75%), radial-gradient(70% 60% at 50% 40%, #0f1a3a 0%, #070a18 45%, #030305 82%); }
.boot.is-3d .boot-stage, .boot.is-3d .boot-grid .ceil { display: none; }
/* HUD (3D loader only) */
.boot-log, .boot-layers, .boot-rulers, .boot-ticker, .boot-scan { display: none; }
.boot.is-3d .boot-log, .boot.is-3d .boot-layers, .boot.is-3d .boot-rulers, .boot.is-3d .boot-ticker { display: block; }
.boot-log { position: absolute; left: var(--gut); top: clamp(20px, 4svh, 40px); margin: 0; font-size: 11px; line-height: 1.75; letter-spacing: .06em; color: rgba(242, 253, 255, .72); white-space: pre; }
.boot-log b { color: #22e3ff; font-weight: 400; }
.boot-log .cur { display: inline-block; width: .6em; height: 1em; vertical-align: -2px; background: #22e3ff; animation: boot-blink 1s steps(2) infinite; }
@keyframes boot-blink { 50% { opacity: 0; } }
/* Editor rulers along the top and left edge; a cyan marker follows the pointer. */
.boot-rulers i { position: absolute; background-color: rgba(3, 3, 5, .5); }
.boot-rulers .t { left: 0; right: 0; top: 0; height: 16px; border-bottom: 1px solid var(--line); background-image: linear-gradient(90deg, #22e3ff 1px, transparent 1px), repeating-linear-gradient(90deg, rgba(242, 253, 255, .3) 0 1px, transparent 1px 80px), repeating-linear-gradient(90deg, rgba(242, 253, 255, .16) 0 1px, transparent 1px 10px); background-size: 100% 100%, 100% 100%, 100% 5px; background-position: var(--mx, -10px) 0, 0 0, 0 100%; background-repeat: no-repeat, repeat, repeat-x; }
.boot-rulers .l { left: 0; top: 16px; bottom: 0; width: 16px; border-right: 1px solid var(--line); background-image: linear-gradient(#22e3ff 1px, transparent 1px), repeating-linear-gradient(rgba(242, 253, 255, .3) 0 1px, transparent 1px 80px), repeating-linear-gradient(rgba(242, 253, 255, .16) 0 1px, transparent 1px 10px); background-size: 100% 100%, 100% 100%, 5px 100%; background-position: 0 var(--my, -10px), 0 0, 100% 0; background-repeat: no-repeat, repeat, repeat-y; }
.boot.is-3d .boot-log { left: max(var(--gut), 34px); top: calc(16px + clamp(16px, 3svh, 30px)); }

/* The Layers panel: newest tool on top, Layer 00 (him) locked at the
   bottom, his details as the properties. */
.boot-layers { position: absolute; right: var(--gut); top: calc(16px + clamp(16px, 3svh, 30px)); width: 248px; padding: 10px 10px 12px; border-radius: 12px; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(34, 227, 255, .03) 55%, rgba(122, 92, 255, .08)); border: 1px solid rgba(123, 187, 255, .42); box-shadow: 0 0 40px rgba(34, 227, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.boot-layers p { margin: 0; }
.bl-h { display: flex; justify-content: space-between; padding: 0 4px 8px; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: #22e3ff; border-bottom: 1px solid var(--line); }
.bl-h i { font-style: normal; color: var(--dim); letter-spacing: .1em; }
.bl-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: calc(100svh - 470px); overflow: hidden; }
.bl-list li, .bl-base { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; letter-spacing: .04em; color: rgba(242, 253, 255, .8); white-space: nowrap; overflow: hidden; transition: background .5s, height .5s, opacity .5s, padding .5s; }
.bl-list li:first-child { background: rgba(34, 227, 255, .12); color: #fff; }
.bl-list li b, .bl-base b { flex: none; width: 13px; height: 8px; border-radius: 50%/60%; border: 1.2px solid rgba(242, 253, 255, .6); position: relative; }
.bl-list li b::after, .bl-base b::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: rgba(242, 253, 255, .8); }
.bl-list li img { flex: none; width: 15px; height: 15px; filter: drop-shadow(0 0 4px var(--c)); }
.bl-list li span, .bl-base span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.bl-list li em, .bl-base em { font-style: normal; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.bl-base { margin-top: 2px; border-top: 1px solid var(--line); border-radius: 0; color: #22e3ff; }
.bl-list.merging li:not(:first-child) { height: 0; opacity: 0; }
.bl-list.merged li:first-child { background: rgba(34, 227, 255, .22); box-shadow: inset 0 0 0 1px rgba(34, 227, 255, .6); }
.bl-props { margin-top: 10px; padding: 10px 6px 0; border-top: 1px solid var(--line); }
.bl-props .k { font-size: 9px; letter-spacing: .24em; color: #22e3ff; text-transform: uppercase; }
.bl-props .nm { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 6px 0 2px; }
.bl-props .rl { font-size: 11.5px; color: var(--dim); margin-bottom: 8px; }
.bl-props .st { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--line); padding: 5px 0 1px; }
.bl-props .st i { font-style: normal; color: var(--dim); }
.boot-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; overflow: hidden; border-top: 1px solid var(--line); background: rgba(3, 3, 5, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 253, 255, .26); }
.boot-ticker .fill { position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #7a5cff, #22e3ff); box-shadow: 0 0 12px #22e3ff; }
.boot-ticker .track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; width: max-content; animation: boot-tick 26s linear infinite; }
.boot-ticker .track span { display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; transition: color .4s, text-shadow .4s; }
.boot-ticker .track img { width: 15px; height: 15px; opacity: .3; transition: opacity .4s, filter .4s; }
.boot-ticker .track span.on img { opacity: 1; filter: drop-shadow(0 0 5px var(--c)); }
.boot-ticker .track span::after { content: '·'; position: relative; left: 18px; color: rgba(242, 253, 255, .2); }
.boot-ticker .track span.on { color: #22e3ff; text-shadow: 0 0 10px rgba(34, 227, 255, .7); }
@keyframes boot-tick { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.boot-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 5; background: #dff9ff; box-shadow: 0 0 18px 4px rgba(34, 227, 255, .8), 0 0 70px 14px rgba(122, 92, 255, .35); }
.boot.wiping .boot-scan { display: block; }
/* Loading readout: a big counter in the bottom-left corner. */
.boot-pct { position: absolute; left: var(--gut); bottom: clamp(22px, 4svh, 44px); margin: 0; font-size: clamp(56px, 8vw, 128px); font-weight: 300; line-height: .9; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; transition: opacity .3s; }
.boot-pct::before { content: 'Loading the layer'; display: block; margin-bottom: 10px; font-size: 10px; font-weight: 400; line-height: 1; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.boot-pct::after { content: '%'; font-size: .3em; letter-spacing: 0; color: var(--dim); vertical-align: top; margin-left: .15em; }
/* Depth: a perspective grid (floor and ceiling) running toward the viewer,
   its speed set from JS through --z; a glow behind the mark that grows
   with --p (progress); a flat shockwave across the floor at impact. */
.boot-grid { position: absolute; inset: 0; overflow: hidden; perspective: 360px; perspective-origin: calc(50% + var(--gx, 0px)) var(--cy); opacity: .9; }
.boot-grid i { position: absolute; left: -60%; width: 220%; height: 70%; background-image: linear-gradient(rgba(120, 232, 255, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 232, 255, .38) 1px, transparent 1px), linear-gradient(rgba(92, 225, 255, .24) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 225, 255, .2) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px; background-position: 50% var(--z, 0px); }
.boot-grid .floor { top: var(--cy); transform-origin: 50% 0; transform: rotateX(78deg); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%), linear-gradient(90deg, transparent 18%, #000 40%, #000 60%, transparent 82%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 40%), linear-gradient(90deg, transparent 18%, #000 40%, #000 60%, transparent 82%); mask-composite: intersect; }
.boot-grid::after { content: ''; position: absolute; left: 8%; right: 8%; top: var(--cy); height: 1px; background: linear-gradient(90deg, transparent, rgba(120, 232, 255, .7) 30%, #dff9ff 50%, rgba(120, 232, 255, .7) 70%, transparent); box-shadow: 0 0 18px 2px rgba(34, 227, 255, .45); opacity: .55; }
.boot-grid .ceil { bottom: calc(100% - var(--cy)); transform-origin: 50% 100%; transform: rotateX(-78deg); background-position: 50% calc(var(--z, 0px) * -1); opacity: .5; -webkit-mask-image: linear-gradient(to top, transparent, #000 45%); mask-image: linear-gradient(to top, transparent, #000 45%); }
.boot-glow { position: absolute; left: 50%; top: var(--cy); width: 90vmin; height: 90vmin; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(92, 225, 255, .28), rgba(184, 169, 255, .12) 38%, transparent 68%); opacity: calc(.25 + var(--p, 0) * .75); scale: calc(.7 + var(--p, 0) * .4); pointer-events: none; }
.boot-wave { position: absolute; left: 50%; top: var(--cy); width: 30vw; height: 6vw; margin: -3vw 0 0 -15vw; border-radius: 50%; border: 2px solid #5ce1ff; box-shadow: 0 0 24px rgba(92, 225, 255, .7), inset 0 0 24px rgba(92, 225, 255, .5); opacity: 0; pointer-events: none; }
.boot.is-3d .boot-pct { left: auto; right: var(--gut); bottom: calc(40px + clamp(18px, 3svh, 34px)); text-align: right; font-size: clamp(48px, 6.4vw, 104px); }
.boot.is-3d .boot-pct::before { content: 'Installing toolkit'; color: #22e3ff; }
.boot.hit .boot-pct { opacity: 0; }
.boot-stage { position: absolute; left: var(--cx); top: var(--cy); translate: -50% -50%; height: 46svh; aspect-ratio: 349.78 / 386.89; }
.boot.is-3d .boot-logo { display: none; }
.boot-logo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.boot-piece { transform-box: fill-box; transform-origin: center; opacity: 0; will-change: transform; }
.boot-streak { position: absolute; top: 50%; height: 2px; width: 70vw; opacity: 0; border-radius: 2px; will-change: transform, opacity; }
.boot-streak.l { right: 50%; background: linear-gradient(90deg, transparent, #5ce1ff 70%, #fff); box-shadow: 0 -16px 0 -0.5px rgba(92, 225, 255, .5), 0 14px 0 -0.5px rgba(255, 255, 255, .35), 0 -34px 0 -0.7px rgba(255, 255, 255, .2), 0 30px 0 -0.7px rgba(92, 225, 255, .3); }
.boot-streak.r { left: 50%; background: linear-gradient(270deg, transparent, #5ce1ff 70%, #fff); box-shadow: 0 -14px 0 -0.5px rgba(92, 225, 255, .5), 0 16px 0 -0.5px rgba(255, 255, 255, .35), 0 -30px 0 -0.7px rgba(255, 255, 255, .2), 0 34px 0 -0.7px rgba(92, 225, 255, .3); }
.boot-ring { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; margin: -20% 0 0 -20%; border-radius: 50%; border: 2px solid #5ce1ff; opacity: 0; will-change: transform, opacity; }
.boot-ring.two { border-color: #fff; border-width: 1px; }
.boot-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 44%, #fff, rgba(92, 225, 255, .55) 22%, transparent 60%); opacity: 0; }
.boot-word { position: absolute; left: 0; right: 0; top: 80svh; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3.4vw, 46px); letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; white-space: nowrap; color: var(--ink); min-height: 1.2em; }
.boot-word span { display: inline-block; opacity: 0; will-change: transform, opacity; }
.bp-word { position: absolute; left: 50%; top: 52%; translate: -50% -50%; margin: 0; white-space: nowrap; text-align: center; font-family: var(--display); font-weight: 700; line-height: .86; letter-spacing: -.035em; text-transform: uppercase; color: var(--ink); }
.bp-ln { display: block; overflow: hidden; padding: .05em .03em 0; }
.bp-ln > span { display: inline-block; transform: translateY(110%); }
.bp-line { z-index: 2; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.bp-me { position: absolute; left: 50%; bottom: 0; z-index: 1; transform-origin: 60% 37%; height: 90svh; width: auto; max-width: none; transform: translateX(-52%); clip-path: inset(100% 0 0 0); filter: grayscale(1) contrast(1.1) brightness(.9); -webkit-mask-image: linear-gradient(to top, transparent, #000 18%); mask-image: linear-gradient(to top, transparent, #000 18%); }
.bp-scan { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px; background: #5ce1ff; box-shadow: 0 0 18px 4px rgba(92, 225, 255, .8), 0 0 60px 12px rgba(92, 225, 255, .3); opacity: 0; }
.bp-c { position: absolute; z-index: 3; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: 0; white-space: nowrap; }
.bp-c.tl, .bp-c.tr { top: 88px; }
.bp-c.tl { left: var(--gut); }
.bp-c.tr { right: var(--gut); }
.bp-c.tr span { color: var(--dim); }
.boot-sub { position: absolute; left: 0; right: 0; top: calc(80svh + clamp(40px, 5.2vw, 72px)); text-align: center; font-size: 10px; letter-spacing: .34em; color: var(--dim); opacity: 0; }

/* ── Reticle: a detection frame. Free, it is a small square on the
   pointer; over anything clickable it snaps to that element's box. ── */
.reticle { position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; width: 34px; height: 34px; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; will-change: transform, width, height; }
.reticle.on { opacity: 1; }
.reticle i { position: absolute; width: 8px; height: 8px; border: 1px solid #fff; transition: width .3s var(--ease), height .3s var(--ease); }
.reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.reticle span { position: absolute; left: 0; top: calc(100% + 7px); font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #fff; opacity: 0; transition: opacity .2s; }
.reticle.lock i { width: 13px; height: 13px; border-width: 1.5px; }
.reticle.lock span { opacity: 1; }
.reticle.down i { width: 5px; height: 5px; }
@media (hover: none), (pointer: coarse) { .reticle { display: none; } }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) var(--gut) 14px; pointer-events: none; transition: transform .5s var(--ease); }
.nav > * { pointer-events: auto; }
.nav.hide { transform: translateY(-110%); }
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 13px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; mix-blend-mode: difference; color: #fff; }
.nav-brand svg { height: 34px; width: auto; }
.nav-links { display: flex; gap: 4px; padding: 5px; border-radius: 100px; border: 1px solid var(--line); background: rgba(6, 6, 7, .55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav-links a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; border-radius: 100px; color: var(--dim); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.on { color: var(--bg); background: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cam { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(6, 6, 7, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .3s, color .3s, border-color .3s; }
.nav-cam { transition: background .3s, color .3s, border-color .3s, translate .3s var(--ease); }
.nav-cam:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.nav-menu { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6, 6, 7, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: relative; }
.nav-menu i { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-menu i:first-child { top: 19px; } .nav-menu i:last-child { top: 27px; }
.nav-menu[aria-expanded="true"] i:first-child { top: 23px; transform: rotate(45deg); }
.nav-menu[aria-expanded="true"] i:last-child { top: 23px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 95; background: rgba(6, 6, 7, .9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: flex; align-items: flex-end; padding: 0 var(--gut) max(70px, env(safe-area-inset-bottom)); opacity: 0; transition: opacity .4s; }
.menu[hidden] { display: none; }
.menu.open { opacity: 1; }
.menu nav { display: grid; width: 100%; }
.menu a { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 12vw, 72px); line-height: 1.12; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding: 6px 0; }
.menu a small { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; color: var(--acc); }

/* ── HUD strip ── */
.hud { position: fixed; inset: auto 0 0 0; z-index: 80; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gut) max(12px, env(safe-area-inset-bottom)); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.hud span { display: inline-flex; align-items: center; gap: 10px; }
.hud-r { gap: 22px !important; }
.hud .pulse { background: #fff; animation: none; }
.hud button { pointer-events: auto; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.hud-swap { opacity: .6; }
.gated .hud, .gated .nav-links, .gated .nav-actions, .gated .hero-foot, .gated .hero-meta { opacity: 0; pointer-events: none; }
.hud, .nav-links, .nav-actions, .hero-foot { transition: opacity .9s ease .35s; }

/* ═════════ HERO ═════════
   Offset layout: the logo stands in the middle; line one of the headline
   sits top-left, line two bottom-right, copy bottom-left, buttons
   bottom-right. The logo's box stops above the bottom row, so the copy
   and the "enter" prompt never touch it. */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(10px, 1.6svh, 18px); padding: 96px var(--gut) 58px; }
.hero-logo { position: absolute; left: 50%; top: 45%; translate: -50% -50%; width: min(64vw, 96svh); height: min(72svh, 100%); }
.hero-logo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.logo-flat { position: absolute; inset: 0; margin: auto; height: 62%; width: auto; }
/* Colour on the home screen, switched on with the realm: two soft auroras
   in the accent colours, the outlined word and the main button in accent. */
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease .3s;
  background: radial-gradient(46% 52% at 12% 88%, rgba(123, 187, 255, .34), transparent 70%), radial-gradient(42% 50% at 90% 12%, rgba(184, 169, 255, .32), transparent 70%), radial-gradient(30% 34% at 50% 46%, rgba(123, 187, 255, .16), transparent 70%); }
.realm .hero::before { opacity: 1; }
.realm .hero-title em { -webkit-text-stroke-color: var(--acc); }
.realm .hero .btn-solid, .realm .nav-cta { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.realm .hero .btn-solid:hover, .realm .nav-cta:hover { background: #b8a9ff; border-color: #b8a9ff; }
.realm .hero-sub strong { color: var(--acc); }
.realm .chip { border-color: rgba(123, 187, 255, .4); }
.hero-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.hero-meta { text-align: right; color: var(--dim); line-height: 1.8; font-size: 10px; padding-right: 14px; border-right: 1px solid var(--faint); }
.hero-meta span { color: var(--acc); }
.hero-title {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, min(10.6vw, 18.5svh), 240px); line-height: .9; letter-spacing: -.03em;
  color: #fff; mix-blend-mode: difference;
}
.hero-title em { -webkit-text-stroke-color: #fff; }
/* Generous clip box so tall caps, descenders and overhangs are never shaved. */
.line { display: block; overflow: hidden; padding: .1em .06em .18em; margin: -.1em -.06em -.18em; }
.line.l1 { align-self: flex-start; }
.line.l2 { align-self: flex-end; text-align: right; }
.rise { display: inline-block; transform: translateY(115%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 85ms + 120ms); }
p.rise, div.rise { display: block; transform: translateY(24px); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--d, 0) * 85ms + 120ms); }
p.chip.rise { display: inline-flex; }
.ready .rise { transform: none; opacity: 1; }
.hero-below { position: relative; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.hero-sub { max-width: 46ch; color: var(--dim); font-size: clamp(15px, 1.15vw, 18px); }
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero-below { min-height: 82px; display: flex; align-items: flex-end; }
.hero-foot { width: 100%; }
.in-realm { display: none; }
.realm .in-realm { display: inline; }
.realm .in-reality { display: none; }
.gate { position: absolute; inset: 0; z-index: 5; cursor: pointer; }
html:not(.gated) .gate { display: none; }
/* The prompt sits exactly where the intro copy will appear after entering. */
.gate-prompt { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.ready.gated .gate-prompt { opacity: 1; visibility: visible; transition: opacity .8s .9s; }
.gate-text { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 14px 22px; border: 1px solid var(--faint); border-radius: 100px; background: rgba(6, 6, 7, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; }
.gate-text::before, .gate-text::after { content: ''; position: absolute; inset: -1px; border: 1px solid var(--ink); border-radius: 100px; animation: ripple 2.4s var(--ease) infinite; pointer-events: none; }
.gate-text::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.22, 1.9); opacity: 0; } }
.entering .hero-title { animation: punch 1.3s var(--ease); }
@keyframes punch { 0% { transform: none; } 18% { transform: scale(.975); } 100% { transform: none; } }
.hint-coarse { display: none; }
@media (hover: none), (pointer: coarse) { .hint-fine { display: none; } .hint-coarse { display: inline; } }

/* ═════════ LENS TUNNEL ═════════ */
.tunnel { position: relative; height: 480vh; background: #02030a; }
/* The portrait poster (tap the About photo): a flash of light, then a
   giant solid ANOTHER / VIVEK behind the cutout portrait and the same words
   in outline in front of it, so the letters turn to line where they cross
   the face; then the camera flies into the visor. */
.me-poster { position: fixed; inset: 0; z-index: 135; overflow: hidden; pointer-events: none; visibility: hidden; background: #030305; opacity: 0; }
.me-poster.open { visibility: visible; pointer-events: auto; cursor: pointer; }
.tp-flash { position: absolute; inset: 0; z-index: 4; background: radial-gradient(circle at 50% 46%, #fff, rgba(92, 225, 255, .5) 26%, transparent 64%); opacity: 0; }
.tunnel-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.tunnel-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tunnel-title { position: absolute; left: var(--gut); right: var(--gut); bottom: 16svh; pointer-events: none; will-change: opacity, transform; }
.tunnel-title .mono { color: var(--acc); margin-bottom: 14px; }
.tunnel-title h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6.4vw, 110px); line-height: .94; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.tunnel-title em { -webkit-text-stroke-color: var(--acc); }
.tunnel-hud { position: absolute; left: var(--gut); right: var(--gut); top: 88px; display: flex; justify-content: space-between; gap: 16px; font-size: 10px; color: var(--dim); }
.tunnel-hud b { color: var(--acc); font-weight: 500; }
.tunnel-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 44px; height: 1px; background: var(--line); }
.tunnel-skip { position: absolute; right: var(--gut); bottom: 64px; z-index: 2; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(2, 3, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: opacity .3s, border-color .2s, color .2s; }
.tunnel-skip:hover, .tunnel-skip:focus-visible { border-color: var(--acc); color: var(--acc); }
.tunnel-skip.gone { opacity: 0; pointer-events: none; }
.tunnel-bar i { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.still .tunnel, .lite .tunnel, .still .portal { display: none; }

/* ═════════ SCALE ═════════ */
.stat { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 6vw, 90px); padding: clamp(90px, 12vw, 170px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.stat-in { text-align: center; padding-inline: var(--gut); color: #fff; mix-blend-mode: difference; }
.stat-label { letter-spacing: .3em; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(120px, 31vw, 540px); line-height: .84; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: .3em; vertical-align: top; letter-spacing: .03em; margin-left: .08em; position: relative; top: .14em; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.stat-row { display: flex; justify-content: center; gap: clamp(20px, 5vw, 80px); margin-top: clamp(14px, 2.5vw, 34px); flex-wrap: wrap; }
.stat-row li { display: flex; align-items: baseline; gap: 10px; }
.stat-row b { font-family: var(--display); font-size: clamp(24px, 3vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.stat-row span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
/* Lens rail: full-colour cards on a tilted, curved rail. It speeds up and
   leans with your scroll, and each card lifts and plays when hovered. */
.lens-strip { position: relative; perspective: 1300px; perspective-origin: 50% 40%; padding: 34px 0 70px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lens-strip { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lens-strip.dragging { cursor: grabbing; }
.lens-strip.dragging .lens-card { pointer-events: none; }
.lens-rail { display: flex; gap: clamp(12px, 1.4vw, 22px); width: max-content; transform-style: preserve-3d; will-change: transform; }
.lens-card { position: relative; flex: none; width: clamp(128px, 13.5vw, 214px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--bg-2); outline: 1px solid var(--line); transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease), outline-color .4s; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.lens-card:nth-child(3n + 1) { transform: translateY(22px) rotateY(6deg); }
.lens-card:nth-child(3n + 2) { transform: translateY(-14px) translateZ(34px); }
.lens-card:nth-child(3n) { transform: translateY(8px) rotateY(-6deg) translateZ(-20px); }
.lens-card img, .lens-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 3, 10, .7), transparent 40%); pointer-events: none; transition: opacity .4s; }
.lens-card { padding: 0; border: 0; color: inherit; cursor: pointer; text-align: left; }
.lens-card span { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.lens-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
@media (hover: hover) {
  .lens-card:hover { transform: translateY(-18px) translateZ(110px) scale(1.06); outline-color: var(--acc); box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 60px rgba(123, 187, 255, .45); z-index: 2; }
  .lens-card:hover::after { opacity: 0; }
}
/* A reflective floor line under the rail. */
.lens-rail-ph { transform: rotateX(9deg) rotateY(-12deg); pointer-events: none; }
.lens-strip::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--acc), transparent); box-shadow: 0 0 30px 4px rgba(123, 187, 255, .35); opacity: .7; }

/* ═════════ ABOUT ═════════ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(27px, 4.3vw, 70px); line-height: 1.06; letter-spacing: -.03em; }
.statement .w { opacity: .14; transition: opacity .5s ease; }
.statement .w.on { opacity: 1; }
.about-roles { margin-top: clamp(24px, 3vw, 44px); color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 2; max-width: 60ch; }

/* The DOM lens: grayscale base, colour copy revealed through a circle. */
.lens { position: relative; overflow: hidden; --mx: 50%; --my: 50%; transition: --r .7s var(--ease); }
.lens:hover, .lens.on { --r: 150px; }
.lens.on { --r: 900px; }
.lens-base, .lens-aug { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lens-base { filter: grayscale(1) contrast(1.1) brightness(.8); }
/* Stops sit 1px inside --r so a closed circle (--r: 0) draws nothing:
   at +1px it left a one-pixel dot where the pointer last was. */
.lens-aug { -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--r) - 1px), transparent var(--r)); mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--r) - 1px), transparent var(--r)); }
.lens::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--r) - 3px), var(--acc) calc(var(--r) - 2.5px), var(--acc) calc(var(--r) - 1px), transparent var(--r)); }

.portrait { aspect-ratio: 4 / 5; border-radius: 20px; background: var(--bg-2); }
.portrait .lens-base, .portrait .lens-aug { transition: opacity .8s ease; }
.bracket { position: absolute; inset: 14% 20% 30%; border: 1px solid rgba(255, 255, 255, .0); background:
    linear-gradient(var(--acc), var(--acc)) 0 0 / 18px 1.5px, linear-gradient(var(--acc), var(--acc)) 0 0 / 1.5px 18px,
    linear-gradient(var(--acc), var(--acc)) 100% 0 / 18px 1.5px, linear-gradient(var(--acc), var(--acc)) 100% 0 / 1.5px 18px,
    linear-gradient(var(--acc), var(--acc)) 0 100% / 18px 1.5px, linear-gradient(var(--acc), var(--acc)) 0 100% / 1.5px 18px,
    linear-gradient(var(--acc), var(--acc)) 100% 100% / 18px 1.5px, linear-gradient(var(--acc), var(--acc)) 100% 100% / 1.5px 18px;
  background-repeat: no-repeat; z-index: 2; animation: track 5s ease-in-out infinite; pointer-events: none; }
@keyframes track { 0%, 100% { transform: translate(0, 0) scale(1); } 30% { transform: translate(1.5%, -1%) scale(1.02); } 65% { transform: translate(-1%, 1.2%) scale(.99); } }
.portrait figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; font-size: 10px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.portrait figcaption span:last-child { color: var(--acc); }
.portrait-dev b { font-weight: 500; color: #fff; }
/* The headset portraits are landscape; keep the face in the 4:5 frame. */
.portrait .lens-base, .portrait .lens-aug, .portrait-swap i { background-position: 56% 30%; }

/* Portrait swap: scan in, RGB ghosts snap into register, settle to grey. */
.portrait-swap { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .7s ease; }
.portrait-swap.settle { opacity: 0; }
.portrait-swap i { position: absolute; inset: 0; background-size: cover; }
.ps-img { clip-path: inset(0 0 100% 0); animation: ps-scan .95s cubic-bezier(.7, 0, .2, 1) forwards; }
.ps-ghost { mix-blend-mode: screen; opacity: 0; clip-path: inset(0 0 100% 0); animation: ps-scan .95s cubic-bezier(.7, 0, .2, 1) forwards, ps-ghost .95s ease-out forwards; }
.ps-r { filter: sepia(1) saturate(8) hue-rotate(-40deg) brightness(.9); --gx: -14px; }
.ps-c { filter: sepia(1) saturate(8) hue-rotate(150deg) brightness(.9); --gx: 14px; }
.ps-grid { background: repeating-linear-gradient(0deg, rgba(123, 187, 255, .16) 0 1px, transparent 1px 4px); opacity: 0; animation: ps-grid .95s ease forwards; }
.ps-line { top: 0 !important; bottom: auto !important; height: 2px; background: var(--acc) !important; box-shadow: 0 0 18px 4px var(--acc), 0 0 60px 10px rgba(123, 187, 255, .45); animation: ps-line .95s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes ps-scan { to { clip-path: inset(0 0 0 0); } }
@keyframes ps-ghost { 0% { opacity: .75; transform: translateX(var(--gx)); } 70% { opacity: .45; transform: translateX(calc(var(--gx) * .2)); } 100% { opacity: 0; transform: none; } }
@keyframes ps-grid { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
@keyframes ps-line { 0% { transform: translateY(0); opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(var(--ph, 600px)); opacity: 0; } }
.portrait.swapping .bracket { animation-duration: .6s; }

.brands-label { margin-top: clamp(64px, 9vw, 140px); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marq var(--dur, 60s) linear infinite; will-change: transform; backface-visibility: hidden; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.grab { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.grab.grabbing { cursor: grabbing; }
@keyframes marq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.brands { margin-inline: calc(var(--gut) * -1); min-height: calc(clamp(34px, 4vw, 60px) * 1.9); }
/* One row of logos, all optically the same height (--s nudges a mark that
   reads small or large), each in its own brand colours. Marks whose colour
   is too dark for the black page use the brand's reversed (white) version
   for that part, baked into the SVG. */
.brands .marquee-track { align-items: center; }
.brands span { --h: clamp(34px, 4vw, 60px); height: calc(var(--h) * 1.9); display: inline-flex; align-items: center; gap: clamp(36px, 4.4vw, 72px); padding-right: clamp(36px, 4.4vw, 72px); white-space: nowrap; }
.brands span::after { content: '✳'; font-size: 14px; color: var(--acc); }
.brands .brand-logo img { height: calc(var(--h) * var(--s, 1)); width: auto; max-width: calc(var(--h) * 4); object-fit: contain; opacity: .92; transition: opacity .3s, transform .4s var(--ease); }
.brands .brand-logo:hover img { opacity: 1; transform: scale(1.06); }
.brands .brand-name { font-family: var(--display); font-weight: 700; font-size: calc(var(--h) * .44); letter-spacing: -.01em; color: var(--ink); opacity: .72; }

/* ═════════ ARCHIVE ═════════
   A taste of the whole archive: platform chips, a grid of posters that play
   on hover, and one big way through to the Work Canvas. */
.archive { position: relative; isolation: isolate; overflow-x: clip; }
.archive::before { content: ''; position: absolute; left: -40%; right: -40%; bottom: -6%; height: 70%; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(92, 225, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 225, 255, .14) 1px, transparent 1px); background-size: 90px 90px; transform: perspective(700px) rotateX(72deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%); mask-image: linear-gradient(to bottom, transparent, #000 60%); opacity: .7; }
.archive::after { content: ''; position: absolute; left: 50%; top: 38%; width: 80vw; height: 60vw; translate: -50% -50%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(92, 225, 255, .08), rgba(184, 169, 255, .05) 50%, transparent); }
.archive-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--line); background: rgba(13, 13, 15, .6); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: color .3s, background .3s, border-color .3s; white-space: nowrap; }
.archive-chip sup { font-size: 9px; color: var(--faint); transition: color .3s; }
.archive-chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.archive-chip[aria-pressed="true"] sup { color: var(--acc-ink); }
@media (hover: hover) { .archive-chip:not([aria-pressed="true"]):hover { color: var(--ink); border-color: var(--faint); } }

/* Staggered columns: every other column sits lower, and each drifts at
   its own speed as the section scrolls (JS sets the transform), so the
   wall has depth instead of reading as a flat sheet. */
.archive-grid { display: flex; align-items: flex-start; gap: 12px; margin-top: clamp(22px, 3vw, 36px); padding-bottom: 7%; perspective: 1400px; }
.archive-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.archive-col:nth-child(even) { margin-top: 9%; }
.archive-tile { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); text-align: left; isolation: isolate; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: border-color .35s, translate .5s var(--ease), transform .45s var(--ease), box-shadow .45s; animation: tile-fly .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes tile-fly { from { opacity: 0; transform: translateZ(-260px) rotateX(28deg) translateY(40px); } }
/* HUD: corner brackets, a scan line and a glint that follows the pointer. */
.archive-hud { position: absolute; inset: 8px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s; --c: #5ce1ff;
  background: linear-gradient(var(--c), var(--c)) 0 0 / 14px 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px 14px, linear-gradient(var(--c), var(--c)) 100% 0 / 14px 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 14px, linear-gradient(var(--c), var(--c)) 0 100% / 14px 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px 14px, linear-gradient(var(--c), var(--c)) 100% 100% / 14px 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 14px; background-repeat: no-repeat; }
.archive-hud::after { content: ''; position: absolute; left: -8px; right: -8px; top: 0; height: 2px; background: var(--c); box-shadow: 0 0 14px 2px rgba(92, 225, 255, .7); opacity: 0; }
.archive-tile::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .22), transparent 45%); mix-blend-mode: screen; }
.archive-tile.playing .archive-tile-top::after { content: '● Live'; color: #ff5a5a; }
.archive-tile img, .archive-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.archive-tile video { opacity: 0; transition: opacity .4s; }
.archive-tile.playing video { opacity: 1; }
.archive-tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 6, 7, .55) 0%, transparent 22%, transparent 55%, rgba(6, 6, 7, .9) 100%); pointer-events: none; }
.archive-tile-top, .archive-tile-bot { position: absolute; left: 12px; right: 12px; z-index: 2; pointer-events: none; }
.archive-tile-top { top: 12px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.archive-tile-bot { bottom: 12px; }
.archive-tile-bot b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.archive-tile-bot span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
@media (hover: hover) {
  .archive-tile:hover { border-color: rgba(92, 225, 255, .7); translate: 0 -6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(92, 225, 255, .25), 0 0 40px rgba(92, 225, 255, .18); }
  .archive-tile:hover .archive-hud, .archive-tile:hover::before { opacity: 1; }
  .archive-tile:hover .archive-hud::after { animation: hud-scan 1.4s cubic-bezier(.6, 0, .4, 1) infinite; }
}
@keyframes hud-scan { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes tile-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.archive-cta { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px); margin-top: clamp(28px, 4vw, 56px); padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, rgba(122, 92, 255, .16), rgba(34, 227, 255, .06) 55%, rgba(13, 13, 15, .6)); transition: color .45s var(--ease), border-color .45s; }
.archive-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.archive-cta-k { color: var(--dim); transition: color .45s; }
.archive-cta-t { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4vw, 60px); line-height: 1; letter-spacing: -.02em; }
.archive-cta-t b { font-weight: 600; color: var(--acc); transition: color .45s; }
.archive-cta-arrow { display: grid; place-items: center; width: clamp(48px, 5vw, 72px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--faint); font-size: clamp(20px, 2vw, 28px); transition: transform .5s var(--ease), border-color .45s; }
@media (hover: hover) {
  .archive-cta:hover { color: var(--acc-ink); border-color: var(--acc); }
  .archive-cta:hover::before { transform: scaleX(1); }
  .archive-cta:hover .archive-cta-k, .archive-cta:hover .archive-cta-t b { color: var(--acc-ink); }
  .archive-cta:hover .archive-cta-arrow { transform: translateX(6px) rotate(-45deg); border-color: var(--acc-ink); }
}
@media (max-width: 1200px) { .archive-col:nth-child(even) { margin-top: 14%; } }
@media (max-width: 640px) {
  .archive-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .archive-chips::-webkit-scrollbar { display: none; }
  .archive-grid, .archive-col { gap: 10px; }
  .archive-col:nth-child(even) { margin-top: 26%; }
  .archive-cta { grid-template-columns: 1fr auto; }
  .archive-cta-k { grid-column: 1 / -1; }
}
.still .archive-tile { animation: none; transform: none; }

/* ═════════ CAPABILITIES ═════════ */
.caps-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.cap-list { border-top: 1px solid var(--line); }
.cap { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.cap::before { content: ''; position: absolute; inset: 0; background: var(--acc); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.cap-btn { position: relative; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; gap: 10px 14px; padding: clamp(16px, 2vw, 28px) 0; text-align: left; transition: padding .55s var(--ease), color .35s; }
.cap-n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); transition: color .35s; }
.cap-t { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.7vw, 60px); line-height: .98; letter-spacing: -.035em; }
.cap-tags { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.cap-tags span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--dim); transition: color .35s, border-color .35s; }
.cap-x { font-size: 24px; justify-self: end; transition: transform .55s var(--ease); }
.cap-body { position: relative; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.cap-body > div { overflow: hidden; }
.cap-body p { padding: 0 44px clamp(18px, 2.2vw, 28px) 58px; max-width: 62ch; font-size: clamp(15px, 1.2vw, 17px); }
.cap-inline { display: none; position: relative; margin: 0 14px 18px; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: #000; }
.cap-inline video, .cap-inline img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap.open::before { transform: scaleY(1); }
.cap.open .cap-btn { padding-inline: clamp(12px, 1.6vw, 22px); color: var(--acc-ink); }
.cap.open .cap-n { color: var(--acc-ink); }
.cap.open .cap-tags span { color: var(--acc-ink); border-color: rgba(10, 13, 0, .35); }
.cap.open .cap-x { transform: rotate(45deg); }
.cap.open .cap-body { grid-template-rows: 1fr; color: var(--acc-ink); }
.cap.open .cap-body p { padding-left: calc(58px + clamp(12px, 1.6vw, 22px)); }

/* The viewport: stays pinned beside the list and plays the active row. */
.cap-view { position: sticky; top: 92px; width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 150px); border-radius: 22px; overflow: hidden; background: var(--bg-2); outline: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.cap-view-media > div { position: absolute; inset: 0; opacity: 0; transform: scale(1.07); transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.cap-view-media > div.on { opacity: 1; transform: none; }
.cap-view-media .bg { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4) brightness(.55); }
.cap-view-media img, .cap-view-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cap-view .bracket { inset: 7% 9%; }
.cap-view::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--acc); box-shadow: 0 0 18px 2px var(--acc); opacity: .75; animation: scan 4.5s linear infinite; }
@keyframes scan { to { top: 100%; } }
.cap-view-hud { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.cap-view-hud span:first-child { color: var(--acc); }

/* ═════════ WORK: exploded layers ═════════
   One sticky stage. The project you're on sits flat in the lower part of
   the screen; as you scroll on it tilts back like a glass floor and rises,
   and the ones before it climb higher and further back, so the work reads
   as layers stacked over reality. --t (0 → 1, set from scroll) is how far
   a card has lifted: its content fades, its glass edge and layer label
   come up. */
.work { padding-top: clamp(90px, 13vw, 200px); }
.stack { --bar: 54px; position: relative; height: calc(var(--n, 4) * 85vh + 150vh); }
/* The base layer: once every project has lifted, reality comes up underneath. */
.stack-end { --e: 0; position: absolute; left: var(--gut); right: var(--gut); top: 30svh; height: 64svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 18px; padding: clamp(24px, 3vw, 48px); border-radius: 24px; opacity: var(--e); transform: translateY(calc((1 - var(--e)) * 60px)); pointer-events: none; isolation: isolate; }
.stack-end.on { pointer-events: auto; }
.stack-end::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1px dashed rgba(92, 225, 255, .35); background-image: linear-gradient(rgba(92, 225, 255, .24) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 225, 255, .2) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(120% 100% at 50% 100%, #000 40%, transparent); mask-image: radial-gradient(120% 100% at 50% 100%, #000 40%, transparent); }
.stack-end-k { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #5ce1ff; }
.stack-end-t { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 110px); line-height: .9; letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
.stack-end-t em { font-style: normal; color: var(--dim); }
.stack-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1700px; perspective-origin: 50% 8%; }
.wk { --t: 0; position: absolute; left: var(--gut); right: var(--gut); top: 30svh; height: 64svh; min-height: 400px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, #101016, #09090b 60%); overflow: hidden; transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); contain: layout paint; }
.wk.lifted { pointer-events: none; }
.wk::before { content: ''; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; border: 1px solid rgba(92, 225, 255, .75); background: linear-gradient(180deg, rgba(92, 225, 255, .10), rgba(184, 169, 255, .07)); box-shadow: inset 0 0 60px rgba(92, 225, 255, .18); opacity: var(--t); }
.wk-layer { position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(16px, 2.4vw, 32px); z-index: 6; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 88px); line-height: .9; letter-spacing: -.04em; color: var(--ink); opacity: calc(var(--t) * 1.4 - .4); pointer-events: none; white-space: nowrap; }
.wk-layer b { font-family: var(--mono); font-weight: 400; font-size: .3em; letter-spacing: .18em; color: #5ce1ff; vertical-align: top; margin-right: .6em; }
.wk-bar { position: relative; z-index: 2; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(18px, 2.4vw, 32px); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.wk-bar b { color: var(--acc); font-weight: 500; }
.wk-bar .wk-bar-l { display: flex; gap: 14px; align-items: center; min-width: 0; }
.wk-in { position: relative; height: calc(100% - var(--bar)); opacity: calc(1 - var(--t) * 1.25); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.wk-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(80px) saturate(1.4); opacity: .14; pointer-events: none; }
.wk-copy { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 48px); gap: 18px; min-width: 0; }
.wk-title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.4vw, 100px); line-height: .9; letter-spacing: -.045em; text-wrap: balance; }
.wk-desc { color: var(--dim); max-width: 46ch; font-size: clamp(15px, 1.2vw, 18px); }
.wk-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.wk-tags span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); border-radius: 100px; }
.wk-media { position: relative; display: grid; place-items: center; padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 0; min-width: 0; min-height: 0; container-type: size; }
.wk-frame { position: relative; height: 100%; max-width: 100%; aspect-ratio: var(--ar, 9 / 16); border-radius: 18px; overflow: hidden; background: var(--bg-2); outline: 1px solid var(--line); }
/* A landscape clip fills the width, but never taller than its space (so it
   can't spill over the card's top bar on a short card). */
.wk-frame.landscape { height: auto; width: min(100%, calc(100cqh * (var(--ar)))); }
.wk-frame video, .wk-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk-frame::after { content: 'REC ● LIVE'; position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

/* ═════════ RECOGNITION: explorer ═════════ */
/* The photos are 500 to 800px wide, so the stage is capped near that size to
   keep them sharp; the list takes the rest of the row. */
.rec { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.rec { position: relative; isolation: isolate; }
.rec-deck { position: sticky; top: 96px; perspective: 1100px; }
.rec-back { position: absolute; left: 5%; right: 5%; top: 0; aspect-ratio: 1 / 1; border-radius: 18px; background: #111 center / cover; outline: 1px solid var(--line); z-index: -1; filter: brightness(.5) saturate(.8); transition: transform .7s var(--ease), opacity .4s; }
.rec-back.b1 { transform: translate(-20px, -14px) rotate(-5deg); }
.rec-back.b2 { transform: translate(24px, -8px) rotate(4.5deg); }
.rec-deck:hover .rec-back.b1 { transform: translate(-46px, -26px) rotate(-9deg); }
.rec-deck:hover .rec-back.b2 { transform: translate(50px, -18px) rotate(8deg); }
.rec-deck.single .rec-back { opacity: 0; }
/* Entry number, huge and outlined, behind the list. */
.rec-ghost { grid-column: 2; grid-row: 1; position: sticky; top: 110px; height: 0; z-index: -1; text-align: right; pointer-events: none; font-family: var(--display); font-weight: 700; font-size: clamp(170px, 25vw, 430px); line-height: .78; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(242, 253, 255, .1); }
.rec-list { grid-column: 2; grid-row: 1; }
.rec-stage { position: relative; display: flex; flex-direction: column; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); border-radius: 22px; overflow: hidden; background: var(--bg-2); outline: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.rec-view { position: relative; aspect-ratio: 1 / 1; max-height: calc(100svh - 300px); min-height: 240px; overflow: hidden; background: #000; cursor: pointer; }
/* The two photo layers are shuffled like cards from JS (see buildRec). */
.rec-img { position: absolute; inset: 0; opacity: 0; will-change: transform; }
.rec-img.on { opacity: 1; }
/* Photos are shown whole (never cropped) over a blurred copy of themselves. */
.rec-img i { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(36px) saturate(1.3) brightness(.5); }
.rec-img b { position: absolute; inset: 0; background-size: contain; background-repeat: no-repeat; background-position: center; }
.rec-view .bracket { inset: 5% 6%; opacity: .75; }
/* Glare that follows the pointer across the stage. */
.rec-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, -20%), rgba(255, 255, 255, .2), transparent 55%); mix-blend-mode: screen; }
/* Each new photo is scanned in: a bright line sweeps down and reveals it. */
@keyframes recIn { 0% { clip-path: inset(0 0 100% 0); filter: brightness(2.4) saturate(1.6); } 55% { clip-path: inset(0 0 0 0); filter: brightness(1.3); } 100% { clip-path: inset(0 0 0 0); filter: none; } }
.rec-view::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: #fff; box-shadow: 0 0 22px 6px var(--acc); opacity: 0; pointer-events: none; }
.rec-view.swap::after { animation: recScan .55s cubic-bezier(.5, 0, .3, 1); }
@keyframes recScan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.rec-count { position: absolute; left: 14px; top: 12px; z-index: 2; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .55); padding: 4px 9px; border-radius: 100px; }
.rec-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s, color .3s, border-color .3s; }
.rec-nav.prev { left: 12px; } .rec-nav.next { right: 12px; }
.rec-nav:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.rec-nav[hidden] { display: none; }
.rec-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.rec-k { color: var(--acc); font-size: 10px; }
.rec-t { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.6vw, 24px); line-height: 1; letter-spacing: -.03em; margin: 8px 0 6px; }
.rec-d { color: var(--dim); font-size: 14px; }
.rec-src { flex: none; }
.rec-src[hidden] { display: none; }
.rec-list { border-top: 1px solid var(--line); }
.rec-item { border-bottom: 1px solid var(--line); }
.rec-btn { position: relative; width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1.15fr) minmax(0, 1fr) 120px 76px; gap: 6px 22px; align-items: baseline; text-align: left; padding: 20px 10px 20px 0; transition: padding .45s var(--ease), color .3s; }
.rec-btn::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); transform: scaleY(0); transition: transform .45s var(--ease); }
.rec-n, .rec-y, .rec-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.rec-name { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.rec-desc { color: var(--dim); font-size: 14px; line-height: 1.45; }
.rec-y { text-align: right; }
.rec-item.gold .rec-meta::before { content: '● '; color: var(--acc); }
.rec-item.on .rec-desc { color: var(--ink); }
.rec-item.on .rec-btn { padding-left: 16px; color: var(--acc); background: linear-gradient(90deg, rgba(123, 187, 255, .16), transparent 62%); }
.rec-item.on .rec-btn::before { transform: none; }

/* ── Lightbox for a lens opened from the tunnel ── */
.lightbox { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; grid-template-rows: 1fr auto; gap: 14px; padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); background: rgba(3, 4, 10, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lightbox[hidden] { display: none; }
.lightbox video { max-width: min(92vw, 520px); max-height: 100%; min-height: 0; border-radius: 20px; outline: 1px solid var(--acc); box-shadow: 0 0 80px rgba(123, 187, 255, .35); background: #000; align-self: center; }
.lightbox .mono { color: var(--dim); }
.lightbox-x { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6, 6, 7, .6); font-size: 26px; line-height: 1; transition: background .3s, color .3s; }
.lightbox-x:hover { background: var(--acc); color: var(--acc-ink); }
.leave { position: fixed; inset: 0; z-index: 180; pointer-events: none; background: #04050a; opacity: 0; transition: opacity .45s ease; }
.leave.go { opacity: 1; }
.tunnel-tip { opacity: .8; }
.tunnel-stage canvas { cursor: pointer; }

/* ── Portal launch: flash, scan sweep, letterbox bars, a stamp ── */
.portal { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; visibility: hidden; }
.portal.go { visibility: visible; }
.portal-flash { position: absolute; inset: 0; background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), #fff 0, rgba(92, 225, 255, .75) 18%, rgba(184, 169, 255, .35) 42%, transparent 70%); opacity: 0; mix-blend-mode: screen; }
.portal-scan { position: absolute; left: 0; right: 0; top: 0; height: 26svh; background: linear-gradient(to bottom, transparent, rgba(92, 225, 255, .16) 70%, rgba(255, 255, 255, .9) 99%, transparent); opacity: 0; mix-blend-mode: screen; }
.portal-bar { position: absolute; left: 0; right: 0; height: 12svh; background: #020308; transform: scaleY(0); }
.portal-bar.t { top: 0; transform-origin: top; } .portal-bar.b { bottom: 0; transform-origin: bottom; }
.portal-stamp { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; text-align: center; opacity: 0; color: #fff; mix-blend-mode: difference; }
.portal-stamp .mono { display: block; letter-spacing: .5em; margin-bottom: 10px; }
.portal-stamp b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(60px, 15vw, 260px); line-height: .9; letter-spacing: .02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px #fff; }

/* ── Toast (Easter egg feedback) ── */
.toast { position: fixed; left: 50%; bottom: 58px; translate: -50% 20px; z-index: 130; padding: 11px 18px; border-radius: 100px; background: var(--acc); color: var(--acc-ink); font-size: 10px; opacity: 0; pointer-events: none; transition: opacity .4s, translate .4s var(--ease); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; translate: -50% 0; }

/* ═════════ LAB ═════════ */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tool { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; min-height: 210px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(13, 13, 15, .6); overflow: hidden; text-align: left; --mx: 50%; --my: 50%; transition: --r .7s var(--ease), color .35s, border-color .35s; isolation: isolate; }
.tool::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at var(--mx) var(--my), var(--acc) calc(var(--r) - 1px), transparent var(--r)); }
.tool-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .35s; }
.tool-top b { font-weight: 400; padding: 4px 8px; border: 1px solid var(--line); border-radius: 100px; }
.tool h3 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.tool p { font-size: 14px; color: var(--dim); transition: color .35s; }
.tool.feature { grid-column: span 2; background: linear-gradient(135deg, rgba(122, 92, 255, .22), rgba(34, 227, 255, .08) 60%, rgba(13, 13, 15, .6)); }
.tool.feature h3 { font-size: clamp(32px, 3.6vw, 56px); }
@media (hover: hover) {
  .tool:hover { --r: 700px; color: var(--acc-ink); border-color: var(--acc); }
  .tool:hover p, .tool:hover .tool-top { color: rgba(10, 13, 0, .75); }
  .tool:hover .tool-top b { border-color: rgba(10, 13, 0, .35); }
}
.tool:active { transform: scale(.985); }

/* ═════════ COMMUNITY ═════════ */
.comm { padding-block: clamp(90px, 13vw, 200px) clamp(40px, 6vw, 90px); }
.comm-card { display: flex; gap: 20px; align-items: flex-start; max-width: 720px; margin-top: 36px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13, 13, 15, .6); }
.comm-card img { border-radius: 14px; background: #000; flex: none; }
.comm-card p { color: var(--dim); }
.comm-card strong { color: var(--ink); font-weight: 500; }
.photos { margin-top: 12px; }
.photos .marquee-track { gap: 12px; padding-right: 12px; }
.photos img { width: clamp(200px, 24vw, 340px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; filter: grayscale(1) brightness(.75); transition: filter .5s ease; background: var(--bg-2); }
.photos img:hover { filter: none; }

/* ═════════ CONTACT ═════════ */
/* ── Socials: the live feed sits in a glass frame like the stages above ── */
.feed .head { margin-bottom: clamp(28px, 4vw, 56px); }
.feed-frame { position: relative; min-height: 460px; padding: clamp(10px, 1.6vw, 22px); border-radius: 22px; outline: 1px solid var(--line); background: rgba(6, 6, 7, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 120px rgba(0, 0, 0, .45); overflow: hidden; }
.feed-frame::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .7; }
.feed-frame.ready { min-height: 0; }
.feed-frame.ph > div { opacity: 0; }
.feed-frame > div { transition: opacity .6s ease; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.contact-title { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 124px); line-height: .88; letter-spacing: -.045em; text-wrap: balance; }
.contact .chip { margin-top: 26px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; }
.socials a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.socials a::after { content: ' ↗'; }
.socials a:hover { color: var(--acc); border-color: var(--acc); }
.form { display: grid; gap: 22px; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: rgba(13, 13, 15, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span, .chips legend { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--faint); padding: 8px 0 12px; border-radius: 0; outline: none; resize: vertical; transition: border-color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--acc); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 12px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; font-size: 13px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--dim); transition: background .25s, color .25s, border-color .25s; }
.chips input:checked + span { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.chips input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.hp { display: none; }
.form-status { font-size: 14px; color: var(--acc); }
.form-status.err { color: #ff7a6b; }

/* ═════════ FOOTER ═════════ (wordmark carried over from the classic site) */
.foot { padding: clamp(30px, 5vw, 80px) var(--gut) 92px; text-align: center; overflow: hidden; }
.foot-glow { display: flex; justify-content: center; padding: 8px 0 26px; }
.foot-word { position: relative; display: inline-block; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 5.5vw, 124px); letter-spacing: -.035em; line-height: .95; background: linear-gradient(to top, rgba(242, 253, 255, 0) 0%, rgba(242, 253, 255, .17) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 170px at var(--mx, 50%) var(--my, 50%), var(--acc) 0%, rgba(123, 187, 255, .3) 55%, transparent 78%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transition: opacity .3s ease; }
@media (hover: hover) { .foot-word:hover .foot-spot { opacity: 1; } }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 28px; }
.foot-links a:hover, .foot-copy a:hover { color: var(--acc); }
.foot-cta { margin: 28px 0 24px; }
.foot-copy { margin-top: 18px; color: var(--faint); font-size: 10px; }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .caps-grid { grid-template-columns: 1fr; }
  .cap-view { display: none; }
  .cap-inline { display: block; }
  .cap-btn { grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 12px; }
  .cap-body p, .cap.open .cap-body p { padding-left: 14px; padding-right: 14px; }
  .stack { --bar: 46px; }
  .wk { top: 27svh; height: 68svh; min-height: 0; border-radius: 20px; }
  .wk-layer { right: 20px; font-size: clamp(22px, 6.6vw, 40px); white-space: normal; }
  .wk-bar .wk-bar-tag { display: none; }
  .wk-in { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .wk-media { order: -1; padding: 16px 16px 0; }
  .wk-copy { padding: 18px 20px 22px; gap: 10px; }
  .wk-title { font-size: clamp(34px, 9vw, 64px); }
  .head .link-arrow { position: static; display: inline-block; margin-top: 22px; }
  .hero .hero-meta { display: none; }
  .rec { grid-template-columns: 1fr; }
  .rec-btn { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; padding: 15px 6px 15px 0; }
  .rec-desc { grid-column: 2 / -1; }
  .rec-meta { grid-column: 2; }
  .rec-y { grid-row: 1; grid-column: 3; }
  .rec-view { aspect-ratio: auto; flex: 1; min-height: 0; max-height: none; }
  .rec-deck { top: 70px; z-index: 6; perspective: none; }
  .rec-stage { height: 52svh; border-radius: 16px; transform: none; }
  .rec-back, .rec-ghost { display: none; }
  .rec-list { grid-column: 1; grid-row: auto; }
  .rec-info { padding: 12px 14px 14px; gap: 12px; flex-direction: row; align-items: center; justify-content: space-between; }
  .rec-info > div { min-width: 0; }
  .rec-d { display: none; }
  /* The source link stays on small screens, as a compact pill beside the title. */
  .rec-src { min-height: 38px; padding: 0 14px; font-size: 12px; gap: 6px; }
  .rec-t { font-size: 20px; margin: 4px 0 0; }
  .hud-r #hud-xy, .hud .hud-c, .tunnel-hud .tunnel-tip { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 84px var(--gut) calc(76px + env(safe-area-inset-bottom)); }
  /* The logo fills the gap between "Another layer" and "of reality." so it
     never sits on the words; app.js sets its top and height to that gap. */
  .hero-logo { left: 0; right: 0; width: auto; translate: none; top: var(--logo-top, 30%); height: var(--logo-h, 30svh); }
  .chip { font-size: 10px; letter-spacing: .1em; }
  .hud { gap: 10px; font-size: 9.5px; letter-spacing: .12em; white-space: nowrap; }
  .hud-r { gap: 12px !important; }
  .hud-swap { display: none; }
  .hero-title { font-size: clamp(38px, min(13.4vw, 9.4svh), 100px); }
  .boot { --cy: 40%; }
  .boot-log { font-size: 9.5px; }
  .boot-rulers .l { display: none; }
  .boot.is-3d .boot-log { left: var(--gut); }
  .boot-layers { left: var(--gut); right: auto; top: auto; bottom: 58px; width: 172px; padding: 8px 8px 6px; }
  .bl-list { max-height: 72px; }
  .bl-props, .bl-base { display: none; }
  .boot-wave { width: 70vw; height: 14vw; margin: -7vw 0 0 -35vw; }
  .boot-stage { height: 34svh; }
  .boot-word { top: 72svh; letter-spacing: .22em; padding-left: .22em; }
  .boot-sub { top: calc(72svh + 44px); }
  /* The portrait is wider than a phone, so the lines split: ANOTHER
     straddles the top of the hair, VIVEK sits low where the photo fades. */
  .bp-word { top: 24%; translate: -50% 0; }
  .bp-ln + .bp-ln { margin-top: 48svh; }
  .bp-me { height: 72svh; -webkit-mask-image: linear-gradient(to top, transparent 4%, #000 42%); mask-image: linear-gradient(to top, transparent 4%, #000 42%); }
  .bp-c { font-size: 10px; letter-spacing: .16em; }
  .bp-c.tr span { display: none; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-sub { font-size: 14.5px; }
  .gate-text { font-size: 10px; letter-spacing: .16em; padding: 13px 16px; }
  .hero-cta, .hero-cta .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .tool.feature { grid-column: auto; }
  .stat-row li { flex-direction: column; align-items: center; gap: 2px; }
  .comm-card { flex-direction: column; }
}
/* One-column cards on a short screen: drop the description so the clip keeps room. */
@media (max-width: 980px) and (max-height: 760px) { .wk-desc { display: none; } }
@media (max-height: 520px) and (orientation: landscape) {
  /* Phones on their side: headline stacked on the left, logo on the right. */
  .hero { padding: 72px var(--gut) calc(60px + env(safe-area-inset-bottom)); }
  .hero-title { font-size: clamp(32px, 13svh, 96px); justify-content: center; max-width: 60%; }
  .line.l2 { align-self: flex-start; text-align: left; }
  .hero-logo { left: auto; right: var(--gut); translate: 0 -50%; top: 46%; width: 36vw; height: 74svh; }
  .hero-meta { display: none; }
  .wk-media { display: none; } .wk-in { grid-template-rows: 1fr; }
}

/* Touch screens: every tappable thing is at least finger-sized. */
@media (hover: none), (pointer: coarse) {
  .socials { gap: 0 22px; }
  .socials a, .foot-links a, .foot-copy a { display: inline-block; padding-block: 13px; }
  .link-arrow { display: inline-block; padding-block: 12px 10px; }
  .hud button { min-height: 44px; }
  .nav-brand { padding-block: 6px; }
  .foot-links { gap: 0 26px; }
  /* double-tap in the tunnel rolls the ship; it must not zoom the page */
  .tunnel-stage canvas, .lens-strip { touch-action: manipulation; }
  .lens-strip { touch-action: pan-y; }
}

/* ═════════ REDUCED MOTION / LITE ═════════ */
.still .rec-view.swap::after { animation: none; }
.still .rise, .still .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
.still .marquee-track, .still .bracket, .still .pulse { animation: none !important; }
.still .marquee { overflow-x: auto; }
.still .statement .w { opacity: 1; }
.still .boot { display: none; }

/* ── Media placeholders ──
   A media frame carries .ph from the moment it exists until its first image
   has loaded: a dark tile with a slow sheen instead of an empty hole. What it
   holds stays hidden and fades in once the image is ready. */
.ph { background-color: var(--bg-2); background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .055) 50%, transparent 70%); background-size: 250% 100%; background-repeat: no-repeat; animation: ph 1.6s linear infinite; }
@keyframes ph { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.lens-card img, .wk-frame video, .cap-view-media, .cap-inline video { transition: opacity .5s ease; }
.lens-card.ph img, .wk-frame.ph video, .cap-view.ph .cap-view-media, .cap-inline.ph video, .portrait.ph .lens-base, .portrait.ph .lens-aug { opacity: 0; }
.still .ph { animation: none; }

/* Another Cam app icon (nav button, hero button, Lab tile). */
.nav-cam-icon { width: 30px; height: 30px; display: block; transition: transform .35s var(--ease); }
.nav-cam:hover .nav-cam-icon { transform: scale(1.08) rotate(-6deg); }
.btn-cam { padding-left: 10px; }
.btn-cam-icon { width: 26px; height: 26px; flex: none; }
.tool-icon { display: block; width: 56px; height: 56px; margin: 0 0 12px -3px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); transition: transform .5s var(--ease); }
.tool:hover .tool-icon { transform: translateY(-4px) rotate(-4deg); }

/* Hero buttons: div.rise sets display:block, which dropped the flex row
   and left the buttons sitting on their text baselines (the icon in
   "Try a lens" pushed it 8px out of line). Keep the row a flex row. */
.hero-cta { align-items: center; }
div.hero-cta.rise { display: flex; }

/* HUD bar: three columns so the section label sits in the true centre,
   whatever the widths of the left and right groups. */
.hud { display: grid; grid-template-columns: 1fr auto 1fr; }
.hud-l { grid-column: 1; justify-self: start; }
.hud-c { grid-column: 2; justify-self: center; }
.hud-r { grid-column: 3; justify-self: end; }

.tool.feature .tool-icon { width: 80px; height: 80px; margin: 0 0 14px -4px; }

