/* ==========================================================================
   STORM INDUSTRIES CORP PRIVATE LIMITED: site styles (v2, editorial)
   Brand: gold #F7B511, charcoal #414042, off-white paper with dot grid.
   Type: Archivo (variable width, condensed for display), JetBrains Mono (labels).
   ========================================================================== */

:root {
  --gold: #F7B511;
  --gold-hi: #FFC93D;
  --gold-deep: #C98F00;
  --charcoal: #414042;
  --black: #0C0C0D;
  --black-2: #151517;
  --black-3: #1E1E21;
  --paper: #F3F2ED;
  --paper-2: #EAE8E1;
  --white: #FFFFFF;
  --ink: #121213;
  --muted-l: #5D5D62;
  --muted-d: #9B9BA1;
  --line-l: rgba(18, 18, 19, 0.14);
  --line-d: rgba(255, 255, 255, 0.12);

  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--black);
  overflow-x: hidden; /* fallback; propagates to the viewport so sticky still works */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; }

::selection { background: var(--gold); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 1000;
  background: var(--gold);
  color: var(--black);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Surfaces ---------- */
.dark {
  background-color: var(--black);
  color: #ECECEA;
}
.paper {
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(65, 64, 66, 0.2) 1px, transparent 1.5px);
  background-size: 32px 32px;
  color: var(--ink);
}
.dark.dots {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 32px 32px;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--sans);
  font-stretch: 70%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.9;
  margin: 0;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.h-xl { font-size: clamp(3.2rem, 11vw, 11rem); }
.h-lg { font-size: clamp(2.6rem, 7.4vw, 7rem); }
.h-md { font-size: clamp(2rem, 4.6vw, 4.2rem); }
.h-sm { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label--gold { color: var(--gold); }
.dark .label { color: var(--muted-d); }
.paper .label { color: var(--muted-l); }
.dark .label--gold, .paper .label--gold { color: var(--gold-deep); }
.dark .label--gold { color: var(--gold); }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.kicker::after {
  content: "";
  height: 1px;
  width: 72px;
  background: currentColor;
  opacity: 0.5;
}

.body-lg {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  max-width: 46ch;
}
.dark .body-lg, .dark .muted { color: var(--muted-d); }
.paper .body-lg, .paper .muted { color: var(--muted-l); }

.gold { color: var(--gold); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}

/* ---------- Buttons / links ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--black);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  background: var(--bg);
  color: var(--fg);
  border: 0;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleY(1); }
.btn .arr { display: inline-block; transition: transform 0.55s var(--ease); }
.btn:hover .arr { transform: translateX(6px); }
.btn--line {
  --bg: transparent;
  --fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.dark .btn--line:hover { color: var(--black); }
.paper .btn--line::before { background: var(--black); }
.paper .btn--line:hover { color: var(--white); }

.link-u {
  position: relative;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  height: var(--header-h);
  color: #fff;
  transition: transform 0.6s var(--ease), background-color 0.5s, backdrop-filter 0.5s;
}
.site-header.scrolled {
  background: rgba(12, 12, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header.hidden { transform: translateY(-100%); }
.menu-open .site-header { transform: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__icon { width: auto; height: 42px; transition: transform 0.8s var(--ease); }
.brand:hover .brand__icon { transform: rotate(-12deg); }
.brand__word { width: auto; height: 26px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 16px;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}
.header-link:hover, .header-link[aria-current="page"] { opacity: 1; color: var(--gold); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 16px;
  color: #fff;
}
.header-cta::before { content: "+"; color: var(--gold); font-size: 16px; line-height: 1; transition: transform 0.5s var(--ease); }
.header-cta:hover::before { transform: rotate(90deg); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.menu-btn__sq { width: 10px; height: 10px; background: var(--gold); transition: transform 0.6s var(--ease); }
.menu-btn:hover .menu-btn__sq, .menu-open .menu-btn__sq { transform: rotate(45deg); }
.menu-btn__txt { display: grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.menu-btn__txt span { transition: transform 0.6s var(--ease); }
.menu-open .menu-btn__txt span { transform: translateY(-100%); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--black);
  color: #fff;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
  display: flex;
  align-items: stretch;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 32px 32px;
}
.menu-open .menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.9s var(--ease-io), visibility 0s;
}
.menu .wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: end;
  padding-top: calc(var(--header-h) + 30px);
  padding-bottom: 48px;
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-d); }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 10px 0 6px;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease), color 0.3s;
}
.menu-open .menu__list a { transform: none; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: 0.06s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: 0.12s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: 0.18s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: 0.24s; }
.menu__list .num { font-family: var(--mono); font-size: 12px; color: var(--muted-d); letter-spacing: 0.1em; min-width: 3ch; }
.menu__list .display { font-size: clamp(3rem, 9vw, 8rem); transition: transform 0.6s var(--ease); }
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--gold); }
.menu__list a:hover .display { transform: translateX(16px); }
.menu__aside { display: grid; gap: 28px; padding-bottom: 12px; opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.8s var(--ease); }
.menu-open .menu__aside { opacity: 1; transform: none; transition-delay: 0.35s; }
.menu__aside p { margin: 6px 0 0; color: #DADAD7; }

/* ---------- Placeholders ---------- */
.ph {
  display: inline;
  background: rgba(247, 181, 17, 0.16);
  border-bottom: 1px dashed var(--gold);
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: 0;
  text-transform: none;
}
.paper .ph { background: rgba(247, 181, 17, 0.28); color: #5A4100; border-color: var(--gold-deep); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 20px) 0 34px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero__glow {
  position: absolute;
  width: 60vw; height: 60vw;
  left: 50%; top: 36%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247, 181, 17, 0.13), transparent 60%);
  z-index: -2;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px 60px;
  align-items: end;
}
.hero__title { font-size: clamp(2.3rem, 4.6vw, 4.6rem); }
.display { word-spacing: 0.06em; }
.hero__side { display: grid; gap: 28px; justify-items: start; }
.hero__side p { margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line-d);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__meta .scroll-cue { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.scroll-cue i {
  width: 1px; height: 22px; background: var(--line-d); position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%;
  background: var(--gold); animation: drip 2s var(--ease-io) infinite;
}

/* Line-mask text reveal */
.split-lines .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split-lines .ln > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-in .split-lines .ln > span,
.split-lines.in .ln > span { transform: none; }
.split-lines .ln:nth-child(2) > span { transition-delay: 0.08s; }
.split-lines .ln:nth-child(3) > span { transition-delay: 0.16s; }
.split-lines .ln:nth-child(4) > span { transition-delay: 0.24s; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.is-in .fade-up, .fade-up.in { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.ticker {
  border-block: 1px solid var(--line-d);
  overflow: hidden;
  padding: 18px 0;
}
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap; }
.ticker__track span::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 180px) 0; }
.section--tight { padding: clamp(60px, 8vw, 110px) 0; }
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 60px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.sec-head .body-lg { justify-self: end; }
.sec-index { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-l); margin-bottom: clamp(40px, 6vw, 80px); }
.dark .sec-index { border-color: var(--line-d); }

/* Scroll-scrubbed statement */
.statement {
  font-size: clamp(1.9rem, 4.4vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 22ch;
  margin: 0;
}
.statement .w { opacity: 0.14; transition: opacity 0.35s linear; }
.statement .w.on { opacity: 1; }
.statement .hl { color: var(--gold-deep); }
.dark .statement .hl { color: var(--gold); }

/* ---------- Domain index (rows) ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1.2fr 1fr 60px;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-d);
  text-decoration: none;
  isolation: isolate;
  transition: color 0.5s var(--ease), padding 0.6s var(--ease);
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad) * -1);
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.row:hover { color: var(--black); }
.row:hover::before { transform: scaleY(1); transform-origin: top; }
.row:hover .label, .row:hover .row__desc { color: var(--black); }
.row__title { font-size: clamp(2.2rem, 5vw, 4.6rem); transition: transform 0.6s var(--ease); }
.row:hover .row__title { transform: translateX(12px); }
.row__desc { color: var(--muted-d); font-size: 0.98rem; max-width: 42ch; transition: color 0.5s; }
.row__arrow {
  justify-self: end;
  width: 52px; height: 52px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease), background-color 0.4s, color 0.4s;
}
.row:hover .row__arrow { transform: rotate(-45deg); background: var(--black); color: var(--gold); border-color: var(--black); }
.row__arrow svg { width: 18px; height: 18px; }

/* ---------- Figures ---------- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-l); }
.figure { padding: 30px 30px 10px 0; border-right: 1px solid var(--line-l); }
.figure + .figure { padding-left: 30px; }
.figure:last-child { border-right: 0; }
.figure__n { font-size: clamp(4rem, 9vw, 8.5rem); display: block; margin: 18px 0 10px; }
.figure p { color: var(--muted-l); max-width: 30ch; }

/* ---------- Pinned horizontal process ---------- */
.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll__track { display: flex; gap: 2vw; padding-inline: var(--pad); will-change: transform; }
.hpanel {
  flex: 0 0 min(76vw, 760px);
  min-height: 56vh;
  padding: clamp(28px, 3.5vw, 52px);
  border: 1px solid var(--line-d);
  background: var(--black-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.hpanel__n { font-size: clamp(6rem, 16vw, 15rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(247, 181, 17, 0.55); }
.hpanel h3 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.hpanel p { color: var(--muted-d); max-width: 44ch; margin: 14px 0 0; }
.hpanel--intro { background: transparent; border-color: transparent; flex-basis: min(60vw, 560px); justify-content: center; }
.hscroll__bar { margin: 40px var(--pad) 0; height: 1px; background: var(--line-d); position: relative; }
.hscroll__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Notes (principles) ---------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-l); }
.note { padding: 30px 34px 10px 0; }
.note + .note { padding-left: 34px; border-left: 1px solid var(--line-l); }
.note h3 { font-size: 1.55rem; margin: 26px 0 14px; letter-spacing: -0.02em; }
.note p { color: var(--muted-l); }
.dark .notes { border-color: var(--line-d); }
.dark .note + .note { border-color: var(--line-d); }
.dark .note p { color: var(--muted-d); }

/* ---------- CTA ---------- */
.cta { overflow: hidden; padding: clamp(90px, 11vw, 160px) 0 clamp(70px, 9vw, 120px); }
.cta__marquee { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.cta__marquee span { font-size: clamp(4.5rem, 14vw, 13rem); padding-right: 0.25em; white-space: nowrap; }
.cta__marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.cta__marquee span:nth-child(odd) { color: var(--gold); }
.cta__row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-top: 56px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #CFCFCC; padding-top: 90px; overflow: hidden; border-top: 1px solid var(--line-d); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .label { color: var(--muted-d); margin-bottom: 18px; display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #E9E9E6; transition: color 0.3s; }
.site-footer a:hover { color: var(--gold); }
.footer-blurb { max-width: 34ch; color: var(--muted-d); margin-top: 22px; }
.footer-giant {
  font-size: 24.5vw;
  line-height: 0.78;
  margin: 70px 0 0;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transform: translateY(8%);
  user-select: none;
  text-align: center;
  letter-spacing: -0.02em;
}
.footer-giant b { font-weight: inherit; color: var(--gold); -webkit-text-stroke: 0; }
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--line-d);
  background: var(--black);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(60px, 9vw, 130px)) 0 0;
  overflow: hidden;
}
.page-hero__title { font-size: clamp(3.4rem, 10.5vw, 10.5rem); max-width: 12ch; }
.page-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: end; margin-top: 40px; }
.page-hero__meta {
  margin-top: clamp(50px, 7vw, 100px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-d);
}
.page-hero__meta > div { padding: 18px 18px 26px 0; }
.page-hero__meta > div + div { padding-left: 18px; border-left: 1px solid var(--line-d); }
.page-hero__meta strong { display: block; font-weight: 500; color: #fff; margin-top: 8px; font-size: 0.98rem; }
.page-hero .bolt-bg {
  position: absolute;
  right: -4vw;
  top: calc(var(--header-h) + 10px);
  width: min(40vw, 520px);
  opacity: 0.08;
  pointer-events: none;
  filter: grayscale(1) brightness(2);
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* ---------- About: list + spec table ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px 80px; align-items: start; }
.num-list { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--line-l); }
.num-list li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-l);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: padding 0.6s var(--ease), color 0.4s;
}
.num-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted-l); padding-top: 0.6em; }
.num-list li:hover { padding-left: 12px; color: var(--gold-deep); }
.dark .num-list { border-color: var(--line-d); }
.dark .num-list li { border-color: var(--line-d); }
.dark .num-list li::before { color: var(--muted-d); }
.dark .num-list li:hover { color: var(--gold); }

.spec { margin: 0; border-top: 1px solid var(--line-d); }
.spec div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-d); }
.spec dt { margin: 0; }
.spec dd { margin: 0; font-size: 1.08rem; }
.paper .spec { border-color: var(--line-l); }
.paper .spec div { border-color: var(--line-l); }

/* ---------- Capabilities (spec cells) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  padding: 11px 16px;
  border: 1px solid var(--line-l);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.filter sup { font-size: 10px; margin-left: 4px; opacity: 0.7; }

.cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-l);
  border-left: 1px solid var(--line-l);
}
.cell {
  position: relative;
  padding: 30px 30px 34px;
  border-right: 1px solid var(--line-l);
  border-bottom: 1px solid var(--line-l);
  background: rgba(243, 242, 237, 0.75);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: background-color 0.5s var(--ease);
  overflow: hidden;
}
.cell::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.cell:hover { background: #fff; }
.cell:hover::before { transform: scaleX(1); }
.cell[hidden] { display: none; }
.cell__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 44px; }
.cell__icon { width: 46px; height: 46px; color: var(--ink); margin-bottom: 26px; transition: transform 0.8s var(--ease), color 0.4s; }
.cell:hover .cell__icon { transform: rotate(-8deg) scale(1.08); color: var(--gold-deep); }
.cell h3 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); margin-bottom: 14px; }
.cell p { color: var(--muted-l); font-size: 0.98rem; }
.cell .tags { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding-left: 0; margin-bottom: 0; }
.cell .tags li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.cell .tags li::before { content: "/ "; color: var(--gold-deep); }
.cells-note { margin-top: 28px; color: var(--muted-l); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px 90px; align-items: start; }
.form { display: grid; gap: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.field { position: relative; display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-d); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  transition: border-color 0.3s;
}
.field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7B511' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 2px center / 18px no-repeat; padding-right: 28px; cursor: pointer; }
.field select option { background: var(--black-2); color: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 22px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.field:focus-within::after { transform: scaleX(1); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field .err { font-family: var(--mono); font-size: 11px; color: #FF8A80; min-height: 16px; letter-spacing: 0.04em; }
.field.invalid input, .field.invalid textarea { border-color: #FF8A80; }
.field--check::after { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; color: var(--muted-d); font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.check a { color: #fff; }
.form-status { display: none; padding: 16px 18px; font-size: 0.95rem; border-left: 3px solid var(--gold); background: rgba(247, 181, 17, 0.1); color: #F2E6C6; }
.form-status.show { display: block; animation: rise 0.7s var(--ease) both; }
.form-status.err { border-color: #FF8A80; background: rgba(255, 138, 128, 0.1); color: #FFD5D0; }
.contact-direct { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line-d); }
.contact-direct div { padding: 20px 0; border-bottom: 1px solid var(--line-d); display: grid; gap: 6px; }
.contact-direct strong { font-weight: 500; font-size: 1.15rem; color: #fff; }

/* ---------- Legal ---------- */
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px 80px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 30px); }
.toc ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line-l); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; font-size: 0.92rem; color: var(--muted-l); transition: color 0.3s, border-color 0.3s; }
.toc a:hover, .toc a.active { color: var(--ink); border-color: var(--gold-deep); }
.legal { max-width: 76ch; }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 64px 0 18px; padding-top: 22px; border-top: 1px solid var(--line-l); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2:first-of-type { margin-top: 0; }
.legal h2 .label { display: block; margin-bottom: 10px; }
.legal p, .legal li { color: #2D2D30; }
.legal ul { padding-left: 1.1em; }
.legal li { margin-bottom: 0.6em; }
.notice { border-left: 3px solid var(--gold); background: rgba(247, 181, 17, 0.14); padding: 18px 22px; margin-bottom: 56px; }
.notice p { margin: 0; }

/* ---------- Page transition + cursor ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--gold);
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}
.curtain.enter { animation: curtainIn 0.6s var(--ease-io) forwards; }
.curtain.leave { animation: curtainOut 0.8s var(--ease-io) forwards; }
.curtain img { position: absolute; left: 50%; top: 50%; width: 90px; transform: translate(-50%, -50%); filter: brightness(0) opacity(0.85); }

.cursor {
  position: fixed;
  left: 0; top: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 950;
  mix-blend-mode: difference;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), opacity 0.3s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; }

/* ---------- Reveal helpers ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .fade-up { opacity: 1; transform: none; }
.no-js .split-lines .ln > span { transform: none; }
.no-js .statement .w { opacity: 1; }

/* ---------- Keyframes ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes curtainIn { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
@keyframes curtainOut { from { transform: scaleY(1); transform-origin: top; } to { transform: scaleY(0); transform-origin: top; } }

/* ---------- Intro (first visit per session) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--black);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 32px 32px;
  color: #fff;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io);
  cursor: pointer;
}
.intro.done { clip-path: inset(0 0 100% 0); }
.intro-seen .intro, .no-js .intro { display: none; }
.intro__inner { display: grid; justify-items: center; gap: 28px; width: min(620px, 86vw); }
.intro__icon { width: 96px; height: auto; opacity: 0; transform: scale(0.6) rotate(-25deg); animation: introIcon 1.1s var(--ease) 0.1s forwards; }
.intro__word { display: flex; overflow: hidden; font-size: clamp(2.1rem, 7.4vw, 4.4rem); padding-bottom: 0.04em; }
.intro__word span { display: inline-block; transform: translateY(110%); animation: introRise 0.9s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.045s); }
.intro__word .sp { width: 0.28em; }
.intro__word .gold { color: var(--gold); }
.intro__row { width: 100%; display: flex; justify-content: space-between; gap: 16px; }
.intro__bar { width: 100%; height: 1px; background: var(--line-d); position: relative; overflow: hidden; }
.intro__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }
@keyframes introIcon { to { opacity: 1; transform: none; } }
@keyframes introRise { to { transform: none; } }

/* ---------- Menu sizing for 7 entries ---------- */
.menu { overflow-y: auto; }
.menu .wrap { min-height: 100%; }
.menu__list .display { font-size: clamp(2.3rem, 6.2vw, 5.8rem); }

/* ---------- List extras ---------- */
.num-list li small { display: block; margin-top: 8px; font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted-l); }
.dark .num-list li small { color: var(--muted-d); }
.row--static { cursor: default; }
.row--static .row__arrow { border-style: dashed; }

/* ---------- Feature split (home Firefly teaser) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: center; }
.feature__media { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line-d); background: var(--black-2); overflow: hidden; }
.feature__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature__media .label { position: absolute; left: 18px; top: 16px; z-index: 1; }
.feature__media .label + .label { left: auto; right: 18px; }
.feature__list { list-style: none; margin: 30px 0 34px; padding: 0; border-top: 1px solid var(--line-d); }
.feature__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.feature__list li span:last-child { color: #fff; text-align: right; }

/* ---------- Firefly hero ---------- */
.ff-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 34px;
  overflow: hidden;
  isolation: isolate;
}
.ff-hero .swarm { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ff-title { font-size: clamp(4.6rem, 19vw, 19rem); line-height: 0.8; }
.ff-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: end; margin-top: 34px; }
.ff-line { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ff-line i { flex: 0 0 110px; height: 1px; background: currentColor; opacity: 0.45; }
.verbs { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.verbs span { font-size: 1.15rem; font-weight: 700; font-style: italic; letter-spacing: -0.01em; }

/* ---------- Line-art drawings ---------- */
.art { color: #ECECEA; }
.paper .art { color: var(--ink); }
.art svg { width: 100%; height: auto; overflow: visible; }
.art .draw { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io); transition-delay: var(--d, 0s); }
.art .draw.g { stroke: var(--gold); }
.art .draw.faint { opacity: 0.35; }
.paper .art .draw.g { stroke: var(--gold-deep); }
.art.in .draw { stroke-dashoffset: 0; }
.art .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--muted-d); opacity: 0; transition: opacity 0.8s 1.6s; }
.paper .art .lbl { fill: var(--muted-l); }
.art .lbl.hi { fill: currentColor; font-size: 13px; font-weight: 500; }
.art .core { fill: var(--gold); }
.art.in .lbl { opacity: 1; }
.art .spin { animation: spin 0.32s linear infinite; transform-box: fill-box; transform-origin: center; }
.art .pulse { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; animation-delay: var(--pd, 0s); }
.no-js .art .draw { stroke-dashoffset: 0; }
.no-js .art .lbl { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Three columns (autonomy / sensing / coordination) ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-l); }
.col { padding: 30px 30px 10px 0; }
.col + .col { padding-left: 30px; border-left: 1px solid var(--line-l); }
.col h3 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 18px 0 18px; }
.col ul { list-style: none; margin: 0; padding: 0; }
.col li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-l); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.col li::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.dark .cols3, .dark .col + .col, .dark .col li { border-color: var(--line-d); }

/* ---------- Application grid ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; }
.app { padding: 26px 0 34px; border-top: 1px solid var(--line-l); }
.app h3 { font-size: 1.55rem; margin: 18px 0 10px; }
.app p { color: var(--muted-l); margin: 0; }
.dark .app { border-color: var(--line-d); }
.dark .app p { color: var(--muted-d); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 40px 80px; align-items: start; }
.founder__card {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-d);
  background: var(--black-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.founder__card .display { font-size: clamp(8rem, 16vw, 13rem); color: transparent; -webkit-text-stroke: 1.5px var(--gold); line-height: 0.8; }
.founder__card .label { position: absolute; left: 16px; bottom: 14px; }
.founder__card .label + .label { left: auto; right: 16px; }
.founder__name { font-size: clamp(2.8rem, 6vw, 5.4rem); margin: 18px 0 8px; }
.founder__bio p { font-size: 1.12rem; color: var(--muted-d); max-width: 62ch; }
.founder__bio p:first-of-type { color: #ECECEA; }

.spec-note { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted-d); max-width: 70ch; }
.paper .spec-note { color: var(--muted-l); }
.tag-live { display: inline-flex; align-items: center; gap: 8px; }
.tag-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(247, 181, 17, 0.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(247, 181, 17, 0); } 100% { box-shadow: 0 0 0 0 rgba(247, 181, 17, 0); } }

.hpanel ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.hpanel ul li { color: #D6D6D3; font-size: 0.98rem; display: flex; gap: 10px; }
.hpanel ul li::before { content: "/"; color: var(--gold); }

@media (max-width: 900px) {
  .feature, .founder, .ff-sub { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr; }
  .col, .col + .col { padding: 24px 0 10px; border-left: 0; }
  .apps { grid-template-columns: 1fr 1fr; }
  .founder__card { max-width: 320px; }
}
@media (max-width: 640px) {
  .apps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .art .draw { stroke-dashoffset: 0; }
  .art .lbl { opacity: 1; }
  .art .spin, .art .pulse { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cells { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 60px 1fr 52px; }
  .row__desc { grid-column: 2 / 3; grid-row: 2; }
  .row__arrow { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .header-link, .header-cta { display: none; }
  .hero__inner, .sec-head, .two-col, .contact-grid, .page-hero__grid, .legal-grid { grid-template-columns: 1fr; }
  .sec-head .body-lg { justify-self: start; }
  .menu .wrap { grid-template-columns: 1fr; align-items: end; }
  .figures, .notes { grid-template-columns: 1fr; }
  .figure, .note, .note + .note, .figure + .figure { padding: 26px 0 14px; border-left: 0; border-right: 0; border-bottom: 1px solid var(--line-l); }
  .dark .note + .note, .dark .note { border-color: var(--line-d); }
  .page-hero__meta { grid-template-columns: 1fr 1fr; }
  .page-hero__meta > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .page-hero__meta > div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .toc { position: static; }
  .spec div { grid-template-columns: 1fr; gap: 6px; }

  /* Pinned horizontal scroll becomes a vertical stack on small screens */
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: static; height: auto; overflow: visible; padding: clamp(80px, 12vw, 120px) 0; }
  .hscroll__track { flex-direction: column; transform: none !important; gap: 16px; }
  .hpanel, .hpanel--intro { flex-basis: auto; min-height: 0; }
  .hscroll__bar { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 170px); }
  .brand__icon { height: 36px; }
  .brand__word { height: 20px; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 44px; padding: 26px 0; gap: 10px 16px; }
  .row .label { grid-column: 1; }
  .row__title { grid-column: 1; }
  .row__desc { grid-column: 1; grid-row: auto; }
  .row__arrow { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; }
  .hero__meta .label:nth-child(2) { display: none; }
  .page-hero__meta { grid-template-columns: 1fr; }
  .page-hero__meta > div, .page-hero__meta > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-d); }
  .page-hero__meta > div:first-child { border-top: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .ticker__track, .cta__marquee { animation: none !important; }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .split-lines .ln > span { transform: none; }
  .statement .w { opacity: 1; }
  .cursor, .curtain { display: none; }
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: static; height: auto; overflow: visible; padding: 100px 0; }
  .hscroll__track { flex-direction: column; transform: none !important; gap: 16px; }
  .hpanel, .hpanel--intro { flex-basis: auto; min-height: 0; }
  .hscroll__bar { display: none; }
}

/* ==========================================================================
   Project Firefly: navy / cyan aerospace theme + 3D swarm scene
   ========================================================================== */
.theme-firefly {
  --gold: #F7B511;
  --gold-hi: #FFC93D;
  --gold-deep: #C98F00;
}

/* status chips: separate what exists from what is planned or conceptual */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}
.chip--dev { background: #F7B511; border-color: #F7B511; color: #0C0C0D; }
.chip--plan { border-color: rgba(247, 181, 17, 0.55); color: #FFD36B; }
.chip--concept { border-color: rgba(255, 255, 255, 0.45); border-style: dashed; color: #CFCFCC; }

.ffs-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 70px; align-items: end; margin-bottom: 44px; }
.ffs-sub { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; color: #fff; margin: 0 0 14px; }
.ffs-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-d);
  color: var(--muted-d);
  font-size: 0.95rem;
}
.ffs-legend > span { display: inline-flex; align-items: center; gap: 10px; }
.ffs-legend .hint { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* scene frame */
.ffs {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ECECEA;
  background: radial-gradient(ellipse at 50% 35%, #1E1E21 0%, #0C0C0D 72%);
}
.ffs--section {
  aspect-ratio: 16 / 9;
  min-height: 520px;
  max-height: 86vh;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ffs--hero { height: 100vh; height: 100svh; min-height: 640px; }
.ffs .swarm, .ffs-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.ffs-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.ffs.is-3d .swarm { display: none; }
.ffs-stage { opacity: 0; transition: opacity 1.4s var(--ease); }
.ffs.is-3d .ffs-stage { opacity: 1; }
.ffs-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 52%, rgba(8, 8, 9, 0.78) 100%),
    linear-gradient(to bottom, rgba(8, 8, 9, 0.45), transparent 18%, transparent 72%, rgba(8, 8, 9, 0.6));
}
.ffs--hero .ffs-vignette {
  background:
    linear-gradient(to top right, rgba(8, 8, 9, 0.92) 0%, rgba(8, 8, 9, 0.55) 30%, transparent 58%),
    radial-gradient(ellipse at center, transparent 50%, rgba(8, 8, 9, 0.7) 100%),
    linear-gradient(to bottom, rgba(8, 8, 9, 0.6), transparent 22%);
}
.ffs::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}
.ffs.is-picking { cursor: crosshair; }

/* HUD */
.ffs-hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); z-index: 3; }
.ffs-hud > div { position: absolute; }
.ffs-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(247, 181, 17, 0.65); }
.ffs-corner.tl { left: 12px; top: 12px; border-width: 1px 0 0 1px; }
.ffs-corner.tr { right: 12px; top: 12px; border-width: 1px 1px 0 0; }
.ffs-corner.bl { left: 12px; bottom: 12px; border-width: 0 0 1px 1px; }
.ffs-corner.br { right: 12px; bottom: 12px; border-width: 0 1px 1px 0; }
.ffs--hero .ffs-corner.tl, .ffs--hero .ffs-corner.tr { top: calc(var(--header-h) + 6px); }
.ffs-hud__tl { left: 28px; top: 26px; display: grid; gap: 8px; justify-items: start; }
.ffs--hero .ffs-hud__tl { left: var(--pad); top: calc(var(--header-h) + 22px); }
.ffs-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border: 1px solid rgba(247, 181, 17, 0.4);
  background: rgba(12, 12, 13, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFD36B;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ffs-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F7B511; animation: blink 1.6s steps(2) infinite; }
.ffs-note { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #7A7A80; }
.ffs-hud__tr { right: 28px; top: 26px; min-width: 230px; }
.ffs--hero .ffs-hud__tr { right: var(--pad); top: calc(var(--header-h) + 22px); }
.ffs-hud__tr div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A8A90;
}
.ffs-hud__tr b { font-weight: 500; color: #FFFFFF; }
.ffs-hud__tr b.cy { color: #F7B511; }
.ffs-hud__bl { left: 28px; bottom: 26px; display: grid; gap: 8px; justify-items: start; }
.ffs--hero .ffs-hud__bl { left: auto; right: var(--pad); bottom: 104px; justify-items: end; }
.ffs-radar { width: 150px; height: 150px; }
.ffs-grid { font-size: 10.5px; letter-spacing: 0.1em; color: #9B9BA1; text-transform: uppercase; white-space: pre; }
.ffs-hud__br { right: 28px; bottom: 26px; display: grid; gap: 8px; justify-items: end; pointer-events: auto; }
.ffs--hero .ffs-hud__br { right: var(--pad); bottom: 36px; }
.ffs-hud__br .ffs-note { color: #9B9BA1; }
.ffs-modes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.ffs-modes button {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 12, 13, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #B5B5B9;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.ffs-modes button:hover { color: #fff; border-color: #F7B511; }
.ffs-modes button[aria-pressed="true"] { background: #F7B511; border-color: #F7B511; color: #0C0C0D; }

/* floating role tags */
.ffs-tags { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ffs-tag {
  position: absolute;
  left: 0;
  top: 0;
  padding-bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ECECEA;
  white-space: nowrap;
  transition: opacity 0.3s;
  will-change: transform;
}
.ffs-tag::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 14px; background: rgba(247, 181, 17, 0.6); }
.ffs-tag > b {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(247, 181, 17, 0.4);
  background: rgba(12, 12, 13, 0.62);
  font-weight: 500;
  color: #fff;
  transition: background-color 0.25s, color 0.25s;
}
.ffs-tag--mother > b { border-color: #F7B511; color: #F7B511; }
.ffs-tag.is-hover { z-index: 5; }
.ffs-tag.is-hover > b { background: #F7B511; color: #0C0C0D; }
.ffs-tag .more {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 250px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 181, 17, 0.5);
  background: rgba(12, 12, 13, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
  line-height: 1.5;
  color: #D6D6D3;
}
.ffs-tag.is-hover .more { display: block; animation: rise 0.35s var(--ease) both; }
.ffs-tag .more strong { display: block; margin-bottom: 4px; color: #F7B511; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.ffs-tag .more dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0; }
.ffs-tag .more dt { color: #7A7A80; letter-spacing: 0.1em; }
.ffs-tag .more dd { margin: 0; text-align: right; color: #fff; }
.ffs-tag .more .status { display: inline-block; padding: 2px 7px; border: 1px dashed rgba(255, 255, 255, 0.45); color: #CFCFCC; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }

/* hero copy over the scene */
.ffs-copy { position: absolute; left: var(--pad); bottom: 40px; z-index: 4; max-width: min(640px, 58vw); }
.ffs-copy .ff-title { font-size: clamp(3.6rem, 8.6vw, 8.6rem); line-height: 0.84; }
.ffs-copy .body-lg { margin: 0 0 26px; max-width: 52ch; color: #B5B5B9; }

/* status table */
.status-table { width: 100%; border-collapse: collapse; }
.status-table th { text-align: left; padding: 0 16px 14px 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-d); border-bottom: 1px solid var(--line-d); }
.status-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-d); vertical-align: middle; }
.status-table td:first-child { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.status-table td:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted-d); text-align: right; padding-right: 0; }
.status-table tr { transition: background-color 0.3s; }
.status-table tbody tr:hover { background: rgba(247, 181, 17, 0.05); }

@keyframes blink { 50% { opacity: 0.2; } }

@media (max-width: 900px) {
  .ffs-head { grid-template-columns: 1fr; }
  .ffs--section { aspect-ratio: auto; height: 74vh; min-height: 500px; }
  .ffs-hud__tr { display: none; }
  .ffs-hud__bl { display: none; }
  .ffs-copy { max-width: none; right: var(--pad); bottom: 28px; }
  .ffs--hero .ffs-hud__br { top: calc(var(--header-h) + 64px); bottom: auto; right: auto; left: var(--pad); justify-items: start; }
  .ffs--hero .ffs-hud__br .ffs-modes { justify-content: flex-start; }
  .ffs-hud__br { left: 16px; right: 16px; bottom: 16px; justify-items: start; }
  .ffs-hud__br .ffs-modes { justify-content: flex-start; }
  .ffs-tag .more { width: 210px; }
  .ffs-legend .hint { margin-left: 0; }
  .status-table td:last-child, .status-table th:last-child { display: none; }
}
@media (max-width: 640px) {
  .ffs-modes button { padding: 7px 8px; font-size: 9.5px; }
  .ffs-hud__tl { left: 16px; top: 16px; }
  .ffs-corner { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ffs-chip::before { animation: none; }
}
.ffs-tags { z-index: 4; }
.ffs-tag.below .more { bottom: auto; top: calc(100% + 6px); }
.ffs-tag.edge-r .more { left: auto; right: -12px; transform: none; }
.ffs-tag.edge-l .more { left: -12px; transform: none; }

.paper .chip--plan { color: #8A6400; border-color: rgba(201, 143, 0, 0.6); }
.paper .chip--concept { color: #5D5D62; border-color: rgba(18, 18, 19, 0.35); }

/* Phone hero: the 3D scene gets its own band; the headline flows below it */
@media (max-width: 900px) {
  .ffs--hero { height: auto; min-height: 0; padding: calc(var(--header-h) + 470px) 0 40px; }
  .ffs--hero .ffs-copy { position: relative; left: auto; right: auto; bottom: auto; max-width: none; padding: 0 var(--pad); }
  .ffs--hero .ffs-copy .kicker { display: none; }
  .ffs--hero .ffs-hud__tl .ffs-note, .ffs--hero .ffs-hud__br .ffs-note { display: none; }
  .ffs--hero .ffs-hud__br { top: calc(var(--header-h) + 58px); }
  .ffs--hero .ffs-vignette {
    background:
      linear-gradient(to bottom, rgba(8, 8, 9, 0.55), transparent 16%, transparent 44%, rgba(8, 8, 9, 0.94) 62%, #0C0C0D 100%);
  }
}
@media (max-width: 900px) { .ffs--hero .ffs-hud__br { top: calc(var(--header-h) + 78px); } }

/* Intro: pure white stage with the bolt-strike logo animation (ring stays still) */
.intro {
  background: #FFFFFF;
  background-image: none;
  color: var(--charcoal);
}
.intro__inner { gap: 22px; }
.intro__icon {
  width: clamp(150px, 22vmin, 210px);
  height: auto;
  opacity: 0;
  transform: none;
  animation: introFade 0.5s ease-out 0.05s forwards;
}
.intro__word { color: var(--charcoal); }
.intro__word .gold { color: var(--gold); }
.intro .label { color: #7A7A80; }
.intro .label--gold { color: var(--gold-deep); }
.intro__bar { background: rgba(65, 64, 66, 0.14); }
@keyframes introFade { to { opacity: 1; } }

/* Header/footer logo: vector icon, bolt strikes on hover (ring stays still) */
.brand svg.brand__icon { width: auto; aspect-ratio: 474 / 530; overflow: visible; }
.brand:hover .brand__icon { transform: none; }
.brand__icon .bi-bolt { transform-box: fill-box; transform-origin: 50% 0%; }
.brand__icon .bi-glow, .brand__icon .bi-hot { opacity: 0; }
.brand.is-striking .bi-bolt { animation: biStrike 0.95s cubic-bezier(0.2, 0.8, 0.2, 1); }
.brand.is-striking .bi-glow { animation: biGlow 0.95s ease-out; }
.brand.is-striking .bi-hot { animation: biHot 0.95s ease-out; }
@keyframes biStrike {
  0% { transform: scaleY(1); opacity: 1; }
  18% { transform: scaleY(0.03); opacity: 0.25; }
  30% { transform: scaleY(0.03); opacity: 0; }
  42% { transform: scaleY(1.1); opacity: 1; }
  55% { transform: scaleY(0.95); }
  70% { transform: scaleY(1.02); }
  100% { transform: scaleY(1); opacity: 1; }
}
@keyframes biGlow { 0%, 38% { opacity: 0; } 46% { opacity: 1; } 100% { opacity: 0; } }
@keyframes biHot { 0%, 40% { opacity: 0; } 45% { opacity: 0.9; } 70%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .brand.is-striking .bi-bolt, .brand.is-striking .bi-glow, .brand.is-striking .bi-hot { animation: none; }
}
