/* Quantum 3.0 | Feniex. One page, one level. Built by tools/build_site.py; fonts are subset copies of the brand's
   free faces (SIL OFL), served from this site. Stage #0f1114, panels #08090c, one accent #ea3000; the wire's blue
   appears only on the drawn blue wire. */
@font-face { font-family: "Michroma"; src: url("/assets/font-michroma-be881339.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/assets/font-oswald-9537de58.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/font-inter-d2bfbeb4.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/font-mono-524214b2.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --stage: #0f1114; --panel: #08090c; --line: #23272d; --text: #f2f2f2; --soft: #c3c8ce; --muted: #9aa1a9;
  --acc: #ea3000; --acc-dark: #c42800; --wire: #2f7bff;
  --rail: 52px; --dock: 0px; --pad: 16px; --maxw: 1240px;
  --display: "Michroma", "Eurostile", "Segoe UI", sans-serif;
  --label: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--stage); scroll-padding-top: calc(var(--rail) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stage); color: var(--text); font: 400 15px/1.5 var(--body); padding-bottom: var(--dock); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.acc { color: var(--acc); }
.label { font: 500 12px/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---- the rail */
.rail { position: sticky; top: 0; z-index: 30; height: var(--rail); background: rgba(8, 9, 12, .94); border-bottom: 1px solid var(--line); }
.rail .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.rail .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.rail .brand img { height: 26px; width: auto; }
.rail .name { font: 400 13px/1 var(--display); letter-spacing: .08em; color: var(--text); white-space: nowrap; }
.tag { font: 500 10.5px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); border: 1px solid #3a4048; border-radius: 3px; padding: 5px 7px 4px; white-space: nowrap; }
.rail nav { margin-left: auto; display: none; gap: 2px; }
.rail nav a { white-space: nowrap; font: 500 13px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--soft); padding: 10px 11px; border-radius: 4px; border-bottom: 2px solid transparent; }
.rail nav a:hover { color: var(--text); background: #14171b; }
.rail nav a.on { color: var(--text); border-bottom-color: var(--acc); border-radius: 4px 4px 0 0; }
.rail nav a.pdf::after { content: " \2197"; font-family: var(--body); color: var(--muted); }

/* ---- the first screen */
.hero { padding: 12px 0 10px; }
.hero .grid { display: grid; grid-template-areas: "art" "text" "strip"; gap: 12px; }
.hero-text { grid-area: text; }
.hero h1 { font: 400 26px/1.1 var(--display); letter-spacing: .02em; margin: 2px 0 6px; }
.hero .headline { font: 400 15.5px/1.35 var(--display); margin: 0 0 8px; color: var(--text); max-width: 34ch; }
.hero .headline sup { font: 600 11px/0 var(--body); vertical-align: super; }
.hero .headline sup a { text-decoration: none; color: var(--soft); padding: 0 2px; }
.hero ul.lines { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.hero ul.lines li { padding-left: 14px; position: relative; }
.hero ul.lines li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 2px; background: var(--acc); }
.hero .cta { display: none; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.art { grid-area: art; position: relative; margin: 0; background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; }
.art > picture, .art > picture img, .art > video, .art > svg { width: 100%; height: 100%; object-fit: cover; }
.art figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; gap: 8px; align-items: center; justify-content: space-between; pointer-events: none; }
.chip { font: 500 10.5px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: rgba(8, 9, 12, .82); border: 1px solid #3a4048; border-radius: 3px; padding: 5px 7px 4px; }
.play { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: flex; align-items: center; gap: 10px; cursor: pointer;
  font: 600 14px/1 var(--body); color: #fff; background: rgba(8, 9, 12, .78); border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 10px 18px 10px 12px; }
.play:hover { background: rgba(8, 9, 12, .92); border-color: #fff; }
.play .tri { width: 30px; height: 30px; border-radius: 50%; background: var(--acc-dark); display: grid; place-items: center; }
.play .tri::after { content: ""; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.play .len { font: 500 12px/1 var(--mono); color: var(--soft); }
.art.playing .play, .art.playing figcaption { display: none; }

.strip { grid-area: strip; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 0 6px; scrollbar-width: thin; scrollbar-color: #2b3036 transparent; }
.strip .fam { flex: 0 0 auto; scroll-snap-align: start; }
.strip .fam > span { display: block; font: 500 10.5px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 2px; white-space: nowrap; }
.strip .row { display: flex; gap: 6px; }
.strip a { display: grid; place-items: center; height: 64px; padding: 4px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.strip a:hover { border-color: #4a5058; }
.strip a img { height: 46px; width: auto; max-width: 150px; object-fit: contain; }
.strip a.white { background: #fbfbfb; }
.strip a.black { background: #000; }

/* ---- the dock (phones: fixed at the bottom where a thumb reaches) */
.dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; background: rgba(8, 9, 12, .96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.dock a { flex: 1 1 0; display: grid; place-items: center; gap: 3px; padding: 9px 2px 10px; text-decoration: none; color: var(--soft); font: 500 12.5px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; border-top: 2px solid transparent; }
.dock a svg { width: 20px; height: 20px; }
.dock a.on { color: var(--text); border-top-color: var(--acc); }
body.has-dock { --dock: 62px; }

/* ---- stations */
.station { padding: 30px 0 24px; border-top: 1px solid var(--line); }
.station h2 { font: 400 20px/1.25 var(--display); margin: 6px 0 8px; }
.station .lead { color: var(--soft); max-width: 62ch; margin: 0 0 22px; font-size: 15.5px; }
.kicker { font: 500 12px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* story */
.gens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gen { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; }
.gen .num { font: 400 26px/1 var(--display); color: var(--soft); }
.gen.now .num { color: var(--acc); }
.gen p { margin: 8px 0 0; font-size: 14px; color: var(--soft); flex: 1 0 auto; }
.gen.now p { color: var(--text); }
.gen svg { margin-top: 12px; width: 100%; height: auto; flex: none; }
.gen .gtag { display: inline-block; vertical-align: middle; margin-left: 8px; font: 500 10.5px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 4px 6px 3px; }
/* three generations (15 Nov 2026): on a phone 1.0 and 2.0 sit side by side and 3.0 takes the row under them */
.gens.n3 .gen.now { grid-column: 1 / -1; }
.gens.n3 .gen.now svg { max-width: 240px; margin-left: auto; margin-right: auto; }
@media (max-width: 599px) { .gen .gtag { display: table; margin: 8px 0 0; } }

/* inside */
.two { display: grid; gap: 16px; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.list h3 { font: 500 13px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; color: var(--soft); }
.list ul { margin: 0; padding: 0; list-style: none; }
.list li { padding: 8px 0 8px 18px; border-top: 1px solid #1a1d22; position: relative; font-size: 14.5px; }
.list li:first-child { border-top: 0; }
.list.changes li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 2px; background: var(--acc); }
.list.stays li::before { content: ""; position: absolute; left: 1px; top: 13px; width: 6px; height: 6px; border: 1px solid var(--muted); border-radius: 50%; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); color: #fff; background: var(--acc-dark); border: 1px solid var(--acc-dark); border-radius: 5px; padding: 11px 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #a82300; }
.btn.ghost { background: transparent; border-color: #4a5058; color: var(--text); }
.btn.ghost:hover { border-color: var(--text); background: #14171b; }
.btn small { font: 500 12px/1 var(--mono); color: inherit; opacity: .85; }
.after { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* optic */
.ohero { margin: 0 0 18px; position: relative; border-radius: 6px; overflow: hidden; background: #000; }
.ohero figcaption { position: absolute; left: 10px; bottom: 10px; }
.compare { position: relative; border-radius: 6px; overflow: hidden; background: #000; touch-action: pan-y; --pos: 50%; max-width: min(100%, calc((100vh - 250px) * 1.6)); margin: 0 auto; }
.ohero { max-width: min(100%, calc((100vh - 250px) * 1.6)); margin-left: auto; margin-right: auto; }
.compare .layer { position: absolute; inset: 0; }
.compare .layer img { width: 100%; height: 100%; object-fit: cover; }
.compare .base { position: relative; }
.compare .top { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare .handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(8, 9, 12, .85); border: 1px solid #fff; color: #fff; display: grid; place-items: center; font: 600 16px/1 var(--body); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare .side { position: absolute; top: 10px; }
.compare .side.l { left: 10px; } .compare .side.r { right: 10px; }
.compare .state { display: none; }
.compare .state.show { display: block; }
.switch { display: inline-flex; border: 1px solid #3a4048; border-radius: 5px; overflow: hidden; margin: 0 0 12px; }
.switch button { font: 500 12.5px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); background: transparent; border: 0; padding: 9px 14px; cursor: pointer; }
.switch button[aria-pressed=true] { color: #fff; background: #2a2f36; }
.optic-ctl { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.optic-ctl .switch { margin: 0; flex-wrap: wrap; }
.switch button:disabled { opacity: .35; cursor: default; }
.closeups { display: grid; gap: 12px; margin-top: 14px; }
.closeups figure { margin: 0; position: relative; border-radius: 6px; overflow: hidden; background: #000; }
.closeups figcaption { position: absolute; left: 10px; bottom: 10px; }
.osent { font-size: 15.5px; color: var(--text); max-width: 70ch; margin: 16px 0 0; }

/* control */
.cards3 { display: grid; gap: 12px; }
.ccard { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.ccard h3 { font: 400 15px/1.2 var(--display); margin: 0 0 6px; }
.ccard p { margin: 0; color: var(--soft); font-size: 14.5px; }
.ccard .ico { width: 34px; height: 34px; margin-bottom: 12px; }
.wirebox { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 14px; align-items: center; }
.wirebox svg { width: 100%; height: auto; }
.wirebox .wire-path { stroke: #2b4a7a; transition: stroke .4s; }
.wirebox.on .wire-path { stroke: var(--wire); }
.wirebox .ring { fill: none; stroke: var(--wire); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.wirebox.on .ring { opacity: 1; animation: pair 1s ease-out infinite; }
.wirebox .paired { opacity: 0; transition: opacity .4s; }
.wirebox.on .paired { opacity: 1; }
.wirebox .v0 { fill: var(--muted); }
.wirebox .eve { opacity: 0; transition: opacity .4s; margin: 0; color: var(--text); font-size: 15px; }
.wirebox.on .eve { opacity: 1; }
.wirebox .status { font: 500 13px/1 var(--mono); color: var(--soft); }
@keyframes pair { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* family */
.fam-block { margin: 0 0 26px; }
.fam-block h3 { font: 500 14px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 0 0 12px; padding-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: calc(var(--rail) + 12px); }
.card:target { border-color: var(--acc); }
.card .ph { height: 92px; display: grid; place-items: center; border-radius: 4px; }
.card .ph.white { background: #fbfbfb; }
.card .ph.black { background: #000; }
.card .ph img { max-height: 86px; width: auto; object-fit: contain; }
.card h4 { font: 400 13px/1.25 var(--display); margin: 4px 0 0; }
.card .pn { font: 500 12px/1.3 var(--mono); color: var(--soft); }
.card ul { list-style: none; margin: 0; padding: 0; font: 400 12.5px/1.45 var(--mono); color: var(--soft); }
.card .price { font: 600 14px/1 var(--mono); color: var(--text); margin-top: 2px; }
.card .more { margin-top: auto; padding-top: 6px; font: 500 12.5px/1.2 var(--body); color: var(--text); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.card .link { font: 500 11.5px/1 var(--mono); color: var(--muted); text-decoration: none; }

/* docs */
.docs { display: grid; gap: 14px; }
.doc { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 14px; }
.doc .covers { display: flex; gap: 8px; align-items: flex-end; overflow: hidden; }
.doc .covers img { border-radius: 3px; border: 1px solid #2a2f36; height: auto; }
.doc .covers .cv { width: 132px; flex: 0 0 auto; }
.doc .covers .pv { width: 64px; flex: 0 0 auto; }
.doc h3 { font: 400 16px/1.2 var(--display); margin: 0 0 4px; }
.doc p { margin: 0 0 10px; color: var(--soft); font-size: 14.5px; }
.doc .facts { font: 500 12.5px/1.4 var(--mono); color: var(--muted); margin: 0 0 12px; }
.doc .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 34px; color: var(--muted); font-size: 13px; }
footer .wrap { display: grid; gap: 18px; }
footer .co { color: var(--soft); }
footer a { color: var(--soft); }
footer ol { margin: 0; padding-left: 18px; }
footer .qr { display: none; align-items: center; gap: 12px; }
footer .qr svg { width: 92px; height: 92px; background: #fff; padding: 6px; border-radius: 4px; }
footer .stamp { font: 500 12px/1.4 var(--mono); }

/* ---- laptops */
@media (min-width: 900px) {
  :root { --rail: 56px; --pad: 28px; }
  .rail nav { display: flex; }
  .rail .brand img { height: 30px; }
  .dock { display: none; }
  body.has-dock { --dock: 0px; }
  .hero { padding: 22px 0 14px; }
  .hero .grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text art" "strip strip"; gap: 18px 36px; align-items: center; }
  .hero h1 { font-size: 44px; margin-bottom: 14px; }
  .hero .headline { font-size: 21px; margin-bottom: 14px; }
  .hero ul.lines { font-size: 15.5px; }
  .hero .cta { display: flex; }
  .strip { flex-wrap: wrap; overflow: visible; gap: 10px 16px; }
  .strip .row { flex-wrap: wrap; gap: 5px; }
  .strip a { height: 54px; padding: 3px 6px; }
  .strip a img { height: 40px; max-width: 120px; }
  .strip.dense a { height: 44px; padding: 2px 5px; }
  .strip.dense a img { height: 32px; max-width: 96px; }
  .strip.dense .fam > span { margin-bottom: 4px; }
  .station { padding: 64px 0 40px; }
  .station h2 { font-size: 30px; }
  .gens { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .two { grid-template-columns: 1fr 1fr; }
  .cards3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .wirebox { grid-template-columns: 3fr 2fr; padding: 22px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .card .ph { height: 120px; }
  .card .ph img { max-height: 112px; }
  .closeups { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
  footer .wrap { grid-template-columns: 2fr 3fr 1fr; align-items: start; }
  footer .qr { display: flex; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .hero { padding-top: 16px; }
  .hero .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 36px; }
  .hero h1 { font-size: 38px; margin-bottom: 10px; }
  .hero .headline { font-size: 19px; }
  .hero .cta { margin-top: 12px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .gens { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) {
  .gens.n3 { grid-template-columns: repeat(3, 1fr); }
  .gens.n3 .gen.now { grid-column: auto; }
  .gens.n3 .gen.now svg { max-width: none; margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
