/* Landing page: a story in chapters. Previous site's language on theme tokens.
   Swiss: left-aligned, big type, hairlines, generous space, 10px corners. */

/* ---------- hero (centred) ---------- */
/* fills the screen; the content is centred in the area below the header; rulers run the full height */
.hero { position: relative; display: grid; align-items: center; min-height: 100vh; min-height: 100svh; padding: var(--header-h) var(--gutter) 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; text-align: center; }
.hero-title { font-size: var(--display); letter-spacing: -0.055em; line-height: .92; }
.hero-sub { margin-top: var(--lead-gap); font-size: clamp(17px, 1.25vw, 19px); line-height: 1.55; color: var(--fg-2); max-width: 56ch; margin-inline: auto; }
.hero-sub .br-d { display: none; }
@media (min-width: 761px) { .hero-sub .br-d { display: inline; } }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: var(--lead-gap); }
.js .hero-cta { opacity: 0; }
.ruler { position: absolute; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out) .6s; }
.is-ready .ruler { opacity: calc(.6 * var(--hf, 1)); }
.hero.is-live .ruler { transition: none; }
.hero.is-gone .ruler, .hero.is-gone .crosshair { visibility: hidden; }
.ruler-x { left: 0; right: 0; top: var(--header-h); height: 22px;
  background: repeating-linear-gradient(90deg, var(--fg-3) 0 1px, transparent 1px 80px) 0 0 / 100% 22px no-repeat,
              repeating-linear-gradient(90deg, var(--fg-3) 0 1px, transparent 1px 16px) 0 0 / 100% 8px no-repeat; }
.ruler-y { top: var(--header-h); bottom: 0; left: 0; width: 22px;
  background: repeating-linear-gradient(180deg, var(--fg-3) 0 1px, transparent 1px 80px) 0 0 / 22px 100% no-repeat,
              repeating-linear-gradient(180deg, var(--fg-3) 0 1px, transparent 1px 16px) 0 0 / 8px 100% no-repeat; }
.ruler-mark { position: absolute; background: var(--fg); }
.ruler-x .ruler-mark { top: 0; width: 1.5px; height: 22px; left: 0; }
.ruler-y .ruler-mark { left: 0; height: 1.5px; width: 22px; top: 0; }
.crosshair { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .25s; }
.hero.is-hover .crosshair { opacity: var(--hf, 1); }
.ch-x, .ch-y { position: absolute; left: 0; top: 0; }
.ch-x { width: 100%; height: 0; border-top: 1px dashed var(--rule-2); }
.ch-y { height: 100%; width: 0; border-left: 1px dashed var(--rule-2); }
.ch-read { position: absolute; left: 0; top: 0; font-size: 12px; color: var(--fg-2); white-space: pre; }

/* ---------- the film, in a popup ---------- */
.film-modal { width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 12px; background: #000; color: #F5F4F0; overflow: hidden; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .6); }
.film-modal::backdrop { background: rgba(10, 10, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.film-modal[open] { animation: fm-in .45s var(--ease-out); }
.film-modal[open]::backdrop { animation: fm-fade .45s var(--ease-out); }
@keyframes fm-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fm-fade { from { opacity: 0; } }
.fm-bar { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 8px 0 16px; font-size: 12px; color: #A3A39C; }
.fm-close { width: 32px; height: 32px; border-radius: 8px; color: #F5F4F0; font-size: 14px; transition: background-color .2s; }
.fm-close:hover { background: rgba(245, 244, 240, .1); }
.fm-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

.dt-pop { position: absolute; right: -6%; bottom: 10%; width: 64%; padding: 16px 20px; border-radius: 10px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--rule-2), 0 30px 60px -24px rgba(0, 0, 0, .45);
  transform: translateZ(0); opacity: 0; transition: transform 1.1s var(--ease-out) .3s, opacity .7s var(--ease-out) .3s; }
.vis-tools.in .dt-pop { transform: translateZ(110px); opacity: 1; }
.dp-q { font-size: 12px; color: var(--fg-2); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.dt-pop ul { list-style: none; margin: 8px 0 12px; padding: 0; font-size: 13px; line-height: 26px; }
.dt-pop li { display: flex; justify-content: space-between; } .dt-pop li span:last-child { color: var(--fg-2); }
.dp-none { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg); padding-top: 12px; border-top: 1px solid var(--rule); }

/* 05 · layers, gaps and type: one element pulled apart into three planes */
.pr-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.vis-layers { aspect-ratio: 5 / 4; display: grid; place-items: center; }
.lyr-stage { position: relative; width: 78%; aspect-ratio: 16 / 10; perspective: 1600px; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.lyr { position: absolute; inset: 0; border-radius: 10px; transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-38deg) translateZ(var(--z, 0px)); transition: transform 1.2s var(--ease-out); }
.lyr-1 { --z: 0px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--rule-2), 0 30px 60px -30px rgba(0, 0, 0, .35);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--rule) calc(25% - 1px) 25%); }
.lyr-2 { --z: 14px; box-shadow: inset 0 0 0 1px var(--rule-2); background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
.lyr-3 { --z: 28px; box-shadow: inset 0 0 0 1px var(--rule-2); background: color-mix(in srgb, var(--bg-2) 40%, transparent); }
.vis-layers.in .lyr-2 { --z: 90px; transition-delay: .1s; }
.vis-layers.in .lyr-3 { --z: 180px; transition-delay: .2s; }
.lyr-tag { position: absolute; left: 12px; top: -26px; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.lyr-1 i { position: absolute; top: 14%; bottom: 14%; border: 1px dashed var(--rule-2); border-radius: 4px; }
.lyr-1 .g1 { left: 8%; width: 26%; } .lyr-1 .g2 { left: 37%; width: 26%; } .lyr-1 .g3 { left: 66%; width: 26%; }
.lyr-2 i { position: absolute; top: 22%; bottom: 22%; border-radius: 6px; background: var(--fg); opacity: .85; }
.lyr-2 .c1 { left: 8%; width: 38%; } .lyr-2 .c2 { left: 54%; width: 38%; }
.lyr-2 .gap-l { position: absolute; left: 46%; width: 8%; top: 50%; height: 0; border-top: 2px solid var(--measure); }
.lyr-2 .gap-l::before, .lyr-2 .gap-l::after { content: ''; position: absolute; top: -8px; width: 2px; height: 14px; background: var(--measure); }
.lyr-2 .gap-l::before { left: 0; } .lyr-2 .gap-l::after { right: 0; }
.lyr-2 .gap-p { position: absolute; left: 50%; top: calc(50% - 30px); transform: translateX(-50%); padding: 4px 8px; border-radius: 4px; background: var(--measure); color: var(--white); font-size: 12px; }
.lyr-3 .t-aa { position: absolute; left: 10%; top: 16%; font-size: clamp(44px, 5vw, 76px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--fg); }
.lyr-3 i { position: absolute; left: 10%; height: 6px; border-radius: 3px; background: var(--fg-3); opacity: .7; }
.lyr-3 .t1 { top: 64%; width: 56%; } .lyr-3 .t2 { top: 74%; width: 38%; }
@media (prefers-reduced-motion: reduce) { .vis-layers .lyr-2 { --z: 90px; } .vis-layers .lyr-3 { --z: 180px; } }

/* ---------- 01 to 05 · the story: five rows, text left, visual right ----------
   The visual slides in from the right with its heading (chapters.js, scroll-linked).
   The section is full width and clips sideways, so the slide never makes the page scroll. */
.story { overflow-x: clip; padding-top: var(--story-pad, calc(var(--story-in) - var(--sec))); }   /* --story-pad: set by chapters.js so hero button to first heading is exactly --story-in */
.st-step { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col); align-items: center; }
.st-step + .st-step { margin-top: var(--sec); }
.st-step .ch-vis { will-change: transform, opacity; }

/* ---------- chapters ---------- */
/* the heading sits inside the pin, so the section's own top padding is the gap minus the pin's */
#features { --pin-top: calc(var(--header-h) + var(--block)); padding-top: calc(var(--story-out) - var(--pin-top)); }
.ch { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col); align-items: center; }
.ch-wide { grid-template-columns: 1fr; align-items: start; row-gap: 0; }
.ch-text .label { margin-bottom: 24px; }
.ch-text h2 { font-size: clamp(40px, 4.8vw, 80px); max-width: 12ch; }
.ch-wide .ch-text h2 { max-width: none; }
.ch-p { margin-top: 24px; color: var(--fg-2); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; max-width: 36ch; }
.ch-wide .ch-p { max-width: 52ch; }
.ch-p .key { min-width: 26px; height: 26px; font-size: 13px; vertical-align: 1px; margin: 0 4px; }
.ch-vis { margin: 0; position: relative; }
.vis-cap { font-size: 12px; color: var(--fg-2); margin-bottom: 12px; }
.vis-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; color: var(--fg-2); }
.dot-bad { width: 8px; height: 8px; background: var(--stray); flex: none; }

/* layout drawings shared by the design and the build */
.ly { width: 100%; height: auto; overflow: visible; }
.ly-bg { fill: var(--bg-2); }
.ly-card { fill: var(--bg); stroke: var(--rule-2); stroke-width: 1; }
.ly-ink { fill: var(--fg); opacity: .82; }
.ly-ink2 { fill: var(--fg-3); opacity: .55; }
.dims .dl { stroke: var(--measure); stroke-width: 1.5; fill: none; }
.dims .sp rect { fill: var(--measure); }
.dims .sp text { fill: var(--white); font: 400 12px var(--mono); text-anchor: middle; }
.dims .sp.bad rect { fill: var(--stray); }
.dims .sp.bad text { fill: var(--carbon); }
.dims .off .dl { stroke: var(--stray); }

/* 01, 02 · planes in depth: the same angle as chapter 05 */
.vis-iso { aspect-ratio: 5 / 4; display: grid; place-items: center; perspective: 1600px; }
.iso-stage { position: relative; width: 100%; aspect-ratio: 688 / 448; transform-style: preserve-3d;
  transform: rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)); transition: transform .6s var(--ease-out); }
.iso-plane { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-38deg) translateZ(var(--z, 0px)); transition: transform 1.2s var(--ease-out), opacity .8s var(--ease-out); }
.iso-plane.p1 .ly { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .22)); }
.iso-plane.p2 { --z: 0px; opacity: 0; border-radius: 12px; background: color-mix(in srgb, var(--bg-2) 45%, transparent); box-shadow: inset 0 0 0 1px var(--rule-2); }
.vis-iso.in .iso-plane.p2 { --z: 120px; opacity: 1; transition-delay: .25s; }
.iso-tag { position: absolute; left: 24px; top: -30px; font-size: 14px; color: var(--fg-2); white-space: nowrap; }
.p-clear .iso-tag { left: auto; right: 24px; }
/* the design, laid over the build: hover brings them together */
.ly.outline .ly-bg { fill: none; stroke: var(--fg); stroke-opacity: .45; stroke-dasharray: 6 5; }
.ly.outline .ly-card { fill: none; stroke: var(--fg); stroke-opacity: .7; stroke-dasharray: 5 4; }
.ly.outline .ly-ink, .ly.outline .ly-ink2 { fill: none; stroke: var(--fg); stroke-opacity: .4; }
@media (hover: hover) and (pointer: fine) { .vis-build.in:hover .iso-plane.p-onion { --z: 2px; transition-delay: 0s; } }
@media (pointer: coarse) { .vis-build.in .iso-plane.p-onion { animation: onion 5s var(--ease-in-out) 1.6s infinite; } }
@keyframes onion { 0%, 35%, 100% { transform: rotateX(56deg) rotateZ(-38deg) translateZ(120px); } 50%, 85% { transform: rotateX(56deg) rotateZ(-38deg) translateZ(2px); } }

/* 03 · review: one thread, one panel */
.vis-thread { perspective: 1600px; }
.th-panel { border-radius: 10px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--rule-2), var(--shadow);
  transform: rotateY(calc(-14deg + var(--ty, 0deg))) rotateX(calc(5deg + var(--tx, 0deg))); transition: transform .6s var(--ease-out); }
.th-head { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--rule); }
.th-title { font-weight: 500; font-size: 15px; }
.th-head .mono { font-size: 12px; color: var(--fg-2); }
.thread { list-style: none; margin: 0; padding: 0; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 20px; font-size: 15px; line-height: 1.45; }
.msg + .msg { border-top: 1px solid var(--rule); }
.js .msg { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.vis-thread.in .msg { opacity: 1; transform: none; }
.vis-thread.in .msg:nth-child(2) { transition-delay: .5s; } .vis-thread.in .msg:nth-child(3) { transition-delay: 1s; }
.vis-thread.in .msg:nth-child(4) { transition-delay: 1.5s; } .vis-thread.in .msg:nth-child(5) { transition-delay: 2s; }
.av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 500 13px var(--sans); background: var(--inv-bg); color: var(--inv-fg); }
.av-f { background: var(--bg-3); color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule-2); }
.who { font-weight: 500; margin-bottom: 4px; } .who .mono { font-size: 12px; color: var(--fg-3); font-weight: 400; margin-left: 8px; }
.msg p:not(.who) { color: var(--fg-2); }
.shot { margin-top: 8px; max-width: 280px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-2); }
.shot svg { width: 100%; height: auto; }
.shot .circle { fill: none; stroke: var(--stray); stroke-width: 5; }
.th-foot { display: flex; gap: 20px; padding: 12px 20px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--fg-2); background: var(--bg-3); }
.th-foot span:last-child { color: var(--fg); }
.js .th-foot { opacity: 0; transition: opacity .8s var(--ease-out) 2.6s; } .vis-thread.in .th-foot { opacity: 1; }

/* 04 · tools: the computed list */
.vis-tools { perspective: 1600px; }
.tl-stage { position: relative; transform-style: preserve-3d; transform: rotateY(calc(-18deg + var(--ty, 0deg))) rotateX(calc(6deg + var(--tx, 0deg))); transition: transform .6s var(--ease-out); }
.dt { border-radius: 10px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--rule-2), var(--shadow); height: 480px; display: flex; flex-direction: column; }
.dt-head { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 12px; color: var(--fg-2); border-bottom: 1px solid var(--rule); }
.dt-filter { margin: 8px 16px; height: 28px; border-radius: 6px; background: var(--bg-3); color: var(--fg-2); font-size: 12px; display: flex; align-items: center; padding: 0 12px; }
.dt-view { flex: 1; overflow: hidden; position: relative; }
.dt-view::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--bg-2)); }
.dt-list { list-style: none; margin: 0; padding: 8px 16px; font-size: 12px; line-height: 23px; will-change: transform; }
.dt-list li { display: flex; justify-content: space-between; gap: 16px; white-space: nowrap; }
.dt-list li span:first-child { color: var(--fg-2); } .dt-list li span:last-child { color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; }

/* 06 · what it reads: a list beside one sticky screen */
/* 06 · what it reads: a sticky pin; the index on the left, a live element on Offpx's stage on the right */
.rd { position: relative; height: calc(8 * 72svh + 100svh); }
.rd-pin { position: sticky; top: 0; height: 100svh; padding: var(--pin-top) 0 32px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: var(--col); align-items: start; }
.rd-head { grid-column: 1 / -1; align-self: start; padding-bottom: var(--block); }
/* shorter laptop screens: the index tightens so the pinned section still fits */
@media (min-width: 901px) and (max-height: 820px) {
  #features { --pin-top: calc(var(--header-h) + 24px); }
  .rd-head { padding-bottom: 32px; }
  .rd-i button { padding: 8px 0; font-size: 15px; }
  .rd-t { font-size: 15px; }
  .rd-i.is-on button { padding: 12px 0 16px; }
  .rd-i.is-on .rd-t { font-size: 24px; }
  .rd-head h2 { font-size: clamp(40px, 4.4vw, 64px); }
}
/* the index: eight readings; the open one carries its title, its line and its live value */
.rd-index { position: relative; padding-left: 24px; }
.rd-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule-2); }
.rd-rail i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--fg); transform-origin: top; transform: scaleY(var(--p, .125)); transition: transform .6s var(--ease-out); }
.rd-list { list-style: none; margin: 0; padding: 0; }
.rd-i button { width: 100%; text-align: left; display: grid; grid-template-columns: 32px 1fr auto; column-gap: 16px; align-items: baseline; padding: 12px 0; color: var(--fg-3); transition: color .3s var(--ease-out); }
.rd-n { font-size: 12px; }
.rd-t { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; transition: font-size .45s var(--ease-out), letter-spacing .45s var(--ease-out); }
.rd-v { font-size: 12px; color: var(--fg-2); opacity: 0; transform: translateX(8px); transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); white-space: nowrap; }
.rd-d { grid-column: 2 / -1; display: grid; grid-template-rows: 0fr; opacity: 0; color: var(--fg-2); font-size: 17px; line-height: 1.5; transition: grid-template-rows .45s var(--ease-out), opacity .45s var(--ease-out); }
.rd-d > span { min-height: 0; overflow: hidden; max-width: 36ch; padding-top: 8px; }
.rd-i.is-done button { color: var(--fg-2); }
.rd-i button:hover { color: var(--fg); }
.rd-i.is-on button { color: var(--fg); padding: 20px 0 24px; }
.rd-i.is-on .rd-t { font-size: 32px; letter-spacing: -0.03em; line-height: 1.15; }
.rd-i.is-on .rd-v { opacity: 1; transform: none; }
.rd-i.is-on .rd-d { grid-template-rows: 1fr; opacity: 1; }
/* the product as it is: the toolbar, the page on a dotted stage scaled to fit, the panel docked right.
   Its colours are the product's own dark theme, in both site themes. */
.rd-app { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 248px; grid-template-rows: 44px clamp(320px, calc(100svh - 400px), 520px); border-radius: 12px; overflow: hidden;
  background: #0F0F0F; box-shadow: 0 0 0 1px var(--rule-2), 0 40px 80px -40px rgba(0, 0, 0, .6); color: #A3A39C; font-size: 12px; }
.rx-tb { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #171717; border-bottom: 1px solid rgba(245, 244, 240, .08); white-space: nowrap; }
.rx-logo { display: flex; align-items: center; gap: 8px; margin-right: 4px; color: #F5F4F0; font-weight: 500; font-size: 13px; }
.rx-logo i { position: relative; width: 12px; height: 8px; margin-top: 4px; background: #F5F4F0; }
.rx-logo i::after { content: ''; position: absolute; left: 6px; top: -4px; width: 8px; height: 4px; background: var(--stray); }
.rx-seg { display: flex; padding: 2px; border-radius: 8px; background: #242423; } .rx-seg span { padding: 4px 8px; border-radius: 6px; }
.rx-seg .on, .rx-dev .on { background: #3A3A38; color: #F5F4F0; }
.rx-dev { display: flex; gap: 4px; } .rx-dev span { min-width: 24px; height: 24px; padding: 0 4px; border-radius: 6px; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.rx-dev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.rx-fld { min-width: 48px; padding: 4px 8px; border-radius: 6px; background: #242423; color: #F5F4F0; text-align: center; }
.rx-pct { margin-left: auto; }
.rx-stage { position: relative; overflow: hidden; background: #0F0F0F radial-gradient(rgba(245, 244, 240, .14) 1px, transparent 1px) 0 0 / 16px 16px; }
/* the framed page: real pixels, scaled down to fit, as the product's Fit does */
.rd-page { --ink: #171717; --graphite: #6B6A64; position: absolute; left: 50%; top: 50%; width: 640px; padding: 32px; background: #F5F4F0; container-type: inline-size;
  transform: translate(-50%, -50%) scale(var(--fit, 1)); box-shadow: 0 0 0 1px rgba(245, 244, 240, .14); }
.rx-cap { position: absolute; left: 0; bottom: 100%; padding-bottom: 8px; font-size: 11px; color: #8A8A83; white-space: nowrap; transform-origin: left bottom; transform: scale(calc(1 / var(--fit, 1))); }
.rd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@container (max-width: 420px) { .rd-cards { grid-template-columns: 1fr; } .rd-c2 .rd-img { display: none; } }
.rd-card { background: #FFFFFF; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px #E8E7E2; }
.rd-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rd-body { padding: 24px; }
.rd-h { margin: 0; font: 500 20px/28px var(--sans); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.rd-body p { margin: 4px 0 0; font: 400 14px/20px var(--sans); color: var(--graphite); }
/* only the marks the product draws on a page: hover outline, A and B, the dimension line */
.rd-ov { position: absolute; inset: 0; pointer-events: none; }
.rd-ov > * { position: absolute; opacity: 0; transition: opacity .35s var(--ease-out); }
.rd-ov > .is-on { opacity: 1; }
.ro-hl { border: 1px solid var(--hl-a); background: rgba(42, 81, 253, .12); border-radius: 1px; }
.ro-hl.b { border-color: var(--hl-b); background: rgba(255, 178, 36, .14); }
.ro-hl.hov { border-style: dashed; background: rgba(42, 81, 253, .05); }
.ro-tag { position: absolute; top: -24px; left: -1px; padding: 4px 8px; border-radius: 6px; background: var(--hl-a); color: #FFFFFF; font: 400 10px/1.4 var(--mono); white-space: nowrap; }
.ro-hl.b .ro-tag { background: var(--hl-b); color: var(--carbon); } .ro-hl.hov .ro-tag { background: #16181D; }
.ro-ml { background: var(--measure); }
.ro-lab { transform: translate(-50%, -50%); padding: 2px 6px; border-radius: 4px; background: var(--measure); color: #FFFFFF; font: 400 11px/1.3 var(--mono); white-space: nowrap; }
/* the panel */
.rx-pnl { display: flex; flex-direction: column; min-width: 0; background: #171717; color: #F5F4F0; border-left: 1px solid rgba(245, 244, 240, .08); }
.rx-ph { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid rgba(245, 244, 240, .08); font-weight: 500; font-size: 13px; }
.rx-units { position: relative; display: flex; padding: 2px; border-radius: 8px; background: #242423; font-weight: 400; font-size: 11px; color: #A3A39C; }
.rx-units span { position: relative; z-index: 1; width: 32px; padding: 4px 0; text-align: center; transition: color .3s; } .rx-units span.on { color: #F5F4F0; }
.rx-units i { position: absolute; top: 2px; bottom: 2px; left: 2px; width: 32px; border-radius: 6px; background: #3A3A38; transition: transform .35s var(--ease-out); }
.rx-pb { position: relative; flex: 1; overflow: hidden; }
.rx-pv { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
.rx-pv.is-on { opacity: 1; transform: none; }
.rx-hero { display: grid; gap: 12px 8px; padding: 16px; border-bottom: 1px solid rgba(245, 244, 240, .08); }
.rx-tl { display: block; color: #A3A39C; font-size: 11.5px; }
.rx-tv { display: block; font: 500 22px/1.2 var(--sans); letter-spacing: -0.02em; color: #F5F4F0; white-space: nowrap; }
.rx-tv.big { font-size: 34px; letter-spacing: -0.03em; }
.rx-tu { margin-left: 4px; color: #76766F; font: 400 11.5px var(--sans); letter-spacing: 0; }
.rx-ts { display: block; margin-top: 4px; color: #A3A39C; font: 400 12px var(--mono); }
.rx-sel { display: grid; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(245, 244, 240, .08); }
.rx-sel div { display: flex; align-items: center; gap: 8px; font: 400 11.5px var(--mono); color: #F5F4F0; }
.rx-sel b { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font: 500 9px var(--sans); color: #FFFFFF; background: var(--hl-a); }
.rx-sel b.b { background: var(--hl-b); color: var(--carbon); } .rx-sel em { margin-left: auto; font-style: normal; color: #A3A39C; }
.rx-sec { padding: 12px 16px; border-bottom: 1px solid rgba(245, 244, 240, .08); }
.rx-sec h5 { display: flex; justify-content: space-between; margin: 0 0 8px; font-weight: 500; font-size: 12px; color: #F5F4F0; }
.rx-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; color: #A3A39C; }
.rx-row b { font-weight: 400; color: #F5F4F0; text-align: right; }
.rx-hx { display: block; text-align: right; font: 400 11px var(--mono); color: #A3A39C; }
.rx-tok { border-radius: 4px; font-family: var(--mono); color: #F5F4F0; text-decoration: underline dotted #76766F; text-underline-offset: 4px; transition: background-color .3s, box-shadow .3s; }
.rx-tok.is-hot { background: rgba(42, 81, 253, .35); box-shadow: 0 0 0 4px rgba(42, 81, 253, .35); }
.rx-tok.is-copied { background: var(--ok); box-shadow: 0 0 0 4px var(--ok); color: var(--ok-ink); text-decoration: none; transition: none; }
.rx-bm { margin-top: 4px; padding: 8px; border: 1px solid rgba(245, 244, 240, .12); border-radius: 6px; font: 400 10.5px var(--mono); text-align: center; }
.rx-bm .lb { text-align: left; font-family: var(--sans); } .rx-bm .lr { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.rx-bm .in { flex: 1; padding: 4px 8px; border: 1px solid rgba(245, 244, 240, .12); border-radius: 4px; }
.rx-bm .ct { flex: 1; padding: 8px 4px; border-radius: 4px; background: #242423; color: #F5F4F0; }
.rx-mh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #F5F4F0; }
.rx-fmt { padding: 2px 6px; border-radius: 4px; background: #242423; font: 400 11px var(--mono); }
.rx-pf { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(245, 244, 240, .08); }
.rx-pf i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--measure); }
.rx-pf b { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: #242423; color: #F5F4F0; font-weight: 400; }
.rx-cur { position: absolute; left: 0; top: 0; z-index: 3; width: 20px; height: 20px; opacity: 0; pointer-events: none; transition: transform .7s var(--ease-out), opacity .3s; }
.rx-cur svg { display: block; width: 20px; height: 20px; fill: #F5F4F0; stroke: #171717; stroke-width: 1.5; }

/* 07 · privacy */
.tr-sub { font-size: 14px !important; }
.tr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: var(--block); }
.tr-fact { border-top: 1px solid var(--rule-2); padding-top: 20px; }
.tr-fact h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.tr-fact p { color: var(--fg-2); margin-top: 12px; max-width: 34ch; }
.tr-link { display: inline-block; justify-self: start; margin-top: 40px; font-weight: 500; border-bottom: 1.5px solid var(--fg); padding-bottom: 4px; }
.tr-link::after { content: ' →'; }

/* close: the line, who it is for, the install */
.close { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--gutter); display: grid; justify-items: center; text-align: center; }
.cl-title { font-size: clamp(40px, 4.8vw, 80px); max-width: 14ch; }
.cl-who { margin-top: 24px; color: var(--fg-2); font-size: 14px; }
.cl-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }

/* intro */
.is-intro body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 200; background: var(--carbon); }
.in-px { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; background: var(--stray); transform: translate(-50%, -50%); animation: blink 1.1s steps(1) 1; }
@keyframes blink { 0%, 30%, 60% { opacity: 1; } 15%, 45% { opacity: .2; } }
.in-x, .in-y { position: absolute; display: block; }
.in-x { left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(163, 163, 156, .5); transform: scaleX(0); animation: grow .9s cubic-bezier(.87,0,.13,1) .35s forwards; }
.in-y { top: 0; bottom: 0; left: 50%; border-left: 1px dashed rgba(163, 163, 156, .5); transform: scaleY(0); animation: grow .9s cubic-bezier(.87,0,.13,1) .35s forwards; }
@keyframes grow { to { transform: none; } }
.in-label { position: absolute; left: 50%; top: calc(50% + 30px); transform: translateX(-50%); color: var(--paper); font-size: 18px; opacity: 0; animation: fade .4s .5s forwards; }
.in-read { position: absolute; left: calc(50% + 22px); top: calc(50% - 30px); color: var(--ash); font-size: 13px; white-space: pre; opacity: 0; animation: fade .4s .8s forwards; }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 900px) {
  /* one column: heading, then its visual underneath */
  .st-step { grid-template-columns: 1fr; gap: var(--block); align-items: start; }
  .st-step .vis-iso, .st-step .vis-layers { margin-top: 72px; }
  .ch { grid-template-columns: 1fr; }
  /* readings on phones: the stage on top, only the open reading below it */
  .rd { height: calc(8 * 64svh + 100svh); }
  #features { --pin-top: calc(var(--header-h) + 16px); }
  .rd-pin { grid-template-columns: 1fr; grid-template-rows: auto; gap: 24px; align-content: start; }
  .rd-head { order: -2; padding-bottom: 0; }
  /* the panel needs a desktop; a phone sees the toolbar, the stage and the marks */
  .rd-app { order: -1; grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px clamp(240px, calc(100svh - 520px), 380px); }
  .rx-pnl, .rx-seg, .rx-dev [data-d="t"], .rx-dev [data-d="d"] { display: none; }
  .rd-index { padding-left: 16px; }
  .rd-i:not(.is-on) { display: none; }
  .rd-i.is-on button { padding: 0; }
  .rd-i.is-on .rd-t { font-size: 24px; }
  .rd-v { grid-column: 2 / -1; grid-row: 2; padding-top: 4px; }
  .ruler-y { display: none; }
  .tr-facts { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .msg, .js .th-foot { opacity: 1; transform: none; }
  .iso-plane.p2 { --z: 120px; opacity: 1; } .dt-pop { opacity: 1; transform: translateZ(110px); }
}
