:root {
  --bg: #050506;
  --bg-rgb: 5, 5, 6;
  --ink: #f3efe6;
  --ink-dim: #c4bfb4;
  --acid: #1677FF;
  --line: rgba(243, 239, 230, 0.18);
  --callout-shadow: #050506;
  --sans: "Inter", "SF Pro Text", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --ink: #161618;
  --ink-dim: #5c5a56;
  --line: rgba(22, 22, 24, 0.14);
  --callout-shadow: #ffffff;
  --acid: #1677FF;
  color-scheme: light;
}
html[data-theme="light"] ::selection { background: var(--acid); color: #fff; }
html[data-theme="light"][data-scene="os"],
html[data-theme="light"][data-scene="wrap"] {
  --ink: #f3efe6;
  --ink-dim: #c4bfb4;
  --line: rgba(243, 239, 230, 0.18);
  --bg: #050506;
  --bg-rgb: 5, 5, 6;
  --callout-shadow: #050506;
  color-scheme: dark;
}
html[data-theme="light"][data-scene="engineering"] .veil {
  background: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--ink); overscroll-behavior-y: none; }
html { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--acid); color: #fff; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 80;
  background: var(--acid); color: #fff;
  padding: 0.5rem 0.8rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 1px solid var(--acid); outline-offset: 3px; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; }
.progress i { display: block; height: 100%; width: 0; background: var(--acid); }

.nav {
  position: fixed; top: 0; left: 0; z-index: 30;
  padding: 1.15rem 1.5rem;
  pointer-events: none;
  display: flex; align-items: center; gap: 1rem;
}
.nav a, .nav button { pointer-events: auto; color: var(--ink); text-decoration: none; }
.mark {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.mark img {
  display: block;
  width: 1.15rem;
  height: auto;
  background: transparent;
}
.theme {
  background: none; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
  padding: 0.28rem 0.55rem;
}
.theme[aria-pressed="true"] { border-color: var(--acid); color: var(--acid); }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),0.92) 0%, rgba(var(--bg-rgb),0.55) 22%, rgba(var(--bg-rgb),0.08) 42%, transparent 58%),
    linear-gradient(180deg, rgba(var(--bg-rgb),0.35) 0%, transparent 12%, transparent 88%, rgba(var(--bg-rgb),0.5) 100%);
}

.boot {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: var(--bg);
  font-family: var(--mono);
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  transition: opacity 0.5s ease;
}
.boot.is-out { opacity: 0; pointer-events: none; }

.rail {
  position: fixed; right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex; flex-direction: column; gap: 0.15rem;
}
/* Exploded geometry reaches the right edge and grazes these numbers. A soft
   scrim frosts the model behind the rail so it stays a readable HUD layer.
   The feather has to finish to the LEFT of the digits: they sit at the rail's
   left edge, and a weak tint there lifts dark geometry to the same mid-grey as
   the label colour, which erases them in the light theme. */
.rail::before {
  content: "";
  position: absolute;
  /* Vertical inset is generous so the top/bottom feather lands outside the
     digits rather than washing 00 and 07. */
  inset: -2.5rem -0.9rem -2.5rem -5rem;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(var(--bg-rgb), 0) 0%,
    rgba(var(--bg-rgb), 0.72) 42%,
    rgba(var(--bg-rgb), 0.93) 62%,
    rgba(var(--bg-rgb), 0.95) 100%
  );
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  /* Feathered on both axes, so the frost has no rectangular edge over the
     model -- visible as a grey slab in the light theme otherwise. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 46%),
    linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 46%),
    linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-composite: intersect;
}
.rail button {
  background: none; border: 0; color: var(--ink); opacity: 0.62;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.08em; cursor: pointer;
  padding: 0.28rem 0.1rem;
  display: flex; align-items: baseline; gap: 0.45rem;
  text-align: left;
}
.rail button i { font-style: normal; color: inherit; min-width: 1.4em; }
.rail button span { opacity: 0; letter-spacing: 0.14em; text-transform: uppercase; }
.rail button.is-current { color: var(--acid); opacity: 1; }
.rail button:hover { opacity: 1; }
.rail button.is-current span { opacity: 1; }

#callouts { position: fixed; inset: 0; z-index: 8; pointer-events: none; }
.callout {
  position: absolute;
  transform: translate(8px, -50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #00e660;
  white-space: nowrap;
  text-shadow: 0 0 12px var(--callout-shadow);
}
.callout::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: #00e660;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

main { position: relative; z-index: 2; }

.chapter {
  min-height: 180vh;
  padding: 22vh 0 24vh 6.5vw;
  display: flex; align-items: flex-start;
}
#fit.chapter { min-height: 260vh; }
#explore.chapter { min-height: 320vh; }
.chapter.hero { min-height: 160vh; padding-top: 26vh; }

.copy {
  max-width: min(24rem, 36vw);
  pointer-events: auto;
  position: sticky;
  top: 22vh;
}
.intro-copy {
  max-width: min(28rem, 40vw);
}
.intro-lock {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}
.intro-sub {
  margin-top: 1.15rem;
  color: var(--ink-dim);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  max-width: 26rem;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 0.7rem;
}
.line {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.1rem;
  max-width: 28rem;
}
.scroll-hint {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.history {
  list-style: none;
  margin: 0.6rem 0 1.2rem;
  display: grid;
  gap: 0.2rem;
  max-width: 22rem;
}
.history li {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.22rem 0 0.22rem 0.9rem;
  border-left: 1px solid var(--line);
  opacity: 0.4;
}
.history li.is-on {
  opacity: 1;
  color: var(--ink);
  border-left-color: var(--acid);
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.4rem;
  margin-top: 0.4rem;
  max-width: 28rem;
}
.facts li {
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.facts span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.facts b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.probe-strip {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.6rem;
  max-width: 22rem;
}
.probe-strip li {
  display: grid;
  grid-template-columns: 7.2rem 5.6rem 5.2rem;
  align-items: baseline;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.4rem;
  white-space: nowrap;
}
.probe-strip .pid {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.probe-strip b, .probe-strip em {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 500;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.probe-strip em { color: var(--ink-dim); }

.blade-chip {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0.4rem 0 1rem;
}
.blade-chip b {
  font-family: var(--mono);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.blade-chip span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
}

.residual { margin-top: 1.1rem; max-width: 22rem; }
.residual-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 0.35rem;
}
.residual-head b { color: var(--acid); font-weight: 500; }
#resid-svg { width: 100%; height: 72px; display: block; }
#resid-svg polyline { fill: none; stroke: var(--acid); stroke-width: 1.5; }
#resid-svg .grid { stroke: var(--line); stroke-width: 1; }
#resid-svg .tick { fill: var(--ink-dim); font-size: 8px; font-family: var(--mono); }

.explore-panel { margin-top: 0.8rem; max-width: 24rem; pointer-events: auto; }
#pareto {
  width: 100%; height: auto;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--line);
  cursor: crosshair;
  max-height: 150px;
}
#pareto .axis { stroke: var(--line); stroke-width: 1; }
#pareto .label { fill: var(--ink-dim); font-size: 9px; font-family: var(--mono); }
#pareto .dot { fill: var(--ink); opacity: 0.65; cursor: pointer; }
#pareto .dot.is-on { fill: var(--acid); opacity: 1; }
#pareto .front { fill: none; stroke: var(--acid); stroke-width: 1; opacity: 0.55; }
.facts-inline { margin-top: 0.65rem; }

.hud {
  position: fixed;
  right: 5.2rem;
  bottom: 1.6rem;
  z-index: 22;
  width: min(12rem, 20vw);
  pointer-events: none;
  text-align: right;
}
.hud-phase { display: none; }
.hud-bar { height: 1px; background: var(--line); }
.hud-bar i { display: block; height: 100%; width: 0; background: var(--acid); margin-left: auto; }
.cbar {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: auto 10px;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.15rem 0.45rem;
  justify-content: end;
  font-family: var(--mono); font-size: 0.6rem; color: var(--ink-dim);
}
.cbar-ramp {
  grid-column: 2; grid-row: 1 / 4;
  width: 14px; min-height: 128px;
  /* Fallback only. main.js overwrites this with fieldRampCSS(). */
  background: linear-gradient(to top, #0b1d4a, #003a94, #0047ab, #3882d6, #b0d2f0, #fcf8f6);
}
.cbar #cbar-max { grid-column: 1; grid-row: 1; }
.cbar #cbar-min { grid-column: 1; grid-row: 3; align-self: end; }
.cbar em {
  grid-column: 1 / 3; grid-row: 4;
  font-style: normal; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 0.3rem;
}

@media (max-width: 860px) {
  .nav { padding: 0.7rem 1rem; }
  .chapter,
  #explore.chapter,
  #fit.chapter {
    min-height: 100vh;
    padding: 0;
    align-items: flex-end;
  }
  .chapter.hero { min-height: 100vh; padding: 0; }
  .veil {
    background:
      linear-gradient(180deg, transparent 0%, transparent 58%, rgba(var(--bg-rgb),0.55) 78%, rgba(var(--bg-rgb),0.92) 100%);
  }
  .copy {
    position: relative;
    top: auto;
    max-width: 100%;
    width: 100%;
    background: transparent;
    padding: 1rem 1.1rem 1.35rem;
    max-height: 34vh;
    overflow: auto;
  }
  .facts b { font-size: 1.15rem; }
  .blade-chip b { font-size: 2.4rem; }
  .probe-strip li { grid-template-columns: 6.4rem 5rem 4.6rem; }
  .rail {
    display: flex;
    flex-direction: row;
    top: 3.15rem;
    right: auto;
    left: 1rem;
    transform: none;
    gap: 0.55rem;
  }
  .rail button span { display: none; }
  .rail button i { font-size: 0.7rem; min-width: auto; }
  .hud { display: none; }
  #callouts { display: none; }
  .history { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress i, .hud-bar i { transition: none; }
  .cinema img { animation: none !important; opacity: 0 !important; transform: none !important; }
  .cinema img:first-child { opacity: 1 !important; }
}

/* Product wrap. Engineering chapters keep the rules above. */
html[data-scene]:not([data-scene="engineering"]) #stage,
html[data-scene]:not([data-scene="engineering"]) .veil,
html[data-scene]:not([data-scene="engineering"]) .hud,
html[data-scene]:not([data-scene="engineering"]) #callouts,
html[data-scene]:not([data-scene="engineering"]) .progress {
  visibility: hidden;
  pointer-events: none;
}
html[data-scene]:not([data-scene="engineering"]) .rail {
  display: none;
}
html[data-scene]:not([data-scene="engineering"]) #engineering .copy {
  opacity: 0 !important;
  pointer-events: none;
}
html:has(#os) .boot { display: none; }

.nav {
  width: 100%;
  justify-content: flex-start;
}
.nav-links {
  display: flex;
  gap: 1.15rem;
  margin-left: 0.4rem;
  pointer-events: auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav .theme { margin-left: auto; margin-right: 1.5rem; }
html[data-scene="paper"] .nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.os {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.os-cinema {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.os-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,6,0.96) 0%, rgba(5,5,6,0.72) 22%, rgba(5,5,6,0.18) 48%, transparent 68%),
    linear-gradient(180deg, rgba(5,5,6,0.35) 0%, transparent 16%, transparent 58%, rgba(5,5,6,0.78) 100%);
}
.os-lockup {
  position: relative;
  z-index: 2;
  padding: 0 6.5vw 12vh;
  max-width: 52rem;
}
.os-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 0.7rem;
}
.os h1, .band h2, .platform h2, .close h2 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
.os h1 {
  font-size: clamp(2.15rem, 4.1vw, 3.55rem);
}
.os h1 span { display: block; }
.os-sub {
  margin-top: 1.15rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 26rem;
}

.cinema {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}
.cinema img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 48%;
  opacity: 0;
  animation: cinema-cycle 16s infinite;
}
.cinema img:nth-child(1) { animation-delay: 0s; }
.cinema img:nth-child(2) { animation-delay: 4s; }
.cinema img:nth-child(3) { animation-delay: 8s; }
.cinema img:nth-child(4) { animation-delay: 12s; }
.cinema-2 img {
  animation-name: cinema-pair;
  animation-duration: 10s;
}
.cinema-2 img:nth-child(1) { animation-delay: 0s; }
.cinema-2 img:nth-child(2) { animation-delay: 5s; }
@keyframes cinema-pair {
  0% { opacity: 1; transform: scale(1.02); }
  8% { opacity: 1; transform: scale(1.04); }
  50% { opacity: 1; transform: scale(1.07); }
  58% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.02); }
}
@keyframes cinema-cycle {
  0% { opacity: 0; transform: scale(1.02); }
  6% { opacity: 1; transform: scale(1.04); }
  24% { opacity: 1; transform: scale(1.07); }
  32% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.02); }
}

.cinema-hero img {
  opacity: 1;
  animation: ken 22s ease-in-out infinite alternate;
}
.cinema-hero {
  background: #000;
}
.cinema-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 48%;
  background: #000;
  opacity: 1;
}
@keyframes ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.14); }
}
.os-cinema,
.band-film {
  background: #000;
}
html[data-theme="light"] .os h1,
html[data-theme="light"] .os-sub,
html[data-theme="light"] .os-kicker {
  color: var(--ink);
}
html[data-theme="light"] .os {
  color: #f3efe6;
}
html[data-theme="light"] .os h1 { color: #f3efe6; }
html[data-theme="light"] .os-sub { color: rgba(243,239,230,0.72); }
html[data-theme="light"] .os .os-kicker { color: #1677FF; }
html[data-theme="light"][data-scene="os"] .nav a,
html[data-theme="light"][data-scene="os"] .nav .mark,
html[data-theme="light"][data-scene="os"] .nav .theme,
html[data-theme="light"][data-scene="wrap"] .nav a,
html[data-theme="light"][data-scene="wrap"] .nav .mark,
html[data-theme="light"][data-scene="wrap"] .nav .theme {
  color: #f3efe6;
  border-color: rgba(243,239,230,0.28);
}
html[data-theme="light"][data-scene="os"] .mark img,
html[data-theme="light"][data-scene="wrap"] .mark img,
html[data-theme="dark"] .mark img {
  filter: invert(1);
}
html[data-theme="light"] .band-bleed h2,
html[data-theme="light"] .band-plot h2,
html[data-theme="light"] .band-bleed .tree b,
html[data-theme="light"] .band-bleed .facts b,
html[data-theme="light"] .band-plot .facts b {
  color: #f3efe6;
}
html[data-theme="light"] .band-bleed .os-kicker,
html[data-theme="light"] .band-plot .os-kicker {
  color: #1677FF;
}
html[data-theme="light"] .band-bleed .tree,
html[data-theme="light"] .band-bleed .tree span,
html[data-theme="light"] .band-bleed .facts span,
html[data-theme="light"] .band-bleed .probe,
html[data-theme="light"] .band-plot .facts span,
html[data-theme="light"] .band-copy > p:not(.os-kicker) {
  color: rgba(243, 239, 230, 0.72);
}

.band {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.band-film {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.band-film .cinema { height: 100%; }
.band-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  padding: 16vh 6.5vw;
}
.band-bleed .band-copy {
  background: linear-gradient(90deg, rgba(5,5,6,0.88) 0%, rgba(5,5,6,0.55) 62%, transparent 100%);
}
.band-end .band-copy {
  margin-left: auto;
  background: linear-gradient(270deg, rgba(5,5,6,0.88) 0%, rgba(5,5,6,0.55) 62%, transparent 100%);
}
.band h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  margin-bottom: 0.85rem;
}
.band-copy > p:not(.os-kicker) {
  color: var(--ink-dim);
  font-size: 1.02rem;
  max-width: 26rem;
  margin-bottom: 1.4rem;
}
.band .history {
  margin-top: 0.4rem;
}
.band .facts {
  margin-top: 0.2rem;
}
.tree {
  list-style: none;
  margin-top: 1.6rem;
  border-left: 1px solid var(--line);
}
.tree li {
  display: grid;
  grid-template-columns: 2.2rem 6.5rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0 0.55rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--ink-dim);
}
.tree i { color: var(--acid); font-style: normal; text-transform: uppercase; }
.tree b { color: var(--ink); font-weight: 500; text-transform: uppercase; }
.tree span { white-space: nowrap; }
.probe {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-dim);
  margin-top: 1.1rem;
}
.band-plot {
  position: relative;
  min-height: 92vh;
  padding: 0;
  border-top: 1px solid var(--line);
  background: #050506;
}
.front {
  position: absolute;
  inset: 8vh 6.5vw 8vh 32vw;
  width: auto;
  height: auto;
  z-index: 1;
}
.band-plot .band-copy {
  background: none;
  max-width: 22rem;
}
.ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
  opacity: 0.18;
  z-index: 0;
}
.front {
  position: absolute;
  inset: 8vh 6.5vw 8vh 32vw;
  width: auto;
  height: auto;
  z-index: 1;
}
.platform-rows {
  list-style: none;
  margin-top: 2.4rem;
  max-width: 64rem;
}
.platform-rows li {
  display: grid;
  grid-template-columns: minmax(14rem, 0.38fr) 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.platform-rows img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 55% 48%;
  background: #050506;
}
.platform-rows b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.platform-rows span {
  color: var(--ink-dim);
  font-size: 1.02rem;
}

#os, #product, #capabilities, #reel, #features, #engineering, #platform, #close, .band { scroll-margin-top: 4.2rem; }

.product {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.8rem 6.5vw 4.5rem;
  overflow: hidden;
  background: #050506;
}
.product-copy {
  max-width: 56rem;
  margin: 0 auto 1.85rem;
  text-align: center;
}
.product h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.15vw, 2.65rem);
  letter-spacing: -0.038em;
  line-height: 1.08;
  color: var(--ink);
}
.product h2 span { display: block; }
@media (min-width: 861px) {
  .product h2 span { white-space: nowrap; }
}
.product-lede {
  margin-top: 1.05rem;
  color: var(--ink-dim);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.product-stage {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}
.desk {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1c1e;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.desk-paper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  z-index: 0;
  pointer-events: none;
}
.desk .mac {
  position: relative;
  z-index: 1;
  margin: 5.5% 7.5% 6.2%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.desk .mac-body {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
}
.mac {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.32),
    0 40px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.mac-bar {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  background: #000;
  border-bottom: none;
}
.mac-traffic {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 46px;
  flex-shrink: 0;
}
.mac-traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.mac-traffic i:nth-child(1) { background: #ff5f57; }
.mac-traffic i:nth-child(2) { background: #febc2e; }
.mac-traffic i:nth-child(3) { background: #28c840; }
.mac-title {
  flex: 1;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.38);
  transform: translateX(-23px);
}
.mac-body {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}
.mac-body video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
html[data-theme="light"] .product {
  background: #f5f5f7;
}
html[data-theme="light"] .product h2 {
  color: #1d1d1f;
}
html[data-theme="light"] .product-lede {
  color: #6e6e73;
}
html[data-theme="light"] .product .os-kicker {
  color: #1677FF;
}
.capabilities {
  background: #050506;
  padding: 0 6.5vw 9vh;
}
.capabilities-inner {
  max-width: 64rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
}
.cap-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 2rem;
}
.cap-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  display: block;
}
.cap-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.4rem;
  padding: 0 0 2.6rem;
  border-bottom: 1px solid var(--line);
}
.cap-grid b {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.cap-grid span {
  display: block;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 22rem;
}
.cap-rows {
  list-style: none;
}
.cap-rows li {
  display: grid;
  grid-template-columns: minmax(11rem, 0.34fr) 1fr;
  gap: 1.4rem 2rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.cap-rows b {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cap-rows span {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 38rem;
}
html[data-theme="light"] .capabilities {
  background: #f5f5f7;
}

/* Reel — one demo on a sticky stage, scroll steps through them */
html[data-theme="light"] .reel { background: #f5f5f7; }
html[data-theme="light"] .reel h2,
html[data-theme="light"] .reel-steps b { color: #1d1d1f; }
html[data-theme="light"] .reel-steps p { color: #6e6e73; }
html[data-theme="light"] .reel .os-kicker { color: #1677FF; }
.reel {
  position: relative;
  background: #050506;
  height: calc(100vh + 6 * 70vh);
}
.reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 3vw 2.5rem;
}
.reel-grid {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}
.reel-head { margin-bottom: 2.2rem; }
.reel h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.036em;
  line-height: 1.08;
  color: var(--ink);
}
.reel-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
  border-radius: 18px;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reel-open:hover { transform: translateY(-3px); }
.reel-open:focus-visible { outline: 1px solid var(--acid); outline-offset: 6px; }
.mac-expand {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.3s;
}
.reel-open:hover .mac-expand,
.reel-open:focus-visible .mac-expand { opacity: 1; }
.reel-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.reel-steps li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.45rem;
  cursor: pointer;
  opacity: 0.38;
  transition: opacity 0.45s ease;
}
.reel-steps li.is-on,
.reel-steps li:hover { opacity: 1; }
.reel-steps li i {
  position: absolute;
  left: 0;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 2px;
  border-radius: 1px;
  background: var(--line);
}
.reel-steps li i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--p, 0) * 100%);
  background: var(--acid);
}
.reel-steps b {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.reel-steps em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--acid);
}
.reel-steps p {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: grid-template-rows 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reel-steps p > span {
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  opacity: 0;
  transition: opacity 0.35s ease, padding-top 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reel-steps li.is-on p { grid-template-rows: 1fr; }
.reel-steps li.is-on p > span {
  padding-top: 0.4rem;
  opacity: 1;
  transition-delay: 0.12s, 0s;
}
.reel-stage {
  width: 100%;
  max-width: calc((100vh - 9rem) * 16 / 10);
  margin: 0 auto;
}
.reel-desk {
  position: relative;
  padding: 3.6% 4%;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0f12;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.reel-desk::before,
.reel-desk::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* film grain — keeps the gradients from banding */
.reel-desk::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: 0.22;
}
.reel-desk::after {
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.42) 100%);
}
.reel-desk .mac { position: relative; z-index: 2; }
.reel-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reel-bg.is-on { opacity: 1; transform: none; }
/* two soft light sources per case */
.reel-bg::before,
.reel-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}
/* 01 Thermal — ember into violet */
.reel-bg:nth-child(1) {
  background:
    radial-gradient(120% 90% at 18% 112%, #ff7a2f 0%, rgba(255, 122, 47, 0) 55%),
    radial-gradient(90% 70% at 88% -6%, #6b2bd9 0%, rgba(107, 43, 217, 0) 60%),
    linear-gradient(160deg, #1a0b12 0%, #2a0f1c 50%, #120814 100%);
}
/* 02 Automotive — midnight steel, an ice-blue sweep */
.reel-bg:nth-child(2) {
  background:
    linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.07) 50%, transparent 62%),
    linear-gradient(180deg, #0a0d14 0%, #151b28 55%, #0b0e15 100%);
}
.reel-bg:nth-child(2)::before {
  width: 78%; height: 78%; right: -18%; bottom: -46%;
  background: #cfe0f5;
  opacity: 0.55;
}
.reel-bg:nth-child(2)::after {
  width: 56%; height: 62%; left: -14%; top: -30%;
  background: #2f6bff;
  opacity: 0.45;
}
/* 03 Aerospace — high altitude, sun at the limb */
.reel-bg:nth-child(3) {
  background: linear-gradient(180deg, #030b24 0%, #0a2666 52%, #2a63d8 100%);
}
.reel-bg:nth-child(3)::before {
  width: 110%; height: 60%; left: -5%; bottom: -42%;
  background: #bfdcff;
  opacity: 0.85;
}
.reel-bg:nth-child(3)::after {
  width: 50%; height: 56%; right: -10%; top: -22%;
  background: #6a4cff;
  opacity: 0.5;
}
/* 04 Hardware — emerald board, warm copper */
.reel-bg:nth-child(4) {
  background: linear-gradient(160deg, #04120f 0%, #072a22 55%, #030d0a 100%);
}
.reel-bg:nth-child(4)::before {
  width: 84%; height: 84%; left: -22%; bottom: -44%;
  background: #17c18f;
  opacity: 0.6;
}
.reel-bg:nth-child(4)::after {
  width: 48%; height: 54%; right: -10%; top: -22%;
  background: #ffbe6a;
  opacity: 0.66;
}
/* 05 CAD Preprocessing — violet-indigo, drafting grid fading at the edges */
.reel-bg:nth-child(5) {
  background: linear-gradient(180deg, #0a0c2e 0%, #161a5e 60%, #0d1040 100%);
}
.reel-bg:nth-child(5)::before {
  width: 74%; height: 80%; left: -16%; top: -30%;
  background: #6e5cff;
  opacity: 0.62;
}
.reel-bg:nth-child(5)::after {
  width: 66%; height: 66%; right: -18%; bottom: -38%;
  background: #2fc4ff;
  opacity: 0.5;
}
.reel-bg:nth-child(5) i {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 26px);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 20%, transparent 100%);
}
/* 06 Industrials — molten, heat rising */
.reel-bg:nth-child(6) {
  background: linear-gradient(180deg, #07070a 0%, #17100f 62%, #2a140c 100%);
}
.reel-bg:nth-child(6)::before {
  width: 92%; height: 66%; left: 4%; bottom: -40%;
  background: radial-gradient(closest-side, #ffcf7a 0%, #ff7a2f 45%, #d8341f 100%);
  opacity: 0.9;
}
.reel-bg:nth-child(6)::after {
  width: 48%; height: 54%; right: -14%; top: -20%;
  background: #9a1e4e;
  opacity: 0.55;
}
.reel-stage .mac-title { transform: translateX(-17px); }
.reel-stage .mac-body { aspect-ratio: 16 / 9; }
.reel-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reel-film.is-on {
  opacity: 1;
  transform: none;
}

.theatre {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem;
  align-items: center;
  padding: 3.5rem 0;
  background: rgba(5, 5, 6, 0.9);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.theatre[hidden] { display: none; }
.theatre.is-open { opacity: 1; }
html.is-theatre { overflow: hidden; }
.theatre-stage {
  width: min(100%, calc((100vh - 11rem) * 16 / 9));
  margin: 0 auto;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.theatre.is-open .theatre-stage { transform: none; }
.theatre-stage .mac {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 80px 160px rgba(0, 0, 0, 0.6);
}
.theatre-stage .mac-body { aspect-ratio: 16 / 9; }
.theatre-stage .mac-title { transform: translateX(-23px); }
.theatre-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: #f3efe6;
}
.theatre-caption i,
.theatre-caption em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}
.theatre-caption i { color: var(--acid); }
.theatre-caption em { color: rgba(243, 239, 230, 0.5); }
.theatre-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f3efe6;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.theatre-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.26); }
.theatre-btn:focus-visible { outline: 1px solid var(--acid); outline-offset: 3px; }
.theatre-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theatre-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.35rem;
  height: 2.35rem;
}
@media (max-width: 1100px) {
  .reel-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    max-width: 52rem;
  }
  .reel-side { display: contents; }
  .reel-head {
    margin-bottom: 0;
    text-align: center;
  }
  .reel-stage { order: 1; }
  .reel-steps {
    order: 2;
    flex-direction: row;
  }
  .reel-steps li {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 0 0 0;
    transition: opacity 0.45s ease, flex 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .reel-steps li.is-on { flex: 1.7; }
  .reel-steps b {
    font-size: 1rem;
    gap: 0.55rem;
    white-space: nowrap;
    overflow: hidden;
  }
  .reel-steps b > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .reel-steps li i {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0.6rem;
    width: auto;
    height: 2px;
  }
  .reel-steps li i::after {
    height: 100%;
    width: calc(var(--p, 0) * 100%);
  }
  .reel-steps p { display: none; }
  .reel-stage { max-width: calc((100vh - 19rem) * 16 / 10); }
}
@media (max-width: 640px) {
  .reel-steps li.is-on { flex: 3.2; }
  .reel-steps li:not(.is-on) b > span { display: none; }
}

.features {
  background: #050506;
  padding: 2vh 6.5vw 8vh;
}
.feature {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.15fr);
  gap: 3.2rem 5vw;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 7vh 0;
}
.feature-flip {
  grid-template-columns: minmax(20rem, 1.15fr) minmax(16rem, 0.9fr);
}
.feature-flip .feature-copy { order: 2; }
.feature-copy h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 22rem;
}
.feature-copy p {
  margin-top: 0.85rem;
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 26rem;
}
.feature .mac-body {
  aspect-ratio: 16 / 10;
}
.feature-film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
html[data-theme="light"] .features {
  background: #f5f5f7;
}
html[data-scene="product"] .nav {
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.92) 40%, transparent 100%);
}
.integrations {
  position: relative;
  z-index: 6;
  isolation: isolate;
  background: #fff;
  padding: 12vh 6.5vw 12vh;
  color: #1d1d1f;
}
html[data-theme="dark"] .integrations {
  background: #111113;
  color: #f3efe6;
}
.int-row {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(22rem, 1.25fr);
  gap: 2.4rem 3.5vw;
  align-items: center;
}
.int-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1d1d1f;
}
.int-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1677FF;
  display: block;
}
.int-copy h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #1d1d1f;
  max-width: 22.5rem;
  margin-top: 1rem;
}
.int-lede {
  margin-top: 0.85rem;
  color: #6e6e73;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 22rem;
}
.int-cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem;
}
.int-cards li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  min-height: 6.6rem;
  padding: 1.05rem 1.1rem 0.95rem;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
}
.int-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 7.2rem;
  object-fit: contain;
  object-position: left center;
}
.int-logo-app {
  width: 32px;
  height: 32px;
  max-width: 32px;
  border-radius: 8px;
}
.int-cards b {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d1d1f;
}
.int-foot {
  max-width: 72rem;
  margin: 2.1rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(22rem, 1.25fr);
  gap: 2.4rem 3.5vw;
  align-items: baseline;
}
.int-foot b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1d1d1f;
}
.int-foot p {
  color: #6e6e73;
  font-size: 0.92rem;
}
html[data-theme="dark"] .int-kicker,
html[data-theme="dark"] .int-copy h2,
html[data-theme="dark"] .int-foot b {
  color: #f3efe6;
}
html[data-theme="dark"] .int-lede,
html[data-theme="dark"] .int-foot p {
  color: #c4bfb4;
}
html[data-theme="dark"] .int-foot {
  border-top-color: rgba(243, 239, 230, 0.14);
}
html[data-theme="dark"] .int-cards li {
  background: #fff;
  border-color: #000;
}
html[data-theme="dark"] .int-cards b {
  color: #1d1d1f;
}
.deploy {
  max-width: 72rem;
  margin: 2.4rem auto 0;
}
.deploy-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e6e73;
  margin-bottom: 1.5rem;
}
html[data-theme="dark"] .deploy-kicker {
  color: #c4bfb4;
}
.deploy-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.6rem 2.2rem;
}
.deploy-grid li {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.4rem;
}
.deploy-grid i {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #1677FF;
  padding-top: 0.28rem;
}
.deploy-grid b {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  text-transform: none;
}
.deploy-grid span {
  grid-column: 2;
  color: #6e6e73;
  font-size: 0.88rem;
  line-height: 1.45;
}
html[data-theme="dark"] .deploy-grid b {
  color: #f3efe6;
}
html[data-theme="dark"] .deploy-grid span {
  color: #c4bfb4;
}

.platform {
  min-height: auto;
  padding: 10vh 6.5vw 8vh;
  border-top: 1px solid var(--line);
}
.platform h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  max-width: 28rem;
}
.platform-list {
  list-style: none;
  max-width: 48rem;
  margin-top: 2.6rem;
}
.platform-list li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.6rem 2.2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.platform-list b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.platform-list span {
  color: var(--ink-dim);
  font-size: 1.02rem;
  max-width: 32rem;
}

.close {
  min-height: 100vh;
  padding: 14vh 6.5vw 12vh;
  border-top: 1px solid var(--line);
  text-align: center;
}
.close h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}
.close-fact {
  margin-top: 1.15rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-dim);
  font-size: 1.02rem;
  max-width: 36rem;
}
.close .cta {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0.85rem 0 0.35rem;
}
.close .cta:hover { color: var(--acid); border-color: var(--acid); }
.colophon {
  margin-top: 4.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.85rem 1.1rem 0.7rem;
    row-gap: 0.45rem;
  }
  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 0.9rem;
  }
  .os { min-height: 100vh; align-items: flex-end; }
  .os-lockup { padding: 1rem 1.1rem 2.4rem; max-width: 100%; }
  .os h1 { font-size: 2.15rem; }
  .band {
    min-height: 72vh;
  }
  .band-copy,
  .band-end .band-copy {
    margin: 0;
    padding: 4.2rem 1.1rem 2.4rem;
    max-width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(5,5,6,0.82) 38%, rgba(5,5,6,0.92) 100%);
  }
  .product {
    padding: 8vh 1.1rem 10vh;
  }
  .capabilities { padding: 0 1.1rem 4.5rem; }
  .cap-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cap-rows li { grid-template-columns: 1fr; gap: 0.35rem; }
  .reel { height: calc(100vh + 6 * 60vh); }
  .reel-sticky { padding: 4.5rem 1.1rem 2rem; }
  .reel h2 { font-size: 2.05rem; }
  .reel-steps b { font-size: 0.92rem; gap: 0.45rem; }
  .reel-desk { padding: 4% 4.2%; border-radius: 12px; }
  .theatre {
    grid-template-columns: 1fr;
    padding: 3.5rem 1rem 5.5rem;
  }
  .theatre-stage { width: 100%; }
  .theatre-prev,
  .theatre-next {
    position: absolute;
    bottom: 1.4rem;
  }
  .theatre-prev { left: calc(50% - 3.4rem); }
  .theatre-next { left: calc(50% + 0.65rem); }
  .features { padding: 1vh 1.1rem 4rem; }
  .feature,
  .feature-flip {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 3.2rem 0;
  }
  .feature-flip .feature-copy { order: 0; }
  .product h2 { font-size: 2.05rem; }
  .product-copy { margin-bottom: 2.4rem; }
  .desk { border-radius: 12px; aspect-ratio: 4 / 5; }
  .desk .mac { margin: 8% 5.5% 7%; }
  .mac { border-radius: 8px; }
  .mac-bar { height: 26px; padding: 0 8px; }
  .mac-title { transform: none; font-size: 0.62rem; }
  .integrations {
    padding: 3.2rem 1.1rem 2.8rem;
  }
  .deploy-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .int-row,
  .int-foot {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .int-cards {
    grid-template-columns: 1fr 1fr;
  }
  .int-cards li {
    min-height: 5.8rem;
  }
  .platform,
  .close {
    min-height: auto;
    padding: 3.4rem 1.1rem 2.8rem;
  }
  .platform-rows li {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .front { inset: 42vh 1.1rem 1.2rem 1.1rem; }
  .band-plot { min-height: 92vh; }
  .close .cta { width: auto; }
}
