/* ==========================================================================
   PowerMate — standalone product site
   Palette comes straight from the PM mark: charcoal tile, off-white P, signal-red M.
   ========================================================================== */

:root {
  --ink: #141112;
  --char: #231F20;
  --char-2: #2B2627;
  --char-3: #3A3435;
  --paper: #F2F2F2;
  --paper-2: #E2DEDE;
  --mute: #A39C9D;
  --mute-2: #6E6768;
  --red: #EE3524;
  --red-hot: #FF6A52;
  --red-deep: #A8231A;
  --amber: #F29A2E;
  --line: rgba(242, 242, 242, .10);
  --line-2: rgba(242, 242, 242, .20);

  /* tariff bands (data colours) */
  --peak: #EE3524;
  --shoulder: #F29A2E;
  --offpeak: #6E6768;
  --free: #F2F2F2;

  --f-sans: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
html:not(.reduce-motion) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* film grain, keeps the flat charcoal from feeling digital */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 14px; font-family: var(--f-mono); font-size: 12px; text-decoration: none; }
.skip:focus { top: 12px; }

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

.coarse-pointer { display: none; }
@media (pointer: coarse) {
  .coarse-pointer { display: inline; }
  .fine-pointer { display: none; }
}

/* --------------------------------------------------------------------------
   Type system
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(46px, 7.2vw, 118px);
  line-height: .88;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.display em, .display-sm em { font-style: normal; color: var(--red); display: block; }
.display-sm {
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: .9;
}

.sec-label {
  display: flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 28px;
}
.sec-label .n { color: var(--red); display: inline-flex; align-items: center; }
.sec-label .n::after { content: ""; width: 32px; height: 1px; background: currentColor; margin: 0 14px; }

.sec-head { max-width: 980px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-intro { margin-top: 28px; max-width: 640px; color: var(--mute); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; }
.fine { font-family: var(--f-mono); font-size: 10.5px; line-height: 1.7; color: var(--mute-2); letter-spacing: .02em; }
.fine a { color: var(--mute); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bg: transparent; --fg: var(--paper); --bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  min-height: 56px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  text-decoration: none;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.05;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn span { display: flex; flex-direction: column; text-align: left; }
.btn small { font-family: var(--f-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 3px; }
.btn::before { /* a pulse sweeps across on hover */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { --bg: var(--red); --fg: #fff; --bd: var(--red); }
.btn-line:hover { --bd: var(--paper); }
.btn-sm { white-space: nowrap; min-height: 40px; padding: 9px 16px; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.btn-lg { min-height: 68px; font-size: 22px; padding-inline: 22px 30px; }
.btn-lg svg { width: 26px; height: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.led {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4A2A26;
  box-shadow: 0 0 0 0 rgba(238, 53, 36, 0);
  transition: background .5s, box-shadow .5s;
}
.led.flash { background: var(--red-hot); box-shadow: 0 0 12px 3px rgba(238, 53, 36, .75); transition: none; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--gutter);
  background: linear-gradient(rgba(20, 17, 18, .88), rgba(20, 17, 18, .72));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; }
.brand-word { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand-word b, .foot-word b { color: var(--red); font-weight: 800; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  position: relative;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute); text-decoration: none;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--red); transition: right .35s var(--ease); }
.nav-links a:hover, .nav-links a.is-on { color: var(--paper); }
.nav-links a:hover::after, .nav-links a.is-on::after { right: 0; }
.nav-live {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; font-variant-numeric: tabular-nums;
  color: var(--paper);
  padding: 7px 12px; border: 1px solid var(--line);
  min-width: 104px; justify-content: flex-end;
}
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.nav-progress i { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(238, 53, 36, .8); }

@media (max-width: 1100px) { .nav-links { display: none; } }
.nav-cta { gap: 0; }
.nav-cta .nav-cta-long { display: inline; white-space: pre; }
@media (max-width: 520px) { .nav-live { display: none; } .brand-word { font-size: 17px; } .nav { gap: 12px; } }
@media (max-width: 420px) { .nav-cta .nav-cta-long { display: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  --L: min(36vw, 500px, 58svh);
  position: relative;
  min-height: max(100svh, 760px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 74% 46%, rgba(238, 53, 36, .13), transparent 70%),
    radial-gradient(ellipse 80% 60% at 10% 100%, rgba(242, 242, 242, .04), transparent 70%),
    var(--ink);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 50%, #000 30%, transparent 80%);
  opacity: .55;
}
.hero-logo {
  position: absolute;
  width: var(--L); height: var(--L);
  right: calc(var(--gutter) + 3vw);
  top: calc(50% - var(--L) * .62);
  z-index: 1;
}
.hero-logo svg { width: 100%; height: 100%; overflow: visible; }
.hero-tile {
  fill: var(--char);
  stroke: rgba(242, 242, 242, .08);
  stroke-width: .5;
  transform-origin: 54px 54px;
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
}
.js .hero-tile { opacity: 0; transform: scale(.86); }
.js .hero.is-built .hero-tile { opacity: 1; transform: none; }
.hero-glyphs.beat { animation: beat .9s var(--ease); }
@keyframes beat {
  0% { filter: none; }
  18% { filter: drop-shadow(0 0 2.5px rgba(255, 106, 82, .95)) brightness(1.25); }
  100% { filter: none; }
}
.hero-trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

.hero-upper {
  position: absolute; z-index: 3;
  left: var(--gutter);
  bottom: calc(50% - var(--L) * .183 + 30px);
  max-width: 60vw;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 10px var(--red); animation: blink 1.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero-title {
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(76px, min(12vw, 19svh), 200px);
  line-height: .82;
  letter-spacing: -.01em;
}
.hero-title .ln { display: block; }
.hero-title .red { color: var(--red); }
.hero-title .ln { opacity: 0; transform: translateY(.3em); animation: rise 1.1s var(--ease) forwards; }
.hero-title .ln + .ln { animation-delay: .12s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-lower {
  position: absolute; z-index: 3;
  left: var(--gutter);
  top: calc(50% + var(--L) * .183 + 30px);
  max-width: 540px;
  opacity: 0; animation: rise 1.2s .5s var(--ease) forwards;
}
.lede { color: var(--mute); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; margin-bottom: 26px; max-width: 520px; }
.lede strong { color: var(--paper); font-weight: 700; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-2); }
.hero-facts li::before { content: "+ "; color: var(--red); }

.hero-readout {
  position: absolute; z-index: 3;
  right: calc(var(--gutter) + 3vw);
  top: calc(50% + var(--L) * .38 + 22px);
  width: min(var(--L), 360px);
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  background: rgba(20, 17, 18, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  opacity: 0; animation: rise 1.2s 1.4s var(--ease) forwards;
}
.ro-top { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ro-pulses { margin-left: auto; font-variant-numeric: tabular-nums; }
.ro-pulses b { color: var(--paper); font-weight: 500; }
.ro-value { font-family: var(--f-sans); font-stretch: 62%; font-weight: 850; font-size: 64px; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ro-value small { font-size: 22px; margin-left: 6px; color: var(--mute); font-weight: 600; }
.ro-sub { font-size: 12px; color: var(--paper); margin-top: 2px; }
.ro-hint { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-2); }

.hero-toast {
  position: absolute; z-index: 4; left: 0; top: 0;
  pointer-events: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 6px 10px;
  opacity: 0; transform: translate(-50%, -100%);
  white-space: nowrap;
}
.hero-toast.show { animation: toast 1.8s var(--ease) forwards; }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, -60%); }
  12% { opacity: 1; transform: translate(-50%, -140%); }
  75% { opacity: 1; transform: translate(-50%, -150%); }
  100% { opacity: 0; transform: translate(-50%, -190%); }
}

.marquee {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: rgba(20, 17, 18, .7);
  padding: 13px 0;
}
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.marquee i { width: 14px; height: 9px; flex: none; background: var(--red); clip-path: polygon(0 100%, 0 40%, 30% 0, 55% 80%, 100% 30%, 100% 100%); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 820px) {
  .hero { --L: min(64vw, 330px); display: flex; flex-direction: column; padding: calc(var(--nav-h) + 28px) var(--gutter) 84px; min-height: 100svh; }
  .hero-logo { position: relative; right: auto; top: auto; margin: 0 auto 26px; }
  .hero-upper, .hero-lower, .hero-readout { position: relative; left: auto; right: auto; top: auto; bottom: auto; max-width: none; }
  .hero-upper { margin-top: 6px; }
  .hero-title { font-size: clamp(64px, 21vw, 120px); }
  .eyebrow { margin-bottom: 14px; }
  .hero-lower { margin-top: 22px; }
  .hero-readout { width: auto; margin-top: 26px; }
  .ro-value { font-size: 48px; }
}

/* --------------------------------------------------------------------------
   01 Legacy — 250,000 particle story
   -------------------------------------------------------------------------- */
.legacy { position: relative; height: 640vh; background: var(--ink); }
.legacy-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.legacy-sticky::before { /* scanline vignette */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 60% 50%, transparent 55%, rgba(0, 0, 0, .55));
}
.vic-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vic-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.vic-labels .vl {
  position: absolute; left: 0; top: 0;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242, 242, 242, .7);
  white-space: nowrap;
  transform: translate(10px, -50%);
  opacity: 0;
  transition: opacity .6s;
}
.vic-labels .vl::before { content: ""; position: absolute; left: -10px; top: 50%; width: 6px; height: 1px; background: currentColor; }
.vic-labels.on .vl { opacity: 1; }
.vic-wave {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 100px; height: 100px; border-radius: 50%;
  border: 1.5px solid var(--red);
  box-shadow: 0 0 40px rgba(238, 53, 36, .35), inset 0 0 40px rgba(238, 53, 36, .2);
  opacity: 0;
}
.vic-origin {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .7s var(--ease);
}
.vic-origin svg { width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 0 0 1px rgba(238, 53, 36, .6), 0 0 30px rgba(238, 53, 36, .6); }
.vic-origin::before, .vic-origin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 1px solid var(--red);
  animation: ping 1.8s var(--ease) infinite;
}
.vic-origin::after { animation-delay: .9s; }
@keyframes ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
.vic-origin.on { transform: translate(-50%, -50%) scale(1); }

.heap-label {
  position: absolute; z-index: 2; left: 0; top: 0;
  transform: translate(-50%, -100%);
  text-align: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
  opacity: 0; transition: opacity .6s;
  pointer-events: none;
}
.heap-label b { display: block; font-family: var(--f-sans); font-stretch: 62%; font-weight: 850; font-size: 30px; letter-spacing: 0; color: var(--paper); margin-top: 2px; }
.heap-label::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: var(--mute-2); }
.heap-label.on { opacity: 1; }

.legacy-copy {
  position: absolute; z-index: 4;
  left: var(--gutter); top: 50%;
  transform: translateY(-50%);
  width: min(460px, 36vw);
}
.counter {
  font-stretch: 62%; font-weight: 900;
  font-size: clamp(76px, 10.5vw, 172px);
  line-height: .84;
  font-variant-numeric: tabular-nums;
  color: var(--cc, var(--paper));
  transition: color .6s;
  letter-spacing: -.01em;
}
.counter-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 12px; min-height: 1.6em; }
.caps { display: grid; margin-top: 40px; }
.cap { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .55s, transform .7s var(--ease); pointer-events: none; }
.cap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cap h2 { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 40px); line-height: .95; margin-bottom: 14px; }
.cap h2 em { font-style: normal; color: var(--red); }
.cap p { color: var(--mute); font-size: 16px; line-height: 1.6; }
.cap a { color: var(--paper); text-decoration-color: var(--red); text-underline-offset: 4px; }

.legacy-rail { position: absolute; z-index: 4; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.legacy-rail li { width: 3px; height: 26px; background: var(--line-2); transition: background .4s, height .4s; }
.legacy-rail li.is-on { background: var(--red); height: 44px; }
.legacy-hint { position: absolute; z-index: 4; right: var(--gutter); bottom: 22px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2); }

@media (max-width: 820px) {
  .legacy { height: 600vh; }
  .legacy-copy {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; transform: none;
    padding: 70px var(--gutter) 26px;
    background: linear-gradient(transparent, rgba(20, 17, 18, .92) 34%);
  }
  .legacy-copy .sec-label { margin-bottom: 12px; }
  .counter { font-size: 64px; }
  .counter-label { margin-top: 6px; }
  .caps { margin-top: 18px; }
  .cap h2 { font-size: 26px; margin-bottom: 8px; }
  .cap p { font-size: 14.5px; }
  .legacy-rail { top: calc(var(--nav-h) + 14px); left: var(--gutter); right: var(--gutter); transform: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
  .legacy-rail li, .legacy-rail li.is-on { width: auto; height: 2px; }
  .legacy-hint { top: calc(var(--nav-h) + 26px); bottom: auto; left: var(--gutter); right: auto; }
  .heap-label b { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   Shared section rhythm
   -------------------------------------------------------------------------- */
.how, .clock, .tour, .private, .open, .start { position: relative; padding-block: clamp(96px, 12vw, 168px); }
.how { background: var(--char); }
.clock { background: var(--ink); }
.tour { background: var(--char); padding-bottom: 0; }
.private { background: var(--ink); }
.open { background: var(--char); }
.start { background: var(--ink); overflow: hidden; }

/* a frame with red registration corners */
.frame, .rig, .terminal, .clock-panel {
  position: relative;
  border: 1px solid var(--line);
}
.frame::before, .rig::before, .clock-panel::before,
.frame::after, .rig::after, .clock-panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 2px solid var(--red);
}
.frame::before, .rig::before, .clock-panel::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.frame::after, .rig::after, .clock-panel::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }

/* --------------------------------------------------------------------------
   02 How it works — the rig
   -------------------------------------------------------------------------- */
.rig { display: grid; grid-template-columns: 1.35fr 1fr; background: rgba(20, 17, 18, .35); }
.rig-stage { padding: clamp(16px, 2.4vw, 32px); border-right: 1px solid var(--line); display: grid; place-items: center; }
.rig-svg { width: 100%; height: auto; overflow: visible; }
.rig-svg text { font-family: var(--f-mono); }
.m-body { fill: #2E292A; stroke: rgba(242, 242, 242, .14); }
.m-label { font-size: 8.5px; letter-spacing: .16em; fill: var(--mute-2); }
.m-lcd { fill: #121011; stroke: rgba(242, 242, 242, .12); }
.m-lcd-text { font-size: 21px; fill: var(--paper); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.m-lcd-unit { font-size: 8px; fill: var(--mute-2); letter-spacing: .14em; }
.m-small { font-size: 8.5px; letter-spacing: .1em; fill: var(--mute-2); text-transform: uppercase; }
.m-led { fill: #4A2A26; transition: fill .35s; }
.m-led.flash { fill: #FFD9D2; transition: none; }
.m-ledglow { opacity: 0; transition: opacity .45s; }
.m-ledglow.flash { opacity: 1; transition: none; }
.sensor { fill: rgba(242, 242, 242, .05); stroke: rgba(242, 242, 242, .38); stroke-width: 1.2; }
.sensor-inner { fill: none; stroke: rgba(242, 242, 242, .14); stroke-dasharray: 2 3; }
.m-term { fill: #1C1819; stroke: rgba(242, 242, 242, .1); }
.m-term-l { stroke: rgba(242, 242, 242, .08); }
.cable { fill: none; stroke: #4C4546; stroke-width: 3.5; stroke-linecap: round; }
.puck-body { fill: #E8E4E4; }
.puck-ring { fill: none; stroke: #C9C3C3; stroke-width: 1.5; }
.puck-dot { fill: #9C9596; transition: fill .4s; }
.puck-dot.flash { fill: var(--red); transition: none; }
.ble path { fill: none; stroke: rgba(242, 242, 242, .16); stroke-width: 3; stroke-linecap: round; }
.ble.go path { animation: ble .7s var(--ease); }
.ble.go path:nth-child(2) { animation-delay: .08s; }
.ble.go path:nth-child(3) { animation-delay: .16s; }
@keyframes ble { 0% { stroke: rgba(242, 242, 242, .16); } 30% { stroke: var(--red-hot); } 100% { stroke: rgba(242, 242, 242, .16); } }
.ph-body { fill: #0C0A0B; stroke: #3E3839; stroke-width: 1.5; }
.ph-screen { fill: #161314; }
.ph-app { font-family: var(--f-sans) !important; font-size: 12px; font-weight: 700; fill: var(--paper); }
.ph-live { font-size: 8px; fill: var(--red); letter-spacing: .1em; text-transform: uppercase; }
.ph-card { fill: var(--card, #2E292A); transition: fill .8s; }
.ph-card-l { font-size: 7.5px; fill: rgba(255, 255, 255, .85); letter-spacing: .04em; }
.ph-dim { fill: var(--mute-2); }
.ph-big { font-family: var(--f-sans) !important; font-stretch: 75%; font-weight: 800; font-size: 40px; fill: #fff; font-variant-numeric: tabular-nums; }
.ph-unit { font-size: 7.5px; fill: rgba(255, 255, 255, .7); letter-spacing: .14em; text-transform: uppercase; }
.ph-panel { fill: #221E1F; }
.ph-mid { font-family: var(--f-sans) !important; font-weight: 700; font-size: 16px; fill: var(--paper); font-variant-numeric: tabular-nums; }
.ph-trace { fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-linejoin: round; }
.photon { fill: #fff; filter: drop-shadow(0 0 4px var(--red)) drop-shadow(0 0 8px var(--red)); }

.rig-panel { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 22px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button { background: none; border: 0; padding: 7px 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.appliances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ap {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  text-align: left;
  padding: 11px 10px;
  background: rgba(242, 242, 242, .03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s var(--ease);
}
.ap svg { grid-row: 1 / 3; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--mute); transition: color .25s; }
.ap .ap-n { font-weight: 700; font-size: 14px; line-height: 1.15; }
.ap .ap-w { font-family: var(--f-mono); font-size: 9.5px; color: var(--mute-2); letter-spacing: .04em; }
.ap:hover { border-color: var(--line-2); }
.ap:active { transform: scale(.97); }
.ap[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.ap[aria-pressed="true"] svg, .ap[aria-pressed="true"] .ap-w { color: #fff; }
.ap[aria-pressed="true"] .ap-w { opacity: .8; }
.ap[disabled] { cursor: default; background: rgba(242, 242, 242, .08); border-style: dashed; }
.ap[disabled] svg { color: var(--paper); }

.math { font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; }
.math-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.math-row .v { color: var(--paper); font-variant-numeric: tabular-nums; }
.math b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.formula { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 14px; background: rgba(0, 0, 0, .25); border-left: 2px solid var(--red); color: var(--paper); font-size: 12px; }
.formula .op { color: var(--red); }
.formula .res b { color: var(--red-hot); font-size: 14px; }
.nextflash { display: flex; align-items: center; gap: 10px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-2); }
.nextflash i { flex: 1; height: 3px; background: var(--line); position: relative; overflow: hidden; }
.nextflash i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (max-width: 980px) {
  .rig { grid-template-columns: 1fr; }
  .rig-stage { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .appliances { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   03 Energy clock
   -------------------------------------------------------------------------- */
.clock-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.clock-stage { position: relative; }
#clockCanvas { width: 100%; max-width: 620px; aspect-ratio: 1; margin-inline: auto; touch-action: pan-y; cursor: crosshair; }
#clockCanvas.grab { cursor: grab; }
#clockCanvas.grabbing { cursor: grabbing; }
.clock-tip {
  position: absolute; left: 0; top: 0; pointer-events: none;
  font-family: var(--f-mono); font-size: 10.5px; line-height: 1.5;
  background: var(--paper); color: var(--ink);
  padding: 7px 10px;
  transform: translate(-50%, calc(-100% - 14px));
  opacity: 0; transition: opacity .15s;
  white-space: nowrap;
}
.clock-tip b { font-weight: 600; }
.clock-tip.on { opacity: 1; }
.clock-hint { text-align: center; margin-top: 10px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2); }
.clock-panel { padding: clamp(20px, 2.6vw, 34px); background: rgba(242, 242, 242, .02); display: grid; gap: 22px; }
.clock-total .k { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.clock-total strong { display: block; font-stretch: 62%; font-weight: 900; font-size: clamp(72px, 8vw, 116px); line-height: .9; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.clock-delta { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--paper); margin-top: 10px; min-height: 1.5em; }
.clock-delta b { color: var(--red-hot); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: .04em; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; background: var(--c); }
.loads { display: grid; gap: 14px; }
.load { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.load-sw { width: 26px; height: 26px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 9px; font-weight: 600; background: var(--paper); color: var(--ink); border-radius: 50%; }
.load-n { font-weight: 700; font-size: 15px; line-height: 1.2; }
.load-n small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 10px; color: var(--mute); letter-spacing: .02em; }
.load-c { font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.load-c small { display: block; font-size: 9.5px; color: var(--mute-2); }
.load input { grid-column: 1 / -1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; cursor: pointer;
  --fill: 0%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--red) var(--fill), var(--line-2) var(--fill)); }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--red); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; background: var(--paper); border: 3px solid var(--red); border-radius: 50%; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--paper); border: 3px solid var(--red); border-radius: 50%; }

@media (max-width: 980px) { .clock-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   04 Plans — the paper section
   -------------------------------------------------------------------------- */
.plans {
  position: relative;
  padding-block: clamp(96px, 12vw, 168px);
  background: var(--paper);
  color: var(--char);
  --line: rgba(35, 31, 32, .14);
  --line-2: rgba(35, 31, 32, .28);
  --mute: #5E5758;
  --mute-2: #857E7F;
}
.plans .sec-intro { color: var(--mute); }
.plans-ui { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; margin-bottom: 36px; }
.plans-controls { display: grid; gap: 18px; flex: 1 1 420px; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  background: none; border: 1.5px solid var(--char); padding: 9px 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s;
}
.chips button:hover { background: rgba(35, 31, 32, .06); }
.chips button[aria-pressed="true"] { background: var(--char); color: var(--paper); }
.range { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.range .k, .plans-result .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.range output { font-family: var(--f-mono); font-size: 13px; font-weight: 600; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.plans input[type="range"]::-webkit-slider-thumb { background: var(--paper); }
.plans-result { text-align: right; }
.plans-result strong { display: block; font-stretch: 62%; font-weight: 900; font-size: clamp(68px, 9vw, 132px); line-height: .86; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.plans-result strong small { font-size: .3em; color: var(--char); font-weight: 800; letter-spacing: 0; }
.plans-result .rank { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin-top: 8px; }

.plans-chart { position: relative; height: clamp(260px, 34vw, 400px); margin-top: 72px; margin-bottom: 18px; }
.plans-axis { position: absolute; inset: 0; }
.plans-axis .ax { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--line); transition: bottom .9s var(--ease); }
.plans-axis .ax span { position: absolute; left: 0; bottom: 4px; font-family: var(--f-mono); font-size: 9.5px; color: var(--mute-2); }
.plans-axis .ax.zero { border-top: 2px solid var(--char); }
.plans-bars { position: absolute; inset: 0 0 0 52px; }
.bar { position: absolute; left: 0; bottom: 0; height: 100%; transition: transform 1.15s var(--ease-io); will-change: transform; }
.bar i {
  position: absolute; left: 12%; right: 12%; bottom: 0; height: 100%;
  background: var(--char);
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform .9s var(--ease), background .3s;
}
.bar.you i { background: repeating-linear-gradient(-45deg, var(--char) 0 2px, transparent 2px 4px); outline: 1.5px solid var(--char); }
.bar.best i { background: var(--red); }
.bar.hover i { background: var(--mute-2); }
.bar.best.hover i { background: var(--red-deep); }
.plans-tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  transform: translate(-50%, 0);
  font-family: var(--f-mono); font-size: 10px; line-height: 1.35; text-align: center;
  white-space: nowrap;
  transition: left 1.15s var(--ease-io), bottom .9s var(--ease), opacity .5s;
  opacity: 0;
  pointer-events: none;
}
.plans-tag.on { opacity: 1; }
.plans-tag b { display: block; font-family: var(--f-sans); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.plans-tag::after { content: ""; display: block; width: 1px; height: 22px; background: currentColor; margin: 4px auto 0; }
.tag-best { color: var(--red); transform: translate(-4px, 0); text-align: left; }
.tag-best::after { margin: 4px 0 0 3px; }
.plans-tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  background: var(--char); color: var(--paper);
  font-family: var(--f-mono); font-size: 10.5px; line-height: 1.55;
  padding: 8px 11px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0; transition: opacity .15s;
}
.plans-tip.on { opacity: 1; }
.plans-tip b { color: #fff; }
.fine.on-paper { color: var(--mute-2); }

/* --------------------------------------------------------------------------
   05 Tour — sticky phone with real screens
   -------------------------------------------------------------------------- */
.tour-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.tour-phone-col { position: sticky; top: calc(var(--nav-h) + 24px); height: calc(100svh - var(--nav-h) - 48px); display: flex; align-items: center; justify-content: center; gap: 22px; }
.phone {
  --pw: min(330px, 26vw, 40svh);
  position: relative;
  width: var(--pw);
  aspect-ratio: 540 / 1200;
  padding: 10px;
  border-radius: calc(var(--pw) * .13);
  background: linear-gradient(145deg, #3A3435, #0C0A0B 40%, #1C1819);
  box-shadow: 0 0 0 1px rgba(242, 242, 242, .08), 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(238, 53, 36, .45);
  box-sizing: content-box;
}
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .1); background: #0E0B0C; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.phone-screen img.is-on { opacity: 1; z-index: 1; }
.phone-screen img.enter { z-index: 2; opacity: 1; animation: wipe .75s var(--ease-io) both; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.phone-scan { position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; z-index: 3; background: var(--red-hot); box-shadow: 0 0 14px 2px var(--red); opacity: 0; pointer-events: none; }
.phone-scan.go { animation: scan .75s var(--ease-io) both; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--pw) * 2.222)); } }
.tour-dots { display: grid; gap: 8px; }
.tour-dots li { width: 3px; height: 18px; background: var(--line-2); transition: background .3s, height .3s; }
.tour-dots li.is-on { background: var(--red); height: 34px; }

.tour-chapters { padding-top: 2vh; }
.chapter { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; opacity: .25; transition: opacity .5s; }
.chapter.is-on { opacity: 1; }
.ch-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.chapter h3 { font-stretch: 70%; font-weight: 850; text-transform: uppercase; font-size: clamp(36px, 4.4vw, 64px); line-height: .9; margin-bottom: 18px; }
.chapter p { color: var(--mute); max-width: 520px; font-size: 17px; }
.chapter ul { margin-top: 20px; display: grid; gap: 8px; }
.chapter li { position: relative; padding-left: 22px; font-family: var(--f-mono); font-size: 12px; color: var(--paper); }
.chapter li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--red); }

.alerts { padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.alerts-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.alerts-head p { color: var(--mute); max-width: 540px; }
.toasts { display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.toast-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.toast-track.rev { animation-direction: reverse; animation-duration: 72s; }
.toasts:hover .toast-track { animation-play-state: paused; }
.toast {
  width: 320px; flex: none;
  display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px;
  padding: 14px 16px;
  background: #1A1617;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.toast svg { grid-row: 1 / 4; width: 30px; height: 30px; border-radius: 8px; }
.toast .t-h { font-family: var(--f-mono); font-size: 9.5px; color: var(--mute-2); letter-spacing: .04em; }
.toast .t-t { font-weight: 700; font-size: 15px; line-height: 1.25; }
.toast .t-b { font-size: 13.5px; color: var(--mute); line-height: 1.4; }
.toast.hot { border-color: rgba(238, 53, 36, .5); }

@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; gap: 0; }
  .tour-phone-col {
    top: var(--nav-h); height: auto; z-index: 3;
    padding: 16px 0 14px;
    background: var(--char);
  }
  .tour-phone-col::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 48px; background: linear-gradient(var(--char), transparent); pointer-events: none; }
  .phone { --pw: min(46vw, 210px, 30svh); padding: 7px; }
  .phone-scan { left: 7px; right: 7px; top: 7px; }
  .tour-chapters { padding-top: 0; }
  .tour-chapters .sec-head { margin-bottom: 0; padding-top: 24px; }
  .chapter { min-height: 62vh; padding-block: 24px; justify-content: flex-start; }
  .alerts-head { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   06 Private
   -------------------------------------------------------------------------- */
.private-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.no-row {
  font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 7.4vw, 124px);
  line-height: .86;
  letter-spacing: -.01em;
  display: flex; gap: .18em;
}
.no-row b { color: var(--red); font-weight: 900; }
.no-row span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 242, 242, .5);
  background: linear-gradient(var(--paper), var(--paper)) no-repeat 0 0 / 0% 100%;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.1s var(--ease-io);
}
.nos.in .no-row span { background-size: 100% 100%; }
.nos.in .no-row:nth-child(3) span { transition-delay: .12s; }
.nos.in .no-row:nth-child(4) span { transition-delay: .24s; }
.nos.in .no-row:nth-child(5) span { transition-delay: .36s; }
.nos.in .no-row:nth-child(6) span { transition-delay: .48s; }
.private-copy { margin-top: 32px; color: var(--mute); max-width: 520px; }

.flow { position: relative; }
.flow-svg { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.flow-svg text { font-family: var(--f-mono); }
.fence { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 3 7; animation: fence 30s linear infinite; transform-origin: 260px 270px; }
@keyframes fence { to { transform: rotate(360deg); } }
.lines path { fill: none; stroke: rgba(242, 242, 242, .22); stroke-width: 1.2; stroke-dasharray: 2 5; }
.lines path.nope { stroke: var(--red); stroke-dasharray: 4 4; opacity: .7; }
.packets circle { fill: var(--paper); filter: drop-shadow(0 0 4px rgba(242, 242, 242, .8)); }
.core-phone { fill: #0C0A0B; stroke: var(--paper); stroke-width: 1.5; }
.core-t { font-family: var(--f-sans) !important; font-weight: 800; font-size: 15px; fill: var(--paper); text-transform: uppercase; letter-spacing: .04em; }
.core-s { font-size: 9px; fill: var(--mute); letter-spacing: .1em; text-transform: uppercase; }
.node circle { fill: var(--char); stroke: var(--line-2); stroke-width: 1.2; transition: fill .25s, stroke .25s; }
.node { cursor: pointer; outline: none; }
.node .n-t { font-family: var(--f-sans) !important; font-weight: 800; font-size: 12.5px; fill: var(--paper); }
.node .n-s { font-size: 7.5px; fill: var(--mute); letter-spacing: .1em; text-transform: uppercase; }
.node:hover circle, .node:focus-visible circle, .node.is-on circle { fill: rgba(238, 53, 36, .18); stroke: var(--red); }
.nope-node { cursor: default; }
.nope-node rect { fill: rgba(20, 17, 18, .9); stroke: var(--red); stroke-dasharray: 4 3; }
.nope-node .strike { stroke: var(--red); stroke-width: 2; }
.flow-detail { max-width: 440px; margin: 10px auto 0; padding: 16px 18px; border-left: 2px solid var(--red); background: rgba(242, 242, 242, .03); min-height: 96px; }
.fd-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.fd-v { font-size: 15px; color: var(--paper); line-height: 1.5; }
.fd-v small { display: block; color: var(--mute); font-family: var(--f-mono); font-size: 10.5px; margin-top: 6px; letter-spacing: .02em; }

@media (max-width: 900px) { .private-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   07 Open source
   -------------------------------------------------------------------------- */
.open-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.repo {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 16px; align-items: center;
  margin: 36px 0 24px; padding: 20px 22px;
  border: 1px solid var(--line-2);
  text-decoration: none;
  transition: border-color .25s, background .25s;
}
.repo:hover { border-color: var(--red); background: rgba(238, 53, 36, .06); }
.repo-gh { grid-row: 1 / 3; width: 34px; height: 34px; }
.repo-name { font-family: var(--f-mono); font-size: 15px; }
.repo-name b { font-weight: 600; color: var(--paper); }
.repo-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.repo-meta span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); padding: 2px 7px; }
.repo-arrow { grid-row: 1 / 3; grid-column: 3; width: 22px; height: 22px; color: var(--red); transition: transform .3s var(--ease); }
.repo:hover .repo-arrow { transform: translateX(5px); }

.terminal { background: #0C0A0B; border-radius: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 10px; color: var(--mute-2); letter-spacing: .08em; }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--char-3); }
.term-bar i:first-child { background: var(--red); }
.term-bar span { margin-left: 8px; }
.term-replay { margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--mute); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; cursor: pointer; }
.term-replay:hover { color: var(--paper); border-color: var(--paper); }
.term-body {
  margin: 0; padding: 18px 18px 22px;
  height: 440px; overflow: hidden;
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.85; color: var(--mute);
  white-space: pre-wrap; word-break: break-word;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.term-body .ln { display: block; }
.t-p { color: var(--red); }
.t-c { color: var(--paper); }
.t-u { color: var(--amber); }
.t-ok { color: var(--paper); }
.t-d { color: var(--mute-2); }
.t-w { color: var(--red-hot); font-weight: 600; }
.t-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--red); animation: blink 1s steps(1) infinite; }

@media (max-width: 980px) { .open-grid { grid-template-columns: 1fr; } .term-body { height: 380px; font-size: 10.5px; } }

/* --------------------------------------------------------------------------
   08 Start
   -------------------------------------------------------------------------- */
.start-rings { position: absolute; right: -8vw; top: 46%; width: min(60vw, 760px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; opacity: .9; }
.start-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--red); opacity: 0; animation: ring 6s linear infinite; }
.start-rings i:nth-child(2) { animation-delay: 1.5s; }
.start-rings i:nth-child(3) { animation-delay: 3s; }
.start-rings i:nth-child(4) { animation-delay: 4.5s; }
@keyframes ring { 0% { transform: scale(.22); opacity: 0; } 10% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.start-logo { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%); border-radius: 20%; box-shadow: 0 0 0 1px rgba(238, 53, 36, .5), 0 0 80px rgba(238, 53, 36, .5); }
.start .wrap { position: relative; z-index: 1; }
.start-title { max-width: 900px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: clamp(48px, 6vw, 80px) 0 48px; max-width: 1080px; }
.steps li { border-top: 2px solid var(--paper); padding-top: 20px; background: linear-gradient(rgba(20, 17, 18, .7), rgba(20, 17, 18, .7)); }
.s-n { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--red); letter-spacing: .14em; margin-bottom: 14px; }
.steps h3 { font-stretch: 70%; font-weight: 850; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); line-height: .95; margin-bottom: 12px; }
.steps p { color: var(--mute); font-size: 15.5px; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.reqs li { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--mute); border: 1px solid var(--line); padding: 7px 11px; background: rgba(20, 17, 18, .7); }

/* beta: the four join steps each end in their own button */
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.steps-4 li { display: flex; flex-direction: column; padding: 20px 18px 20px; border: 1px solid var(--line); border-top: 2px solid var(--paper); }
.steps-4 li:first-child { border-top-color: var(--red); }
.steps-4 h3 { font-size: clamp(24px, 2vw, 30px); }
.steps-4 p { font-size: 15px; margin-bottom: 18px; }
.steps-4 p b { color: var(--paper); font-weight: 600; }
.steps-4 .btn { margin-top: auto; align-self: flex-start; }
.beta-feedback { margin-top: 22px; max-width: 720px; color: var(--mute); font-size: 15px; }
.beta-feedback a { color: var(--paper); text-decoration-color: var(--red); text-underline-offset: 4px; }

.eyebrow-beta {
  margin-left: 4px; padding: 3px 8px;
  border: 1px solid var(--red); color: var(--paper); text-decoration: none;
  transition: background .2s;
}
.eyebrow-beta:hover { background: var(--red); }

@media (max-width: 1100px) {
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .start-rings { right: -30vw; top: 22%; width: 100vw; opacity: .5; }
}
/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot { background: #0D0B0C; border-top: 1px solid var(--line); padding-block: 56px 36px; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-mark { width: 52px; height: 52px; border-radius: 12px; }
.foot-word { font-weight: 800; font-size: 24px; line-height: 1; }
.foot-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.foot-links a:hover { color: var(--paper); }
.publisher { display: flex; align-items: center; gap: 14px; text-decoration: none; opacity: .75; transition: opacity .25s; }
.publisher:hover { opacity: 1; }
.publisher span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.publisher img { width: 96px; height: auto; }
.foot-fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.foot-fine p { font-family: var(--f-mono); font-size: 10px; line-height: 1.7; color: var(--mute-2); max-width: 900px; }

/* --------------------------------------------------------------------------
   Reveal + reduced motion
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* .reduce-motion is set in <head> from the visitor's choice or prefers-reduced-motion */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
.reduce-motion .marquee-track, .reduce-motion .toast-track { animation: none !important; }
.reduce-motion .start-rings i { animation: none !important; opacity: .3; }
.reduce-motion .start-rings i:nth-child(1) { transform: scale(.45); }
.reduce-motion .start-rings i:nth-child(2) { transform: scale(.7); }
.reduce-motion .start-rings i:nth-child(3) { transform: scale(.95); }
.reduce-motion .packets { display: none; }
.reduce-motion .toasts { overflow-x: auto; }

/* motion toggle + notice */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); padding: 7px 11px; cursor: pointer;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
  transition: color .2s, border-color .2s;
}
.motion-toggle:hover { color: var(--paper); border-color: var(--line-2); }
.motion-toggle i { position: relative; width: 22px; height: 12px; border-radius: 6px; background: var(--char-3); transition: background .25s; }
.motion-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); transition: transform .25s var(--ease), background .25s; }
.motion-toggle[aria-pressed="true"] i { background: var(--red); }
.motion-toggle[aria-pressed="true"] i::after { transform: translateX(10px); background: #fff; }
@media (max-width: 720px) { .motion-toggle span { display: none; } }

.motion-note {
  position: fixed; z-index: 60; left: 50%; bottom: 18px;
  transform: translate(-50%, 140%);
  display: none; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px;
  background: var(--char); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  font-family: var(--f-mono); font-size: 11px; color: var(--paper); letter-spacing: .02em;
}
.motion-auto .motion-note { display: flex; }
.motion-note.show { transform: translate(-50%, 0); transition: transform .5s var(--ease) !important; }
.motion-note.gone { display: none !important; }
.motion-x { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 14px; padding: 6px 8px; }
.motion-x:hover { color: var(--paper); }
@media (max-width: 560px) { .motion-note { flex-wrap: wrap; gap: 8px; } }
