/* ============================================================================
   SYED HAMZA KAZMI — PORTFOLIO PROTOTYPE (Stage A, revision 2)
   Art direction: obsidian/volcanic base · neon orange, amber & ember-red
   illumination · warm-white type · optional cyan for small technical data ·
   Apple-like glass cards · one persistent 3D world behind the page.
   No frameworks. Progressive enhancement throughout: everything below reads
   correctly with no JS, no WebGL and no backdrop-filter support.
   ========================================================================== */

/* ---------- self-hosted fonts (OFL licenses in assets/fonts/) ---------- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #050604;
  --bg-2: #0b0d08;
  --bg-3: #12150c;
  --ink: #f2f5e9;
  --ink-2: #cdd4bb;
  --muted: #96a081;
  --text-subtle: #99a287;   /* essential low-emphasis text — passes 4.5:1 on all surfaces */
  --faint: #5d654e;         /* DECORATION ONLY (aria-hidden ticks/cues) — never essential text */
  --label: 0.8125rem;       /* 13px floor for uppercase mono labels */
  --ember: #dfff63;
  --amber: #f2ffa1;
  --ember-red: #a8d020;
  --ember-soft: #e9ff8f;
  --cyan: #4fd8e8;             /* small technical/data contrast only */
  --line: rgba(242, 245, 233, 0.13);
  --line-soft: rgba(242, 245, 233, 0.065);
  --glass-bg: rgba(18, 22, 12, 0.45);
  --glass-bg-solid: rgba(20, 24, 14, 0.94);
  --font-sans: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);
  --step-5: clamp(2.9rem, 1.9rem + 5vw, 6rem);
  --space: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1360px;
  --r: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ember); color: #10130a; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 400; background: var(--ember); color: #10130a; padding: 0.7rem 1.2rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.cyan { color: var(--cyan); }

/* ============================================================
   WORLD BACKDROP — CSS sky behind the transparent WebGL canvas.
   Doubles as the designed no-WebGL / no-JS fallback.
   ============================================================ */
.world {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(168, 208, 32, 0.16), transparent 55%),
    radial-gradient(70% 50% at 78% 96%, rgba(223, 255, 99, 0.2), transparent 60%),
    radial-gradient(50% 40% at 18% 90%, rgba(223, 255, 99, 0.08), transparent 65%),
    linear-gradient(180deg, #070403 0%, #050604 40%, #0e1209 78%, #1d0d05 100%);
}
.world canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.world.live canvas { opacity: 1; }
/* static horizon art — visible until WebGL delivers a frame; stays if it can't */
.world-fallback { position: absolute; inset: 0; transition: opacity 1s; }
.world.live .world-fallback { opacity: 0; }
.world-fallback svg { width: 100%; height: 100%; overflow: hidden; }
.world, .world-fallback { overflow: clip; }
/* faint technical grid over the sky */
.world::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px) 0 0 / 140px 100%,
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px) 0 0 / 100% 140px;
  mask-image: radial-gradient(90% 65% at 50% 20%, #000 20%, transparent 80%);
  opacity: 0.35;
}
main, .site-footer { position: relative; z-index: 2; }

/* ============================================================
   GLASS SYSTEM — translucent layer, blur+saturation, gradient
   border, specular highlight, inner glow, deep shadow.
   ============================================================ */
.glass {
  position: relative;
  border-radius: var(--r);
  background:
    linear-gradient(150deg, rgba(255, 245, 235, 0.07), rgba(255, 245, 235, 0.015) 35%, rgba(223, 255, 99, 0.03) 80%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 235, 0.1),
    inset 0 0 34px rgba(223, 255, 99, 0.05),
    0 28px 70px -28px rgba(0, 0, 0, 0.8);
}
.glass::before { /* gradient border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(255, 245, 235, 0.3), rgba(223, 255, 99, 0.28) 38%, rgba(255, 245, 235, 0.05) 66%, rgba(168, 208, 32, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
.glass::after { /* pointer-reactive specular light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 28%) var(--gy, 18%), rgba(255, 200, 140, 0.09), transparent 62%);
  opacity: 0; transition: opacity 0.45s;
}
.glass:hover::after, .glass:focus-within::after { opacity: 1; }
/* readable fallback when backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-solid); }
}
/* restrained depth/tilt (JS drives the vars on fine pointers only) */
.tilt-zone { perspective: 1100px; }
[data-tilt] { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform 0.35s var(--ease); will-change: transform; }

/* ============================================================
   ENERGY TRACE — the neon-orange line that connects sections
   ============================================================ */
.trace {
  position: relative; width: 2px; height: clamp(70px, 10vh, 130px);
  margin-inline: auto; overflow: visible;
}
.trace::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, var(--ember) 30%, var(--amber) 70%, transparent);
  box-shadow: 0 0 12px rgba(223, 255, 99, 0.8), 0 0 34px rgba(223, 255, 99, 0.35);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.1s var(--ease);
}
.trace::after { /* node at the tip */
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px;
  transform: translateX(-50%) scale(0); border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 14px var(--ember), 0 0 30px rgba(223, 255, 99, 0.6);
  transition: transform 0.5s var(--ease) 0.75s;
}
.trace.energized::before { transform: scaleY(1); }
.trace.energized::after { transform: translateX(-50%) scale(1); }
html:not(.js-anim) .trace::before { transform: scaleY(1); }
html:not(.js-anim) .trace::after { transform: translateX(-50%) scale(1); }

/* chapter progress rail (desktop) */
.rail {
  position: fixed; right: clamp(0.8rem, 2vw, 2rem); top: 50%; transform: translateY(-50%);
  z-index: 90; display: grid; gap: 0.85rem; justify-items: center;
}
.rail::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(223, 255, 99, 0.4), transparent);
}
.rail a {
  position: relative; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
}
.rail a i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: background 0.3s, box-shadow 0.3s, transform 0.3s; }
.rail a:hover i { background: var(--ink-2); }
.rail a.active i { background: var(--amber); transform: scale(1.35); box-shadow: 0 0 12px var(--ember), 0 0 26px rgba(223, 255, 99, 0.5); }
.rail a .tip {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); background: var(--glass-bg-solid); border: 1px solid var(--line);
  padding: 0.3rem 0.65rem; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease);
}
.rail a:hover .tip, .rail a:focus-visible .tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 1180px) { .rail { display: none; } }

/* ============================================================
   INIT SEQUENCE — ≤1.2 s, skippable, once per session
   ============================================================ */
.init { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: #070403; }
.init[hidden] { display: none; }
.init-panel { width: min(420px, 86vw); padding: 1.6rem 1.8rem; display: grid; gap: 0.9rem; }
.init-line { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.14em; color: var(--muted); min-height: 1.2em; }
.init-line b { color: var(--ember-soft); font-weight: 500; }
.init-bar { height: 3px; border-radius: 99px; background: rgba(242, 245, 233, 0.09); overflow: hidden; }
.init-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--amber)); box-shadow: 0 0 12px var(--ember); transition: width 0.18s linear; }
.init-skip { justify-self: end; font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-subtle); padding: 0.4rem 0.2rem; }
.init-skip:hover { color: var(--amber); }
.init.done { animation: init-out 0.45s var(--ease) forwards; }
@keyframes init-out { to { opacity: 0; visibility: hidden; } }

/* ============================================================
   COMMAND BAR — floating glass header
   ============================================================ */
.command-bar {
  position: fixed; z-index: 100; top: clamp(0.6rem, 1.6vh, 1.1rem); left: 50%; transform: translateX(-50%);
  width: min(100% - 1.6rem, 1180px);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.55rem 0.9rem 0.55rem 1rem;
}
.command-bar .progress {
  position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 99px; overflow: hidden;
  background: rgba(242, 245, 233, 0.07);
}
.command-bar .progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  box-shadow: 0 0 10px var(--ember);
  transform: scaleX(var(--sp, 0)); transform-origin: left;
}
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.15; }
.brand .sig {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; flex: none;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber);
  background: linear-gradient(145deg, rgba(223, 255, 99, 0.2), transparent 65%);
  box-shadow: inset 0 0 12px rgba(223, 255, 99, 0.12);
}
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.6rem); }
.nav-links a:not(.btn) {
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-2); padding: 0.45rem 0.15rem; position: relative;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0.2rem; height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  box-shadow: 0 0 8px var(--ember);
  transition: right 0.3s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 940px) {
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    content: ""; display: block; width: 17px; height: 2px; background: var(--ink); position: relative; transition: transform 0.3s, opacity 0.3s;
  }
  .nav-toggle .bars::before { position: absolute; top: -5.5px; }
  .nav-toggle .bars::after { position: absolute; top: 5.5px; }
  .nav-toggle[aria-expanded="true"] .bars { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: rotate(90deg); top: 0; }
  .nav-toggle[aria-expanded="true"] .bars::after { opacity: 0; }
  .nav-links {
    position: fixed; left: 50%; transform: translateX(-50%) translateY(-10px);
    top: calc(clamp(0.6rem, 1.6vh, 1.1rem) + 60px);
    width: min(100% - 1.6rem, 1180px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--glass-bg-solid); border: 1px solid var(--line); border-radius: 16px;
    padding: 0.6rem 1.1rem 1.2rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  }
  .nav-links.open { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 0.95rem 0.2rem; font-size: var(--step-0); border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: var(--step-0); line-height: 1; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary {
  background: linear-gradient(120deg, var(--ember), #d6f455);
  color: #180a04;
  box-shadow: 0 6px 26px -6px rgba(223, 255, 99, 0.55), inset 0 1px 0 rgba(247, 255, 224, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px -8px rgba(223, 255, 99, 0.7), inset 0 1px 0 rgba(247, 255, 224, 0.5); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(18, 22, 12, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-soft); transform: translateY(-2px); box-shadow: 0 8px 26px -10px rgba(223, 255, 99, 0.4); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: var(--step--1); }

/* ---------- type helpers ---------- */
.k-label {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 0.9rem;
}
.k-label::before { content: ""; width: 34px; height: 2px; flex: none; background: linear-gradient(90deg, var(--ember), var(--amber)); box-shadow: 0 0 8px rgba(223, 255, 99, 0.7); }
.section-head { display: grid; gap: 1.1rem; max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head .lede { color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; }

/* split-line headline reveal */
.split .w { display: inline-block; overflow: clip; vertical-align: bottom; }
.split .w > span { display: inline-block; transform: translateY(0); }
.js-anim .split:not(.in) .w > span { transform: translateY(110%); }
.js-anim .split .w > span { transition: transform 0.85s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms); }

/* generic reveals (progressive enhancement — visible without JS) */
.rv, .rv-blur, .rv-card, .wipe { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.js-anim .rv:not(.in) { opacity: 0; transform: translateY(26px); }
.js-anim .rv-blur:not(.in) { opacity: 0; filter: blur(14px); transform: translateY(10px); }
.js-anim .rv-card:not(.in) { opacity: 0; transform: perspective(900px) translateY(44px) rotateX(7deg) scale(0.98); }
.js-anim .rv-card { transition-delay: calc(var(--i, 0) * 90ms); }
.rv-d1 { transition-delay: 0.08s; } .rv-d2 { transition-delay: 0.16s; } .rv-d3 { transition-delay: 0.24s; }
/* image wipe */
.wipe { position: relative; overflow: clip; }
.wipe .wipe-panel {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(120deg, #1d0e07, #2a1207);
  transform: translateX(0); transition: transform 0.9s var(--ease) 0.1s;
}
.js-anim .wipe.in .wipe-panel { transform: translateX(101%); }
html:not(.js-anim) .wipe-panel { display: none; }

/* ============================================================
   HERO — full-viewport environment + value proposition
   ============================================================ */
/* preserved helpers from the old hero */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.split.in .w { overflow: visible; } /* let glows render fully once revealed */
@media (max-width: 700px) { .hero-ctas .btn { flex: 1; justify-content: center; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.4rem; }
.scroll-cue {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--ember), transparent); animation: drip 2s infinite var(--ease); }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- sections ---------- */
.section { padding-block: calc(var(--space) * 0.72); position: relative; }
.trace-gap { display: grid; place-items: center; padding-block: 0.4rem; }

/* ============================================================
   EVIDENCE — glass HUD nodes activated by the trace
   ============================================================ */
.hud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 1.8vw, 1.4rem); }
@media (max-width: 960px) { .hud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .hud-grid { grid-template-columns: 1fr; } }
.hud-node { padding: 1.35rem 1.4rem 1.45rem; display: grid; gap: 0.45rem; align-content: start; }
.hud-node .hud-top { display: flex; justify-content: space-between; align-items: center; }
.hud-node .hud-id { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.18em; color: var(--text-subtle); }
.hud-node .hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); transition: background 0.5s, box-shadow 0.5s; }
.hud-node strong { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.hud-node span.sub { color: var(--muted); font-size: var(--step--1); font-family: var(--font-mono); letter-spacing: 0.05em; }
.hud-node .hud-meter { height: 2px; margin-top: 0.6rem; border-radius: 99px; background: rgba(242, 245, 233, 0.08); overflow: hidden; }
.hud-node .hud-meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ember), var(--amber)); box-shadow: 0 0 8px var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) 0.25s; }
.hud-node.active .hud-dot { background: var(--amber); box-shadow: 0 0 10px var(--ember), 0 0 24px rgba(223, 255, 99, 0.5); }
.hud-node.active .hud-meter i { transform: scaleX(1); }
html:not(.js-anim) .hud-node .hud-meter i { transform: scaleX(1); }
html:not(.js-anim) .hud-node .hud-dot { background: var(--amber); }

/* ============================================================
   SHOWREEL — cinematic teaser (no dead modal)
   ============================================================ */
.reel { position: relative; overflow: clip; padding: clamp(1.6rem, 4vw, 3rem); }
.reel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 960px) { .reel-grid { grid-template-columns: 1fr; } }
.reel-figure { position: relative; min-height: 320px; display: grid; place-items: end center; }
.reel-figure .halo {
  position: absolute; inset: auto 0 0 0; height: 78%;
  background: radial-gradient(60% 75% at 50% 100%, rgba(223, 255, 99, 0.32), rgba(168, 208, 32, 0.1) 55%, transparent 75%);
  filter: blur(4px);
}
.reel-figure .ring { position: absolute; bottom: -8%; left: 50%; transform: translateX(-50%); width: 84%; aspect-ratio: 2.6; border: 1px solid rgba(223, 255, 99, 0.4); border-radius: 50%; box-shadow: 0 0 24px rgba(223, 255, 99, 0.25) inset; }
.reel-figure img { position: relative; z-index: 2; width: min(78%, 320px); height: auto; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 34px rgba(223, 255, 99, 0.2)); }
.reel-copy { display: grid; gap: 1.1rem; align-content: center; }
.reel-copy h2 { font-size: var(--step-3); }
.reel-status {
  display: inline-flex; align-items: center; gap: 0.6rem; width: fit-content;
  font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(242, 255, 161, 0.35); border-radius: 999px; padding: 0.4rem 0.9rem;
  background: rgba(223, 255, 99, 0.07);
}
.reel-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2s infinite; }
.storyboard { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-top: 0.6rem; counter-reset: beat; }
@media (max-width: 700px) { .storyboard { grid-template-columns: repeat(2, 1fr); } }
.beat { border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(14, 8, 5, 0.5); padding: 0.75rem 0.8rem 0.85rem; display: grid; gap: 0.3rem; }
.beat::before { counter-increment: beat; content: "0" counter(beat); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--ember-soft); }
.beat b { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.beat span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-subtle); letter-spacing: 0.08em; }
.reel-player { border-radius: 14px; overflow: clip; border: 1px solid var(--line); }
.reel-player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ============================================================
   COMMAND DECK — filters (home selector + archive)
   ============================================================ */
.deck { padding: clamp(1.2rem, 2.5vw, 1.8rem); display: grid; gap: 1.1rem; }
.deck-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.deck-title { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-subtle); display: flex; align-items: center; gap: 0.6rem; }
.deck-title::before { content: "▮"; color: var(--ember); font-size: 0.55rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.72rem 1.25rem; font-size: var(--step--1); font-weight: 500;
  color: var(--ink-2); background: rgba(20, 11, 7, 0.4);
  transition: border-color 0.25s, color 0.25s, background 0.3s, transform 0.25s var(--ease), box-shadow 0.3s;
}
.chip:hover { border-color: var(--ember); color: var(--ink); transform: translateY(-2px); }
.chip:active { transform: translateY(0) scale(0.97); }
.chip .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ember-soft); }
.chip[aria-pressed="true"], .chip.active {
  background: linear-gradient(120deg, var(--ember), #d6f455); border-color: transparent; color: #180a04;
  box-shadow: 0 4px 22px -6px rgba(223, 255, 99, 0.6);
}
.chip[aria-pressed="true"] .n, .chip.active .n { color: #180a04; }
.filter-meta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.result-count { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.result-count b { color: var(--amber); font-weight: 600; text-shadow: 0 0 14px rgba(242, 255, 161, 0.5); }
.reset-btn { font-size: var(--step--1); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.reset-btn:hover { border-color: var(--ember); color: var(--ember-soft); }
.reset-btn:active { transform: scale(0.96); }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.p-card { grid-column: span 4; min-width: 0; display: flex; flex-direction: column; overflow: clip; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.p-card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 245, 235, 0.1), inset 0 0 34px rgba(223, 255, 99, 0.08), 0 34px 80px -30px rgba(0, 0, 0, 0.9), 0 10px 50px -18px rgba(223, 255, 99, 0.25); }
.p-card.span-7 { grid-column: span 7; } .p-card.span-5 { grid-column: span 5; }
.p-card.span-6 { grid-column: span 6; } .p-card.span-8 { grid-column: span 8; }
@media (max-width: 980px) { .p-card, .p-card.span-7, .p-card.span-5, .p-card.span-6, .p-card.span-8 { grid-column: span 6; } }
@media (max-width: 640px) { .p-card, .p-card.span-7, .p-card.span-5, .p-card.span-6, .p-card.span-8 { grid-column: span 12; } }
.p-media { position: relative; aspect-ratio: 16 / 10; overflow: clip; background: var(--bg-3); border-radius: calc(var(--r) - 6px); margin: 6px 6px 0; }
.p-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(6, 8, 5, 0.55)); pointer-events: none; }
.tag-industry {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(12, 7, 5, 0.85); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ember-soft); padding: 0.32rem 0.65rem; border-radius: 999px;
}
.p-body { display: grid; gap: 0.7rem; padding: clamp(1rem, 2.4vw, 1.45rem); flex: 1; align-content: start; }
.p-body h3 { font-size: var(--step-1); }
.p-body .p-desc { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.p-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.p-tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--text-subtle); border-radius: 6px; padding: 0.24rem 0.55rem; }
.p-tag.sol { color: var(--amber); border-color: rgba(242, 255, 161, 0.3); }
.p-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: auto; padding-top: 0.9rem; }
.p-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--step--1); font-weight: 600; color: var(--ember-soft); }
.p-link:hover { color: var(--amber); }
.p-link.ext { color: var(--ink-2); font-weight: 500; }
.p-link.ext:hover { color: var(--ink); }
.p-link svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.p-link:hover svg { transform: translateX(3px); }
.link-held { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); border: 1px dashed var(--line); border-radius: 6px; padding: 0.32rem 0.62rem; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* special featured cards */
.card-lab .p-media, .card-eco .p-media { display: grid; place-items: center; }
.card-lab .p-media { background: radial-gradient(70% 90% at 30% 20%, rgba(223, 255, 99, 0.2), transparent 60%), var(--bg-3); }
.card-eco .p-media { background: radial-gradient(70% 90% at 70% 20%, rgba(168, 208, 32, 0.22), transparent 60%), var(--bg-3); }
.glyph { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); display: grid; gap: 0.9rem; justify-items: center; text-align: center; padding: 1rem; }
.glyph .big { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0; color: var(--ember); font-weight: 600; font-family: var(--font-sans); text-shadow: 0 0 30px rgba(223, 255, 99, 0.5); }
.card-eco .glyph .big { color: var(--ember-red); text-shadow: 0 0 30px rgba(168, 208, 32, 0.45); }

/* ============================================================
   PERFORMANCE LAB — diagnostic system
   ============================================================ */
.lab-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
@media (max-width: 980px) { .lab-cols { grid-template-columns: 1fr; } }
.diag { padding: clamp(1.2rem, 2.5vw, 1.7rem); display: grid; gap: 1rem; }
.diag-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.diag-title { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.diag-scan { position: relative; height: 3px; border-radius: 99px; background: rgba(242, 245, 233, 0.07); overflow: hidden; flex: 1; min-width: 120px; max-width: 260px; }
.diag-scan i { position: absolute; top: 0; bottom: 0; width: 34%; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: scan 2.6s linear infinite; }
@keyframes scan { from { left: -34%; } to { left: 100%; } }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(14, 8, 5, 0.45);
  padding: 1.05rem 1.15rem; display: grid; gap: 0.45rem; align-content: start; text-align: left;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.cap[aria-expanded] { cursor: pointer; }
.cap:hover { border-color: rgba(223, 255, 99, 0.45); transform: translateY(-2px); }
.cap h4 { font-size: var(--step-0); font-weight: 600; display: flex; gap: 0.6rem; align-items: baseline; justify-content: space-between; }
.cap h4 .st { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-subtle); transition: color 0.3s; flex: none; }
.cap p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.js-anim .cap p { display: none; }
.js-anim .cap[aria-expanded="true"] p { display: block; }
.cap[aria-expanded="true"] { border-color: rgba(79, 216, 232, 0.45); background: rgba(16, 12, 8, 0.6); }
.cap[aria-expanded="true"] h4 .st { color: var(--cyan); }
.lab-side { display: grid; gap: 1.2rem; }
.evidence-card { padding: 1.15rem 1.25rem; display: grid; gap: 0.6rem; }
.evidence-card .site { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.evidence-card .site strong { font-size: var(--step-0); }
.evidence-card .ff { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(79, 216, 232, 0.3); padding: 0.18rem 0.5rem; border-radius: 6px; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.evidence-links a { font-size: var(--step--1); font-weight: 600; color: var(--ember-soft); display: inline-flex; gap: 0.4rem; align-items: center; }
.evidence-links a svg { width: 12px; height: 12px; flex: none; }
.evidence-links a.before { color: var(--ink-2); font-weight: 500; }
.evidence-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.evidence-note { color: var(--text-subtle); font-size: var(--label); font-family: var(--font-mono); }
.lab-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
@media (max-width: 640px) { .lab-shots { grid-template-columns: repeat(2, 1fr); } }
.lab-shots a { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line-soft); border-radius: 10px; overflow: clip; background: #fff; transition: border-color 0.25s, transform 0.25s var(--ease); }
.lab-shots a:hover { border-color: var(--ember); transform: translateY(-3px); }
.lab-shots img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.lab-fine { color: var(--text-subtle); font-size: 0.85rem; line-height: 1.6; }

/* ============================================================
   EXPERTISE — capability constellation
   ============================================================ */
.constellation { position: relative; }
.constellation svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.constellation svg.links path { fill: none; stroke: url(#linkGrad); stroke-width: 1; opacity: 0.55; }
.js-anim .constellation svg.links path { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1.6s var(--ease); }
.js-anim .constellation.in svg.links path { stroke-dashoffset: 0; }
.x-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 980px) { .x-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .x-grid { grid-template-columns: 1fr; } }
.x-card { padding: clamp(1.3rem, 2.5vw, 1.7rem); display: grid; gap: 0.75rem; align-content: start; }
.x-card .x-top { display: flex; justify-content: space-between; align-items: center; }
.x-card .idx { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.16em; color: var(--text-subtle); }
.x-card .node { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember), 0 0 24px rgba(223, 255, 99, 0.45); }
.x-card h3 { font-size: var(--step-1); }
.x-card p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.x-card:nth-child(even) { transform: translateY(clamp(0px, 2vw, 26px)); }
@media (max-width: 620px) { .x-card:nth-child(even) { transform: none; } }

/* ============================================================
   PROCESS — the trace runs through five unlocking stages
   ============================================================ */
.process-line { position: relative; display: grid; gap: clamp(1.2rem, 3vw, 2rem); max-width: 900px; margin-inline: auto; }
.process-line::before {
  content: ""; position: absolute; top: 10px; bottom: 10px; left: 21px; width: 2px;
  background: linear-gradient(180deg, var(--ember), var(--amber) 55%, var(--ember-red));
  box-shadow: 0 0 12px rgba(223, 255, 99, 0.7);
  transform: scaleY(var(--pfill, 0)); transform-origin: top;
  transition: transform 0.9s var(--ease);
}
html:not(.js-anim) .process-line::before { transform: scaleY(1); }
.stage { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: clamp(0.9rem, 2.5vw, 1.6rem); align-items: start; }
.stage .knot {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  border: 1px solid var(--line); background: var(--glass-bg-solid);
  font-family: var(--font-mono); font-size: var(--label); color: var(--text-subtle);
  transition: border-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.stage-body { padding: 1.15rem 1.3rem 1.25rem; display: grid; gap: 0.45rem; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stage-body h3 { font-size: var(--step-1); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.stage-body h3 .st { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--text-subtle); transition: color 0.5s; flex: none; }
.stage-body p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
/* Locked stages stay fully readable — lock state = dim knot, cool border, STANDBY label */
.js-anim .stage:not(.unlocked) .stage-body::before { opacity: 0.45; }
.js-anim .stage:not(.unlocked) .stage-body { transform: translateX(8px); }
.stage:not(.unlocked) .stage-body h3 .st::after { content: " ▸ STANDBY"; }
.stage.unlocked .knot { border-color: var(--ember); color: var(--amber); box-shadow: 0 0 14px rgba(223, 255, 99, 0.5), inset 0 0 10px rgba(223, 255, 99, 0.2); }
.stage.unlocked .stage-body h3 .st { color: var(--amber); }
.stage.unlocked .stage-body h3 .st::after { content: " ▸ ONLINE"; color: var(--amber); }
html:not(.js-anim) .stage .knot { border-color: var(--ember); color: var(--amber); }

/* ============================================================
   ABOUT — spatial portrait composition
   ============================================================ */
.about-cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 980px) { .about-cols { grid-template-columns: 1fr; } }
.spatial { position: relative; justify-self: center; width: min(100%, 560px); aspect-ratio: 10 / 11; }
.spatial .sp-bg {
  position: absolute; inset: 4% 0 0; border-radius: var(--r);
  overflow: clip;
  transform: translate(calc(var(--px, 0) * -8px), calc(var(--py, 0) * -6px));
  transition: transform 0.2s linear;
}
.spatial .sp-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(223, 255, 99, 0.3), transparent 65%),
    radial-gradient(60% 45% at 80% 20%, rgba(168, 208, 32, 0.14), transparent 65%),
    linear-gradient(180deg, #170c07, #080a06);
}
.spatial .sp-word {
  position: absolute; left: 50%; top: 15%; transform: translateX(-50%);
  font-size: clamp(3.6rem, 9vw, 6.8rem); font-weight: 700; letter-spacing: 0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 255, 143, 0.4);
  white-space: nowrap; user-select: none;
}
.spatial .sp-streak {
  position: absolute; left: -6%; right: -6%; top: 40%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--ember) 30%, var(--amber) 55%, transparent 85%);
  box-shadow: 0 0 18px rgba(223, 255, 99, 0.8), 0 0 50px rgba(223, 255, 99, 0.4);
  transform: translateY(calc(var(--py, 0) * -10px));
}
.spatial .sp-subject {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: end center;
  transform: translate(calc(var(--px, 0) * 7px), calc(var(--py, 0) * 5px));
  transition: transform 0.2s linear;
}
.spatial .sp-subject img {
  width: 88%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7)) drop-shadow(-14px 0 34px rgba(223, 255, 99, 0.22));
}
.spatial .sp-grain { position: absolute; inset: 4% 0 0; z-index: 4; border-radius: var(--r); pointer-events: none; opacity: 0.4; mix-blend-mode: overlay; overflow: clip; }
.spatial .sp-fg {
  position: absolute; z-index: 5; left: 4%; bottom: 6%;
  padding: 0.85rem 1.1rem; display: grid; gap: 0.15rem;
  transform: translate(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 12px));
  transition: transform 0.2s linear;
}
.spatial .sp-fg span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember-soft); }
.spatial .sp-fg strong { font-size: var(--step-0); }
.spatial .sp-tick { position: absolute; z-index: 5; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--faint); }
.spatial .sp-tick.t1 { top: 0; left: 0; }
.spatial .sp-tick.t2 { bottom: -2rem; right: 0; }
.js-anim .spatial:not(.revealed) .sp-subject { opacity: 0; transform: translateY(34px); }
.js-anim .spatial:not(.revealed) .sp-word { opacity: 0; letter-spacing: 0.2em; }
.js-anim .spatial:not(.revealed) .sp-streak { opacity: 0; }
.spatial .sp-subject, .spatial .sp-word, .spatial .sp-streak { transition: opacity 1s var(--ease), transform 1s var(--ease), letter-spacing 1.2s var(--ease); }
.about-copy { display: grid; gap: 1.3rem; }
.about-copy h2 { font-size: var(--step-3); max-width: 15ch; }
.about-copy p { color: var(--ink-2); line-height: 1.7; max-width: 58ch; }
.about-facts { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.about-facts li { display: flex; gap: 0.8rem; align-items: baseline; color: var(--muted); font-size: var(--step--1); }
.about-facts li::before { content: "—"; color: var(--ember); flex: none; }

/* ============================================================
   FAQ — premium glass accordion
   ============================================================ */
.faq-wrap { max-width: 860px; display: grid; gap: 0.7rem; }
.faq-item { border-radius: 14px; overflow: clip; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  text-align: left; padding: 1.15rem 1.3rem; font-weight: 600; font-size: var(--step-0);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--ember-soft); }
.faq-q .ind { flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform 0.35s var(--ease), border-color 0.2s, box-shadow 0.3s; }
.faq-q .ind::before { content: "+"; font-weight: 400; color: var(--muted); }
.faq-q[aria-expanded="true"] .ind { transform: rotate(45deg); border-color: var(--ember); box-shadow: 0 0 12px rgba(223, 255, 99, 0.4); }
.faq-q[aria-expanded="true"] .ind::before { color: var(--ember-soft); }
.faq-a { overflow: hidden; height: auto; transition: height 0.4s var(--ease); }
.js-anim .faq-item:not(.open) .faq-a { height: 0; }
.faq-a > div { padding: 0.1rem 1.3rem 1.4rem; color: var(--muted); line-height: 1.65; max-width: 64ch; }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.final-cta { text-align: center; position: relative; }
.final-cta .inner { position: relative; display: grid; gap: 1.6rem; justify-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem); }
.final-cta h2 { font-size: var(--step-4); max-width: 17ch; }
.final-cta p { color: var(--muted); max-width: 48ch; }
.final-cta .email-line { font-family: var(--font-mono); font-size: var(--step--1); color: var(--faint); }
.final-cta .email-line a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.final-cta .email-line a:hover { color: var(--ember-soft); }

.site-footer { margin-top: calc(var(--space) * 0.5); border-top: 1px solid var(--line-soft); background: rgba(5, 6, 4, 0.75); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(2.4rem, 5vw, 3.6rem) 0 2rem; }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: grid; gap: 0.9rem; align-content: start; }
.foot-brand p { color: var(--muted); font-size: var(--step--1); max-width: 34ch; line-height: 1.6; }
.foot-avail { display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.9rem; }
.foot-avail .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.foot-col { display: grid; gap: 0.65rem; align-content: start; }
.foot-col .fc-title { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 0.3rem; }
.foot-col a { color: var(--ink-2); font-size: var(--step--1); width: fit-content; }
.foot-col a:hover { color: var(--ember-soft); }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding: 1.3rem 0 1.6rem; color: var(--text-subtle); font-size: 0.85rem; }
.foot-base .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot-base .legal span { color: var(--text-subtle); }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease); }
.to-top:hover { border-color: var(--ember); color: var(--ember-soft); transform: translateY(-2px); }

/* ============================================================
   WORK ARCHIVE + CASE STUDIES
   ============================================================ */
.page-top-pad { padding-top: clamp(7rem, 16vh, 10rem); }
.archive-head { display: grid; gap: 1.2rem; margin-bottom: 2.2rem; }
.archive-head h1 { font-size: var(--step-4); max-width: 18ch; }
.archive-head p { color: var(--muted); max-width: 54ch; }
.empty-state { padding: 3.2rem 2rem; text-align: center; display: grid; gap: 0.8rem; justify-items: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: var(--step-1); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.6rem; }
@media (max-width: 980px) { .archive-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .archive-grid { grid-template-columns: 1fr; } }
.archive-grid .p-card { grid-column: auto; }

.cs-hero { padding-block: 1rem calc(var(--space) * 0.4); display: grid; gap: 1.4rem; }
.cs-hero .crumbs { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-subtle); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cs-hero .crumbs a:hover { color: var(--ember-soft); }
.cs-hero h1 { font-size: var(--step-4); max-width: 17ch; }
.cs-hero .cs-summary { color: var(--ink-2); font-size: var(--step-1); max-width: 54ch; line-height: 1.5; }
.cs-hero .cs-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin-top: 0.4rem; }
.flag-badge { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(242, 255, 161, 0.4); padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(242, 255, 161, 0.06); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 0.6rem; }
@media (max-width: 800px) { .cs-meta { grid-template-columns: 1fr 1fr; } }
.cs-meta > div { padding: 1rem 1.15rem; display: grid; gap: 0.3rem; }
.cs-meta .m-label { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-subtle); }
.cs-meta .m-value { font-size: var(--step--1); color: var(--ink-2); font-weight: 500; }
.cs-body { display: grid; gap: clamp(2rem, 4.5vw, 3.4rem); padding-block: calc(var(--space) * 0.45); }
.cs-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1rem, 3vw, 3rem); }
@media (max-width: 800px) { .cs-block { grid-template-columns: 1fr; } }
.cs-block h2 { font-size: var(--step-2); position: sticky; top: 110px; align-self: start; }
@media (max-width: 800px) { .cs-block h2 { position: static; } }
.cs-block .cs-text { color: var(--ink-2); line-height: 1.7; max-width: 62ch; display: grid; gap: 1rem; }
.cs-notes { display: grid; gap: 0; }
.cs-notes li { display: flex; gap: 0.8rem; color: var(--ink-2); line-height: 1.6; padding-block: 0.55rem; border-bottom: 1px solid var(--line-soft); }
.cs-notes li::before { content: "▸"; color: var(--ember); flex: none; }
.cs-media { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
@media (max-width: 800px) { .cs-media { grid-template-columns: 1fr; } }
.browser-frame { overflow: clip; border-radius: 14px; }
.browser-frame .bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
.browser-frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-frame .bar .url { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-subtle); letter-spacing: 0.03em; }
.phone-frame { border-radius: 28px; overflow: clip; padding: 0.55rem; max-width: 300px; justify-self: center; }
.phone-frame .screen { border-radius: 22px; overflow: clip; }
.cs-related { padding-block: calc(var(--space) * 0.4); border-top: 1px solid var(--line-soft); }
.cs-related .rel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
@media (max-width: 800px) { .cs-related .rel-grid { grid-template-columns: minmax(0, 1fr); } }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .eco-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .eco-grid { grid-template-columns: 1fr; } }

/* ============================================================
   REDUCED MOTION — composed, static, complete
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  .js-anim .rv:not(.in), .js-anim .rv-blur:not(.in), .js-anim .rv-card:not(.in),
  .js-anim .split:not(.in) .w > span,
  .js-anim .spatial:not(.revealed) .sp-subject, .js-anim .spatial:not(.revealed) .sp-word, .js-anim .spatial:not(.revealed) .sp-streak,
  .js-anim .stage:not(.unlocked) .stage-body { opacity: 1; transform: none; filter: none; }
  .trace::before { transform: scaleY(1); } .trace::after { transform: translateX(-50%) scale(1); }
  .hud-node .hud-meter i { transform: scaleX(1); } .hud-node .hud-dot { background: var(--amber); }
  .process-line::before { transform: scaleY(1); }
  .stage .knot { border-color: var(--ember); color: var(--amber); }
  .js-anim .constellation svg.links path { stroke-dashoffset: 0; }
  .wipe .wipe-panel { display: none; }
  .diag-scan i { animation: none; left: 33%; }
  .scroll-cue::after, .avail .dot, .reel-status .dot { animation: none; }
  [data-tilt] { transform: none !important; }
}


/* ============================================================
   CROSS-DOCUMENT VIEW TRANSITIONS — card media morphs into the
   case-study frame in supporting browsers; ignored elsewhere.
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ============================================================
   INTERFACE FORGE — hero as spatial web engineering
   Layered interface planes + data paths assembling around a
   dimensional 10+ / 2015 → TODAY core. Copy sits on a local scrim.
   ============================================================ */
.forge { position: relative; min-height: max(100svh, 720px); display: grid; align-items: center; padding: clamp(6.5rem, 13vh, 8.5rem) 0 clamp(3.5rem, 8vh, 5.5rem); }
.forge-grid { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-copy { position: relative; display: grid; gap: 1.35rem; justify-items: start; max-width: 640px; }
.hero-copy::before { /* local scrim keeps text readable over any world frame */
  content: ""; position: absolute; inset: -2.5rem -3.5rem -2.5rem -3rem; z-index: -1;
  background: radial-gradient(85% 90% at 35% 45%, rgba(7, 4, 3, 0.82), rgba(7, 4, 3, 0.35) 62%, transparent 80%);
  filter: blur(4px); pointer-events: none;
}
.hero-eyebrow { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember-soft); }
.forge .hero-copy h1 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem); max-width: 15ch; }
.forge .hero-copy h1 .num { color: var(--amber); text-shadow: 0 0 30px rgba(242, 255, 161, 0.45); }
.forge .support { color: var(--ink-2); font-size: var(--step-1); max-width: 46ch; line-height: 1.55; }
.forge .support b { color: var(--ink); font-weight: 600; }

.forge-stage { position: relative; aspect-ratio: 10 / 9; max-height: 78vh; perspective: 1500px; }
.forge-scene { position: absolute; inset: 0; transform-style: preserve-3d; }

/* data paths behind the planes */
.forge-paths { position: absolute; inset: 0; width: 100%; height: 100%; }
.forge-paths path { fill: none; stroke: url(#fp-grad); stroke-width: 1.3; opacity: 0.7; }
.js-anim .forge-paths path { stroke-dasharray: 6 8; animation: path-flow 2.6s linear infinite; }
@keyframes path-flow { to { stroke-dashoffset: -56; } }
.forge-paths circle { fill: var(--amber); }

/* interface planes */
.plane { position: absolute; border-radius: 12px; }
.plane-inner {
  display: block; border-radius: 12px; overflow: clip; background: var(--bg-3);
  border: 1px solid rgba(233, 255, 143, 0.28);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 0 40px -18px rgba(223, 255, 99, 0.5), inset 0 1px 0 rgba(255, 245, 235, 0.12);
  transform: translate3d(calc(var(--px, 0) * var(--pd, 6) * 1px + var(--fs, 0) * var(--sx, 0) * 1px),
                         calc(var(--py, 0) * var(--pd, 6) * 1px + var(--fs, 0) * var(--sy, 0) * 1px), 0);
  opacity: calc(1 - var(--fs, 0) * 0.9);
  transition: opacity 0.2s linear;
}
.plane-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.7rem; background: rgba(6, 8, 5, 0.85); border-bottom: 1px solid var(--line-soft); }
.plane-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.plane-bar .u { margin-left: 0.45rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-subtle); letter-spacing: 0.03em; }
.plane-inner img { width: 100%; height: auto; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: top; }
.plane-chip {
  position: absolute; z-index: 3; top: -0.85rem; right: 1rem;
  font-family: var(--font-mono); font-size: var(--label); font-weight: 500; letter-spacing: 0.18em;
  color: #180a04; background: linear-gradient(120deg, var(--ember), #d6f455);
  border-radius: 999px; padding: 0.34rem 0.8rem;
  box-shadow: 0 4px 18px -4px rgba(223, 255, 99, 0.7);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.plane-chip.lit, html:not(.js-anim) .plane-chip { opacity: 1; transform: none; }
.plane-chip.lit { animation: chip-pulse 3.6s var(--ease) infinite; animation-delay: var(--cd, 0s); }
@keyframes chip-pulse { 0%, 88%, 100% { box-shadow: 0 4px 18px -4px rgba(223, 255, 99, 0.7); } 92% { box-shadow: 0 4px 26px 0 rgba(242, 255, 161, 0.95); } }

/* plane poses (outer element carries the static 3D pose) */
.plane.p1 { left: 2%;  top: 6%;  width: 46%; transform: rotateY(14deg) rotateX(3deg);  z-index: 3; --pd: 10; --sx: -120; --sy: -60; }
.plane.p2 { right: 0;  top: 17%; width: 42%; transform: rotateY(-16deg) rotateX(2deg); z-index: 2; --pd: 16; --sx: 130;  --sy: -40; }
.plane.p3 { left: 7%;  bottom: 4%; width: 43%; transform: rotateY(10deg) rotateX(-4deg); z-index: 2; --pd: 14; --sx: -110; --sy: 90; }
.plane.p4 { right: 5%; bottom: 0;  width: 40%; transform: rotateY(-11deg) rotateX(-3deg); z-index: 3; --pd: 8;  --sx: 120;  --sy: 100; }
.plane.p-grid { left: 26%; top: 26%; width: 48%; height: 48%; z-index: 1; transform: rotateY(-4deg) rotateX(6deg); --pd: 22; --sx: 0; --sy: -140; }
.plane.p-grid .plane-inner {
  height: 100%; background:
    linear-gradient(to right, rgba(233, 255, 143, 0.14) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(to bottom, rgba(233, 255, 143, 0.14) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(20, 11, 7, 0.35);
  border-style: dashed; border-color: rgba(233, 255, 143, 0.22); box-shadow: none;
}

/* dimensional core — 10+ / 2015 → TODAY */
.forge-core {
  position: absolute; left: 50%; top: 47%; z-index: 6; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 0.4rem; text-align: center;
  opacity: calc(1 - var(--fs, 0) * 1.15);
}
.forge-core .ten {
  font-size: clamp(4.6rem, 3rem + 7vw, 9rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow:
    0 1px 0 #7c3a12, 0 2px 0 #6e340f, 0 3px 0 #5f2d0d, 0 4px 0 #51260b,
    0 5px 0 #431f09, 0 6px 0 #351807, 0 10px 26px rgba(0, 0, 0, 0.75),
    0 0 46px rgba(223, 255, 99, 0.55);
}
.forge-core .ten b { color: var(--amber); font-weight: 700; }
.forge-core .ten-sub {
  font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.3em; color: var(--amber);
  background: rgba(6, 8, 5, 0.75); border: 1px solid rgba(242, 255, 161, 0.35); border-radius: 999px; padding: 0.35rem 0.9rem;
}

/* restrained holographic cutout — foreground layer, not the About moment */
.forge-holo {
  position: absolute; right: 0; bottom: -2%; z-index: 1; width: 30%; height: auto; pointer-events: none;
  opacity: calc(0.5 - var(--fs, 0) * 0.5);
  filter: grayscale(1) sepia(1) hue-rotate(-16deg) saturate(2.6) brightness(0.85) contrast(1.05);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
  transform: translate3d(calc(var(--px, 0) * 5px), calc(var(--py, 0) * 4px), 0);
}

@media (max-width: 1023px) {
  .forge-grid { grid-template-columns: 1fr; }
  .forge-stage { aspect-ratio: 4 / 3; max-height: 46vh; width: min(100%, 540px); margin-inline: auto; }
  .plane.p-grid, .forge-holo { display: none; }
  .forge .hero-copy h1 { max-width: 16ch; }
}
@media (max-width: 700px) {
  .forge-stage { aspect-ratio: 4 / 3.4; }
  .plane.p3 { display: none; }
  .plane.p1 { width: 56%; }
  .plane.p2 { width: 52%; top: 30%; }
  .plane.p4 { width: 50%; bottom: 2%; left: 8%; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js-anim .forge-paths path { animation: none; }
  .plane-chip { opacity: 1; transform: none; }
  .plane-chip.lit { animation: none; }
  .plane-inner, .forge-core, .forge-holo { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   DECADE ARC — editorial storytelling rhythm (no glass grid)
   ============================================================ */
.decade-head { max-width: 60ch; display: grid; gap: 1.1rem; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.decade-head h2 { font-size: var(--step-3); max-width: 20ch; }
.decade-head .lede { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }
.arc { position: relative; max-width: 880px; display: grid; gap: clamp(2.2rem, 5vw, 3.6rem); padding-left: clamp(1.8rem, 4vw, 2.8rem); }
.arc::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--ember), var(--amber) 45%, var(--ember-red) 90%);
  box-shadow: 0 0 12px rgba(223, 255, 99, 0.6);
  transform: scaleY(var(--afill, 0)); transform-origin: top;
  transition: transform 1.2s var(--ease);
}
html:not(.js-anim) .arc::before { transform: scaleY(1); }
.arc-item { position: relative; display: grid; gap: 0.55rem; }
.arc-item::before {
  content: ""; position: absolute; left: calc(-1 * clamp(1.8rem, 4vw, 2.8rem) + 1px); top: 0.5rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ember);
  box-shadow: 0 0 12px rgba(223, 255, 99, 0.55);
}
.arc-era { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber); }
.arc-item h3 { font-size: var(--step-2); max-width: 24ch; }
.arc-item p { color: var(--ink-2); line-height: 1.7; max-width: 62ch; }
.arc-item .arc-now { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.5rem; }
.decade-tally { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem); margin-top: clamp(2.4rem, 5vw, 3.6rem); padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.decade-tally div { display: grid; gap: 0.2rem; }
.decade-tally b { font-size: var(--step-2); color: var(--amber); font-weight: 600; letter-spacing: -0.01em; }
.decade-tally span { font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-subtle); }

/* ============================================================
   CALENDLY CHAMBER — scheduling connected to the energy narrative
   ============================================================ */
.cal-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 980px) { .cal-grid { grid-template-columns: 1fr; } }
.cal-copy { display: grid; gap: 1.2rem; }
.cal-copy h2 { font-size: var(--step-3); max-width: 16ch; }
.cal-copy .lede { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; max-width: 42ch; }
.cal-covers { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.cal-covers li { display: flex; gap: 0.8rem; align-items: baseline; color: var(--muted); font-size: var(--step-0); }
.cal-covers li::before { content: "▸"; color: var(--ember); flex: none; }
.chamber { position: relative; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; }
.chamber::before { border-radius: inherit; }
.chamber .cham-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cham-status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: var(--label); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(242, 255, 161, 0.35); border-radius: 999px; padding: 0.4rem 0.85rem;
  background: rgba(223, 255, 99, 0.07);
}
.cham-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.cal-preview { display: grid; gap: 0.55rem; }
.cal-preview .week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.cal-preview .day { display: grid; gap: 0.45rem; }
.cal-preview .day span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-subtle); text-align: center; }
.cal-preview .slot {
  height: 34px; border-radius: 8px; border: 1px solid var(--line-soft);
  background: rgba(20, 11, 7, 0.5); position: relative; overflow: clip;
}
.cal-preview .slot.hot { border-color: rgba(223, 255, 99, 0.5); background: rgba(223, 255, 99, 0.1); }
.cal-preview .slot.hot::after { content: ""; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 34%; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--ember), var(--amber)); box-shadow: 0 0 8px rgba(223, 255, 99, 0.7); }
.cal-note { color: var(--muted); font-size: var(--step--1); line-height: 1.55; max-width: 52ch; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
#calendly-embed { border-radius: 12px; overflow: clip; background: rgba(20, 11, 7, 0.5); border: 1px solid var(--line-soft); }
#calendly-embed .calendly-inline-widget { min-width: 280px; }
@media (max-width: 560px) { .cal-preview .week { grid-template-columns: repeat(3, 1fr); } .cal-preview .day:nth-child(n+4) { display: none; } }

/* long industry names: let case-study action buttons wrap on narrow screens */
.cs-hero .btn, .cs-related .btn { white-space: normal; text-align: center; line-height: 1.25; }

/* ============================================================
   FLAGSHIP CASE-STUDY TREATMENT — richer editorial rhythm
   ============================================================ */
.cs-band { margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.cs-band .browser-frame img { width: 100%; }
.cs-pull { font-size: var(--step-2); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); max-width: 34ch; }
.cs-pull::before { content: ""; display: block; width: 54px; height: 3px; margin-bottom: 1.1rem; background: linear-gradient(90deg, var(--ember), var(--amber)); box-shadow: 0 0 10px rgba(223, 255, 99, 0.6); }
.cs-flag-hero .cs-summary { font-size: var(--step-1); }
