/* RIPPWORKS shop. One stylesheet for the landing page, product pages and setup guides. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-sub.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/anton-sub.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("../fonts/playfair-italic-sub.woff2") format("woff2"); font-style: italic; font-weight: 400 900; font-display: swap; }

:root {
  --bg: #050508; --bg2: #0b0b11; --ink: #eeecf4; --mute: #9b98a8; --dim: #8a87a0; --line: rgba(255,255,255,.09);
  --mint: #c9fbe9; --lav: #d6c8ff; --pink: #ffc9ef; --sun: #fff1b8; --red: #ff2d3d;
  --iri: linear-gradient(100deg, #c8fbe8 0%, #d9ccff 45%, #ffd0f1 75%, #fff2c0 100%);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.1,1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: #d6c8ff; color: #050508; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- film layer: scanlines, grain, vignette (CSS, so it also runs where WebGL does not) ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.fx-scan { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.fx-grain { opacity: .07; background-image: url("../img/grain.png"); background-size: 128px 128px; animation: grain 1s steps(6) infinite; inset: -50px; }
.fx-vig { background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-18px,12px)} 40%{transform:translate(14px,-20px)} 60%{transform:translate(-8px,22px)} 80%{transform:translate(20px,6px)} 100%{transform:translate(0,0)} }

/* ---------- chromatic text ---------- */
.ca { text-shadow: -.016em 0 rgba(255,40,90,.5), .016em 0 rgba(40,220,255,.5); }
.ca-soft { text-shadow: -1px 0 rgba(255,40,90,.35), 1px 0 rgba(40,220,255,.35); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 38px; padding: 0 clamp(18px, 3.4vw, 48px); height: 68px;
  background: linear-gradient(to bottom, rgba(5,5,8,.82), rgba(5,5,8,.35)); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { font-weight: 800; letter-spacing: .01em; font-size: 21px; text-decoration: none; color: #fff; }
.nav { transition: transform .45s var(--ease), opacity .45s; }
.nav.away { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.nav .pill.sm { background: linear-gradient(100deg, #e4dbff, #cdbff7); padding: 11px 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 6px 30px -8px rgba(214,200,255,.6); }
.nav a.l { color: #b9b6c6; text-decoration: none; font-size: 17px; }
.nav a.l:hover, .nav a.l:focus-visible { color: #fff; }
.nav .sp { flex: 1; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font: 500 17px/1 Inter, sans-serif; color: #121018;
  background: var(--iri); padding: 13px 24px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 8px 40px -8px rgba(214,200,255,.55); transition: transform .3s var(--ease), box-shadow .3s; }
.pill:hover, .pill:focus-visible { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 10px 50px -6px rgba(214,200,255,.85); }
.pill.sm { padding: 10px 18px; font-size: 16px; }
.pill.cream { background: #f6f1e4; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; }
.pill.ghost:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset; }
.pill[disabled], .pill[aria-disabled="true"] { cursor: not-allowed; background: #1a1a22; color: #8e8b9b; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; transform: none; }
.tag { display: inline-block; background: #fff; color: #050508; font: 600 15px/1 Inter, sans-serif; letter-spacing: .02em; padding: 7px 10px; border-radius: 3px; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid #d6c8ff; outline-offset: 3px; }

/* ---------- WebGL stages ---------- */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.1s var(--ease); }
.stage.live canvas { opacity: 1; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.1s var(--ease); }
.stage.live .poster { opacity: 0; }

/* ---------- hero ---------- */
.hero { height: 210vh; position: relative; }
.hero-copy { position: absolute; left: clamp(20px, 3.3vw, 48px); right: clamp(20px, 3.4vw, 48px); bottom: clamp(22px, 4.6vh, 46px); z-index: 3; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 clamp(20px, 2.6vw, 38px); pointer-events: none; }
.hero h1 { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(54px, 7.6vw, 122px); line-height: .82; letter-spacing: -.006em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero h1 span { display: block; }
.hero .cta { pointer-events: auto; margin-bottom: clamp(0px, .2vw, 4px); justify-self: start; padding: 14px 24px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 500;
  background: linear-gradient(100deg, #c9fbe4 0%, #e3f6f2 38%, #e6dcff 72%, #d9c9ff 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset, 0 0 28px -4px rgba(201,251,228,.55), 0 0 44px -8px rgba(214,200,255,.7); }
.hero p.sub { grid-column: 1 / -1; margin: 12px 0 0; font-size: clamp(16px, 1.5vw, 21px); color: #c9c7d3; text-shadow: 0 1px 14px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); }
.hero .stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(5,5,8,.6), rgba(5,5,8,0)); }

/* ---------- manifesto ---------- */
.manifesto { position: relative; z-index: 2; padding: clamp(90px, 14vh, 160px) clamp(20px, 6vw, 96px); background: linear-gradient(to bottom, var(--bg), #07070b 60%, var(--bg)); }
.manifesto .k { font: 500 13px/1 var(--mono); letter-spacing: .28em; color: var(--dim); text-transform: uppercase; }
.manifesto h2 { font-weight: 850; font-size: clamp(34px, 5.4vw, 80px); line-height: .98; letter-spacing: -.035em; margin: 22px 0 34px; max-width: 15ch; }
.manifesto h2 em { font-family: Playfair, Georgia, serif; font-weight: 500; letter-spacing: -.01em; background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.manifesto .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 1180px; }
.manifesto .cols p { margin: 0; color: #b9b6c4; font-size: 17px; }
.manifesto .cols b { display: block; color: var(--ink); font-weight: 650; margin-bottom: 6px; }

/* ---------- carousel ---------- */
.tools { height: 420vh; position: relative; }
.tools .tag { position: absolute; top: 28px; left: clamp(20px, 3.85vw, 53px); z-index: 3; font-size: 16px; font-weight: 500; padding: 5px 7px; border-radius: 2px; }
/* the slabs carry the names; the caption bar keeps them for keyboard and screen readers and shows only the dots */
.cbar { position: absolute; left: 0; right: 0; bottom: clamp(16px, 3.4vh, 30px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 20px; pointer-events: none; }
.cbar h3, .cbar p { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.cbar .row { display: flex; gap: 10px; pointer-events: auto; flex-wrap: wrap; justify-content: center; }
.cbar .row a:not(:focus-visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.dots { display: flex; gap: 8px; pointer-events: auto; opacity: 0; transition: opacity .2s; }
.dots:focus-within { opacity: 1; }  /* hidden to match the mockup; still keyboard reachable and shown on focus */
.dots button { width: 26px; height: 3px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.18); cursor: pointer; transition: background .3s, width .3s; }
.dots button[aria-current="true"] { background: rgba(255,255,255,.8); width: 40px; }
.dots button::before { content: ""; display: block; height: 22px; margin-top: -9px; }
.tools .stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(5,5,8,.3), rgba(5,5,8,0)); }
.access .stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(5,5,8,.6), rgba(5,5,8,0)); }

/* ---------- product sections (landing) ---------- */
.products { position: relative; z-index: 2; padding: clamp(80px, 12vh, 140px) clamp(18px, 5vw, 80px) 40px; background: var(--bg); }
.products > header { max-width: 1240px; margin: 0 auto 50px; display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.products > header h2 { margin: 18px 0 0; font-weight: 850; font-size: clamp(34px, 5vw, 72px); letter-spacing: -.035em; line-height: .95; text-transform: uppercase; }
.products > header p { color: var(--mute); max-width: 440px; margin: 0; }
.prod { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 4vw, 64px); align-items: center; padding: clamp(40px, 7vh, 80px) 0; border-top: 1px solid var(--line); }
.prod:nth-of-type(even) .media { order: -1; }
.prod .num { font: 500 13px/1 var(--mono); color: var(--dim); letter-spacing: .2em; }
.prod h3 { margin: 14px 0 12px; font-weight: 850; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -.03em; line-height: 1; text-transform: uppercase; }
.prod .lead { color: #dedbe8; font-size: 18px; margin: 0 0 14px; }
.prod ul { margin: 0 0 24px; padding: 0; list-style: none; color: #aeabba; font-size: 15.5px; }
.prod li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid rgba(255,255,255,.05); }
.prod li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 2px; background: var(--iri); }
.prod .row { display: flex; gap: 10px; flex-wrap: wrap; }
.media { position: relative; border-radius: 16px; overflow: hidden; background: #0c0c12; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -40px rgba(150,120,255,.45); }
.media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.media.portrait { max-width: 360px; margin: 0 auto; }
.media.cover img { aspect-ratio: 16 / 9; object-position: center; }
.gallery .media.cover img { aspect-ratio: auto; }
.media.portrait img { aspect-ratio: auto; }
.media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 30%, transparent 70%, rgba(214,200,255,.08)); }
.bundle { max-width: 1240px; margin: 20px auto 0; padding: 34px clamp(20px, 3vw, 40px); border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(201,251,233,.10), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(255,201,239,.10), transparent 50%), #0b0b11; box-shadow: 0 0 0 1px var(--line) inset; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bundle h3 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.bundle p { margin: 0; color: var(--mute); max-width: 620px; }

/* ---------- access / scanner ---------- */
.access { position: relative; height: 160vh; }
.access .stage { background: #030304; }
.access h2 { position: absolute; top: 14.4%; left: 0; right: 0; z-index: 3; margin: 0 auto; padding: 0 20px; text-align: center; color: #f6efd9; font: 400 clamp(38px, 5.6vw, 92px)/.92 Anton, Impact, "Arial Narrow", sans-serif;
  text-transform: uppercase; letter-spacing: -.004em; white-space: nowrap; transform: scaleX(.69); text-shadow: 0 0 24px rgba(255,240,210,.18), -1px 0 rgba(255,60,90,.25), 1px 0 rgba(60,220,255,.25); }
.access .go { position: absolute; left: 0; right: 0; bottom: 12.2%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.access .go p { margin: 0; color: #b9b5c6; font-size: 15px; min-height: 1.6em; text-align: center; padding: 0 20px; position: absolute; top: 100%; margin-top: 10px; }
.pill.cream { background: #f6f1e4; color: #121018; padding: 13px 30px; font-size: 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 0 22px 2px rgba(196,170,255,.55), 0 0 60px rgba(196,170,255,.25); }
.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; font: 500 12px/1.75 var(--mono); color: rgba(200,196,214,.42); letter-spacing: .08em; }
.hud .x { position: absolute; width: 52px; height: 52px; }
.hud .x::before, .hud .x::after { content: ""; position: absolute; background: rgba(220,214,235,.4); }
.hud .x::before { left: 0; right: 0; top: 50%; height: 1px; } .hud .x::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.hud .x.tl { top: 8px; left: 14px; } .hud .x.tr { top: 8px; right: 14px; } .hud .x.bl { bottom: 8px; left: 14px; } .hud .x.br { bottom: 8px; right: 14px; }
.hud .tc { position: absolute; top: 48px; left: 50px; font-size: 14px; letter-spacing: .1em; }
.hud .meter { position: absolute; top: 50px; right: 52px; display: flex; align-items: flex-end; gap: 2px; height: 14px; border-bottom: 1px solid rgba(220,214,235,.4); padding-right: 50px; }
.hud .meter i { display: block; width: 6px; background: rgba(220,214,235,.35); }
.hud .meter i:nth-child(1) { height: 30% } .hud .meter i:nth-child(2) { height: 70% } .hud .meter i:nth-child(3) { height: 100% } .hud .meter i:nth-child(4) { height: 100% } .hud .meter i:nth-child(5) { height: 85% } .hud .meter i:nth-child(6) { height: 85% }
.hud .meter i:nth-child(7) { height: 60% } .hud .meter i:nth-child(8) { height: 20% } .hud .meter i:nth-child(9) { height: 50% } .hud .meter i:nth-child(10) { height: 10% } .hud .meter i:nth-child(11) { height: 10% } .hud .meter i:nth-child(12) { height: 10% }
.hud .rd { position: absolute; bottom: 52px; left: 50px; white-space: pre; }
.hud .rd2 { position: absolute; bottom: 52px; right: 50px; white-space: pre; text-align: left; }
.hud .bar { height: 9px; margin-bottom: 8px; background: linear-gradient(90deg, rgba(220,214,235,.35), rgba(220,214,235,.12)); font-size: 9px; line-height: 9px; color: rgba(5,5,8,.8); text-align: right; padding-right: 4px; }
.hud .rd2 .bar { width: 100%; }
.hud .side { position: absolute; top: 40%; width: 14px; height: 27%; border: 1px solid rgba(220,214,235,.28); }
.hud .side.l { left: 32px; border-right: 0; } .hud .side.r { right: 32px; border-left: 0; }
.hud .side b { position: absolute; width: 8px; height: 1px; background: rgba(220,214,235,.35); }
.hud .side.l b { left: 0; } .hud .side.r b { right: 0; }
.hud .side b:nth-of-type(1) { top: 25% } .hud .side b:nth-of-type(2) { top: 50% } .hud .side b:nth-of-type(3) { top: 75% }
.hud .side.r span { position: absolute; right: 22px; top: 14px; white-space: nowrap; font-size: 11px; }
.hud .st { color: #ff5b66; } .hud .st.ok { color: #c9fbe9; }

/* ---------- footer ---------- */
footer.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 54px clamp(20px, 5vw, 80px) 70px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; color: var(--mute); font-size: 15px; background: var(--bg); }
footer.foot .brand { color: var(--ink); display: inline-block; margin-bottom: 10px; }
footer.foot h2 { margin: 0 0 12px; color: var(--ink); font-size: 13px; font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
footer.foot ul { list-style: none; margin: 0; padding: 0; }
footer.foot li { margin: 6px 0; }
footer.foot a { text-decoration: none; color: #bdbaca; }
footer.foot a:hover { color: #fff; }

/* ---------- product + setup pages ---------- */
.page { position: relative; padding: 120px clamp(18px, 5vw, 80px) 60px; max-width: 1320px; margin: 0 auto; }
.page-bg { position: absolute; left: 0; right: 0; top: 0; height: 1500px; z-index: -1; pointer-events: none; background:
  radial-gradient(60vw 50vh at 85% -10%, rgba(214,200,255,.16), transparent 60%),
  radial-gradient(50vw 40vh at -10% 30%, rgba(201,251,233,.10), transparent 60%),
  radial-gradient(60vw 50vh at 60% 100%, rgba(255,201,239,.07), transparent 60%); }
.crumbs { font: 500 13px/1 var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; margin-bottom: 26px; }
.crumbs a { color: var(--mute); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 4px; }
.crumbs a:hover { color: #fff; }
.p-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(26px, 4vw, 70px); align-items: end; margin-bottom: 56px; }
.p-hero h1 { margin: 0 0 18px; font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 7vw, 108px); line-height: .9; letter-spacing: -.045em; }
.p-hero .lead { font-size: clamp(18px, 1.6vw, 22px); color: #dedbe8; margin: 0 0 12px; max-width: 46ch; }
.p-hero .what { color: var(--mute); margin: 0 0 26px; max-width: 58ch; }
.p-hero .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.p-hero .note { font-size: 14px; color: var(--dim); }
.p-sec { margin: 0 0 70px; }
.p-sec > h2 { font-weight: 850; text-transform: uppercase; letter-spacing: -.025em; font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 20px; display: flex; align-items: baseline; gap: 14px; }
.p-sec > h2 .mono { font-size: 13px; color: var(--dim); letter-spacing: .2em; font-weight: 500; }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat div { padding: 20px; border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: 0 0 0 1px var(--line) inset; color: #bdbac9; font-size: 15.5px; }
.feat b { display: block; color: var(--ink); margin-bottom: 6px; font-weight: 650; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery a { display: block; }
.gallery figcaption { color: var(--dim); font-size: 14px; margin-top: 10px; }
.gallery .media img { aspect-ratio: auto; }
.req { overflow-x: auto; }
.req table, .md table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.req th, .req td, .md th, .md td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.req th, .md th { color: var(--ink); font-weight: 650; background: rgba(255,255,255,.03); }
.req td, .md td { color: #c3c0cf; }
.req td:first-child { color: var(--ink); font-weight: 600; width: 150px; }
.req p { color: var(--mute); }
.dl { display: grid; gap: 12px; }
.dl .item { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: 0 0 0 1px var(--line) inset; }
.dl .item h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.dl .item p { margin: 0; color: var(--mute); font-size: 14.5px; }
.dl .item .row { display: flex; gap: 10px; flex-wrap: wrap; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.more a { display: block; padding: 18px; border-radius: 12px; text-decoration: none; background: rgba(255,255,255,.025); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .3s; }
.more a:hover { box-shadow: 0 0 0 1px rgba(214,200,255,.5) inset; }
.more b { display: block; font-weight: 750; text-transform: uppercase; letter-spacing: -.01em; }
.more span { color: var(--dim); font-size: 14px; }

/* markdown (setup guides) */
.md { max-width: 860px; }
.md h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .95; font-size: clamp(36px, 5vw, 64px); margin: 0 0 22px; }
.md h2 { font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin: 54px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.md h3 { font-weight: 700; font-size: 20px; margin: 34px 0 10px; }
.md p, .md li { color: #c7c4d2; }
.md a { color: var(--lav); }
.md code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.07); padding: .1em .38em; border-radius: 5px; color: #f1eef8; }
.md pre { background: #0d0d14; box-shadow: 0 0 0 1px var(--line) inset; border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.md pre code { background: none; padding: 0; font-size: 14px; line-height: 1.6; color: #e3e0ee; }
.md .tbl { overflow-x: auto; margin: 16px 0; }
.md td code { white-space: nowrap; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc h2 { margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.toc a { display: block; color: var(--mute); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: #fff; }
.toc .pill { font-size: 14px; padding: 11px 16px; white-space: nowrap; }
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { gap: 20px; height: 60px; }
  .nav a.l { display: none; }
  .hero-copy { grid-template-columns: 1fr; gap: 0; bottom: 34px; }
  .hero .cta { order: 3; margin: 22px 0 0; justify-self: start; }
  .hero p.sub { margin-top: 14px; }
  .scrollcue { display: none; }
  .manifesto .cols { grid-template-columns: 1fr; gap: 20px; }
  .tools { height: 330vh; }
  .tools .tag { top: 22px; }
  .prod { grid-template-columns: 1fr; }
  .prod:nth-of-type(even) .media { order: 0; }
  .p-hero { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; }
  footer.foot { grid-template-columns: 1fr; }
  .hud .rd2, .hud .side, .hud .meter { display: none; }
  .hud .tc { top: 34px; left: 34px; font-size: 12px; }
  .hud .rd { left: 30px; bottom: 30px; font-size: 11px; }
  .access h2 { top: 13vh; white-space: normal; font-size: clamp(44px, 14vw, 84px); line-height: .95; max-width: 11ch; transform: scaleX(.8); }
}

/* ---------- phones and small screens: cheaper film layer (no blend modes, no animated grain, no backdrop blur, small shadows) ---------- */
@media (max-width: 900px), (pointer: coarse) {
  html:not(.fx-on) .fx { display: none; }   /* the film layer joins after the first touch or scroll */
  .fx-grain { animation: none; inset: 0; opacity: .06; }
  .fx-scan { mix-blend-mode: normal; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
  .fx-vig { display: none; }
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5,5,8,.92); }
  .media { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
  .pill, .pill:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
  .ca { text-shadow: -1px 0 rgba(255,40,90,.5), 1px 0 rgba(40,220,255,.5); }
}

/* ---------- reduced motion: static, no WebGL, no long sticky scroll ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-grain { animation: none; }
  .hero, .tools, .access { height: auto; }
  .stage { position: relative; height: 100vh; height: 100svh; }
  .stage canvas { display: none; }
  .stage.live .poster { opacity: 1; }
  .scrollcue::after { display: none; }
  .pill, .dots button, .more a { transition: none; }
}
.still .stage canvas, .still .poster { transition: none !important; }
.still .fx, .still .hero-copy, .still .scrollcue, .still .nav, .still .cbar, .still .tag, .still .hud, .still h2, .still .go { visibility: hidden !important; }
