/* isness — site styles. Black and neutral charcoal, with the dream's teal as the one accent. */

:root {
  --bg: #000000;
  --bg-alt: #161616;
  --surface: #1C1C1C;
  --surface-2: #262626;
  --border: #333333;
  --text: #F5F5F5;
  --muted: #A6A6A6;
  --primary: #76B900;
  --primary-ink: #000000;
  /* Product accents. All of them are the brand green — one colour across the site; give a
     product its own hue again by changing its token here. */
  --idt: var(--primary);
  --iplc: var(--primary);
  --ihmi: var(--primary);
  --xr: var(--primary);
  --icab: var(--primary);
  --accent: var(--primary);
  /* Inter is used when installed or self-hosted; no font is fetched from a third party. */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
  --max: 1120px;
  --gutter: 24px;
  --radius: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(118, 185, 0, .35); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--primary); color: var(--primary-ink); border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
/* A slim white bar over the black page: the mark and the main sections on the left, the
   secondary links on the right. */
.site-header {
  --header-h: 72px;
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF; color: #1A1A1A;
  border-bottom: 1px solid #000;
}
.header-row { display: flex; align-items: center; height: var(--header-h); gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.site-header .brand { color: #000; }
.mark { width: 58.5px; height: 58.5px; flex: none; overflow: visible; }
/* A point of light travels round the enso, along the middle of the brush stroke (a circle of
   radius 35.75 about 53,51.5 in the mark's own units). The partial mark-orb.html moves the
   origin to that centre first, so the turn is about 0,0 wherever the mark is drawn — in the
   header and footer, and inside the machine-and-dream figure. It is white-hot, so on a white
   background it shows while it is over the ink and vanishes across the gap. */
.mark-orbit { transform-origin: 0 0; animation: mark-orbit 9s linear infinite; }
.mark-orb { fill: #FFF; filter: drop-shadow(0 0 3.2px #FFF) drop-shadow(0 0 8px rgba(240, 255, 200, 1)) drop-shadow(0 0 14px rgba(190, 240, 90, .95)) drop-shadow(0 0 22px rgba(170, 230, 60, .6)); }
@keyframes mark-orbit { to { transform: rotate(360deg); } }
/* The wordmark is set in capitals, heavy and slightly wide, beside the green mark. */
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: .03em; line-height: 1; }

.site-nav { display: flex; flex: 1; align-items: stretch; justify-content: space-between; align-self: stretch; }
.nav-group { display: flex; align-items: stretch; gap: 26px; }
.nav-group > a, .nav-item > a {
  position: relative; display: flex; align-items: center; text-decoration: none;
  font-size: 15.5px; color: #666; transition: color .15s;
}
.nav-secondary > a { color: #1A1A1A; }
.nav-group > a:hover, .nav-item > a:hover, .site-nav a[aria-current="page"] { color: #000; }
/* The current section and the hovered one carry a green bar on the header's bottom edge. */
.nav-group > a::after, .nav-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--primary); transform: scaleX(0); transition: transform .15s;
}
.nav-group > a:hover::after, .nav-item > a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-item { position: relative; display: flex; align-items: stretch; }
.menu-toggle {
  width: 22px; margin-left: 2px; padding: 0; border: 0; background: none;
  color: #666; cursor: pointer; border-radius: 6px;
}
.menu-toggle svg { width: 12px; height: 12px; margin: 0 auto; transition: transform .15s; }
.menu {
  position: absolute; top: 100%; left: -14px; width: 290px; padding: 8px;
  background: #FFFFFF; border: 1px solid #000; border-top: 0; border-radius: 0 0 10px 10px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-menu:hover .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.has-menu.open .menu-toggle svg { transform: rotate(180deg); }
.menu a {
  display: block; padding: 10px 12px 10px 14px; border-radius: 6px; text-decoration: none;
  box-shadow: inset 3px 0 0 var(--accent); transition: background-color .15s;
}
.menu a + a { margin-top: 2px; }
.menu a:hover, .menu a:focus-visible { background: #F0F0F0; }
.menu b { display: block; font-size: 15px; font-weight: 600; color: #000; }
.menu span { display: block; font-size: 13px; color: #666; }

.nav-toggle { display: none; width: 38px; height: 38px; margin-left: auto; padding: 9px 8px; border: 1px solid #C8C8C8; border-radius: 8px; background: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: #000; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons, pills, type ---------- */
/* Rounded corners, solid green, bold black label; the secondary button is the same shape as an outline. */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px;
  border: 2px solid var(--primary); border-radius: 10px;
  background: var(--primary); color: var(--primary-ink);
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: #91C733; border-color: #91C733; }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.pill {
  display: inline-block; vertical-align: middle; padding: 2px 9px; border-radius: 999px;
  font: 600 11px/1.5 var(--mono); letter-spacing: .02em; white-space: nowrap;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface-2);
}
.pill.shipping { color: #8FD313; border-color: rgba(118, 185, 0, .5); background: rgba(118, 185, 0, .12); }
.pill.progress { color: #FFB454; border-color: rgba(255, 180, 84, .4); background: rgba(255, 180, 84, .1); }

.eyebrow {
  display: block; margin-bottom: 14px;
  font: 600 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 46em; }
.grad {
  background: linear-gradient(95deg, #76B900 5%, #A6DB2F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.textlink { color: var(--accent); text-decoration: none; font-weight: 600; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, .08); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 + .lead { margin-top: 16px; }
/* A section head set in the middle of the page (company: "The name"). */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.alt { background: var(--bg-alt); }

/* ---------- hero ---------- */
/* Copy on the left over black; beside it a small solar system — the isness sun, four product
   planets in orbit, five shining stars. */
.hero {
  /* Where the wrap's content starts and ends, measured in from the window's edge. */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --copy: 660px;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: min(660px, 82vh); padding: 96px 0;
  background: #000;
}
.hero > .wrap { width: 100%; }
.hero-copy { max-width: var(--copy); }
.hero-copy .lead { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta .hero-cta { justify-content: center; }
.page-hero { --copy: 690px; min-height: 0; padding: 88px 0 72px; }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 58px); }

/* ---------- the solar system ---------- */
/* Every size inside is in em, so the one font-size below scales the whole system. On wide
   screens it fills the space between the copy and the window's right edge; on narrower ones
   it sits under the copy (see the responsive rules). */
.solar {
  --free: calc(100vw - var(--edge) - var(--copy));
  position: absolute; z-index: 0; top: 50%;
  left: calc(var(--edge) + var(--copy) + (var(--free) - 64em) / 2);
  width: 64em; height: 42em; margin-top: -21em;
  font-size: clamp(6.4px, calc((var(--free) - 28px) / 64), 11px);
}
/* One orbit each: its two radii (the system is seen at a tilt, so orbits are ellipses), its
   period, where on the orbit the planet starts, and where it rests when motion is switched off. */
.k1 { --rx: 13em; --ry: 7.8em; --T: 16s; --d: -3s; --sx: -11.3em; --sy: 3.9em; }
.k2 { --rx: 18em; --ry: 10.8em; --T: 23s; --d: -15s; --sx: 13.8em; --sy: 6.9em; }
.k3 { --rx: 23em; --ry: 13.8em; --T: 31s; --d: -19s; --sx: -18.8em; --sy: -7.9em; }
.k4 { --rx: 28em; --ry: 16.8em; --T: 40s; --d: -34s; --sx: 21.4em; --sy: -10.8em; }
.ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--rx) * 2); height: calc(var(--ry) * 2);
  margin: calc(var(--ry) * -1) 0 0 calc(var(--rx) * -1);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
}

/* The sun glows. Back to front: a breathing halo, the disc itself with a white-hot rim and a
   layered bloom, and around it the ring of letters. No rays. It ignores the pointer, so its halo never gets
   between the pointer and a planet. */
.sun {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 11em; height: 11em; margin: -5.5em 0 0 -5.5em;
  perspective: 44em; pointer-events: none;
}
.sun::before {
  content: ""; position: absolute; inset: -110%; border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 225, 50, .6) 0%, rgba(125, 195, 15, .24) 30%, rgba(118, 185, 0, .08) 50%, rgba(118, 185, 0, 0) 68%);
  /* The halo and the disc pulse together: 3.4s up, 3.4s down. */
  animation: sun-breathe 3.4s ease-in-out infinite alternate;
}
.sun-disc {
  position: absolute; inset: 0; border-radius: 50%;
  /* A green sun, in the brand's green. Deep at the core — the white letters need something
     darker than themselves behind them — rising through the brand green to a white-hot rim,
     where the light spills over. The halo and the bloom are green too. */
  background: radial-gradient(circle, #3C6800 0%, #5A9000 40%, var(--primary) 66%, #B9EA52 86%, #F4FFDC 100%);
  box-shadow:
    0 0 .9em .3em #EEFFCB,
    0 0 3em 1em rgba(150, 215, 40, .8),
    0 0 7em 2.6em rgba(118, 185, 0, .42),
    0 0 13em 5em rgba(90, 150, 0, .18);
  animation: sun-glow 3.4s ease-in-out infinite alternate;
}
/* A ring of letters stands around the globe at its equator. Each letter is turned to its place
   on the ring and pushed out to the ring's radius, so it faces outward and stays upright. The
   ring turns, and a letter that has gone round the back is simply not drawn (its back face is
   hidden) until it comes round again.
   One side of the ring reads IS; the opposite side reads Joy, Beauty, Peace. All of it is
   at the same height. */
.sun-ring {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; font-size: 2.5em;
  transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(-64deg);
  animation: ring-turn 36s linear infinite;
}
/* Each letter is drawn on its own layer, and a layer is cut off at the letter's box. The box is
   therefore padded wider than the glow reaches; with a glow larger than the padding, every
   letter shows up as a pale square. */
.sun-ring > b {
  position: absolute; left: -1.2em; top: -1.3em; width: 2.4em; padding: .7em 0; text-align: center;
  font-weight: 800; line-height: 1.2; color: #FFF; backface-visibility: hidden;
  text-shadow: 0 0 .08em #FFF, 0 0 .22em rgba(246, 255, 228, .95), 0 0 .34em rgba(214, 246, 150, .8);
  transform: rotateY(calc(var(--i) * 25.714deg)) translateZ(2.42em);
}
@keyframes ring-turn {
  from { transform: rotateX(-10deg) rotateY(-64deg); }
  to { transform: rotateX(-10deg) rotateY(-424deg); }
}
/* Joy, Beauty and Peace stand side by side on the ring, directly opposite IS (which is
   centred at 64.3 degrees, so the three words are centred at 244.3) and at the same height.
   They are always there; like IS they go out of sight round the back and come round again. */
.sun-words {
  /* 1.8 of the sun's em: at this size the three words span about 150 degrees of the ring. */
  position: absolute; left: 0; top: 0; font-size: .72em; transform-style: preserve-3d;
  /* A calligraphic hand, from whatever the device has — no font is fetched. */
  font-family: "Segoe Script", "Apple Chancery", "Lucida Calligraphy", "Monotype Corsiva", "Z003", "URW Chancery L", cursive;
}
.sun-words span { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
/* The letters are white and glow, exactly as the letters of IS do, and their boxes are padded
   past the glow for the same reason.
   --x is where the letter's centre falls along the line of three words, in em, with 0 at the
   middle. site.js measures it from the real width of each letter in the font the device
   actually used; without script, --o (the word's own centre) and even spacing stand in.
   The ring's radius is 3.36 of these em, so one em along the line is 17.05 degrees round it. */
.sun-words b {
  position: absolute; left: -1.4em; top: -1.35em; width: 2.8em; padding: .6em 0; text-align: center;
  font-weight: 700; line-height: 1.5; color: #FFF; backface-visibility: hidden;
  text-shadow: 0 0 .08em #FFF, 0 0 .22em rgba(246, 255, 228, .95), 0 0 .34em rgba(214, 246, 150, .8);
  transform: rotateY(calc(244.3deg + var(--x, calc(var(--o) + (var(--j) - (var(--n) - 1) / 2) * .58)) * 17.05deg)) translateZ(3.36em);
}
@keyframes sun-breathe { from { opacity: .55; transform: scale(.86); } to { opacity: 1; transform: scale(1.12); } }
@keyframes sun-glow { from { filter: brightness(.84); } to { filter: brightness(1.08); } }

/* A planet's ellipse is two half-period swings, a quarter period apart: the orbit swings left
   to right, the planet inside it swings far to near (and grows as it comes nearer). Both ease
   like a sine, which is what makes the path an ellipse and not a diamond. */
.track {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 0; height: 0; transform: translateX(var(--sx));
  animation:
    orbit-x calc(var(--T) / 2) cubic-bezier(.3642, 0, .6358, 1) var(--d) infinite alternate,
    orbit-depth var(--T) step-end var(--d) infinite;
}
.planet {
  position: absolute; left: -3.5em; top: -3.5em; width: 7em; height: 7em;
  display: grid; place-content: center; border-radius: 50%; text-decoration: none;
  /* A white rim that glows, outward and a little inward, like the letters on the sun. */
  border: 2px solid #FFF;
  /* Green like the sun: deep in the middle, where the white name sits and needs something
     darker than itself behind it, rising to the brand green toward the rim. */
  background: radial-gradient(circle, #386200 0%, #548800 46%, var(--primary) 78%, #A2DA2E 100%);
  box-shadow:
    0 0 .35em rgba(255, 255, 255, .95),
    0 0 1.1em rgba(255, 255, 255, .6),
    0 0 2.2em rgba(255, 250, 230, .3),
    inset 0 0 .7em rgba(255, 255, 255, .3);
  transform: translateY(var(--sy));
  animation: orbit-y calc(var(--T) / 2) cubic-bezier(.3642, 0, .6358, 1) calc(var(--d) - var(--T) / 4) infinite alternate;
}
/* The names are white, sharp and raised: no glow. The depth is a stack of unblurred copies
   stepping down and darkening, as if the letters were cut from a block, with one hard shadow
   under the stack where the block meets the planet. */
.planet b {
  font-size: 2em; font-weight: 800; line-height: 1; color: #FFF;
  text-shadow:
    0 .03em 0 #DCEBBE, 0 .06em 0 #B4CC84, 0 .09em 0 #86A64A, 0 .12em 0 #4F7410,
    0 .19em 0 rgba(0, 0, 0, .42);
}
.planet:hover, .planet:focus-visible { background: #FFF; }
.planet:hover b, .planet:focus-visible b { color: #000; text-shadow: none; }
/* A moving link is hard to hit: everything in orbit holds still while the pointer is here. */
.solar:hover .track, .solar:hover .planet,
.solar:focus-within .track, .solar:focus-within .planet { animation-play-state: paused; }
@keyframes orbit-x {
  from { transform: translateX(calc(var(--rx) * -1)); }
  to { transform: translateX(var(--rx)); }
}
@keyframes orbit-y {
  from { transform: translateY(calc(var(--ry) * -1)) scale(.8); }
  to { transform: translateY(var(--ry)) scale(1.14); }
}
/* Near half of the orbit in front of the sun, far half behind it. */
@keyframes orbit-depth { 0% { z-index: 3; } 50%, 100% { z-index: 1; } }

/* Five shining stars around the system: a bright point, a soft halo and a four-point flare,
   each twinkling at its own pace. */
.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.hero-stars i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: radial-gradient(circle, #FFF 0 5%, rgba(255, 255, 255, .7) 9%, rgba(214, 232, 255, .22) 24%, rgba(214, 232, 255, 0) 58%);
  animation: twinkle var(--t) ease-in-out var(--d) infinite;
}
.hero-stars i::before, .hero-stars i::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #FFF 50%, rgba(255, 255, 255, 0));
}
.hero-stars i::before { width: 170%; height: 2px; margin: -1px 0 0 -85%; }
.hero-stars i::after { width: 2px; height: 170%; margin: -85% 0 0 -1px; background: linear-gradient(0deg, rgba(255, 255, 255, 0), #FFF 50%, rgba(255, 255, 255, 0)); }
.hero-stars i:nth-child(1) { --x: 7%; --y: 9%; --s: 4.6em; --t: 3.6s; --d: 0s; }
.hero-stars i:nth-child(2) { --x: 91%; --y: 7%; --s: 6.2em; --t: 4.4s; --d: -1.3s; }
.hero-stars i:nth-child(3) { --x: 98%; --y: 66%; --s: 3.4em; --t: 3.1s; --d: -2.2s; }
.hero-stars i:nth-child(4) { --x: 3%; --y: 88%; --s: 4em; --t: 4s; --d: -.7s; }
.hero-stars i:nth-child(5) { --x: 70%; --y: 97%; --s: 5.2em; --t: 5s; --d: -3.1s; }
@keyframes twinkle {
  0%, 100% { opacity: .55; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 1179px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: center; }
  .solar {
    position: relative; order: 2; left: auto; top: auto; margin: 44px auto 0;
    font-size: clamp(4.4px, calc((100vw - 2 * var(--gutter)) / 64), 9.5px);
  }
}

/* ---------- the dream pair ---------- */
.stage {
  margin: 0 auto; max-width: var(--max); padding: 16px 16px 20px;
  background: #0B0B0B; border: 1px solid var(--border); border-radius: 20px;
}
.stage svg { width: 100%; height: auto; }
.machine .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.machine .faint { opacity: .35; }
.machine .idlers circle { fill: currentColor; opacity: .5; }
.machine .leds circle { fill: currentColor; opacity: .35; }
.machine .beam { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 2 5; opacity: 0; }
.machine .sensor { fill: currentColor; fill-opacity: 0; }
.machine .cable { stroke-width: 1.5; opacity: .7; }
.real { color: var(--text); }
.dream { color: var(--primary); }
.dream .ln { stroke-dasharray: 6 5; opacity: .85; }
.dream .sensor, .dream .cable { stroke-dasharray: none; }
.orbit circle { fill: var(--text); }
.orbit-ccw circle { fill: var(--primary); }
.orbit { transform-origin: 600px 250px; }
.stage-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; text-align: center; }
.stage-caps b { display: block; font-size: 15px; font-weight: 600; }
.stage-caps span { display: block; font: 12px/1.4 var(--mono); color: var(--muted); }
.stage-caps .dreamcap b { color: var(--primary); }

@keyframes rod { 0%, 28% { transform: translateY(0); } 43%, 72% { transform: translateY(35px); } 87%, 100% { transform: translateY(0); } }
@keyframes sense { 0%, 42% { fill-opacity: 0; } 45%, 71% { fill-opacity: 1; } 74%, 100% { fill-opacity: 0; } }
@keyframes beam { 0%, 42% { opacity: 0; } 45%, 71% { opacity: .8; } 74%, 100% { opacity: 0; } }
@keyframes led { 0%, 42% { opacity: .35; } 45%, 71% { opacity: 1; } 74%, 100% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
.machine .rod { animation: rod 8s ease-in-out infinite; }
.machine .sensor { animation: sense 8s linear infinite; }
.machine .beam { animation: beam 8s linear infinite; }
.machine .led-in { animation: led 8s linear infinite; }
.dream .rod, .dream .sensor, .dream .beam, .dream .led-in { animation-delay: .12s; }
.orbit-cw { animation: spin 16s linear infinite; }
.orbit-ccw { animation: spin 16s linear infinite reverse; }

/* ---------- the demo: a missing drive, replaced by its dream ---------- */
/* Five steps, chosen by data-step on .demo. Everything is laid out all the time, so stepping
   never makes the page jump, and nothing is simply blank while it waits: the frame counter
   sits at 0 until frames flow, and the bug cards are there blurred until they are revealed.
   Without script the markup's own step (4: the dream in place, the numbers, the bugs) shows. */
.demo { margin-top: 8px; padding: 28px; background: #0B0B0B; border: 1px solid var(--border); border-radius: 20px; }
.demo-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-nav button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--border); border-radius: 999px; background: none; cursor: pointer;
  font: 600 14px/1.2 var(--font); color: var(--muted); transition: color .2s, border-color .2s, background-color .2s;
}
.demo-nav button b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); font: 600 12px/1 var(--mono); color: var(--muted); transition: inherit;
}
.demo-nav button:hover { color: var(--text); border-color: var(--muted); }
.demo-nav button[aria-pressed="true"] { color: var(--text); border-color: var(--primary); }
.demo-nav button[aria-pressed="true"] b { background: var(--primary); color: #000; }

.demo-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1.1fr) minmax(0, 1fr); align-items: center; margin-top: 30px; }
.demo-unit {
  position: relative; min-height: 172px; padding: 22px 24px; border: 2px solid var(--border); border-radius: 14px;
  background: var(--surface); transition: border-color .5s, background-color .5s, box-shadow .5s;
}
.demo-unit b { display: block; font-size: 20px; line-height: 1.25; }
.demo-unit span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.demo-led { position: absolute; right: 20px; top: 22px; width: 14px; height: 14px; margin: 0 !important; border-radius: 50%; background: #FF5A4D; box-shadow: 0 0 10px rgba(255, 90, 77, .8); transition: background-color .4s, box-shadow .4s; }
.demo-config { display: block; margin-top: 18px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font: 12.5px/1.5 var(--mono); color: var(--muted); }
.demo-config i { font-style: normal; color: var(--primary); opacity: 0; transition: opacity .5s; }

/* The cable: broken in step 1, live from step 2, carrying frames from step 3. */
.demo-cable { position: relative; height: 34px; }
.demo-cable::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed #5A2A26; transition: border-color .5s; }
.demo-break {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px 10px; white-space: nowrap;
  background: #0B0B0B; font: 600 12px/1.6 var(--mono); color: #FF8176; transition: opacity .4s;
}
.demo-cable i { position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -11px; border-radius: 50%; background: #FFF; opacity: 0; }
.demo-cable i:nth-child(n+5) { margin-top: 2px; background: var(--primary); }
@keyframes frame-out { from { left: 0; } to { left: calc(100% - 9px); } }
@keyframes frame-back { from { left: calc(100% - 9px); } to { left: 0; } }

/* The drive's place: empty, then the dream, then the steel one. */
.demo-drive > div { position: absolute; inset: 22px 24px; opacity: 0; transition: opacity .5s; }
.demo-drive { border-style: dashed; background: none; }

.demo-meter { margin-top: 26px; text-align: center; }
.demo-count { display: block; font: 700 clamp(34px, 5vw, 52px)/1.05 var(--mono); letter-spacing: -.02em; color: #4A4A4A; font-variant-numeric: tabular-nums; transition: color .5s; }
.demo-meter span { display: block; margin-top: 4px; color: var(--muted); }
.demo-meter code { display: block; margin-top: 8px; font: 13px/1.5 var(--mono); color: var(--muted); opacity: 0; transition: opacity .5s; }

.demo-caption { margin-top: 26px; min-height: 3.2em; text-align: center; font-size: 18px; color: var(--muted); }
.demo-caption span { display: none; }
.demo-caption b { color: var(--text); }

.demo-bugs { margin-top: 26px; opacity: .28; filter: blur(6px); pointer-events: none; user-select: none; transition: opacity .6s, filter .6s; }
.demo-bugs .card { padding: 22px; background: var(--surface); }
.demo-bugs h3 { font-size: 17px; }
.demo-bugs p { font-size: 15px; }
.demo-stamp { align-self: flex-start; margin-top: auto; padding: 2px 9px; border: 1px solid rgba(118, 185, 0, .5); border-radius: 4px; font: 600 11px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8FD313; transform: rotate(-2deg); }

/* --- what each step shows --- */
.demo[data-step="1"] .demo-missing { opacity: 1; }
.demo[data-step="1"] .demo-caption [data-for="1"],
.demo[data-step="2"] .demo-caption [data-for="2"],
.demo[data-step="3"] .demo-caption [data-for="3"],
.demo[data-step="4"] .demo-caption [data-for="4"],
.demo[data-step="5"] .demo-caption [data-for="5"] { display: inline; }

/* from step 2: connected */
.demo:not([data-step="1"]) .demo-led { background: var(--primary); box-shadow: 0 0 10px rgba(118, 185, 0, .9); }
.demo:not([data-step="1"]) .demo-config i { opacity: 1; }
.demo:not([data-step="1"]) .demo-cable::before { border-top: 3px solid var(--primary); }
.demo:not([data-step="1"]) .demo-break { opacity: 0; }
.demo[data-step="2"] .demo-dream, .demo[data-step="3"] .demo-dream, .demo[data-step="4"] .demo-dream { opacity: 1; }
.demo[data-step="2"] .demo-drive, .demo[data-step="3"] .demo-drive, .demo[data-step="4"] .demo-drive {
  border-color: var(--primary); background: rgba(118, 185, 0, .1); box-shadow: 0 0 32px rgba(118, 185, 0, .22);
}
.demo[data-step="2"] .demo-dream b, .demo[data-step="3"] .demo-dream b, .demo[data-step="4"] .demo-dream b { color: var(--primary); }

/* from step 3: frames and the count */
.demo[data-step="3"] .demo-cable i, .demo[data-step="4"] .demo-cable i, .demo[data-step="5"] .demo-cable i { opacity: 1; animation: frame-out 1.8s linear infinite; }
.demo[data-step="3"] .demo-cable i:nth-child(n+5), .demo[data-step="4"] .demo-cable i:nth-child(n+5), .demo[data-step="5"] .demo-cable i:nth-child(n+5) { animation-name: frame-back; }
.demo-cable i:nth-child(3), .demo-cable i:nth-child(6) { animation-delay: -.6s !important; }
.demo-cable i:nth-child(4), .demo-cable i:nth-child(7) { animation-delay: -1.2s !important; }
.demo[data-step="3"] .demo-count, .demo[data-step="4"] .demo-count, .demo[data-step="5"] .demo-count { color: var(--primary); }
.demo[data-step="3"] .demo-meter code, .demo[data-step="4"] .demo-meter code, .demo[data-step="5"] .demo-meter code { opacity: 1; }

/* from step 4: the bugs */
.demo[data-step="4"] .demo-bugs, .demo[data-step="5"] .demo-bugs { opacity: 1; filter: none; pointer-events: auto; user-select: auto; }

/* step 5: steel */
.demo[data-step="5"] .demo-real { opacity: 1; }
.demo[data-step="5"] .demo-drive { border-style: solid; border-color: #C9CED3; background: linear-gradient(180deg, #3A3E42, #25282B); }

@media (max-width: 760px) {
  .demo { padding: 18px 16px; border-radius: 14px; }
  .demo-scene { grid-template-columns: 1fr; }
  .demo-unit { min-height: 0; }
  .demo-drive { min-height: 104px; }
  /* The cable runs downward and the frames travel along it. */
  .demo-cable { width: 34px; height: 64px; margin: 0 auto; }
  .demo-cable::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0 !important; border-left: 3px dashed #5A2A26; }
  .demo:not([data-step="1"]) .demo-cable::before { border-left: 3px solid var(--primary); }
  .demo-cable i { left: 50% !important; top: 0; margin: 0 0 0 -11px; animation-name: frame-down !important; }
  .demo-cable i:nth-child(n+5) { margin: 0 0 0 2px; animation-name: frame-up !important; }
  .demo-caption { font-size: 16px; min-height: 5.6em; }
}
@keyframes frame-down { from { top: 0; } to { top: calc(100% - 9px); } }
@keyframes frame-up { from { top: calc(100% - 9px); } to { top: 0; } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.card p { color: var(--muted); font-size: 16px; }
/* Titles inside cards are green, wherever the card is. */
.card h2, .card h3, .features h3, .steps h3, .plan h2 { color: var(--primary); }
.card .pill { align-self: flex-start; }
.card.accent { box-shadow: inset 3px 0 0 var(--accent); }
a.card { text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s; }
a.card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.card .more { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 600; font-size: 15px; }
.card .tagline { color: var(--text); font-size: 18px; font-weight: 600; }
.icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 6px; }
.icon * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pname { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.acc-idt { --accent: var(--idt); }
.acc-iplc { --accent: var(--iplc); }
.acc-ihmi { --accent: var(--ihmi); }
.acc-xr { --accent: var(--xr); }
.acc-icab { --accent: var(--icab); }

/* numbered functions */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: f; }
.features li {
  counter-increment: f; display: flex; flex-direction: column; gap: 8px; padding: 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.features li::before { content: counter(f, decimal-leading-zero); font: 600 13px/1 var(--mono); color: var(--accent); }
.features p { color: var(--muted); font-size: 16px; }
.features .pill { align-self: flex-start; margin-top: auto; }

/* plain tick lists */
.ticks li { position: relative; padding-left: 24px; color: var(--muted); }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ticks b { color: var(--text); font-weight: 600; }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .section-head { margin-bottom: 28px; }

/* closed-loop diagram */
.loop { width: 100%; height: auto; }
.loop .node { fill: var(--surface); stroke: var(--border); }
.loop text { font-family: var(--font); fill: var(--text); }
.loop .sub { font: 12px var(--mono); fill: var(--muted); }
.loop .arc { fill: none; stroke-width: 2; stroke-linecap: round; }
.loop .lbl { font: 600 12px var(--mono); letter-spacing: .06em; }
.loop .flow { stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* measured facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 26px 24px; background: var(--surface); }
.facts b { display: block; font: 700 clamp(26px, 3vw, 36px)/1.1 var(--mono); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.facts b.t { color: var(--primary); }
.facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border: 1px solid var(--primary); border-radius: 50%; font: 600 13px/1 var(--mono); color: var(--primary);
}
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* fidelity ladder */
.ladder { display: grid; gap: 10px; }
.ladder li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.ladder .rung { font: 600 14px var(--mono); color: var(--muted); }
.ladder b { font-weight: 600; }
.ladder small { display: block; font-size: 14px; color: var(--muted); }
.ladder .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.ladder .bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--border); }
.ladder .proven .rung { color: var(--primary); }
.ladder .proven .bar i { background: var(--primary); }

/* personas */
.persona { --accent: var(--primary); }
.persona h3 { font-size: 22px; }
.persona .who { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.persona .promise { color: var(--text); font-size: 17px; }
.persona .ticks { margin-top: 6px; font-size: 16px; }

/* quote */
.quote { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote p { margin-top: 20px; color: var(--muted); }

/* values (philosophy) */
.value { padding: 36px 32px; }
.value .glyph { width: 44px; height: 44px; margin-bottom: 10px; }
.value .glyph * { fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.value h2 { font-size: 30px; }
.value .def { color: var(--text); font-size: 18px; font-weight: 600; }
.value p b { color: var(--text); }

/* tick row divider */
.tickrow { height: 4px; margin: 0 auto; max-width: var(--max); background-image: radial-gradient(circle, var(--border) 1.6px, transparent 2px); background-size: 12px 4px; }

/* call to action band */
.cta { padding: 80px 0; text-align: center; border-top: 1px solid var(--border); background: radial-gradient(60% 120% at 50% 100%, rgba(118, 185, 0, .12), transparent 70%); }
.cta h2 { max-width: 760px; margin: 0 auto; }
.cta p { max-width: 620px; margin: 16px auto 0; color: var(--muted); }
.cta .hero-cta { margin-top: 32px; }

/* pricing plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.plan.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(118, 185, 0, .07), var(--surface) 38%); }
.plan-flag {
  margin: -28px -28px 24px; padding: 9px 28px; border-bottom: 1px solid var(--primary);
  border-radius: var(--radius) var(--radius) 0 0; background: rgba(118, 185, 0, .1);
  font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}
.plan h2 { font-size: 30px; }
.chip {
  align-self: flex-start; margin-top: 10px; padding: 3px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-2);
  font: 600 12px/1.5 var(--mono); color: var(--muted);
}
.featured .chip { color: var(--primary); border-color: rgba(118, 185, 0, .4); background: rgba(118, 185, 0, .08); }
.price { margin-top: 20px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.price b { display: block; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.price small { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.plan-for { margin-top: 22px; font-size: 18px; font-weight: 600; }
.plan-list { margin-top: 10px; }
.plan-list li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 16px; line-height: 1.5; }
.plan-list li:last-child { border-bottom: 0; }
.plan-list li::before {
  content: ""; position: absolute; left: 3px; top: 1.25em; width: 10px; height: 5px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg);
}
.plan-list b { color: var(--text); font-weight: 600; }
.plan-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.plan-actions .btn { justify-content: center; }
.plan-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; font-size: 15px; color: var(--muted); }
.plan-note b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--text); }
.plans-foot { margin-top: 28px; text-align: center; color: var(--muted); }

/* contact */
.contact-card { padding: 36px; }
.mail { display: inline-block; font: 600 clamp(20px, 3vw, 30px)/1.2 var(--mono); color: var(--primary); text-decoration: none; word-break: break-all; }
.mail:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- footer ---------- */
/* Black: three columns of green links under ruled white headings.
   White bar beneath: the logo, a row of links, the copyright line. */
.site-footer { border-top: 1px solid var(--border); }
.footer-main { background: #000; padding: 64px 0 56px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-cols h2 {
  margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid #5E5E5E;
  font-size: 26px; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; color: #FFF;
}
.footer-cols a { display: block; padding: 8px 0; font-size: 18px; color: var(--primary); text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-bar { background: #FFF; color: #666; padding: 34px 0 38px; }
.footer-bar .brand { color: #000; }
.footer-links { display: flex; flex-wrap: wrap; margin-top: 22px; row-gap: 6px; font-size: 17px; }
.footer-links a { color: #666; text-decoration: none; line-height: 1.15; }
.footer-links a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.footer-links a + a { margin-left: 12px; padding-left: 12px; border-left: 1px solid #666; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 14px; font-size: 14px; color: #666; }

/* ---------- iCab Twin Store ---------- */
.store-device {
  overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: inset 4px 0 0 var(--icab);
}
.store-device-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 28px; border-bottom: 1px solid var(--border);
}
.store-device-head h3 { margin-top: 2px; color: var(--text); font-size: clamp(23px, 3vw, 31px); }
.store-device-head p { margin-top: 5px; color: var(--muted); }
.store-monogram {
  display: grid; place-items: center; width: 82px; height: 82px; border: 1px solid rgba(118, 185, 0, .55);
  border-radius: 12px; background: linear-gradient(145deg, #30383B, #15191B);
  font: 700 15px/1 var(--mono); color: var(--primary); letter-spacing: .03em;
}
.store-kicker { font: 600 12px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--primary); }
.store-device-body { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; padding: 30px 28px; }
.store-device-body h4 { margin: 0 0 15px; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.store-specs { margin: 0; }
.store-specs div { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.store-specs dt { color: var(--muted); }
.store-specs dd { min-width: 0; margin: 0; color: var(--text); }
.store-specs code, .store-endpoint code { overflow-wrap: anywhere; font: 13px/1.5 var(--mono); color: var(--primary); }
.qualification-list li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.qualification-list span { color: var(--muted); }
.qualification-list strong { font: 600 12px/1.5 var(--mono); color: #FFB454; }
.qualification-list .q-pass { color: #8FD313; }
.store-device-foot { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 28px; background: #111; }
.store-device-foot p { max-width: 48em; color: var(--muted); font-size: 14px; }
.store-actions { display: flex; flex: none; gap: 18px; font-size: 14px; }
.store-endpoint { align-self: center; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.store-endpoint > span { display: block; margin-bottom: 8px; font: 600 12px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.store-endpoint > code { display: block; padding: 13px 14px; border: 1px solid rgba(118, 185, 0, .4); border-radius: 8px; background: #0A0A0A; }
.store-endpoint p { margin: 16px 0; color: var(--muted); font-size: 15px; }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3, .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; justify-content: flex-start; gap: 0; padding: 8px var(--gutter) 18px;
    background: #FFFFFF; border-bottom: 1px solid #000;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .nav-group { flex-direction: column; gap: 0; }
  .nav-secondary { margin-top: 8px; padding-top: 8px; border-top: 1px solid #DDD; }
  .nav-group > a, .nav-item > a { padding: 11px 2px; font-size: 17px; color: #1A1A1A; }
  .nav-group > a::after, .nav-item > a::after { display: none; }
  .site-nav a[aria-current="page"] { font-weight: 600; }
  .nav-item { flex-wrap: wrap; }
  .nav-item > a { flex: 1; }
  .menu-toggle { display: none; }
  .menu, .has-menu:hover .menu { position: static; width: 100%; padding: 0 0 6px; border: 0; background: none; opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: 0; padding: 72px 0 64px; }
  .page-hero { padding: 56px 0 44px; }
  .grid.c2, .grid.c3, .grid.c4, .features, .steps { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
  .stage { padding: 10px 8px 14px; border-radius: 14px; }
  .stage-caps span { display: none; }
  .stage-caps b { font-size: 13px; }
  .card, .features li { padding: 22px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols h2 { font-size: 22px; }
  .footer-main { padding: 48px 0 40px; }
  .ladder li { grid-template-columns: 30px 1fr; }
  .ladder .pill { grid-column: 2; justify-self: start; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .store-device-head { grid-template-columns: auto 1fr; padding: 22px; }
  .store-device-head .pill { grid-column: 1 / -1; justify-self: start; }
  .store-monogram { width: 64px; height: 64px; font-size: 12px; }
  .store-device-body { grid-template-columns: 1fr; gap: 30px; padding: 24px 22px; }
  .store-specs div { grid-template-columns: 1fr; gap: 2px; }
  .store-device-foot { align-items: flex-start; flex-direction: column; padding: 20px 22px; }
  .store-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* The still frame is the aligned one: rod extended, sensor lit on both sides. */
  .machine .rod { transform: translateY(35px); }
  .machine .sensor { fill-opacity: 1; }
  .machine .beam { opacity: .8; }
  .machine .led-in { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}
