/* spatiand.com -- the look follows the room's own: a dark ground, glass without drawn borders,
   and the mark's three colours used as light. */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --teal: #16e6c0; --blue: #37a6f7; --violet: #8f6bf2; --amber: #ffd966;
  --ground: #08090f; --ground-2: #0b0d12; --ground-3: #12152a;
  --ink: #eef1ff; --ink-2: #b9c0d8; --ink-3: #7f88a6; --mark: #73b8ff;
  --glass: linear-gradient(180deg, rgba(34,38,60,.72), rgba(14,16,26,.80));
  --rim: rgba(140,179,255,.16);
  --mark-grad: linear-gradient(90deg, var(--teal), var(--blue) 45%, var(--violet));
  --display: "Space Grotesk", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --r-s: 14px; --r-m: 20px; --r-l: 24px; --r-xl: 34px;
  --gutter: clamp(16px, 4vw, 48px); --wide: 1240px; --text: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.65 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(900px 600px at 8% -5%, rgba(22,230,192,.10), transparent 60%), radial-gradient(900px 700px at 100% 100%, rgba(143,107,242,.12), transparent 60%), linear-gradient(180deg, #12152a, #06070b 70%); }
img, svg, video, canvas { max-width: 100%; }
a { color: var(--mark); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
::selection { background: rgba(107,173,255,.3); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: rgba(140,179,255,.10); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
kbd { background: rgba(255,255,255,.08); border-radius: 6px; padding: .1em .45em; box-shadow: inset 0 -1px 0 rgba(255,255,255,.18); white-space: nowrap; }
.grad { background: var(--mark-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(var(--text), 100% - 2 * var(--gutter)); margin-inline: auto; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-2); line-height: 1.55; max-width: 44em; }
.eyebrow { font: 600 .78rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); display: inline-flex; gap: .7em; align-items: center; margin-bottom: 1.3em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--mark-grad); border-radius: 2px; }
.rule { height: 2px; border: 0; background: var(--mark-grad); border-radius: 2px; margin: 0 0 1.6rem; opacity: .9; width: 100%; }
.muted { color: var(--ink-3); } .small { font-size: .88rem; }

/* ---------- the bar across the top */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: center; padding: 12px var(--gutter); pointer-events: none; }
.top-in { pointer-events: auto; display: flex; align-items: center; gap: 6px; width: min(var(--wide), 100%); padding: 8px 10px 8px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(30,34,54,.66), rgba(12,14,22,.72)); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1.5px 0 rgba(255,255,255,.14); transition: transform .35s ease; }
.top.hide .top-in { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 1.08rem var(--display); letter-spacing: -.01em; margin-right: auto; }
.brand:hover { text-decoration: none; } .brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: var(--ink-2); font: 500 .93rem var(--display); padding: 9px 13px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.cta { color: #04101c; background: var(--mark-grad); font-weight: 600; margin-left: 6px; }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--ink); cursor: pointer; }
.burger svg { width: 20px; height: 20px; }
@media (max-width: 980px) {
  .burger { display: grid; place-items: center; }
  .nav { position: fixed; inset: 72px var(--gutter) auto; flex-direction: column; align-items: stretch; padding: 12px; border-radius: var(--r-l); background: rgba(14,16,26,.96); backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 1.5px 0 rgba(255,255,255,.12); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: .22s ease; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 16px; font-size: 1.05rem; } .nav a.cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- glass */
.glass { background: var(--glass); border-radius: var(--r-l); box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1.5px 0 rgba(255,255,255,.13); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card { padding: clamp(20px, 2.6vw, 30px); position: relative; }
.card h3 { margin-bottom: .45em; } .card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.btn { display: inline-flex; align-items: center; gap: .6em; padding: 14px 24px; border-radius: 999px; font: 600 1rem var(--display); border: 0; cursor: pointer; color: var(--ink);
  background: rgba(255,255,255,.09); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.16); transition: transform .15s, background .2s; }
.btn:hover { background: rgba(255,255,255,.16); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--mark-grad); color: #04101c; box-shadow: 0 10px 30px rgba(55,166,247,.35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.pill { display: inline-flex; align-items: center; gap: .5em; font: 500 .8rem var(--display); padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--ink-2); }
.pill.ok { color: var(--teal); background: rgba(22,230,192,.10); } .pill.part { color: var(--amber); background: rgba(255,217,102,.10); } .pill.no { color: #ff9e8c; background: rgba(255,158,140,.10); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- sections */
section { padding: clamp(64px, 10vw, 140px) 0; position: relative; }
.page-head { padding: clamp(110px, 12vw, 160px) 0 clamp(30px, 5vw, 60px); }
.page-head h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); max-width: 14em; }
.sec-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 54px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: .55em; }
ul.ticks li { padding-left: 1.7em; position: relative; color: var(--ink-2); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 2px; border-radius: 2px; background: var(--mark-grad); }
ul.ticks li b, ul.ticks li strong { color: var(--ink); font-weight: 600; }
ul.ticks.open li::before { background: var(--amber); width: 8px; height: 8px; border-radius: 50%; top: .5em; }
.num { font: 600 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--display); letter-spacing: -.03em; }
.num small { font-size: .42em; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-left: .2em; }
.stat p { color: var(--ink-3); font-size: .92rem; margin: .5em 0 0; }

/* ---------- appear on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- the home page: the room behind, the story over it */
.stage { position: fixed; inset: 0; z-index: -1; }
.stage canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
/* No WebGL: a drawn backdrop (sky, horizon, floor) and the windows as stills beside the cards, never under the words. */
.stage.nogl { background: linear-gradient(180deg, #0a0c14 0%, #1a2036 34%, #39405a 55.6%, #aab6d8 56%, #2b3046 56.5%, #151824 72%, #08090f 100%); } .stage.nogl canvas, .stage.nogl .lens { display: none; }
.stills { position: absolute; inset: 0; perspective: 1500px; transition: opacity .8s; }
.stills img { position: absolute; top: 52%; right: 4vw; width: min(50vw, 880px); height: auto; border-radius: 18px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 40px 110px rgba(0,0,0,.65); opacity: 0; transform: translateY(-46%) rotateY(-20deg) scale(.94); transition: opacity .7s, transform 1s cubic-bezier(.2,.7,.2,1); }
.stills img.on { opacity: 1; transform: translateY(-50%) rotateY(-11deg); }
.stills img.l { right: auto; left: 4vw; transform: translateY(-46%) rotateY(20deg) scale(.94); } .stills img.l.on { transform: translateY(-50%) rotateY(11deg); }
.stills img.mid { right: auto; left: 50%; top: 36%; width: min(56vw, 760px); transform: translate(-50%, -46%) scale(.94); } .stills img.mid.on { transform: translate(-50%, -50%); }
.stage.nogl.dim .stills { opacity: 0; } .stage.nogl::before { content: ""; position: absolute; inset: 0; background: #08090f; opacity: 0; transition: opacity .8s; z-index: 1; } .stage.nogl.dim::before { opacity: .92; }
@media (max-width: 900px) { .stills img, .stills img.l, .stills img.mid { left: 50%; right: auto; top: 30%; width: 90vw; transform: translate(-50%, -46%) scale(.94); } .stills img.on, .stills img.l.on, .stills img.mid.on { opacity: .55; transform: translate(-50%, -50%); } .stills img.first { display: none; } }
@media (prefers-reduced-motion: reduce) { .stills img { transition: opacity .2s; } }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,9,15,.5), transparent 16%, transparent 70%, rgba(8,9,15,.55)); }
.stage.dim canvas { filter: brightness(.35) blur(6px); transition: filter .8s; } .stage canvas { transition: filter .8s; }
.story { position: relative; pointer-events: none; }
.story a, .story button, .story .touch { pointer-events: auto; }
.chapter { min-height: 135vh; display: flex; align-items: center; padding: 0 var(--gutter); }
.chapter.first { min-height: 100vh; align-items: flex-end; padding-top: 110px; padding-bottom: clamp(60px, 11vh, 120px); }
.chapter.first::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(8,9,15,.92), rgba(8,9,15,.78) 34%, transparent 62%); }
.chapter { position: relative; }
.chapter .say { max-width: 30rem; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(20,23,38,.74), rgba(9,11,18,.82)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1.5px 0 rgba(255,255,255,.14); }
.chapter .say h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); } .chapter .say p { color: var(--ink-2); } .chapter .say p:last-child { margin-bottom: 0; }
.chapter.right { justify-content: flex-end; } .chapter.low { align-items: flex-end; justify-content: center; padding-bottom: 10vh; } .chapter.low .say { max-width: 46rem; } .chapter.center { justify-content: center; text-align: center; }
.hero-say { max-width: 60rem; } .hero-say .lede { max-width: 33rem; }
.hero-say h1 { text-shadow: 0 4px 40px rgba(0,0,0,.5); margin-bottom: .25em; }
.hero-say .lede { color: #dfe4f5; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hint { display: inline-flex; align-items: center; gap: .7em; color: var(--ink-2); font: 500 .9rem var(--display); margin-top: 1.4rem; }
.hint i { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); position: relative; }
.hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.hud { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(12,14,22,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1.5px 0 rgba(255,255,255,.12); transition: opacity .4s, transform .4s; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
.hud.off { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
.hud button { border: 0; background: transparent; color: var(--ink-2); font: 500 .86rem var(--display); padding: 9px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: .5em; align-items: center; white-space: nowrap; }
.hud button:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.hud button[aria-pressed="true"] { background: rgba(55,166,247,.22); color: #fff; }
.hud svg { width: 17px; height: 17px; flex: none; }
.after-story { background: linear-gradient(180deg, transparent, var(--ground) 14%); position: relative; }
.compass { position: fixed; right: var(--gutter); top: 50%; z-index: 30; transform: translateY(-50%); display: grid; gap: 10px; }
.compass a { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); transition: .25s; display: block; }
.compass a.on { background: var(--teal); box-shadow: 0 0 12px var(--teal); transform: scale(1.35); }
@media (max-width: 700px) { .chapter.first::before { background: none; } .lens::before { width: 88vw; top: 30%; } .lens span { top: calc(30% + 24.75vw + 10px); white-space: normal; text-align: center; width: 80vw; } .stage::after { background: linear-gradient(180deg, rgba(8,9,15,.5), transparent 14%, transparent 34%, rgba(8,9,15,.82) 62%); } .compass { display: none; } .chapter { min-height: 120vh; align-items: flex-end; padding-bottom: 14vh; } .chapter .say { max-width: none; } }

/* ---------- the lenses: what a pair of glasses shows of the room */
.lens { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; z-index: 2; }
.lens.on { opacity: 1; }
.lens::before { content: ""; position: absolute; left: 50%; top: 38%; width: min(56vw, 92vh); aspect-ratio: 16/9; transform: translate(-50%,-50%); border-radius: 18px; box-shadow: 0 0 0 200vmax rgba(4,5,9,.86), inset 0 0 40px rgba(0,0,0,.5); }
.lens span { position: absolute; left: 50%; top: calc(38% + min(15.75vw, 25.9vh) + 10px); transform: translateX(-50%); font: 500 .8rem var(--display); color: var(--ink-3); white-space: nowrap; }

/* ---------- pictures of the room */
.shot { border-radius: var(--r-l); overflow: hidden; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1.5px 0 rgba(255,255,255,.14); background: #0b0d12; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption, figure figcaption { font-size: .84rem; color: var(--ink-3); padding: 10px 4px 0; }
figure { margin: 0; }
.tilt { transform: perspective(1400px) rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; will-change: transform; }
.winframe { padding: 4.2% 3% 2%; border-radius: 4.2% / 6%; background: linear-gradient(180deg, rgba(170,180,206,.5), rgba(110,118,150,.32)); box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 2px 0 rgba(255,255,255,.5); position: relative; }
.winframe .bar { display: flex; align-items: center; justify-content: center; height: 0; padding-bottom: 5.4%; position: relative; font: 500 clamp(.8rem, 1.7vw, 1.25rem) var(--body); color: #fff; }
.winframe .bar span { position: absolute; top: 12%; } .winframe .bar i { position: absolute; top: 2%; width: 3.6%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.22); }
.winframe .bar i:nth-of-type(1) { right: 1%; } .winframe .bar i:nth-of-type(2) { right: 5.6%; } .winframe .bar i:nth-of-type(3) { right: 10.2%; }
.winframe img { display: block; width: 100%; border-radius: 1.4%; }

/* ---------- app tiles */
.app-tile { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; color: inherit; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.app-tile:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.5), inset 0 1.5px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(55,166,247,.25); }
.app-tile img { width: 72px; height: 72px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.app-tile h3 { margin: 4px 0 2px; } .app-tile .what { color: var(--teal); font: 500 .82rem var(--display); letter-spacing: .08em; text-transform: uppercase; }
.app-tile p { margin-top: .6em; }
.app-head { display: flex; align-items: center; gap: 22px; margin-bottom: 1.4rem; } .app-head img { width: clamp(72px, 9vw, 112px); height: auto; filter: drop-shadow(0 14px 30px rgba(0,0,0,.6)); }
.app-next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- tables, code, notes */
.table-wrap { overflow-x: auto; border-radius: var(--r-m); } table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid rgba(140,179,255,.10); }
th { font: 600 .78rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
td:first-child { color: var(--ink); font-weight: 500; } td { color: var(--ink-2); } tr:last-child td { border-bottom: 0; }
pre { background: #05060a; border-radius: var(--r-s); padding: 16px 18px; overflow-x: auto; font-size: .86rem; line-height: 1.6; box-shadow: inset 0 0 0 1px rgba(140,179,255,.10); position: relative; margin: 0 0 1.2em; }
pre code { background: none; padding: 0; overflow-wrap: normal; } pre .c { color: var(--ink-3); }
.copy { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 8px; padding: 5px 10px; font: 500 .74rem var(--display); background: rgba(255,255,255,.08); color: var(--ink-2); cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.note { padding: 20px 24px; border-radius: var(--r-m); background: linear-gradient(180deg, rgba(255,217,102,.09), rgba(255,217,102,.04)); box-shadow: inset 3px 0 0 var(--amber); color: var(--ink-2); margin: 0 0 1.4em; }
.note strong { color: var(--ink); } .note p:last-child { margin: 0; }
.note.info { background: linear-gradient(180deg, rgba(55,166,247,.10), rgba(55,166,247,.04)); box-shadow: inset 3px 0 0 var(--blue); }
.honest { padding: clamp(26px, 4vw, 48px); border-radius: var(--r-xl); background: linear-gradient(135deg, rgba(22,230,192,.10), rgba(55,166,247,.06) 45%, rgba(143,107,242,.12)); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.14), 0 30px 80px rgba(0,0,0,.4); }
.honest h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.prose { max-width: var(--text); } .prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.2em; } .prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-2); } .prose li { margin-bottom: .45em; } .prose p { color: var(--ink-2); } .prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.3em; border-left: 2px solid var(--violet); font: 500 1.2rem/1.5 var(--display); color: var(--ink); }
.prose figure { margin: 2.4em 0; } .prose .shot figcaption { padding: 11px 16px 14px; }
.prose hr { border: 0; margin: 2.8em 0; text-align: center; overflow: visible; } .prose hr::after { content: "· · ·"; color: var(--ink-3); letter-spacing: .6em; font-size: 1.1rem; }

/* ---------- install: the list at the side */
.doc > div { min-width: 0; } .split > *, .grid > * { min-width: 0; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
.doc aside { position: sticky; top: 96px; display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow: auto; }
.doc aside a { color: var(--ink-3); font: 500 .93rem var(--display); padding: 8px 14px; border-radius: 10px; box-shadow: inset 2px 0 0 transparent; }
.doc aside a:hover { color: var(--ink); text-decoration: none; } .doc aside a.on { color: var(--ink); background: rgba(255,255,255,.06); box-shadow: inset 2px 0 0 var(--teal); }
.doc section { padding: 0 0 clamp(50px, 7vw, 90px); scroll-margin-top: 100px; } .doc h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.doc h3 { margin-top: 1.8em; } .doc ol, .doc ul { color: var(--ink-2); padding-left: 1.3em; } .doc li { margin-bottom: .5em; } .doc p { color: var(--ink-2); }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc aside { position: static; display: flex; flex-wrap: wrap; max-height: none; } .doc aside a { box-shadow: none !important; background: rgba(255,255,255,.06); border-radius: 999px; } }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps > li { counter-increment: s; padding: 18px 20px 18px 66px; position: relative; border-radius: var(--r-m); background: rgba(255,255,255,.04); margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 1rem var(--display); color: #04101c; background: var(--mark-grad); }

/* ---------- small machines that explain one thing each */
.demo { border-radius: var(--r-xl); overflow: hidden; position: relative; background: linear-gradient(180deg, #10132099, #080a10cc); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1.5px 0 rgba(255,255,255,.12); }
.demo canvas { display: block; width: 100%; touch-action: none; }
.demo .bar2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; background: rgba(0,0,0,.25); font: 500 .85rem var(--display); color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 500 .85rem var(--display); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--mark-grad); color: #04101c; }
.roombox { position: relative; height: min(78vh, 760px); min-height: 420px; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1.5px 0 rgba(255,255,255,.14); background: #0b0d12; }
.roombox canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.roombox .hud { position: absolute; }
.roombox:fullscreen { border-radius: 0; height: 100vh; }
.roombox .tip { position: absolute; left: 16px; top: 16px; max-width: 280px; padding: 12px 16px; border-radius: var(--r-s); background: rgba(12,14,22,.7); backdrop-filter: blur(12px); font-size: .84rem; color: var(--ink-2); pointer-events: none; transition: opacity .5s; z-index: 3; }
.roombox .tip.off { opacity: 0; }
.fallback { background: linear-gradient(rgba(8,9,15,.72), rgba(8,9,15,.9)), url(../img/room/launcher.jpg) center / cover; display: grid; place-items: center; text-align: center; padding: 30px; height: 100%; color: var(--ink-2); }

/* ---------- the three systems, one core */
.core { display: grid; gap: 10px; }
.core .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.core .cell { padding: 16px; border-radius: var(--r-s); background: rgba(255,255,255,.05); text-align: center; font: 500 .9rem var(--display); color: var(--ink-2); }
.core .cell b { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 3px; }
.core .one { padding: 26px 16px; border-radius: var(--r-m); text-align: center; background: linear-gradient(135deg, rgba(22,230,192,.22), rgba(55,166,247,.2) 45%, rgba(143,107,242,.26)); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.2); font: 600 1.25rem var(--display); }
.core .one small { display: block; font: 400 .88rem var(--body); color: var(--ink-2); margin-top: 5px; }

/* ---------- the journal */
.posts { display: grid; gap: 16px; }
.post { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 24px 28px; color: inherit; transition: transform .2s; }
.post:hover { text-decoration: none; transform: translateX(6px); } .post time { color: var(--ink-3); font: 500 .86rem var(--display); padding-top: .35em; }
.post h3 { margin: 0 0 .3em; } .post p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.post .kind { font: 600 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: .6em; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; gap: 6px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs a { padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--ink-2); font: 500 .92rem var(--display); }
.tabs a[aria-current], .tabs a:hover { background: rgba(255,255,255,.14); color: var(--ink); text-decoration: none; }
.empty { padding: 40px; text-align: center; color: var(--ink-3); border-radius: var(--r-l); box-shadow: inset 0 0 0 1.5px rgba(140,179,255,.14); }
article.entry header { padding: clamp(130px, 18vw, 200px) 0 30px; } article.entry h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
article.entry .meta { color: var(--ink-3); font: 500 .9rem var(--display); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }

/* ---------- the foot */
footer { padding: 70px 0 50px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.5)); position: relative; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; } @media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 { font: 600 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1em; }
footer a { color: var(--ink-2); display: block; padding: 3px 0; font-size: .95rem; } footer p { color: var(--ink-3); font-size: .9rem; max-width: 30em; }
footer .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(140,179,255,.10); color: var(--ink-3); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 700px) { .roombox .tip { max-width: 230px; font-size: .76rem; padding: 9px 12px; } .roombox { height: 72vh; } th, td { padding: 10px 11px; } }
@media (max-width: 700px) { .core .row { gap: 6px; } .core .cell { padding: 12px 6px; font-size: .74rem; overflow-wrap: anywhere; } .core .cell b { font-size: .86rem; } .core .one { font-size: 1.05rem; overflow-wrap: anywhere; } }
