/* ==========================================================================
   Shivam Gupta — Software Engineer · Full Stack & DevOps
   style.css · tokens → base → atmosphere → components → acts → responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --void: #06060A;
  --ink-900: #0D0D14;
  --ink-800: #13131C;
  --ink-500: #6B6B7B;
  --ink-400: #8A8A9C;
  --bone: #EEEDF2;
  --bone-dim: rgba(238, 237, 242, 0.72);

  --violet: #7B5CFF;
  --violet-soft: #A890FF;
  --violet-deep: #2A1B6B;
  --signal: #3DFF9A;
  --defect: #FF4D2E;
  --amber: #FFB547;

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.14);

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --sec: clamp(96px, 14vw, 220px);
  --maxw: 1440px;
  --r-win: 28px;
  --r-card: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--void); color-scheme: dark; }
html.is-loading { overflow: hidden; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 18px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

img, video, canvas, 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 { margin: 0; padding: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 6px; }

em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.04em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 300;
  padding: 10px 16px; border-radius: 999px; background: var(--bone); color: var(--void);
  font-weight: 600; transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); }
.section-head { margin-bottom: clamp(40px, 6vw, 88px); max-width: 980px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-soft); margin: 0 0 22px;
}
.h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.04em;
  margin: 0;
}
.h2 em { color: var(--violet-soft); font-size: 1.06em; }
.display {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, 12vw, 220px); line-height: 0.86; letter-spacing: -0.05em; margin: 0;
}
.display em { text-transform: none; color: var(--violet-soft); letter-spacing: -0.02em; }
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line-inner { display: block; }
.char { display: inline-block; will-change: transform; }

/* ---------- Glass system ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--glass-hi), 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  border-radius: var(--r-win);
}
.glow-card { position: relative; overflow: hidden; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 92, 255, 0.22), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.glow-card:hover::before { opacity: 1; }

.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--signal); box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 255, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0); }
}

.tl { display: inline-flex; gap: 7px; flex: none; }
.tl i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a46; }
.tl i:nth-child(1) { background: #ff5f57cc; }
.tl i:nth-child(2) { background: #febc2ecc; }
.tl i:nth-child(3) { background: #28c840cc; }
.win-bar {
  display: flex; align-items: center; gap: 14px; flex: none;
  height: 46px; padding: 0 16px; border-bottom: 1px solid var(--glass-border);
}
.win-url { flex: 1; text-align: center; font-size: 12px; color: var(--ink-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-pass { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--signal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-primary { background: var(--bone); color: var(--void); }
.btn-primary:hover { background: var(--signal); }
.btn-ghost { border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: var(--violet-soft); background: rgba(123, 92, 255, 0.12); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li {
  font-size: 11px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--glass-border); color: var(--bone-dim);
}
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; font-size: 16px; color: var(--bone-dim); line-height: 1.5; }
.checklist b { color: var(--signal); font-family: var(--f-mono); font-weight: 500; flex: none; }
.checklist strong { color: var(--bone); font-weight: 600; }

/* letter roll links */
.roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: top; }
.roll > span { display: block; transition: transform 0.5s var(--ease-out); }
a:hover .roll > span, a:focus-visible .roll > span { transform: translateY(-100%); }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 90; pointer-events: none;
  opacity: 0.065;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(0, 0); }
}
.orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; }
.orb-1 {
  width: 70vmax; height: 70vmax; top: -30vmax; left: -25vmax;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.22), transparent 62%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.orb-2 {
  width: 60vmax; height: 60vmax; bottom: -30vmax; right: -25vmax;
  background: radial-gradient(circle, rgba(84, 56, 200, 0.2), transparent 62%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.orb-3 {
  width: 34vmax; height: 34vmax; top: 40%; left: 55%;
  background: radial-gradient(circle, rgba(61, 255, 154, 0.06), transparent 62%);
  animation: drift1 40s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate(12vw, 10vh); } }
@keyframes drift2 { to { transform: translate(-10vw, -12vh); } }

/* ---------- Cursor (inspector) ---------- */
.cursor { position: fixed; inset: 0; z-index: 110; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor body, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor .pcard { cursor: none; }
.has-cursor.modal-open body, .has-cursor.modal-open a, .has-cursor.modal-open button { cursor: auto; }
.has-cursor.modal-open .cursor { display: none; }
.cursor-ring {
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(238, 237, 242, 0.55); border-radius: 50%;
  transition: opacity 0.25s, width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
.cursor-ring::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px;
  border-radius: 50%; background: var(--signal);
}
.cursor-box {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border: 1px dashed rgba(61, 255, 154, 0.85); border-radius: 10px; opacity: 0;
  transition: opacity 0.25s;
}
.cursor-box i { position: absolute; width: 6px; height: 6px; background: var(--signal); }
.cursor-box i:nth-of-type(1) { top: -3px; left: -3px; }
.cursor-box i:nth-of-type(2) { top: -3px; right: -3px; }
.cursor-box i:nth-of-type(3) { bottom: -3px; left: -3px; }
.cursor-box i:nth-of-type(4) { bottom: -3px; right: -3px; }
.cursor-tag {
  position: absolute; bottom: 100%; left: -1px; margin-bottom: 7px;
  padding: 3px 7px; border-radius: 5px; font-size: 11px; letter-spacing: 0.02em;
  background: var(--signal); color: #04120a; white-space: nowrap;
}
.cursor.is-inspecting .cursor-box { opacity: 1; }
.cursor.is-inspecting .cursor-ring { opacity: 0; }
.cursor.is-down .cursor-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--void); clip-path: inset(0 0 0 0); }
.js .loader { display: grid; animation: loaderSafety 0.01s 8s forwards; }
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; } }
.loader-pill { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 999px; position: relative; z-index: 1; }
.loader-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.loader-pill.is-ready .loader-dot { background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.loader-count { font-size: 14px; color: var(--bone); min-width: 3ch; }
.loader-line { color: var(--ink-400); font-size: 12px; min-width: 19ch; }
.loader-scan {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--signal); box-shadow: 0 0 18px 2px rgba(61, 255, 154, 0.7);
  transform: scaleX(0);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; transition: transform 0.6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-160%); }
.nav-pill {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 999px; background: rgba(14, 13, 22, 0.55);
}
.nav-logo {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.07);
}
.nav-links { display: flex; list-style: none; padding: 0 6px; }
.nav-links a { display: block; padding: 10px 14px; font-size: 14px; color: var(--bone-dim); transition: color 0.3s; }
.nav-links a:hover { color: var(--bone); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--bone); color: var(--void); font-size: 14px; font-weight: 600;
}
.nav-menu { display: none; }
.nav-progress { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; }
.nav-progress-bar {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet), var(--signal));
}
.nav-progress-label { font-size: 10px; color: var(--ink-500); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-progress-label b { color: var(--signal); font-weight: 500; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 79; padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(6, 6, 10, 0.88);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; display: grid; gap: 6px; }
.mobile-menu a {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 15vw, 88px); line-height: 0.95; letter-spacing: -0.045em;
}
.mobile-menu p { color: var(--signal); margin: 0; }

/* ---------- Stage (video / procedural fallback) ---------- */
.stage { position: absolute; inset: 0; overflow: hidden; background: var(--void); transform-origin: 50% 48%; }
.scene-canvas, .scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-video { opacity: 0; transition: opacity 1s; }
.stage.has-video .scene-video { opacity: 1; }
.stage.has-video .scene-canvas { visibility: hidden; }
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(6, 6, 10, 0.85) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}

/* ==========================================================================
   ACT 1 · HERO
   ========================================================================== */
.hero { position: relative; }
.hero-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

.hero-captions, .hero-intro, .contact-caption { display: none; }
.is-full .hero-captions { display: block; }
.is-full .hero-intro { display: flex; }
.is-full .contact-caption { display: block; }

.hero-captions { position: absolute; left: 50%; bottom: 15svh; transform: translateX(-50%); z-index: 2; }
.hero-captions span {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: rgba(6, 6, 10, 0.5);
  border: 1px solid var(--glass-border); color: var(--bone-dim); opacity: 0;
}
.hero-captions b { color: var(--signal); font-weight: 500; }
.hero-intro {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; z-index: 2;
  justify-content: space-between; align-items: center; color: var(--ink-400);
}
.hero-intro p { margin: 0; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--bone-dim); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--signal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-window {
  position: absolute; z-index: 3;
  inset: 84px clamp(10px, 1.6vw, 24px) clamp(10px, 1.6vw, 24px);
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(12, 11, 20, 0.5);
  transform-origin: 50% 48%;
}
.hero-content {
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(20px, 4vw, 64px);
}
.hero-content .eyebrow { margin-bottom: 0.6em; }
.hero-name {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, min(16.5vw, 26svh), 300px);
  line-height: 0.84; letter-spacing: -0.05em; margin: 0 0 0.22em;
}
.hero-name .line:nth-child(2) .line-inner {
  color: transparent; -webkit-text-stroke: 2px rgba(238, 237, 242, 0.92);
  padding-left: 0.55em;
}
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 28px; align-items: end; }
.hero-sub {
  font-size: clamp(20px, 2.1vw, 32px); line-height: 1.15; font-weight: 500; letter-spacing: -0.015em;
  max-width: 19ch; margin: 0;
}
.hero-sub em { color: var(--violet-soft); font-size: 1.12em; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero-chips li {
  padding: 8px 12px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04);
}
.hero-chips b { color: var(--signal); font-weight: 500; }
.hero-actions { display: flex; gap: 10px; }
.hero-status {
  position: absolute; top: 66px; right: clamp(20px, 4vw, 64px);
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 12px; color: var(--bone-dim);
}

/* ==========================================================================
   ACT 2 · STATS
   ========================================================================== */
.stats { position: relative; padding-block: clamp(64px, 9vw, 140px); overflow: hidden; }
.stats-ticker {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  overflow: hidden; white-space: nowrap; pointer-events: none;
  font-size: clamp(44px, 7.5vw, 120px); letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.035);
}
.ticker-track { display: inline-flex; animation: ticker 50s linear infinite; }
.ticker-track em { font-family: inherit; font-style: normal; color: rgba(255, 77, 46, 0.1); }
@keyframes ticker { to { transform: translateX(-50%); } }
.stats-grid { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.stat { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.stat + .stat { border-left: 1px solid var(--glass-border); }
.stat-num {
  display: flex; align-items: flex-start;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 6.5vw, 104px);
  line-height: 0.9; letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
}
.stat-prompt { font-size: 0.22em; color: var(--signal); margin: 0.55em 0.45em 0 0; letter-spacing: 0; }
.stat-label { color: var(--bone-dim); font-size: 15px; line-height: 1.45; }
.stat-label small { color: var(--ink-500); font-size: 11px; }

/* ==========================================================================
   ACT 3 · MISSION
   ========================================================================== */
.mission { position: relative; background: #000; }
.mission-pin {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 16svh var(--gutter);
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(123, 92, 255, 0.14), transparent 70%), #000;
}
.letterbox { position: absolute; left: 0; right: 0; height: 11svh; background: #000; z-index: 2; transform: scaleY(0); }
.letterbox-top { top: 0; transform-origin: top; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.letterbox-bottom { bottom: 0; transform-origin: bottom; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.no-js .letterbox, .is-lite .letterbox { transform: none; }
.mission-kicker { color: var(--violet-soft); margin-bottom: 36px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; }
.mission-text {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px, 6.2vw, 108px); line-height: 1; letter-spacing: -0.045em;
  max-width: 15ch; margin: 0;
}
.mission-text em { display: block; margin-top: 0.18em; color: var(--bone); letter-spacing: -0.02em; font-size: 1.04em; }
.mission-text .w { transition: text-shadow 0.4s; }
.mission-caption { margin: 44px 0 0; color: var(--ink-400); max-width: 48ch; font-size: 13px; line-height: 1.8; }

/* ==========================================================================
   ACT 4 · PILLARS
   ========================================================================== */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); perspective: 1200px; }
.pillar {
  padding: clamp(28px, 3vw, 44px); border-radius: var(--r-card); min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.pillar-num {
  position: absolute; top: 4px; right: 18px; line-height: 1;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(110px, 11vw, 170px); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}
.pillar-icon {
  width: 52px; height: 52px; margin-bottom: auto;
  fill: none; stroke: var(--violet-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.035em; line-height: 1.05; margin: 40px 0 14px; }
.pillar p { color: var(--bone-dim); margin: 0; font-size: 16px; }

/* ==========================================================================
   ACT 5 · STORY
   ========================================================================== */
.story { position: relative; padding-block: var(--sec); }
.story-pin {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 120px); align-items: center;
}
.story.is-pinned { padding-block: 0; }
.story.is-pinned .story-pin { height: 100vh; height: 100svh; padding-top: 90px; padding-bottom: 40px; }

.headshot {
  position: relative; margin: 0; padding: 10px; border-radius: var(--r-win);
  aspect-ratio: 4 / 5; max-height: 72svh; max-width: 520px; width: 100%; justify-self: center;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 20px; filter: saturate(0.85) contrast(1.05); }
.headshot::after {
  content: ""; position: absolute; inset: 10px; border-radius: 20px; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(6, 6, 10, 0.8)),
    linear-gradient(135deg, rgba(123, 92, 255, 0.22), transparent 55%);
}
.headshot-scan {
  position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; z-index: 2; opacity: 0;
  background: var(--signal); box-shadow: 0 0 18px 3px rgba(61, 255, 154, 0.6);
}
.corner { position: absolute; z-index: 2; width: 20px; height: 20px; border: 2px solid var(--signal); }
.c-tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.c-tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.c-bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
.c-br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }
.headshot figcaption { position: absolute; left: 30px; bottom: 30px; z-index: 2; font-size: 12px; color: var(--bone-dim); }
.headshot figcaption b { color: var(--signal); font-weight: 500; }

.story-text .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.story-text .arrow { color: var(--signal); font-weight: 400; }
.story-chapters { position: relative; padding-left: 34px; display: grid; gap: 44px; }
.story-rail { position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: rgba(255, 255, 255, 0.08); }
.story-rail span { display: block; height: 100%; transform-origin: top; background: linear-gradient(var(--violet), var(--signal)); }
.story.is-pinned .story-chapters { display: block; min-height: clamp(230px, 30svh, 320px); }
.story.is-pinned .chapter { position: absolute; top: 0; left: 34px; right: 0; }
.chapter { max-width: 54ch; }
.chapter-time { color: var(--signal); font-size: 12px; margin: 0 0 10px; }
.chapter h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 14px; }
.chapter p { color: var(--bone-dim); margin: 0; font-size: clamp(16px, 1.25vw, 19px); }
.chapter strong { color: var(--bone); font-weight: 600; }

/* ==========================================================================
   ACT 6 · SERVICES
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.service { padding: clamp(28px, 3vw, 48px); border-radius: var(--r-card); }
.service-idx { color: var(--violet-soft); font-size: 12px; margin: 0 0 clamp(36px, 5vw, 72px); }
.service h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -0.04em; line-height: 1; margin: 0 0 16px; }
.service > p { color: var(--bone-dim); margin: 0 0 28px; max-width: 46ch; }
.service-bridge {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.1), rgba(255, 255, 255, 0.03) 50%);
}
.bridge-flow { font-size: 13px; margin: 0 0 28px; color: var(--bone); }
.bridge-flow span { color: var(--signal); margin: 0 4px; }

.terminal {
  position: relative; border-radius: 16px; overflow: hidden; min-width: 0;
  background: rgba(5, 5, 9, 0.88); border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(123, 92, 255, 0.08);
}
.terminal-bar {
  display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px; color: var(--ink-400);
}
.terminal-bar > .mono { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-rerun {
  font-size: 11px; padding: 5px 11px; border-radius: 999px; color: var(--bone-dim);
  border: 1px solid var(--glass-border); transition: border-color 0.3s, color 0.3s;
}
.terminal-rerun:hover { border-color: var(--signal); color: var(--signal); }
.terminal-body {
  margin: 0; padding: 18px 18px 34px; overflow-x: auto;
  font-size: clamp(11px, 0.95vw, 13.5px); line-height: 1.75; letter-spacing: 0;
  min-height: calc(15 * 1.75em + 52px); color: var(--bone-dim); white-space: pre;
}
.t-line { display: block; min-height: 1.75em; }
.t-prompt { color: var(--violet-soft); }
.t-cmd { color: var(--bone); }
.t-dim { color: var(--ink-500); }
.t-pass { color: var(--signal); }
.t-fail { color: var(--defect); }
.t-amber { color: var(--amber); }
.t-sum { color: var(--signal); }
.t-cursor { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.15em; background: var(--signal); animation: blink 1s steps(1) infinite; }
.terminal-note { position: absolute; right: 14px; bottom: 10px; font-size: 10px; color: var(--ink-500); }

/* ==========================================================================
   ACT 7 · WORK + BUG BOARD
   ========================================================================== */
.work { position: relative; }
.work-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.work-title {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
}
.work-caption { color: var(--ink-400); margin: 28px 0 0; }
.playground-wrap { padding-block: clamp(40px, 6vw, 96px) var(--sec); }
.browser { overflow: hidden; }
.browser .win-bar { gap: 16px; }
.win-tab {
  font-size: 12px; padding: 6px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.07); color: var(--bone);
}
.win-hint { font-size: 11px; color: var(--signal); }

/* default = static grid (no JS, reduced motion) */
.playground {
  position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px; padding: clamp(16px, 2.5vw, 32px);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.playground-joke { display: none; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left;
  padding: 20px; border-radius: 20px; color: var(--bone);
  background: rgba(24, 21, 40, 0.78); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--glass-hi), 0 24px 50px -16px rgba(0, 0, 0, 0.75);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pcard:hover { border-color: rgba(168, 144, 255, 0.6); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-400); }
.pcard-status { padding: 3px 9px; border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.pcard-status.pass { color: var(--signal); background: rgba(61, 255, 154, 0.1); }
.pcard-status.live { color: var(--amber); background: rgba(255, 181, 71, 0.1); }
.pcard-title { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; line-height: 1.05; margin-top: 22px; }
.pcard-meta { font-size: 14px; color: var(--bone-dim); }
.pcard-tags { font-size: 11px; color: var(--violet-soft); }
.pcard-cta { font-size: 11px; color: var(--signal); margin-top: 12px; }

.playground.is-physics {
  display: block; padding: 0; height: clamp(540px, 74svh, 780px); overflow: hidden;
  touch-action: pan-y;
}
.playground.is-physics .playground-joke {
  display: block; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  margin: 0; padding: 0 24px; pointer-events: none; text-align: center; line-height: 1;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 6vw, 100px); letter-spacing: -0.045em;
  color: rgba(255, 255, 255, 0.06);
}
.playground-joke em { color: rgba(168, 144, 255, 0.14); }
.playground.is-physics .pcard {
  position: absolute; left: 0; top: 0; width: clamp(250px, 21vw, 300px);
  user-select: none; -webkit-user-select: none; touch-action: none; will-change: transform;
  cursor: grab;
}
.playground.is-physics .pcard.is-dragging {
  cursor: grabbing; z-index: 5; border-color: var(--signal);
  box-shadow: var(--glass-hi), 0 40px 70px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(61, 255, 154, 0.4);
}

/* report dialog — fixed + own scrim so it overlays even outside the top layer */
.report-scrim {
  position: fixed; inset: 0; z-index: 140; opacity: 0; pointer-events: none;
  background: rgba(4, 4, 8, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 0.35s;
}
.modal-open .report-scrim { opacity: 1; pointer-events: auto; }
.report {
  position: fixed; inset: 0; z-index: 150;
  padding: 0; margin: auto; color: var(--bone); overflow: hidden;
  width: min(760px, calc(100vw - 32px)); max-height: min(86svh, 900px);
  background: rgba(16, 15, 26, 0.86);
}
.report[open] { display: flex; flex-direction: column; }
.report::backdrop { background: transparent; }
.report-close {
  font-size: 11px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--glass-border); color: var(--bone-dim);
}
.report-close:hover { border-color: var(--defect); color: var(--bone); }
.report-body { overflow-y: auto; padding: clamp(24px, 4vw, 52px); overscroll-behavior: contain; }
.report-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.045em; line-height: 1; margin: 0 0 16px; }
.report-lede { color: var(--bone-dim); font-size: clamp(17px, 1.5vw, 20px); margin: 0 0 24px; max-width: 52ch; }
.report h4 { color: var(--violet-soft); font-size: 12px; font-weight: 400; margin: 34px 0 14px; text-transform: uppercase; letter-spacing: 0.12em; }
.report-result { font-size: clamp(20px, 2vw, 26px); margin: 34px 0 0; line-height: 1.3; }
.report-result em { color: var(--signal); }
.report-platforms { color: var(--bone); font-size: 14px; }
.report-note { color: var(--ink-500); margin: 28px 0 0; font-size: 11px; }
.report-actions { margin-top: 32px; }
.stack-list { margin: 24px 0 0; }
.stack-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.stack-list dt { color: var(--violet-soft); font-size: 11px; text-transform: uppercase; padding-top: 4px; }
.stack-list dd { margin: 0; color: var(--bone-dim); font-size: 16px; }
.cert-list { list-style: none; margin: 24px 0 0; }
.cert-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--bone-dim); font-size: 16px; }
.cert-list strong { color: var(--bone); }
.cert-list .mono { color: var(--signal); flex: none; }
.cert-list a { color: var(--bone); transition: color 0.3s; }
.cert-list a:hover { color: var(--signal); }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   ACT 8 · CONTACT
   ========================================================================== */
.contact { position: relative; }
.contact-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.contact-caption { position: absolute; left: 50%; bottom: 14svh; transform: translateX(-50%); z-index: 2; }
.contact-caption span {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: 0;
  padding: 8px 14px; border-radius: 999px; background: rgba(6, 6, 10, 0.5);
  border: 1px solid var(--glass-border); color: var(--bone-dim);
}
.contact-caption b { color: var(--signal); font-weight: 500; }
.bloom {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 48%, #f1fff7 0%, rgba(61, 255, 154, 0.6) 28%, rgba(123, 92, 255, 0.25) 58%, rgba(6, 6, 10, 0) 82%);
}
.contact-panel-wrap { position: relative; z-index: 4; margin-top: -30svh; padding-bottom: var(--sec); }
.contact-panel {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px); padding: clamp(24px, 4.5vw, 72px);
  background: rgba(14, 13, 24, 0.74);
}
.contact-left .eyebrow { color: var(--signal); }
.contact-title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 6vw, 100px);
  line-height: 0.92; letter-spacing: -0.05em; margin: 0 0 40px;
}
.contact-title em { display: block; color: var(--signal); letter-spacing: -0.02em; margin-top: 0.06em; }
.email-btn {
  display: inline-flex; align-items: center; gap: 16px; max-width: 100%;
  padding: 14px 26px 14px 14px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 2.2vw, 34px); letter-spacing: -0.02em;
  background: rgba(61, 255, 154, 0.08); border: 1px solid rgba(61, 255, 154, 0.35);
  transition: background-color 0.3s;
}
.email-btn:hover { background: rgba(61, 255, 154, 0.16); }
.email-arrow {
  width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--signal); color: var(--void); font-size: 22px; transition: transform 0.4s var(--ease-out);
}
.email-btn:hover .email-arrow { transform: rotate(-45deg); }
.email-text { overflow-wrap: anywhere; min-width: 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-meta { color: var(--ink-400); margin: 28px 0 0; font-size: 12px; }

.ticket {
  display: grid; gap: 18px; align-content: start; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-card);
  background: rgba(5, 5, 9, 0.6); border: 1px solid var(--glass-border);
}
.ticket-head { display: flex; justify-content: space-between; align-items: center; }
.ticket-head h3 { font-size: 13px; font-weight: 400; margin: 0; color: var(--violet-soft); }
.ticket-id { font-size: 11px; color: var(--ink-500); border: 1px dashed rgba(255, 255, 255, 0.16); padding: 4px 8px; border-radius: 6px; }
.field { position: relative; display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { font-size: 13px; color: var(--bone-dim); padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.optional { color: var(--ink-500); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--bone);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  padding: 13px 16px; outline: none; resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus { border-color: var(--violet-soft); box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.18); }
.has-cursor .field input, .has-cursor .field textarea { cursor: text; }
.field.is-valid input, .field.is-valid textarea { border-color: rgba(61, 255, 154, 0.5); }
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(255, 77, 46, 0.75); }
.field-msg { font-size: 11px; color: var(--defect); }
.field-msg:empty { display: none; }
.field.is-valid .field-msg { color: var(--signal); }
.seg {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label {
  flex: 1; text-align: center; padding: 10px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; color: var(--bone-dim); cursor: pointer; transition: background-color 0.25s, color 0.25s;
}
.seg input:checked + label { background: var(--bone); color: var(--void); }
.seg input:focus-visible + label { outline: 2px solid var(--violet-soft); outline-offset: 2px; }
.ticket-submit { width: 100%; justify-content: center; }
.ticket-submit.is-done { background: var(--signal); }
.ticket-note { font-size: 11px; color: var(--ink-500); margin: 0; text-align: center; }

/* ==========================================================================
   ACT 9 · FOOTER
   ========================================================================== */
.footer { position: relative; padding-top: clamp(64px, 8vw, 120px); border-top: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.6fr; gap: 32px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer ul a { color: var(--bone-dim); transition: color 0.3s; }
.footer ul a:hover { color: var(--bone); }
.footer-status { display: flex; align-items: center; gap: 10px; color: var(--signal); margin: 0 0 8px; font-size: 12px; }
.footer-clock { color: var(--ink-400); font-size: 12px; margin: 0; }
.footer-line { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.04em; line-height: 1; margin: 0 0 12px; }
.footer-line em { color: var(--violet-soft); }
.footer-bugs { color: var(--signal); font-size: 12px; margin: 0; }
.footer-mark {
  position: relative; margin-top: clamp(48px, 6vw, 96px); text-align: center; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800; font-size: 12vw; line-height: 0.8; letter-spacing: -0.06em;
  user-select: none;
}
.footer-mark::before {
  content: ""; position: absolute; left: 20%; right: 20%; top: 10%; bottom: -40%;
  background: radial-gradient(ellipse at 50% 60%, rgba(123, 92, 255, 0.35), transparent 70%); z-index: -1;
}
.footer-mark span {
  display: inline-block;
  background: linear-gradient(180deg, var(--bone) 0%, rgba(238, 237, 242, 0.05) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; padding-block: 22px 28px;
  font-size: 12px; color: var(--ink-400); border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.to-top:hover { color: var(--signal); }

/* ---------- Toast & easter egg ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130; pointer-events: none;
  transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 999px; background: var(--signal); color: #04120a; font-size: 13px;
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.egg {
  position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; text-align: center; pointer-events: none;
  background: rgba(6, 6, 10, 0.82); padding: var(--gutter);
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.9;
  font-size: clamp(48px, 10vw, 180px); color: var(--signal); text-shadow: 0 0 60px rgba(61, 255, 154, 0.45);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 320px; }
  .service-bridge { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-chips { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 17px; }
  .grain { opacity: 0.04; }
  .orb-3 { display: none; }

  .nav { top: 10px; }
  .nav-links, .nav-progress-label { display: none; }
  .nav-pill { gap: 6px; }
  .nav-cta { padding: 0 14px; }
  .nav-menu {
    display: grid; place-content: center; gap: 5px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
  }
  .nav-menu > span:not(.sr-only) { display: block; width: 16px; height: 1.5px; background: var(--bone); transition: transform 0.35s var(--ease-out); }
  .nav-menu[aria-expanded="true"] > span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
  .nav-menu[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

  .hero-window { inset: 68px 10px 10px; }
  .hero-content { justify-content: flex-end; padding: 22px 18px 24px; }
  .hero-name { font-size: clamp(56px, 19vw, 120px); }
  .hero-name .line:nth-child(2) .line-inner { -webkit-text-stroke-width: 1.5px; padding-left: 0.3em; }
  .hero-bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 0 18px; }
  .hero-status, .win-pass { display: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--glass-border); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--glass-border); }
  .stat-label small { display: none; }

  .story-pin { grid-template-columns: 1fr; }
  .headshot { max-width: 360px; justify-self: start; }

  .services-grid { grid-template-columns: 1fr; }

  .work-pin { height: 72svh; }
  .browser .win-url, .browser .win-hint { display: none; }
  .browser .win-bar { justify-content: flex-start; }
  .playground {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 18px;
    scrollbar-width: none;
  }
  .playground::-webkit-scrollbar { display: none; }
  .playground .pcard { flex: 0 0 80%; scroll-snap-align: center; }

  .report {
    width: 100%; max-width: 100%; max-height: 90svh; margin: auto 0 0;
    border-radius: 24px 24px 0 0; border-bottom: 0;
  }
  .stack-list > div { grid-template-columns: 1fr; gap: 4px; }

  .contact-pin { height: 64svh; }
  .contact-panel-wrap { margin-top: -12svh; }
  .contact-panel { padding: 22px 18px; }
  .seg label { flex: 1 1 100%; }
  .seg { border-radius: 18px; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-sign { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .ticker-track, .orb, .status-dot, .caret, .t-cursor { animation: none !important; }
  html { scroll-behavior: auto; }
}
