@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo.e5c2f77266.woff2") format("woff2-variations");
  font-weight: 300 600;
  font-stretch: 100% 125%;
  font-display: swap;
}

/* Dark first, light by the device's setting. A cool navy page with one warm
   accent, used sparingly. The hero stays dark in both themes, like a screen. */
:root {
  --color-ground: oklch(0.155 0.03 252);
  --color-raised: oklch(0.19 0.034 252);
  --color-raised-2: oklch(0.235 0.037 252);
  --color-ink: oklch(0.955 0.008 245);
  --color-ink-soft: oklch(0.8 0.02 245);
  --color-ink-faint: oklch(0.68 0.022 245);
  --color-line: oklch(0.955 0.008 245 / 0.12);
  --color-line-strong: oklch(0.955 0.008 245 / 0.26);
  --color-link: oklch(0.84 0.09 62);
  --color-link-hover: oklch(0.92 0.06 70);
  --color-accent: oklch(0.84 0.09 62);
  --color-accent-soft: oklch(0.84 0.09 62 / 0.14);
  --color-on-accent: oklch(0.155 0.03 252);
  --color-focus: oklch(0.84 0.09 62);
  --color-cool: oklch(0.78 0.06 245);
  --color-good: oklch(0.75 0.13 155);
  --color-shadow: oklch(0 0 0 / 0.38);
  --color-glass: oklch(0.155 0.03 252 / 0.66);
  --color-glass-hi: oklch(1 0 0 / 0.055);
  --color-glass-lo: oklch(1 0 0 / 0.015);
  --color-glass-edge: oklch(1 0 0 / 0.07);
  --color-glass-menu: oklch(0.19 0.034 252);
  --color-head-ink: oklch(0.955 0.008 245);
  --color-head-soft: oklch(0.8 0.02 245);
  --color-head-link: oklch(0.84 0.09 62);
  --color-head-focus: oklch(0.84 0.09 62);
  --color-head-glass: oklch(0.155 0.03 252 / 0.66);
  --color-head-solid: oklch(0.155 0.03 252 / 0.97);
  --color-head-glass-hi: oklch(1 0 0 / 0.055);
  --color-head-glass-lo: oklch(1 0 0 / 0.015);
  --color-head-glass-edge: oklch(1 0 0 / 0.07);
  --color-head-menu: oklch(0.19 0.034 252);
  --color-dusk: oklch(0.31 0.09 300 / 0.22);
  --color-horizon-1: oklch(0.62 0.13 15);
  --color-horizon-2: oklch(0.78 0.12 55);
  --color-horizon-3: oklch(0.9 0.08 80);
  --color-hold: oklch(0.88 0.11 85);
  --color-hold-ground: oklch(0.3 0.05 85);
  --color-refuse: oklch(0.7 0.16 25);
  /* Paid before it's yours: the client's phone keeps paper and ink in both themes */
  --color-sh-paper: oklch(0.97 0.012 80);
  --color-sh-ink: oklch(0.24 0.02 50);
  --color-sh-soft: oklch(0.45 0.02 50);
  --color-sh-line: oklch(0.24 0.02 50 / 0.14);
  --color-sh-line-strong: oklch(0.24 0.02 50 / 0.32);
  --color-sh-hover: oklch(0.24 0.02 50 / 0.06);
  --color-sh-acc: oklch(0.5 0.13 45);
  --color-sh-acc-solid: oklch(0.5 0.13 45);
  --color-sh-ok: oklch(0.44 0.1 155);
  --color-sh-out: oklch(0.5 0.17 25);
  --color-sh-band: oklch(0.92 0.035 75);
  --color-sh-frame: oklch(0.13 0.01 252);
  --color-sh-notch: oklch(0.3 0.01 252);
  --color-sh-url: oklch(0.2 0.01 252);
  --color-sh-url-ink: oklch(0.86 0.01 245);
  --color-sh-bag-0: oklch(0.72 0.06 140);
  --color-sh-bag-1: oklch(0.66 0.11 45);
  --color-sh-bag-2: oklch(0.48 0.05 250);
  --color-sh-bag-top: oklch(0.3 0.02 50);
  --color-sh-bag-crimp: oklch(0.62 0.02 60);
  --color-sh-label: oklch(0.96 0.015 85);
  --color-sh-bean: oklch(0.36 0.05 50);
  --color-sh-tape: oklch(0.955 0.012 85);
  --color-sh-tape-ink: oklch(0.25 0.02 60);
  --color-sh-tape-soft: oklch(0.44 0.02 60);
  --color-sh-tape-up: oklch(0.44 0.11 155);
  --color-sh-tape-rule: oklch(0.25 0.02 60 / 0.25);
  --color-sh-tape-new: oklch(0.9 0.07 85);
  --color-wk-paper: oklch(0.975 0.008 90);
  --color-wk-ink: oklch(0.24 0.02 260);
  --color-wk-soft: oklch(0.44 0.02 260);
  --color-wk-line: oklch(0.24 0.02 260 / 0.16);
  --color-wk-bar: oklch(0.2 0.01 252);
  --color-wk-bar-ink: oklch(0.86 0.01 245);
  --color-wk-err: oklch(0.5 0.18 25);
  --color-fb-paper: oklch(0.929 0.008 48.6);
  --color-fb-rose: oklch(0.851 0.026 26.6);
  --color-fb-ink: oklch(0.273 0.010 61.0);
  --color-fb-olive: oklch(0.463 0.045 114.6);
  --color-fb-olive-deep: oklch(0.402 0.040 115.6);
  --color-fb-soft: oklch(0.40 0.014 59.3);
  --color-fb-shadow: oklch(0.273 0.010 61.0 / 0.22);
  --color-pd-paper: oklch(0.975 0.01 85);
  --color-pd-ink: oklch(0.24 0.02 60);
  --color-pd-soft: oklch(0.44 0.02 60);
  --color-pd-line-strong: oklch(0.24 0.02 60 / 0.3);
  --color-pd-hover: oklch(0.24 0.02 60 / 0.06);
  --color-pd-rose: oklch(0.54 0.16 15);
  --color-pd-ok: oklch(0.46 0.11 155);
  --color-pd-band: oklch(0.93 0.03 70);
  --color-pd-ok-band: oklch(0.93 0.05 155);
  --color-pd-frame: oklch(0.13 0.01 252);
  --color-pd-notch: oklch(0.3 0.01 252);
  --color-pd-url: oklch(0.2 0.01 252);
  --color-pd-url-ink: oklch(0.86 0.01 245);
  --color-pd-fav-ground: oklch(0.2 0.02 60 / 0.55);
  --color-hero-ground: oklch(0.14 0.035 255);
  --color-hero-ink: oklch(0.96 0.01 80);
  --color-hero-ink-soft: oklch(0.86 0.02 245);
  --color-hero-wash: oklch(0.14 0.035 255 / 0.7);

  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --stretch-wide: 125%;
  --stretch-semi: 112%;
  --weight-light: 300;
  --weight-display: 350;
  --weight-body: 400;
  --weight-medium: 500;
  --weight-strong: 600;

  --text-small: 0.8125rem;
  --text-ui: 0.9375rem;
  --text-body: 1.0625rem;
  --text-lead: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --text-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  --text-h1: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem);
  --text-display: clamp(2.4rem, 1.1rem + 4vw, 4.6rem);
  /* A closing statement, a step below the heading above it. */
  --text-statement: clamp(1.4rem, 1.1rem + 1.2vw, 2.125rem);
  /* The contact address on one line, down to a 320 px screen. */
  --text-address: min(var(--text-h2), 5.3vw);
  --text-wordmark: 1.0625rem;

  --leading-display: 1.02;
  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --leading-lead: 1.5;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 9rem;
  --space-head-top: clamp(3.5rem, 2rem + 6vw, 8rem);
  --space-head-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem);
  --space-section: clamp(3rem, 2rem + 5vw, 7rem);
  --gutter: 1rem;
  --gutter-wide: 2.5rem;
  --gut-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gut-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --page-max: 80rem;
  --measure: 64ch;
  --measure-lede: 44ch;
  --measure-head: 17ch;
  --measure-h2: 18ch;
  --measure-intro: 40ch;
  --measure-note: 72ch;
  --fact-min: 15rem;
  --header-height: 4.75rem;
  --header-height-phone: 4.25rem;
  --menu-width: 16rem;
  --menu-edge: 2rem;
  --viewport-width: 100vw;
  --control-height: 2.875rem;
  --target-min: 2.75rem;
  --button-pad-block: 0.6rem;
  --button-pad-inline: 1.2rem;
  --menu-icon-width: 0.95rem;
  --menu-icon-height: 0.65rem;
  --menu-icon-line: 1.5px;
  --reg-size: 14px;
  --reg-offset: -8px;

  --hairline: 1px;
  --rule-strong: 2px;
  --radius: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --focus-width: 2px;
  --focus-offset: 3px;
  --focus-radius: 3px;
  --underline-offset: 0.2em;
  --underline-width: 1px;
  --underline-width-hover: 2px;
  --sup-rise: -0.5em;
  --text-sup: 0.7em;
  --skip-hidden: -4rem;
  --shadow-y: 1.5rem;
  --shadow-blur: 3.5rem;
  --blur-glass: 18px;
  --rise-distance: 14px;
  --menu-drop: -4px;

  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --time-micro: 150ms;
  --time-quick: 180ms;
  --time-menu: 200ms;
  --time-open: 300ms;
  --time-route: 450ms;
  --time-fade: 250ms;
  --scroll-glass: 140px;
  --room-ink: var(--color-ink);
  --room-soft: var(--color-ink-soft);
  --room-acc: var(--color-accent);
  --safe-ink: var(--color-ink);
  --cross: 0;
  --time-instant: 0.01ms;

  --layer-header: 20;
  --layer-menu: 30;
  --layer-skip: 40;
  --text-giant: clamp(2.6rem, 1.2rem + 5.4vw, 5.8rem);
  --shadow: 0 var(--shadow-y) var(--shadow-blur) var(--color-shadow);
  --z: 0;
  --nl: 7;
  --gap: 0px;
  --lift: 0px;
  --ar: 1.6;
  --w: 34rem;
  --rx: 0deg;
  --rz: 0deg;
  --tx: 0;
  --ty: 0;
  --tie-t: 0px;
  --tie-h: 0px;
  --tie-a: 0px;
  --tie-b: 0px;
  --color-mark: oklch(0.72 0.15 28);
  --color-paper: oklch(0.95 0.01 75);
  --color-paper-ink: oklch(0.27 0.01 285);
  --color-paper-soft: oklch(0.63 0.01 300);
  --color-paper-accent: oklch(0.6 0.13 45);
  --color-hero-sky: oklch(0.24 0.06 270);
  --color-hero-sun: oklch(0.68 0.14 45);
  --color-hero-warm: oklch(0.83 0.11 65);
  --color-hero-hot: oklch(0.97 0.03 80);
  --color-hero-cool: oklch(0.78 0.07 245);
  --color-hero-red: oklch(0.65 0.18 28);
  /* Home: colors */
--color-hero-1: oklch(0.96 0.01 80);
  --color-hero-2: oklch(0.14 0.035 255 / 0.7);
  --color-hero-3: oklch(0.97 0.01 80);
  --color-hero-4: oklch(0.86 0.015 245);
  --color-hero-5: oklch(0.96 0.01 80 / 0.3);
  --color-hero-6: oklch(0.96 0.01 80 / 0.08);
  --color-hero-7: oklch(0.96 0.01 80 / 0.6);
  --color-hero-8: oklch(0.14 0.035 255 / 0.85);
  --color-vig-1: oklch(0.75 0.13 155);
  --color-un-1: oklch(0.86 0.02 245);
  --color-un-2: oklch(0.82 0.11 70);
  --color-un-3: oklch(0.72 0.15 28);
  --color-un-4: oklch(0.86 0.1 62);
  --color-un-5: oklch(0.955 0.008 245);
  --color-un-6: oklch(0.955 0.008 245 / 0.18);
  --color-un-7: oklch(0.9 0.01 245);
  --color-un-8: oklch(0.8 0.02 245);
  --color-xv-1: oklch(0 0 0 / 0.4);
  --color-xv-2: oklch(0.959 0.007 80.7);
  --color-xv-3: oklch(0.228 0.012 278);
  --color-xv-4: oklch(0 0 0 / 0.12);
  --color-xv-5: oklch(0.455 0.013 280.2);
  --color-xv-6: oklch(0.965 0.006 75.4);
  --color-xv-7: oklch(0.933 0.011 76.6);
  --color-xv-8: oklch(0.19 0.01 67.1);
  --color-xv-9: oklch(0.864 0.017 76.1);
  --color-xv-10: oklch(0.519 0.109 8.4);
  --color-xv-11: oklch(0.527 0.012 76.5);
  --color-xv-12: oklch(1 0 0);
  --color-xv-13: oklch(0.914 0.012 79.8);
  --color-xv-14: oklch(0.14 0.035 255 / 0.82);
  --color-xv-15: oklch(0.965 0.007 80.7);
  --color-xv-16: oklch(0.14 0.035 255 / 0.95);
  --color-xv-17: oklch(0.297 0 0);
  --color-xv-18: oklch(0.145 0 0);
  --color-xv-19: oklch(0.93 0.01 85);
  --color-xv-20: oklch(0.8 0.115 84);
  --color-home-1: oklch(0.66 0.13 15);
  --un-hand: var(--color-un-1);
  --un-rewrite: var(--color-un-2);
  --un-recheck: var(--color-un-3);
  --un-clean: var(--color-un-4);
  --un-node: var(--color-un-5);
  --un-ring: var(--color-un-6);
  --un-label: var(--color-un-7);
  --un-note: var(--color-un-8);
  /* Home: components */
/* hero */
  --hero-min-height: clamp(36rem, 88svh, 58rem);
  --hero-animation: hero-drift 48s ease-in-out infinite alternate;
  --hero-background: 90deg;
  --hero-background-2: linear-gradient(180deg, #0b1026 0%, #3c2a63 30%, #c4626a 44%, #f0a06a 48%, #141a33 52%, #0a0e1f 100%);
  --hero-padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  --hero-font-size: clamp(2.4rem, 1.1rem + 4vw, 4.6rem);
  --hero-max-width: 12ch;
  --hero-max-width-2: min(46vw, 40rem);
  --hero-max-width-3: 40ch;
  --hero-min-height-2: clamp(40rem, 100svh, 52rem);
  /* vig */
  --vig-font: 11px;
  --vig-font-size: 9px;
  --vig-animation: 6s;
  --vig-animation-delay: 0.5s;
  --vig-animation-delay-2: 0.75s;
  --vig-animation-2: v-cycle 8s infinite;
  --vig-animation-delay-3: 2s;
  --vig-animation-delay-4: 4s;
  --vig-animation-delay-5: 6s;
  --vig-animation-3: 7s;
  --vig-animation-4: 5s;
  --vig-animation-5: 4s;
  --vig-animation-6: v-draw 4s ease infinite;
  --vig-animation-7: v-slide 6s linear infinite;
  --vig-animation-8: v-blink 6s infinite;
  --vig-transform: translateY(8px) scale(0.97);
  --vig-transform-2: translateY(-4px);
  --vig-transform-3: translateX(116px);
  --vig-transform-4: translateY(-14px);
  --vig-transform-5: translateY(-6px);
  --vig-transform-6: translateX(-80px);
  /* un */
  --un-min-height: 2.875rem;
  --un-min-height-2: 2.25rem;
  --un-left: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  --un-top: clamp(1rem, 0.5rem + 2vw, 2rem);
  --un-max-width: 26rem;
  --un-transition: opacity 0.6s;
  --un-vertical-align: -0.08em;
  --un-min-width: 2ch;
  --un-font-size: 14px;
  --un-font-size-2: 13px;
  --un-border-top-width: 3px;
  --un-grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  --un-padding-left: 1.1rem;
  /* xv */
  --xv-min-height: clamp(22rem, 46vw, 38rem);
  --xv-perspective: 2200px;
  --xv-width: 34rem;
  --xv-transform: 1deg;
  --xv-transition: 1s;
  --xv-lift: clamp(32px, 4.5vw, 64px);
  --xv-transition-2: 0.9s;
  --xv-transition-3: 45ms;
  --xv-transition-4: 0.4s;
  --xv-border-radius: 4px;
  --xv-box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18), 0 18px 40px rgb(0 0 0 / 0.35);
  --xv-left: -1.75rem;
  --xv-bottom: -0.25rem;
  --xv-width-2: 1.4rem;
  --xv-height: 1.4rem;
  --xv-font-size: 0.6875rem;
  --xv-gap: clamp(20px, 3vw, 40px);
  --xv-rx: 56deg;
  --xv-rz: -38deg;
  --xv-transform-2: 26px;
  --xv-transition-duration: 0.35s;
  --xv-box-shadow-2: 22px;
  --xv-box-shadow-3: 46px;
  --xv-transform-3: 34px;
  --xv-transition-5: 0.5s;
  --xv-width-3: 1.6rem;
  --xv-height-2: 1.6rem;
  --xv-font-size-2: 0.75rem;
  --xv-max-width: 34ch;
  --xv-padding-left: 1.25rem;
  --xv-left-2: 0.3rem;
  --xv-transition-6: 0.35s;
  --xv-left-3: -1px;
  --xv-max-width-2: 40rem;
  --xv-transform-4: translateY(8px) scale(0.98);
  --xv-animation-duration: 0.6s;
  --xv-gap-2: 0.3rem;
  --xv-border-radius-2: 3px;
  --xv-font-size-3: clamp(0.4rem, 0.9vw, 0.62rem);
  --xv-font-size-4: clamp(0.9rem, 2.4vw, 1.6rem);
  --xv-font-size-5: clamp(0.45rem, 0.9vw, 0.7rem);
  --xv-font-size-6: clamp(0.4rem, 1vw, 0.7rem);
  --xv-height-3: 0.35rem;
  --xv-font-size-7: clamp(0.3rem, 0.7vw, 0.5rem);
  --xv-outline-offset: 4px;
  --xv-backdrop-filter: blur(6px);
  --xv-width-4: 0.9rem;
  --xv-height-4: 0.9rem;
  --xv-border: 1.5px solid currentColor;
  --xv-box-shadow-4: 3px -3px 0 -1.5px currentColor;
  --xv-transform-5: translateY(-2px);
  --xv-filter: blur(3px);
  --xv-transform-6: translateX(16px);
  --xv-transition-7: opacity 0.5s 0.2s, visibility 0s;
  --xv-min-height-2: clamp(18rem, 78vw, 30rem);
  --xv-w: 19rem;
  --xv-w-2: 29rem;
  /* How far a layer rises from its place in the stack, set per state. */
  --xvl-dz: 0px;
  /* Sign-in that holds */
  --lk-angle: 160deg;
  --lk-screw: 0.625rem;
  --lk-slot: 135deg;
  --lk-slot-a: 42%;
  --lk-slot-b: 58%;
  --lk-n: 1.75rem;
  --lk-fig-w: 12rem;
  --lk-tx: 11px;
  --lk-lift: -6px;
  --lk-key-x: 148px;
  --lk-key-y: -37px;
  --lk-tok-x: 91px;
  --lk-tok-xb: -91px;
  --lk-door: 8s;
  --lk-trip: 11s;
  --lk-travel: 9s;
  --lk-step: 0.55s;
  --lk-staff: 3.4s;
  --lk-step-s: 0.42s;
  /* Galleries: the flow */
  --fl-glow-size: 60% 80%;
  --fl-glow-at: 60% 70%;
  --fl-tx: 15px;
  --fl-tx-s: 12px;
  --fl-cycle: 14s;
  --fl-stagger: 0.7s;
  --fl-stagger-s: 0.35s;
  --fl-proof-x: 620px;
  --fl-proof-still: 150px;
  --fl-press-y: 10px;
  --fl-coin-from: -60px;
  --fl-bar-lift: -64px;
  --fl-orig-x: 400px;
  --fl-n: 1.75rem;
  --fl-fig-w: 12rem;
  --fl-bob: 1.6s;
  --fl-bob-a: 0.4s;
  --fl-bob-b: 0.8s;
  --fl-bob-c: 1.2s;
  --fl-bob-x: 3px;
  --fl-bob-y: -4px;
  --fl-down: 28px;
  --fl-v-w: 24rem;
  --fl-proof-y: 290px;
  --fl-orig-y: 270px;
  --fl-bar-slide: 64px;
  /* Paid before it's yours */
  --sh-word-tracking: 0.02em;
  --sh-dot: 2rem;
  --sh-pulse: 1.4s;
  --sh-flip: 0.5s;
  --sh-flip-y: 0.5rem;
  --sh-print: 1.1s;
  --sh-phone-w: 22rem;
  --sh-phone-r: 2.5rem;
  --sh-screen-r: 1.5rem;
  --sh-screen-h: 36rem;
  --sh-notch-w: 4.5rem;
  --sh-notch-h: 0.375rem;
  --sh-art-h: 4.5rem;
  --sh-prod-art: 3.5rem;
  --sh-art-stroke: 1.2px;
  --sh-art-dash: 2 2;
  --sh-d-w: 2.75rem;
  --sh-run-w: 2.5rem;
  --sh-time-w: 4.75rem;
  --sh-who-w: 3.5rem;
  --sh-out-w: 3rem;
  --sh-out-w-s: 1.75rem;
  --sh-lane-top: 3px;
  --sh-check: 1.125rem;
  --sh-badge: 1.25rem;
  --sh-measure: 62ch;
  --lg-fig-w: 12rem;
  --lg-cycle: 12s;
  --lg-cycle-s: 9s;
  --lg-drop: 0.5rem;
  --lg-d-w: 2.75rem;
  --lg-r-w: 2.5rem;
  --lg-who-w: 4.5rem;
  --lg-fig-h: 14rem;
  --rn-fig-w: 12rem;
  --rn-cycle: 12s;
  --rn-cycle-s: 8s;
  --rn-dim: 0.4;
  --rn-dot: 1rem;
  --rn-dot-on: var(--color-accent);
  --rn-stop-w: 10rem;
  --rn-date-w: 3.5rem;
  --rn-mock-w: 26rem;
  --rn-check: 1rem;
  --rn-time-w: 4.5rem;
  --bk-log-w: 26rem;
  --bk-measure: 62ch;
  --bk-form-w: 34rem;
  --bk-path-w: 12rem;
  --bk-code-w: 2.5rem;
  --bk-time-w: 6rem;
  --wk-vn-w: 5.5rem;
  --wk-site-h: 14rem;
  --wk-time-w: 4.5rem;
  --at-fig-w: 12rem;
  --at-how-w: 7rem;
  --hi-fig-w: 12rem;
  --hi-cycle: 11s;
  --hi-drop: 0.5rem;
  --sheet-fig-w: 12rem;
  --sheet-part-min: 22rem;
  --sheet-dim: 0.35;
  --mg-field-w: 4.5rem;
  --mg-cycle: 11s;
  --ho-cycle: 10s;
  --au-cycle: 12s;
  --fb-tracking: -0.01em;
  --fb-phone-scale: 0.65;
  --fb-phone-fade: 0.75;
  --journey-min: 11rem;
  --ap-sq: 1.75rem;
  --ap-bar-h: 1.25rem;
  --ap-label-w: 13rem;
  --ap-value-w: 13rem;
  --pd-gate-w: 9.5rem;
  --pd-phone-w: 22rem;
  --pd-phone-r: 2.5rem;
  --pd-screen-r: 1.5rem;
  --pd-screen-h: 34rem;
  --pd-notch-w: 4.5rem;
  --pd-notch-h: 0.375rem;
  --pd-thumb-min: 4.75rem;
  --pd-heart-s: 0.75rem;
  --pd-log-h: 14rem;
  --pd-time-w: 4.5rem;
  --pd-out-w: 2rem;
  --pd-bar-h: 7rem;
  --pd-bar-h-phone: 3rem;
  --pd-bar-w: 0.375rem;
  --pd-bar-lift: -5.75rem;
  --pd-bar-lift-phone: -2.25rem;
  --pd-fav-inset: 0.8rem;
  --pd-dissolve: 0.8s;
  --pd-stagger: 90ms;
  --pd-call: 1.4s;
  --xv-sw: 1.25rem;
  --xv-n-phone: 1.25rem;
  --xv-w-phone: 12.5rem;
  --xv-min-height-3: clamp(15rem, 64vw, 22rem);
  /* home */
  --home-grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  --home-max-width: 19rem;
  --home-max-width-2: 34ch;
  --home-max-width-3: 30ch;
  --home-max-width-4: 28ch;
  --home-grid-template-columns-2: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  --home-max-width-5: 72ch;
  --home-font-size: clamp(3.4rem, 2rem + 5vw, 6rem);
  --home-max-width-6: 36ch;
  --home-height: 6px;
  --home-width: min(20rem, 100%);
  --home-border-radius: 3px;
  --home-background: 90deg;
  --home-width-2: 1.9rem;
  --home-height-2: 1.9rem;
  --pb: 0;
  --pa: 0;
  --pf: 0;
  --y: 0%;
  --dx: 0px;
  --dy: 0px;
  --turn: 0deg;
  --vb: 0;
  --va: 0;
  --p: 1;
  --x: 50%;
  --pw: 32px;
  --po: 0.7;
  --dur: 20s;
  --delay: 0s;
  --sway: 0px;
  --s: 3px;
  /* Work and case studies: colors */
--color-rooms-1: oklch(0.965 0.006 75.4);
  --color-rooms-2: oklch(0.229 0.017 37.3);
  --color-rooms-3: oklch(0.482 0.023 38.1);
  --color-rooms-4: oklch(0.519 0.109 8.4);
  --color-rooms-5: oklch(0.13 0 0);
  --color-rooms-6: oklch(0.96 0.01 85);
  --color-rooms-7: oklch(0.76 0.02 85);
  --color-rooms-8: oklch(0.8 0.12 84);
  --color-rooms-9: oklch(0.155 0.03 252);
  --color-rooms-10: oklch(0.52 0.11 355);
  --color-rooms-11: oklch(0.42 0.09 65);
  --color-rooms-12: oklch(0.955 0.008 245);
  --color-rooms-13: oklch(0.8 0.02 245);
  --color-rooms-14: oklch(0.84 0.09 62);
  --color-rooms-15: oklch(0.721 0.093 2.1 / 0.22);
  --color-rooms-16: oklch(0.721 0.093 2.1 / 0.55);
  --color-rooms-17: oklch(0.851 0.109 83.6 / 0.9);
  --color-rooms-18: oklch(0.8 0.12 84 / 0.35);
  --color-rooms-19: oklch(0.7 0.12 70 / 0.1);
  --color-rooms-20: oklch(0.86 0.12 84);
  --color-rooms-21: oklch(0.19 0.01 67.1);
  --color-rooms-22: oklch(0.457 0.014 71.7);
  --color-rooms-23: oklch(0.145 0 0);
  --color-rooms-24: oklch(0.96 0 0);
  --color-rooms-25: oklch(0.75 0 0);
  --color-rooms-26: oklch(0.8 0.115 84);
  --color-rooms-27: oklch(0 0 0 / 0.28);
  --color-studio-1: oklch(0.965 0.006 75.4);
  --color-studio-2: oklch(1 0 0);
  --color-studio-3: oklch(0.19 0.01 67.1);
  --color-studio-4: oklch(0.49 0.012 76.5);
  --color-studio-5: oklch(0.914 0.012 79.8);
  --color-studio-6: oklch(0.519 0.109 8.4);
  --color-studio-7: oklch(0.943 0.012 4.8);
  --color-studio-8: oklch(0.495 0.055 151.5);
  --color-studio-9: oklch(0.933 0.011 76.6);
  --color-studio-10: oklch(1 0 0 / 0.6);
  --color-studio-11: oklch(0.864 0.017 76.1);
  --color-studio-12: oklch(1 0 0 / 0.45);
  --color-studio-13: oklch(0.942 0.009 78.3);
  --color-atlas-1: oklch(0.846 0.107 77.9);
  --color-atlas-2: oklch(0.406 0.074 38.8);
  --color-atlas-3: oklch(0.162 0.011 29.2);
  --color-atlas-4: oklch(0.439 0.126 15.2);
  --color-atlas-5: oklch(0.214 0.046 3);
  --color-atlas-6: oklch(0.131 0.011 3.4);
  --color-atlas-7: oklch(0.865 0.02 87.5);
  --color-atlas-8: oklch(0.525 0.013 89.8);
  --color-atlas-9: oklch(0.218 0.004 84.6);
  --color-atlas-10: oklch(0.586 0.153 257.2);
  --color-atlas-11: oklch(0.259 0.057 261.9);
  --color-atlas-12: oklch(0.14 0.014 268.5);
  --color-atlas-13: oklch(0.87 0.077 88.2);
  --color-atlas-14: oklch(0.491 0.077 75.3);
  --color-atlas-15: oklch(0.183 0.017 70.8);
  --color-atlas-16: oklch(0.594 0.143 36.6);
  --color-atlas-17: oklch(0.265 0.056 34.4);
  --color-atlas-18: oklch(0.137 0.013 44.3);
  --color-atlas-19: oklch(0.15 0 0);
  --color-atlas-20: oklch(0.952 0.008 91.5);
  --color-atlas-21: oklch(0.716 0.014 86.8);
  --color-atlas-22: oklch(0.399 0.012 87.5);
  --color-atlas-23: oklch(0.828 0.099 85.1);
  --color-atlas-24: oklch(0.341 0.009 88.7);
  --color-atlas-25: oklch(0.317 0.009 88.7);
  --color-atlas-26: oklch(0.191 0 0);
  --color-atlas-27: oklch(0.75 0.13 155);
  --color-atlas-28: oklch(0.65 0.15 25);
  --color-atlas-29: oklch(1 0 0 / 0.55);
  --color-atlas-30: oklch(1 0 0);
  --color-atlas-31: oklch(0 0 0 / 0.6);
  --color-atlas-32: oklch(0.8 0.12 155);
  /* Work and case studies: components */
/* rooms */
  --rooms-min-height: 100svh;
  --rooms-padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  --rooms-height: 75vh;
  /* Set by rooms.js as you scroll: the blended ground, and the ink for the header and index. */
  --rm-ground: var(--color-rooms-9);
  --rm-safe: var(--color-ink);
  --rm-ink: var(--color-ink);
  --rm-soft: var(--color-ink-soft);
  --rm-acc: var(--color-accent);
  --rm-fade: 1;
  --rooms-height-2: 75vh;
  --rooms-transform: 40px;
  --rooms-font-size: clamp(2.8rem, 1.4rem + 5vw, 6rem);
  --rooms-width: 1.6rem;
  --rooms-height-3: 1.6rem;
  --rooms-letter-spacing: 0.45em;
  --rooms-letter-spacing-2: 0.005em;
  --rooms-border-radius: 4px;
  --rooms-box-shadow: 0 1.5rem 3rem rgb(80 40 50 / 0.18), 0 0 0 10px #fffdfa, 0 0 0 11px rgb(156 75 92 / 0.25);
  --rooms-letter-spacing-3: 0.02em;
  --rooms-padding: 0.7rem 1.3rem;
  --rooms-box-shadow-2: 0 0 0 1px oklch(0.8 0.12 84 / 0.5), 0 2rem 5rem oklch(0.8 0.12 84 / 0.18);
  --rooms-transform-2: 120vh;
  --rooms-transform-3: 320deg;
  --rooms-right: -10vw;
  --rooms-top: -20vh;
  --rooms-width-2: 70vw;
  --rooms-height-4: 70vw;
  --rooms-animation: rm-breathe 9s ease-in-out infinite alternate;
  --rooms-transform-4: scale(1.08) translate(-2vw, 2vh);
  --rooms-box-shadow-3: 0 0 8px oklch(0.86 0.12 84 / 0.9);
  --rooms-transform-5: translateY(-110vh);
  --rooms-right-2: 0.4rem;
  --rooms-width-3: 0.55rem;
  --rooms-height-5: 0.55rem;
  --rooms-translate: 4px 0;
  --rooms-right-3: 1.4rem;
  --rooms-max-width: 60ch;
  --rooms-padding-block-2: clamp(4rem, 3rem + 6vw, 9rem);
  --rooms-min-height-2: 92svh;
  --rooms-transition: 0.9s;
  --rooms-font-size-3: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);
  --rooms-letter-spacing-4: 0.01em;
  --rooms-max-width-2: 40ch;
  --rooms-grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  /* case */
  --case-grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  /* studio */
  --studio-font-size: 0.875rem;
  --studio-grid-template-columns: 11rem minmax(0, 1fr);
  --studio-min-height: 30rem;
  --studio-font-size-2: 1.05rem;
  --studio-gap: 0.15rem;
  --studio-padding: 0.45rem 0.55rem;
  --studio-font-size-3: 0.6875rem;
  --studio-box-shadow: 3px;
  --studio-gap-2: 0.3rem;
  --studio-font-size-4: 16px;
  --studio-padding-2: 0.3rem 0.4rem;
  --studio-padding-3: 1rem 1.1rem;
  --studio-gap-3: 0.6rem;
  --studio-font-size-5: 1.4rem;
  --studio-grid-template-columns-2: repeat(6, minmax(7.5rem, 1fr));
  --studio-min-width: 46rem;
  --studio-gap-4: 0.4rem;
  --studio-border-radius: 8px;
  --studio-letter-spacing: 0.04em;
  --studio-font-size-6: 0.75rem;
  --studio-border-radius-2: 5px;
  --studio-padding-4: 0.3rem 0.55rem;
  --studio-gap-5: 0.35rem;
  --studio-padding-5: 0.55rem 0.7rem;
  --studio-gap-6: 0.2rem;
  --studio-max-width: 22rem;
  --studio-margin-top: 0.4rem;
  --studio-background: linear-gradient(160deg, #2e2622, #6b4b45);
  --studio-padding-6: 0.6rem;
  --studio-gap-7: 0.1rem;
  --studio-padding-7: 0.45rem 0;
  --studio-min-height-2: 1.4rem;
  --studio-margin: 0.6rem 0 0 0;
  /* atlas */
  --atlas-background: linear-gradient(160deg, #2b1d14, #c9894b 55%, #1a1310);
  --atlas-background-2: linear-gradient(200deg, #0e1a2b, #3b5d86 60%, #0a0f18);
  --atlas-background-3: linear-gradient(180deg, #f0b46c, #b85f4a 40%, #2b1c2e);
  --atlas-background-4: linear-gradient(130deg, #1f2d1f, #6a8a55 55%, #121812);
  --atlas-background-5: linear-gradient(170deg, #3a2a4a, #d07a6a 60%, #1c1424);
  --atlas-background-6: linear-gradient(210deg, #101010, #4a4a4a 50%, #0b0b0b);
  --atlas-font-size: 0.55rem;
  --atlas-font-size-2: 0.8rem;
  --atlas-margin-bottom: 0.3rem;
  --atlas-height: 0.7rem;
  --atlas-gap: 0.35rem;
  --atlas-font-size-3: 1rem;
  --atlas-height-2: 0.9rem;
  --atlas-gap-2: 0.3rem;
  --atlas-font-size-4: 0.5rem;
  --atlas-gap-3: 3px;
  --atlas-padding: clamp(1rem, 0.6rem + 2vw, 2rem);
  --atlas-letter-spacing: 0.01em;
  --atlas-letter-spacing-2: 0.04em;
  --atlas-min-height: 2.75rem;
  --atlas-font-size-5: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  --atlas-grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.6fr);
  --atlas-letter-spacing-3: 0.06em;
  --atlas-max-width: 46ch;
  --atlas-grid-template-columns-2: repeat(auto-fill, minmax(5.5rem, 1fr));
  --atlas-transform: translateY(-2px);
  --atlas-font-size-6: 0.7rem;
  --atlas-letter-spacing-4: 0.3em;
  --atlas-background-7: repeating-linear-gradient(-30deg, transparent 0 18px, rgb(255 255 255 / 0.06) 18px 19px);
  --atlas-transition: opacity 0.4s;
  --atlas-right: 6px;
  --atlas-bottom: 6px;
  --atlas-width: 1.4rem;
  --atlas-height-3: 1.4rem;
  --atlas-min-height-2: 1.2em;
  /* Defaults for variables each component sets for itself */
  --ground-raw: var(--color-ground);
  --b-bg: var(--color-ground);
  --a-bg: var(--color-ground);
  --b-ink: var(--color-ink);
  --a-ink: var(--color-ink);
  --b-soft: var(--color-ink-soft);
  --a-soft: var(--color-ink-soft);
  --b-acc: var(--color-accent);
  --a-acc: var(--color-accent);
  --r-bg: var(--color-ground);
  --r-ink: var(--color-ink);
  --r-soft: var(--color-ink-soft);
  --r-acc: var(--color-accent);
  --r-font: var(--font-body);
  --su-ink: var(--color-paper-ink);
  --su-paper: var(--color-paper);
  --su-line: var(--color-line);
  --su-serif: Georgia, "Times New Roman", serif;
  --su-rose: var(--color-paper-accent);
  --su-muted: var(--color-paper-soft);
  --su-card: var(--color-paper);
  --su-rose-soft: var(--color-accent-soft);
  --su-leaf: var(--color-good);
  --at-bg: var(--color-hero-ground);
  --at-ink: var(--color-hero-ink);
  --at-soft: var(--color-hero-ink-soft);
  --at-line: var(--color-line-strong);
  --at-gold: var(--color-hero-warm);
  /* Capabilities, datasheets, Lab: colors */
  --color-diag-1: oklch(0.75 0.13 155 / 0.6);
  --color-diag-2: oklch(0.75 0.13 155);
  /* Capabilities, datasheets, Lab: components */
/* caps */
  --caps-max-width: 26rem;
  --caps-padding: 3px;
  --caps-border-radius: 4px;
  --caps-padding-block: clamp(1.25rem, 1rem + 2vw, 3rem);
  --caps-grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  --caps-box-shadow: inset 0 -1px 0 transparent;
  --caps-box-shadow-2: -2px;
  --caps-outline-offset: 4px;
  --caps-font-size: 16px;
  --caps-min-height: 2.75rem;
  --caps-width: min(100%, 18rem);
  --caps-grid-template-columns-2: minmax(0, 15rem) minmax(0, 1fr) 9rem 8rem;
  --caps-padding-2: clamp(1.25rem, 1rem + 2vw, 3rem);
  --caps-transition: 0.4s;
  --caps-transform: translateY(-3px);
  --caps-max-width-2: 44ch;
  --caps-grid-template-columns-3: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  /* diag */
  --diag-width: 2.25rem;
  --diag-height: 2.25rem;
  --diag-grid-template-columns: 11rem minmax(0, 1fr) 11rem;
  --diag-top: -4px;
  --diag-width-2: 8px;
  --diag-height-2: 8px;
  --diag-rotate: 45deg;
  --diag-rotate-2: -135deg;
  --diag-width-3: 10px;
  --diag-height-3: 10px;
  --diag-animation: pk-step 12s infinite both;
  --diag-animation-delay: 3s;
  --diag-animation-delay-2: 6s;
  --diag-animation-delay-3: 9s;
  --diag-animation-2: pk-run 12s infinite;
  --diag-animation-3: pk-unlock 12s infinite 3s;
  --diag-animation-4: pk-check 12s infinite 9s;
  --diag-box-shadow: 0 0 0 14px transparent;
  --diag-box-shadow-2: 0 0 0 16px transparent;
  --diag-left: calc(100% - 10px);
  --diag-left-2: 5px;
  --diag-margin-top: -5px;
  --diag-background: 90deg;
  --diag-max-width: 60ch;
  --diag-top-2: 0.6em;
  --diag-animation-5: st-on 9s infinite both;
  --diag-animation-6: st-hist 9s linear infinite;
  --diag-grid-template-columns-2: minmax(5rem, 0.9fr) repeat(3, minmax(0, 1fr));
  --hist: 100%;
  /* Process, Standards, About, Contact: colors */
--color-pg-1: oklch(0.75 0.13 155);
  --color-bs-1: oklch(0.88 0.09 62);
  --color-bs-2: oklch(0.7 0.1 50);
  --color-bs-3: oklch(0.82 0.08 35);
  --color-bs-4: oklch(0.62 0.09 30);
  --color-bs-5: oklch(0.82 0.05 250);
  --color-bs-6: oklch(0.6 0.07 255);
  --color-bs-7: oklch(0.76 0.05 215);
  --color-bs-8: oklch(0.54 0.06 220);
  --color-bs-9: oklch(0.68 0.04 275);
  --color-bs-10: oklch(0.46 0.05 275);
  --color-bs-11: oklch(1 0 0 / 0.55);
  --color-std-1: oklch(0.182 0.046 271.6);
  --color-std-2: oklch(0.226 0.049 271.8);
  --color-std-3: oklch(0.896 0.019 276.3);
  --color-std-4: oklch(0.726 0.032 269);
  --color-std-5: oklch(0.881 0.102 75.8);
  --color-std-6: oklch(0.495 0.041 271);
  --color-std-7: oklch(0.658 0.032 270.9);
  --color-std-8: oklch(0.968 0.029 80.7);
  /* Process, Standards, About, Contact: components */
/* pg */
  --pg-max-width: 64ch;
  --pg-grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  --pg-grid-template-columns-2: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  --pg-gap: 0.1rem;
  --pg-min-width: 13rem;
  --pg-max-width-2: 30ch;
  --pg-width: 1.9rem;
  --pg-height: 1.9rem;
  --pg-width-2: 1.15rem;
  --pg-height-2: 1.15rem;
  --pg-margin-top: 0.1rem;
  --pg-grid-template-columns-3: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  --pg-max-width-3: 56ch;
  --pg-grid-template-columns-4: 2.25rem 1fr;
  --pg-max-width-4: 44rem;
  --pg-max-width-5: 60ch;
  --bs-min-width: 42rem;
  /* bs */
  --bs-font-size: 12px;
  --bs-padding: clamp(1rem, 0.7rem + 1.2vw, 2rem);
  --bs-grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  --bs-grid-template-columns-2: 2.25rem minmax(0, 1fr);
  --bs-width: 2.25rem;
  --bs-height: 2.25rem;
  --bs-max-width: 70ch;
  --bs-rot: -3.5deg;
  --bs-lift: 18px;
  --bs-rot-2: -0.7deg;
  --bs-lift-2: 36px;
  --bs-rot-3: 2.1deg;
  --bs-lift-3: 24px;
  --bs-rot-4: -2.8deg;
  --bs-lift-4: 42px;
  --bs-lift-5: 30px;
  --bs-rot-5: 2.8deg;
  --bs-rot-6: -2.1deg;
  --bs-rot-7: 0.7deg;
  --bs-rot-8: 3.5deg;
  --bs-rot-9: -1.4deg;
  --bs-rot-10: 1.4deg;
  /* std */
  --std-padding: clamp(1rem, 0.6rem + 1.5vw, 2rem);
  --std-background: 180deg;
  --std-font-size: 12px;
  --std-font-size-2: 11px;
  --std-filter: drop-shadow(0 0 4px rgb(255 190 120 / 0.7));
  --std-font-size-3: 10px;
  --std-animation: sk-fade 0.4s 1.6s forwards;
  --std-animation-2: sk-fade 0.5s 1.2s forwards;
  --std-animation-3: sk-fade 0.5s 1.8s forwards;
  --std-font-size-4: 30px;
  --std-font-size-5: 22px;
  --std-font-size-6: 13px;
  --std-max-width: 44rem;
  --std-max-width-2: 46rem;
  --std-height: 26px;
  --std-top: 12px;
  --std-top-2: 11px;
  --std-height-2: 4px;
  --std-top-3: 4px;
  --std-height-3: 18px;
  --std-width: 3px;
  --std-margin-left: -1px;
  --std-grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  --std-max-width-3: 72ch;
  --rot: 0deg;
  --sk-delay: 0s;
  --sk-dur: var(--time-fade);
  --l: 50%;
  --n: 0%;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-ground: oklch(0.975 0.005 245);
    --color-raised: oklch(0.948 0.009 245);
    --color-raised-2: oklch(0.915 0.012 245);
    --color-ink: oklch(0.2 0.04 252);
    --color-ink-soft: oklch(0.39 0.035 252);
    --color-ink-faint: oklch(0.47 0.03 252);
    --color-line: oklch(0.2 0.04 252 / 0.12);
    --color-line-strong: oklch(0.2 0.04 252 / 0.26);
    --color-link: oklch(0.47 0.12 52);
    --color-link-hover: oklch(0.38 0.12 48);
    --color-accent: oklch(0.47 0.12 52);
    --color-accent-soft: oklch(0.47 0.12 52 / 0.1);
    --color-on-accent: oklch(0.985 0.004 245);
    --color-focus: oklch(0.47 0.12 52);
    --color-cool: oklch(0.45 0.08 250);
    --color-good: oklch(0.45 0.12 155);
    --color-shadow: oklch(0.2 0.04 252 / 0.16);
    --color-glass: oklch(0.975 0.005 245 / 0.72);
    --color-glass-hi: oklch(1 0 0 / 0.4);
    --color-glass-lo: oklch(1 0 0 / 0.1);
    --color-glass-edge: oklch(0.2 0.04 252 / 0.1);
    --color-glass-menu: oklch(0.948 0.009 245);
    --color-head-ink: oklch(0.955 0.008 245);
    --color-head-soft: oklch(0.8 0.02 245);
    --color-head-link: oklch(0.84 0.09 62);
    --color-head-focus: oklch(0.84 0.09 62);
    --color-head-glass: oklch(0.155 0.03 252 / 0.66);
    --color-head-solid: oklch(0.155 0.03 252 / 0.97);
    --color-head-glass-hi: oklch(1 0 0 / 0.055);
    --color-head-glass-lo: oklch(1 0 0 / 0.015);
    --color-head-glass-edge: oklch(1 0 0 / 0.07);
    --color-head-menu: oklch(0.19 0.034 252);
    --color-dusk: oklch(0.8 0.06 300 / 0.25);
    --color-horizon-1: oklch(0.6 0.15 15);
    --color-horizon-2: oklch(0.66 0.14 55);
    --color-horizon-3: oklch(0.78 0.12 80);
    --color-hold: oklch(0.42 0.09 85);
    --color-hold-ground: oklch(0.93 0.06 90);
    --color-refuse: oklch(0.52 0.18 25);
    --color-sh-paper: oklch(0.97 0.012 80);
    --color-sh-ink: oklch(0.24 0.02 50);
    --color-sh-soft: oklch(0.45 0.02 50);
    --color-sh-line: oklch(0.24 0.02 50 / 0.14);
    --color-sh-line-strong: oklch(0.24 0.02 50 / 0.32);
    --color-sh-hover: oklch(0.24 0.02 50 / 0.06);
    --color-sh-acc: oklch(0.5 0.13 45);
    --color-sh-acc-solid: oklch(0.5 0.13 45);
    --color-sh-ok: oklch(0.44 0.1 155);
    --color-sh-out: oklch(0.5 0.17 25);
    --color-sh-band: oklch(0.92 0.035 75);
    --color-sh-frame: oklch(0.13 0.01 252);
    --color-sh-notch: oklch(0.3 0.01 252);
    --color-sh-url: oklch(0.2 0.01 252);
    --color-sh-url-ink: oklch(0.86 0.01 245);
    --color-sh-bag-0: oklch(0.72 0.06 140);
    --color-sh-bag-1: oklch(0.66 0.11 45);
    --color-sh-bag-2: oklch(0.48 0.05 250);
    --color-sh-bag-top: oklch(0.3 0.02 50);
    --color-sh-bag-crimp: oklch(0.62 0.02 60);
    --color-sh-label: oklch(0.96 0.015 85);
    --color-sh-bean: oklch(0.36 0.05 50);
    --color-sh-tape: oklch(0.955 0.012 85);
    --color-sh-tape-ink: oklch(0.25 0.02 60);
    --color-sh-tape-soft: oklch(0.44 0.02 60);
    --color-sh-tape-up: oklch(0.44 0.11 155);
    --color-sh-tape-rule: oklch(0.25 0.02 60 / 0.25);
    --color-sh-tape-new: oklch(0.9 0.07 85);
    --color-wk-paper: oklch(0.975 0.008 90);
    --color-wk-ink: oklch(0.24 0.02 260);
    --color-wk-soft: oklch(0.44 0.02 260);
    --color-wk-line: oklch(0.24 0.02 260 / 0.16);
    --color-wk-bar: oklch(0.2 0.01 252);
    --color-wk-bar-ink: oklch(0.86 0.01 245);
    --color-wk-err: oklch(0.5 0.18 25);
    --color-fb-paper: oklch(0.929 0.008 48.6);
    --color-fb-rose: oklch(0.851 0.026 26.6);
    --color-fb-ink: oklch(0.273 0.010 61.0);
    --color-fb-olive: oklch(0.463 0.045 114.6);
    --color-fb-olive-deep: oklch(0.402 0.040 115.6);
    --color-fb-soft: oklch(0.40 0.014 59.3);
    --color-fb-shadow: oklch(0.273 0.010 61.0 / 0.22);
    --color-pd-paper: oklch(0.975 0.01 85);
    --color-pd-ink: oklch(0.24 0.02 60);
    --color-pd-soft: oklch(0.44 0.02 60);
    --color-pd-line-strong: oklch(0.24 0.02 60 / 0.3);
    --color-pd-hover: oklch(0.24 0.02 60 / 0.06);
    --color-pd-rose: oklch(0.54 0.16 15);
    --color-pd-ok: oklch(0.46 0.11 155);
    --color-pd-band: oklch(0.93 0.03 70);
    --color-pd-ok-band: oklch(0.93 0.05 155);
    --color-pd-frame: oklch(0.13 0.01 252);
    --color-pd-notch: oklch(0.3 0.01 252);
    --color-pd-url: oklch(0.2 0.01 252);
    --color-pd-url-ink: oklch(0.86 0.01 245);
    --color-pd-fav-ground: oklch(0.2 0.02 60 / 0.55);
    --color-hero-ground: oklch(0.14 0.035 255);
    --color-hero-ink: oklch(0.96 0.01 80);
    --color-hero-ink-soft: oklch(0.86 0.02 245);
    --color-hero-wash: oklch(0.14 0.035 255 / 0.7);
    --color-mark: oklch(0.5 0.19 28);
    --color-paper: oklch(0.95 0.01 75);
    --color-paper-ink: oklch(0.27 0.01 285);
    --color-paper-soft: oklch(0.55 0.01 300);
    --color-paper-accent: oklch(0.55 0.13 45);
    --color-hero-sky: oklch(0.24 0.06 270);
    --color-hero-sun: oklch(0.68 0.14 45);
    --color-hero-warm: oklch(0.83 0.11 65);
    --color-hero-hot: oklch(0.97 0.03 80);
    --color-hero-cool: oklch(0.78 0.07 245);
    --color-hero-red: oklch(0.65 0.18 28);
  --color-hero-1: oklch(0.96 0.01 80);
    --color-hero-2: oklch(0.14 0.035 255 / 0.7);
    --color-hero-3: oklch(0.97 0.01 80);
    --color-hero-4: oklch(0.86 0.015 245);
    --color-hero-5: oklch(0.96 0.01 80 / 0.3);
    --color-hero-6: oklch(0.96 0.01 80 / 0.08);
    --color-hero-7: oklch(0.96 0.01 80 / 0.6);
    --color-hero-8: oklch(0.14 0.035 255 / 0.85);
    --color-vig-1: oklch(0.75 0.13 155);
    /* The tangle sits on a light panel here, so it needs dark strokes and names. */
    --color-un-1: oklch(0.5 0.03 250);
    --color-un-2: oklch(0.6 0.13 62);
    --color-un-3: oklch(0.55 0.17 28);
    --color-un-4: oklch(0.47 0.12 52);
    --color-un-5: oklch(0.2 0.04 252);
    --color-un-6: oklch(0.2 0.04 252 / 0.18);
    --color-un-7: oklch(0.2 0.04 252);
    --color-un-8: oklch(0.39 0.035 252);
    --color-xv-1: oklch(0 0 0 / 0.4);
    --color-xv-2: oklch(0.959 0.007 80.7);
    --color-xv-3: oklch(0.228 0.012 278);
    --color-xv-4: oklch(0 0 0 / 0.12);
    --color-xv-5: oklch(0.455 0.013 280.2);
    --color-xv-6: oklch(0.965 0.006 75.4);
    --color-xv-7: oklch(0.933 0.011 76.6);
    --color-xv-8: oklch(0.19 0.01 67.1);
    --color-xv-9: oklch(0.864 0.017 76.1);
    --color-xv-10: oklch(0.519 0.109 8.4);
    --color-xv-11: oklch(0.527 0.012 76.5);
    --color-xv-12: oklch(1 0 0);
    --color-xv-13: oklch(0.914 0.012 79.8);
    --color-xv-14: oklch(0.14 0.035 255 / 0.82);
    --color-xv-15: oklch(0.965 0.007 80.7);
    --color-xv-16: oklch(0.14 0.035 255 / 0.95);
    --color-xv-17: oklch(0.297 0 0);
    --color-xv-18: oklch(0.145 0 0);
    --color-xv-19: oklch(0.93 0.01 85);
    --color-xv-20: oklch(0.8 0.115 84);
    --color-home-1: oklch(0.66 0.13 15);
  --color-rooms-1: oklch(0.965 0.006 75.4);
    --color-rooms-2: oklch(0.229 0.017 37.3);
    --color-rooms-3: oklch(0.482 0.023 38.1);
    --color-rooms-4: oklch(0.519 0.109 8.4);
    --color-rooms-5: oklch(0.13 0 0);
    --color-rooms-6: oklch(0.96 0.01 85);
    --color-rooms-7: oklch(0.76 0.02 85);
    --color-rooms-8: oklch(0.8 0.12 84);
    --color-rooms-9: oklch(0.975 0.005 245);
    --color-rooms-10: oklch(0.52 0.11 355);
    --color-rooms-11: oklch(0.42 0.09 65);
    --color-rooms-12: oklch(0.2 0.04 252);
    --color-rooms-13: oklch(0.39 0.035 252);
    --color-rooms-14: oklch(0.47 0.12 52);
    --color-rooms-15: oklch(0.721 0.093 2.1 / 0.22);
    --color-rooms-16: oklch(0.721 0.093 2.1 / 0.55);
    --color-rooms-17: oklch(0.851 0.109 83.6 / 0.9);
    --color-rooms-18: oklch(0.8 0.12 84 / 0.35);
    --color-rooms-19: oklch(0.7 0.12 70 / 0.1);
    --color-rooms-20: oklch(0.86 0.12 84);
    --color-rooms-21: oklch(0.19 0.01 67.1);
    --color-rooms-22: oklch(0.457 0.014 71.7);
    --color-rooms-23: oklch(0.145 0 0);
    --color-rooms-24: oklch(0.96 0 0);
    --color-rooms-25: oklch(0.75 0 0);
    --color-rooms-26: oklch(0.8 0.115 84);
    --color-rooms-27: oklch(0 0 0 / 0.28);
    --color-studio-1: oklch(0.965 0.006 75.4);
    --color-studio-2: oklch(1 0 0);
    --color-studio-3: oklch(0.19 0.01 67.1);
    --color-studio-4: oklch(0.49 0.012 76.5);
    --color-studio-5: oklch(0.914 0.012 79.8);
    --color-studio-6: oklch(0.519 0.109 8.4);
    --color-studio-7: oklch(0.943 0.012 4.8);
    --color-studio-8: oklch(0.495 0.055 151.5);
    --color-studio-9: oklch(0.933 0.011 76.6);
    --color-studio-10: oklch(1 0 0 / 0.6);
    --color-studio-11: oklch(0.864 0.017 76.1);
    --color-studio-12: oklch(1 0 0 / 0.45);
    --color-studio-13: oklch(0.942 0.009 78.3);
    --color-atlas-1: oklch(0.846 0.107 77.9);
    --color-atlas-2: oklch(0.406 0.074 38.8);
    --color-atlas-3: oklch(0.162 0.011 29.2);
    --color-atlas-4: oklch(0.439 0.126 15.2);
    --color-atlas-5: oklch(0.214 0.046 3);
    --color-atlas-6: oklch(0.131 0.011 3.4);
    --color-atlas-7: oklch(0.865 0.02 87.5);
    --color-atlas-8: oklch(0.525 0.013 89.8);
    --color-atlas-9: oklch(0.218 0.004 84.6);
    --color-atlas-10: oklch(0.586 0.153 257.2);
    --color-atlas-11: oklch(0.259 0.057 261.9);
    --color-atlas-12: oklch(0.14 0.014 268.5);
    --color-atlas-13: oklch(0.87 0.077 88.2);
    --color-atlas-14: oklch(0.491 0.077 75.3);
    --color-atlas-15: oklch(0.183 0.017 70.8);
    --color-atlas-16: oklch(0.594 0.143 36.6);
    --color-atlas-17: oklch(0.265 0.056 34.4);
    --color-atlas-18: oklch(0.137 0.013 44.3);
    --color-atlas-19: oklch(0.15 0 0);
    --color-atlas-20: oklch(0.952 0.008 91.5);
    --color-atlas-21: oklch(0.716 0.014 86.8);
    --color-atlas-22: oklch(0.399 0.012 87.5);
    --color-atlas-23: oklch(0.828 0.099 85.1);
    --color-atlas-24: oklch(0.341 0.009 88.7);
    --color-atlas-25: oklch(0.317 0.009 88.7);
    --color-atlas-26: oklch(0.191 0 0);
    --color-atlas-27: oklch(0.75 0.13 155);
    --color-atlas-28: oklch(0.65 0.15 25);
    --color-atlas-29: oklch(1 0 0 / 0.55);
    --color-atlas-30: oklch(1 0 0);
    --color-atlas-31: oklch(0 0 0 / 0.6);
    --color-atlas-32: oklch(0.8 0.12 155);
    --color-diag-1: oklch(0.75 0.13 155 / 0.6);
    --color-diag-2: oklch(0.75 0.13 155);
  --color-pg-1: oklch(0.75 0.13 155);
    --color-bs-1: oklch(0.88 0.09 62);
    --color-bs-2: oklch(0.7 0.1 50);
    --color-bs-3: oklch(0.82 0.08 35);
    --color-bs-4: oklch(0.62 0.09 30);
    --color-bs-5: oklch(0.82 0.05 250);
    --color-bs-6: oklch(0.6 0.07 255);
    --color-bs-7: oklch(0.76 0.05 215);
    --color-bs-8: oklch(0.54 0.06 220);
    --color-bs-9: oklch(0.68 0.04 275);
    --color-bs-10: oklch(0.46 0.05 275);
    --color-bs-11: oklch(1 0 0 / 0.55);
    --color-std-1: oklch(0.182 0.046 271.6);
    --color-std-2: oklch(0.226 0.049 271.8);
    --color-std-3: oklch(0.896 0.019 276.3);
    --color-std-4: oklch(0.726 0.032 269);
    --color-std-5: oklch(0.881 0.102 75.8);
    --color-std-6: oklch(0.495 0.041 271);
    --color-std-7: oklch(0.658 0.032 270.9);
    --color-std-8: oklch(0.968 0.029 80.7);
    color-scheme: light;
  }
}

@media (min-width: 48rem) {
  :root {
    --gut-l: max(var(--gutter-wide), env(safe-area-inset-left, 0px));
    --gut-r: max(var(--gutter-wide), env(safe-area-inset-right, 0px));
  }
}

/* Afterglow Software. Every value comes from tokens.css. Space separates
   sections rather than rules and boxes. Mono type appears only where it
   reports a real reading. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--color-ground);
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: var(--weight-medium);
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* A picture only chooses the file. The img inside lays out as if the picture
   weren't there, so every rule written for the img still applies. */
picture {
  display: contents;
}

sup {
  position: relative;
  top: var(--sup-rise);
  font-size: var(--text-sup);
  line-height: 0;
  vertical-align: baseline;
}

a {
  color: var(--color-link);
  text-decoration-thickness: var(--underline-width);
  text-underline-offset: var(--underline-offset);
}

@media (hover: hover) {
  a:hover {
    color: var(--color-link-hover);
    text-decoration-thickness: var(--underline-width-hover);
  }
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
  border-radius: var(--focus-radius);
}

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + var(--gut-l) + var(--gut-r));
  margin-inline: auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}

.vh {
  position: absolute;
  width: var(--hairline);
  height: var(--hairline);
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.readout {
  color: var(--color-ink-faint);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}

/* Skip link */
.skip {
  position: absolute;
  top: var(--skip-hidden);
  left: var(--gut-l);
  z-index: var(--layer-skip);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: var(--weight-strong);
  text-decoration: none;
}

.skip:focus {
  top: var(--space-2);
}

/* The header: frosted glass that stays at the top. On the home page it
   starts clear, so the city runs up behind it, and frosts as you scroll. */
.site-h {
  position: sticky;
  top: 0;
  z-index: var(--layer-header);
  border-bottom: var(--hairline) solid var(--color-glass-edge);
  background: linear-gradient(to bottom, var(--color-glass-hi), var(--color-glass-lo)), var(--color-glass);
  box-shadow: inset 0 var(--hairline) 0 var(--color-glass-hi);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.5);
  backdrop-filter: blur(var(--blur-glass)) saturate(1.5);
  view-transition-name: site-h;
}

.site-h-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  min-height: var(--header-height);
}

/* Over the home page's city the header is clear, and a tint fades in over
   the first stretch of scroll. Only its opacity follows the scroll, so it
   stays smooth on a phone, with no blur working over the moving city.
   Browsers without scroll timelines keep the glass the whole way. */
@supports (animation-timeline: scroll()) {
  body:has(main > .hero:first-child) .site-h {
    border-bottom-color: transparent;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body:has(main > .hero:first-child) .site-h::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-bottom: var(--hairline) solid var(--color-glass-edge);
    background: linear-gradient(to bottom, var(--color-glass-hi), var(--color-glass-lo)), var(--color-head-solid);
    pointer-events: none;
    animation: header-tint linear both;
    animation-timeline: scroll(root);
    animation-range: 0 var(--scroll-glass);
  }
}

@keyframes header-tint {
  from {
    opacity: 0;
  }
}

main > .hero:first-child {
  margin-top: calc(-1 * var(--header-height));
}

/* The city is dark in both themes, so in the light theme the home page's
   header keeps the dark theme's colors: light words over the city, and dark
   glass once the page scrolls on. */
@media (prefers-color-scheme: light) {
  body:has(main > .hero:first-child) .site-h {
    --color-ink: var(--color-head-ink);
    --color-ink-soft: var(--color-head-soft);
    --color-link: var(--color-head-link);
    --color-accent: var(--color-head-link);
    --color-focus: var(--color-head-focus);
    --color-glass: var(--color-head-glass);
    --color-glass-hi: var(--color-head-glass-hi);
    --color-glass-lo: var(--color-head-glass-lo);
    --color-glass-edge: var(--color-head-glass-edge);
    --color-glass-menu: var(--color-head-menu);
    color: var(--color-ink);
    color-scheme: dark;
  }
}

.wordmark {
  color: var(--color-ink);
  font-size: var(--text-wordmark);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  a.wordmark:hover {
    color: var(--color-link);
  }
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  list-style: none;
}

.nav a {
  display: inline-grid;
  padding-block: var(--space-1);
  color: var(--color-ink);
  font-size: var(--text-ui);
  text-decoration: none;
}

/* The bold width is reserved, so the current page never shifts the menu. */
.nav a::after {
  content: attr(data-text);
  height: 0;
  overflow: hidden;
  font-weight: var(--weight-strong);
  visibility: hidden;
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--color-ink);
  }
}

.nav a[aria-current] {
  color: var(--color-ink);
  font-weight: var(--weight-strong);
}

/* Phone menu: a disclosure, so it opens without JavaScript. */
.mnav {
  display: none;
}

@media (max-width: 53.99rem) {
  .site-h-in {
    min-height: var(--header-height-phone);
  }

  main > .hero:first-child {
    margin-top: calc(-1 * var(--header-height-phone));
  }

  .site-h .nav {
    display: none;
  }

  .mnav {
    display: block;
    position: relative;
  }

  .mnav summary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--target-min);
    padding: 0 var(--space-4);
    border: var(--hairline) solid var(--color-line-strong);
    border-radius: var(--radius);
    font-size: var(--text-ui);
    list-style: none;
    cursor: pointer;
    touch-action: manipulation;
  }

  .mnav summary::-webkit-details-marker {
    display: none;
  }

  .mnav summary::after {
    content: "";
    width: var(--menu-icon-width);
    height: var(--menu-icon-height);
    background:
      linear-gradient(currentColor 0 0) top / 100% var(--menu-icon-line) no-repeat,
      linear-gradient(currentColor 0 0) center / 100% var(--menu-icon-line) no-repeat,
      linear-gradient(currentColor 0 0) bottom / 100% var(--menu-icon-line) no-repeat;
    transition: transform var(--time-menu) var(--ease);
  }

  .mnav[open] summary::after {
    transform: scaleY(0.4);
  }

  .mnav nav {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    z-index: var(--layer-menu);
    min-width: min(var(--menu-width), calc(var(--viewport-width) - var(--menu-edge)));
    padding: var(--space-2);
    border-radius: var(--radius-m);
    background: var(--color-glass-menu);
    box-shadow: 0 var(--shadow-y) var(--shadow-blur) var(--color-shadow);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.5);
    backdrop-filter: blur(var(--blur-glass)) saturate(1.5);
  }

  .mnav[open] nav {
    animation: menu-in var(--time-menu) var(--ease);
  }

  .mnav ul {
    display: grid;
    list-style: none;
  }

  .mnav a {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    color: var(--color-ink);
    font-size: var(--text-body);
    text-decoration: none;
  }

  .mnav a[aria-current] {
    color: var(--color-link);
    font-weight: var(--weight-strong);
  }
}

@media (max-width: 53.99rem) and (hover: hover) {
  .mnav a:hover {
    background: var(--color-raised-2);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(var(--menu-drop)) scale(0.98);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-h,
  .mnav nav {
    background: var(--color-ground);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Footer: the last of the twilight, as a horizon along its top edge. */
.site-f {
  position: relative;
  margin-top: var(--space-10);
  background: linear-gradient(to bottom, var(--color-raised) 0%, var(--color-dusk) 100%), var(--color-raised);
  color: var(--color-ink-soft);
  font-size: var(--text-ui);
}

.site-f::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--hairline);
  background: linear-gradient(to right, transparent, var(--color-horizon-1) 30%, var(--color-horizon-2) 55%, var(--color-horizon-3) 62%, transparent 85%);
  opacity: 0.7;
}

.site-f-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-8);
}

@media (min-width: 52rem) {
  .site-f-in {
    grid-template-columns: 1.1fr 1fr 1.3fr;
  }
}

.f-id,
.f-legal {
  display: grid;
  align-content: start;
  gap: var(--space-1);
}

.f-id .wordmark {
  font-size: var(--text-body);
}

.f-nav ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-content: start;
  gap: var(--space-2) var(--space-7);
  list-style: none;
}

.f-nav a {
  color: var(--color-ink-soft);
  text-decoration: none;
}

@media (hover: hover) {
  .f-nav a:hover {
    color: var(--color-ink);
    text-decoration: underline;
  }
}

.f-nav a[aria-current] {
  color: var(--color-ink);
}

/* Page head: a title and one line, with room around them. */
.ph {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-head-top) var(--space-head-bottom);
}

.ph h1 {
  max-width: var(--measure-head);
  font-size: var(--text-h1);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-light);
  line-height: var(--leading-display);
}

.trail {
  color: var(--color-ink-faint);
  font-size: var(--text-small);
}

.trail a {
  color: var(--color-ink-soft);
}

.lede {
  max-width: var(--measure-lede);
  color: var(--color-ink-soft);
  font-size: var(--text-lead);
  font-weight: var(--weight-display);
  line-height: var(--leading-lead);
}

.lede p + p {
  margin-top: var(--space-3);
}

/* Sections: space does the separating. */
.sec {
  display: grid;
  gap: var(--space-6) var(--space-8);
  padding-block: var(--space-section);
}

@media (min-width: 64rem) {
  .sec-split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  }

  .sec-split .sec-h {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
    align-self: start;
  }
}

.sec-h {
  display: grid;
  align-content: start;
  gap: var(--space-3);
}

.sec-h h2 {
  max-width: var(--measure-h2);
  font-size: var(--text-h2);
  font-stretch: var(--stretch-wide);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
}

.sec-i {
  max-width: var(--measure-intro);
  color: var(--color-ink-soft);
}

.sec-b {
  display: grid;
  align-content: start;
  gap: var(--space-6);
  min-width: 0;
}

.prose {
  display: grid;
  gap: var(--space-4);
  max-width: var(--measure);
}

.prose p,
.prose li {
  color: var(--color-ink-soft);
}

.prose ul {
  display: grid;
  gap: var(--space-2);
  padding-left: var(--space-5);
}

.prose strong {
  color: var(--color-ink);
  font-weight: var(--weight-medium);
}

.prose h2 {
  margin-top: var(--space-5);
  font-size: var(--text-lead);
  font-weight: var(--weight-medium);
}

.big {
  max-width: var(--measure-lede);
  color: var(--color-ink);
  font-size: var(--text-lead);
  font-weight: var(--weight-display);
  line-height: var(--leading-lead);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  padding: var(--button-pad-block) var(--button-pad-inline);
  border: var(--hairline) solid var(--color-line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-ui);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--time-quick), border-color var(--time-quick), scale var(--time-micro) ease-out;
}

@media (hover: hover) {
  .btn:hover {
    border-color: var(--color-ink-soft);
    background: var(--color-raised);
    color: var(--color-ink);
    text-decoration: none;
  }
}

.btn:active {
  scale: 0.97;
}

.btn:focus-visible {
  border-radius: var(--radius);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  color: var(--color-ink-faint);
  cursor: not-allowed;
}

.btn-solid {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

@media (hover: hover) {
  .btn-solid:hover {
    border-color: transparent;
    background: color-mix(in oklch, var(--color-accent) 88%, var(--color-ink));
    color: var(--color-on-accent);
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

/* Figures, and the drafting marks that frame a few of them */
figure.f {
  display: grid;
  gap: var(--space-3);
}

figure.f > figcaption,
.cap,
.note {
  max-width: var(--measure-note);
  color: var(--color-ink-faint);
  font-size: var(--text-small);
  line-height: var(--leading-lead);
}

.reg {
  position: relative;
}

.reg::before,
.reg::after {
  content: "";
  position: absolute;
  width: var(--reg-size);
  height: var(--reg-size);
  border: solid var(--color-ink-faint);
  opacity: 0.7;
  pointer-events: none;
}

.reg::before {
  top: var(--reg-offset);
  left: var(--reg-offset);
  border-width: var(--hairline) 0 0 var(--hairline);
}

.reg::after {
  right: 0;
  bottom: var(--reg-offset);
  border-width: 0 var(--hairline) var(--hairline) 0;
}

/* On a full-width block the marks frame the content, not the screen edge. */
.wrap.reg::before {
  left: calc(var(--gut-l) + var(--reg-offset));
}

.wrap.reg::after {
  right: calc(var(--gut-r) + var(--reg-offset));
}

/* Facts set as pairs, with no rules between them */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--fact-min)), 1fr));
  gap: var(--space-5) var(--space-7);
}

.facts dt {
  margin-bottom: var(--space-1);
  color: var(--color-ink-faint);
  font-size: var(--text-small);
}

.facts dd {
  color: var(--color-ink);
  line-height: var(--leading-snug);
}

.facts dd .note {
  display: block;
  margin-top: var(--space-1);
}

/* Tables of figures */
.table {
  overflow-x: auto;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-ui);
  font-variant-numeric: tabular-nums;
}

.table caption {
  padding-bottom: var(--space-2);
  color: var(--color-ink-faint);
  font-size: var(--text-small);
  text-align: left;
}

.table th,
.table td {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  font-weight: var(--weight-body);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  color: var(--color-ink-faint);
  font-size: var(--text-small);
}

.table tbody th {
  color: var(--color-ink);
}

.table td {
  color: var(--color-ink-soft);
}

/* Plain lists of links and facts */
.plain-links,
.plain-list {
  display: grid;
  gap: var(--space-2);
  list-style: none;
}

/* Text still waiting on Kai. A strict build refuses to ship any of it. */
.pending {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  background: var(--color-hold-ground);
  color: var(--color-hold);
  font-size: var(--text-small);
}

.hold {
  max-width: var(--measure);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--color-hold-ground);
  color: var(--color-hold);
}

/* Entrances: pieces rise into place as they scroll in. Only position moves,
   so text keeps its full contrast at every point, scrolled to or not.
   Browsers without scroll timelines show every piece in place. */
@keyframes rise {
  from {
    transform: translateY(var(--rise-distance)) scale(0.97);
  }

  to {
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

/* Cross-document view transitions between pages */
@view-transition {
  navigation: auto;
}

main:not(:has(> .hero:first-child)) {
  view-transition-name: sheet;
}

::view-transition-group(sheet) {
  animation-duration: var(--time-route);
  animation-timing-function: var(--ease);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--time-fade);
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: var(--time-instant) !important;
    animation-iteration-count: 1 !important;
    transition-duration: var(--time-instant) !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn {
    border: var(--hairline) solid ButtonText;
  }

  .reg::before,
  .reg::after {
    border-color: CanvasText;
  }
}

@media print {
  .skip,
  .site-h,
  .f-nav,
  .btn {
    display: none !important;
  }

  body,
  .site-f {
    background: Canvas;
    color: CanvasText;
  }

  a {
    color: CanvasText;
  }

  .sec {
    padding-block: var(--space-5);
    break-inside: avoid-page;
  }

  .sec-split .sec-h {
    position: static;
  }
}

/* Pages that read top to bottom: the legal pages, the colophon, and the 404.
   Pages still waiting on their redesign borrow the same column. */
.page > section,
.page > article > section {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-5);
}

.page > section > p,
.page > article > section > p,
.page li,
.page dd {
  max-width: var(--measure);
  color: var(--color-ink-soft);
}

.page h2 {
  margin-top: var(--space-4);
  font-size: var(--text-lead);
  font-stretch: var(--stretch-semi);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

.page h3 {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}

.page ul:not(.plain-links, .plain-list) {
  display: grid;
  gap: var(--space-4);
  list-style: none;
}

.page .table + .table {
  margin-top: var(--space-6);
}

.page img {
  border-radius: var(--radius-m);
}

.verify {
  display: grid;
  gap: var(--space-4);
}

.verify dt {
  color: var(--color-ink);
  font-weight: var(--weight-medium);
}

/* ==================== Home ==================== */
/* hero */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: var(--hero-min-height); background: var(--color-hero-ground); color: var(--color-hero-1); overflow: hidden; }
.hero-cv { position: absolute; left: -3%; top: -3%; width: 106%; height: 106%; z-index: -2; display: block; will-change: transform; }
.hero-cv-front { z-index: -2; }
@keyframes hero-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-1.6%, 0.8%, 0) scale(1.025); } }
@media (prefers-reduced-motion: no-preference) {
.hero-moving .hero-cv { animation: var(--hero-animation); }
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(var(--hero-background), var(--color-hero-ground) 0%, var(--color-hero-8) 36%, var(--color-hero-2) 54%, transparent 72%), linear-gradient(0deg, var(--color-hero-2), transparent 40%); }
.hero:not(.hero-live) { background: var(--hero-background-2); }
.hero-in { display: grid; gap: var(--space-5); padding-block: var(--hero-padding-block); }
.hero h1 { font-stretch: var(--stretch-wide); font-weight: 300; font-size: var(--hero-font-size); line-height: 1; max-width: var(--hero-max-width); color: var(--color-hero-3); }
@media (min-width: 52rem) {
.hero-in > * { max-width: var(--hero-max-width-2); }
}
.hero-lede { font-size: var(--text-lead); line-height: 1.5; font-weight: 350; max-width: var(--hero-max-width-3); color: var(--color-hero-4); }
.hero-go { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero .btn-solid { background: var(--color-hero-warm); border-color: var(--color-hero-warm); color: var(--color-hero-ground); }
.hero-q { color: var(--color-hero-1); border-color: var(--color-hero-5); }
@media (hover: hover) {
.hero-q:hover { background: var(--color-hero-6); border-color: var(--color-hero-7); }
}
@media (max-width: 52rem) {
.hero { min-height: var(--hero-min-height-2); }
.hero::before { background: linear-gradient(0deg, var(--color-hero-ground) 0%, var(--color-hero-8) 42%, transparent 64%); }
}

/* vig */
/* Vignettes */
.vig { width: 100%; height: auto; overflow: visible; }
.v-care { overflow: hidden; }
.v-frame { fill: var(--color-ground); stroke: var(--color-line-strong); stroke-width: 1.2; }
.v-rule { stroke: var(--color-line-strong); }
.v-line { fill: none; stroke: var(--color-ink-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.v-ink { fill: var(--color-ink); opacity: 0.85; }
.v-dim { fill: var(--color-ink-faint); opacity: 0.55; }
.v-img { fill: var(--color-cool); opacity: 0.35; }
.v-acc { fill: var(--color-accent); }
.v-card { fill: var(--color-raised-2); stroke: var(--color-line-strong); }
.v-scr { fill: var(--color-raised); }
.v-ok { fill: var(--color-vig-1); } .v-warn { fill: var(--color-accent); }
.v-tx { font: 600 var(--vig-font) var(--font-body); fill: var(--color-ink); }
.v-sm { font-size: var(--vig-font-size); font-weight: 500; }
.v-bad { fill: var(--color-mark); font-weight: 600; }
.v-on { fill: var(--color-on-accent); font-weight: 600; }
.v-track { fill: var(--color-line-strong); }
.v-fill { fill: var(--color-accent); transform-box: fill-box; transform-origin: left center; }
.v-check { fill: none; stroke: var(--color-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; }
.v-a, .v-st, .v-seat, .v-note, .v-beat, .v-tick { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .v-a { animation: v-in var(--vig-animation) var(--ease) infinite both; }
  .v-a2 { animation-delay: var(--time-fade); } .v-a3 { animation-delay: var(--vig-animation-delay); } .v-a4 { animation-delay: var(--vig-animation-delay-2); }
  .v-st { opacity: 0; animation: var(--vig-animation-2); }
  .v-st2 { animation-delay: var(--vig-animation-delay-3); } .v-st3 { animation-delay: var(--vig-animation-delay-4); } .v-st4 { animation-delay: var(--vig-animation-delay-5); }
  .v-seat { animation: v-pass var(--vig-animation-3) var(--ease) infinite; }
  .v-note { animation: v-drop var(--vig-animation-4) var(--ease) infinite; }
  .v-fill { animation: v-fill var(--vig-animation-5) var(--ease) infinite; }
  .v-check { animation: var(--vig-animation-6); }
  .v-beat { animation: var(--vig-animation-7); }
  .v-tick { animation: var(--vig-animation-8); }
  .v-t2 { animation-delay: var(--vig-animation-delay-3); } .v-t3 { animation-delay: var(--vig-animation-delay-4); }
}
@keyframes v-in { 0% { opacity: 0; transform: var(--vig-transform); } 12%, 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: var(--vig-transform-2); } }
@keyframes v-cycle { 0% { opacity: 0; } 4%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes v-pass { 0%, 18% { transform: none; } 48%, 68% { transform: var(--vig-transform-3); } 100% { transform: var(--vig-transform-3); opacity: 0; } }
@keyframes v-drop { 0%, 8% { opacity: 0; transform: var(--vig-transform-4); } 18%, 70% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: var(--vig-transform-5); } }
@keyframes v-fill { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
@keyframes v-draw { 0%, 55% { stroke-dashoffset: 30; } 75%, 100% { stroke-dashoffset: 0; } }
@keyframes v-slide { from { transform: translateX(0); } to { transform: var(--vig-transform-6); } }
@keyframes v-blink { 0%, 100% { opacity: 0.35; } 8% { opacity: 1; } 30% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .v-st1, .v-st4 { opacity: 1; } .v-st2, .v-st3 { opacity: 0; } .v-check { stroke-dashoffset: 0; } }


/* un */
/* Untangle */
.un { display: grid; gap: var(--space-4); }
.un-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); min-height: var(--un-min-height); }
.un-say { color: var(--color-ink-soft); font-size: var(--text-ui); }
.un-say-a { display: none; }
.un-done .un-say-a { display: inline; }
.un-done .un-say-b { display: none; }
.un-pause { display: none; }
.un-loop { position: relative; }
.un-loop .un-ctl { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2; margin: 0; }
.un-loop .un-pause { min-height: var(--un-min-height-2); padding-inline: var(--space-4); font-size: var(--text-small); background: var(--color-ground); }
@media (scripting: enabled) { html:root .un-pause { display: inline-flex; } }
.un-pause[aria-pressed="true"] .un-go { display: none; }
.un-pause[aria-pressed="true"] .un-undo { display: inline; }
.un-loop .un-stage { min-height: 0; }
.un-head { position: absolute; z-index: 2; left: var(--un-left); top: var(--un-top); display: grid; gap: var(--space-2); max-width: var(--un-max-width); pointer-events: none; }
.un-head h2 { font-stretch: var(--stretch-wide); font-weight: 350; font-size: var(--text-h2); line-height: 1.06; }
.un-head .un-say { font-size: var(--text-ui); color: var(--color-ink-soft); }
.un-head .un-say span { transition: var(--un-transition); }
.un-loop .un-ctl { justify-content: flex-end; }
.un-loop .un-lists { position: absolute !important; width: var(--hairline); height: var(--hairline); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.un-loop .un-stage { background: radial-gradient(120% 90% at 70% 100%, color-mix(in oklch, var(--color-hero-sun) 14%, transparent), transparent 60%), var(--color-raised); }
.un-tall .un-head { position: static; padding: var(--space-4) var(--space-4) 0; }
.un-ctl .btn { display: none; }
@media (scripting: enabled) { html:root .un-ctl .btn { display: inline-flex; } }
.un-undo { display: none; }
.un-btn[aria-pressed="true"] .un-go { display: none; }
.un-btn[aria-pressed="true"] .un-undo { display: inline; }
.un-num { font-stretch: var(--stretch-wide); font-weight: 350; font-size: var(--text-h2); color: var(--color-ink); margin-right: var(--space-1); vertical-align: var(--un-vertical-align); display: inline-block; min-width: var(--un-min-width); }
.un-stage { position: relative; border-radius: var(--radius-l); background: var(--color-raised); border: var(--hairline) solid var(--color-line); overflow: hidden; }
.un-canvas { display: block; width: 100%; height: auto; aspect-ratio: 960 / 520; }
.un-tall .un-canvas { aspect-ratio: 520 / 960; }
.un-stills { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .un-stills { grid-template-columns: repeat(2, minmax(0, 1fr)); } .un-still + .un-still { border-left: var(--hairline) solid var(--color-line); } }
.un-still { padding: var(--space-3); }
.un-still figcaption { font-size: var(--text-small); color: var(--color-ink-faint); padding: var(--space-1) var(--space-2); }
.un-live .un-stills { display: none; }
.un-ring { fill: none; stroke: var(--un-ring); stroke-width: 1.4; }
.un-ring2 { fill: none; stroke: var(--un-ring); stroke-width: 1; opacity: 0.6; }
.un-s { fill: none; stroke-width: 1.3; stroke-linecap: round; opacity: 0.6; }
.un-hand { stroke: var(--un-hand); }
.un-rewrite { stroke: var(--un-rewrite); }
.un-recheck { stroke: var(--un-recheck); stroke-dasharray: 4 4; }
.un-a { fill: none; stroke: var(--un-clean); stroke-width: 2.4; stroke-linecap: round; }
.un-a-check, .un-a-round { stroke-dasharray: 6 5; stroke-width: 1.8; }
.un-dot { fill: var(--un-node); }
.un-studio { fill: var(--un-clean); }
.un-lbl { font-size: var(--un-font-size); fill: var(--un-label); }
.un-lbl-new { font-weight: 600; fill: var(--un-clean); }
.un-note { font-size: var(--un-font-size-2); fill: var(--un-note); font-style: italic; }
.un-key { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-small); color: var(--color-ink-soft); }
.un-key li { display: inline-flex; align-items: center; gap: var(--space-2); }
.un-key i { width: var(--space-5); height: 0; border-top: var(--rule-strong) solid; }
.k-tall { display: none !important; }
.un-tall .k-tall { display: inline-flex !important; }
.k-planned { color: var(--un-clean); border-top-style: dashed !important; }
.k-hand { color: var(--un-hand); } .k-rewrite { color: var(--un-rewrite); } .k-recheck { color: var(--un-recheck); border-top-style: dashed !important; } .k-clean { color: var(--un-clean); border-top-width: var(--un-border-top-width) !important; }
.un-lists { display: grid; gap: var(--space-5); grid-template-columns: var(--un-grid-template-columns); font-size: var(--text-ui); }
.un-lists h3 { font-size: var(--text-ui); font-weight: 500; }
.un-lists p { color: var(--color-ink-faint); font-size: var(--text-small); margin-top: var(--space-1); }
.un-lists ul { margin-top: var(--space-3); padding-left: var(--un-padding-left); display: grid; gap: var(--space-1); color: var(--color-ink-soft); }
.un-lists li::marker { color: var(--color-accent); }
@media print { .un-ctl, .un-key { display: none; } .un-stills { display: grid !important; } .un-canvas { display: none; } }


/* xv */
/* Exploded View */
.xv { overflow-x: clip; --gap: 0px; --rx: 0deg; --rz: 0deg; --tx: 0; --ty: 0; display: grid; gap: var(--space-6) var(--space-8); position: relative; align-items: start; }
@media (min-width: 64rem) { .xv { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.xv-stage { position: relative; display: grid; place-items: center; min-height: var(--xv-min-height); padding: var(--space-5) 0; }
.xv-scene { perspective: var(--xv-perspective); width: min(84%, var(--w, var(--xv-width))); }
.xv-stack { position: relative; aspect-ratio: var(--ar); transform-style: preserve-3d; transform: rotateX(calc(var(--rx) + var(--ty) * var(--xv-transform))) rotateZ(calc(var(--rz) + var(--tx) * var(--xv-transform))); transition: transform var(--xv-transition) var(--ease), translate var(--xv-transition) var(--ease); }
/* Opened, the stack rises by its layers' spacing. It drops by half of that, so it stays centered in its own box. */
.xv { --nl: 7; --lift: 0px; }
.xv[data-state="open"] .xv-stack { translate: 0 calc(((var(--nl) - 1) * var(--gap) + var(--lift)) * 0.415); }
.xv-l { position: absolute; inset: 0; margin: 0; --xvl-dz: 0px; transform: translateZ(calc(var(--z) * var(--gap) + var(--xvl-dz))); transition: transform var(--xv-transition-2) var(--ease) calc(var(--z) * var(--xv-transition-3)), opacity var(--xv-transition-4), filter var(--xv-transition-4); cursor: pointer; }
.xv-face { position: absolute; inset: 0; overflow: hidden; border-radius: var(--xv-border-radius); background: var(--color-paper); box-shadow: var(--xv-box-shadow); }
.xv-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.xv-pin { position: absolute; right: 0; bottom: 0; width: var(--hairline); height: var(--hairline); }
.xv-num { position: absolute; left: var(--xv-left); bottom: var(--xv-bottom); width: var(--xv-width-2); height: var(--xv-height); border-radius: 50%; display: none; place-items: center; font-size: var(--xv-font-size); font-weight: 600; color: var(--color-ink); border: var(--hairline) solid var(--color-ink-soft); background: var(--color-ground); }
.xv[data-state="open"] { --gap: var(--xv-gap); --rx: var(--xv-rx); --rz: var(--xv-rz); }
.xv-l.hot { --xvl-dz: var(--xv-transform-2); transition-delay: 0s; transition-duration: var(--xv-transition-duration); }
.xv-l.hot .xv-face, .xv-l.sel .xv-face { box-shadow: 0 0 0 var(--rule-strong) var(--color-accent), 0 var(--xv-box-shadow-2) var(--xv-box-shadow-3) var(--color-xv-1); }
.xv-l.sel { --xvl-dz: var(--xv-transform-3); transition-delay: 0s; }
.xv[data-pulled] .xv-scene { opacity: 0; transform: scale(0.96); pointer-events: none; }
.xv-scene { transition: opacity var(--xv-transition-4), transform var(--xv-transition-5) var(--ease); }
.xv:has(.xv-l.sel) .xv-l:not(.sel) { opacity: 0.6; filter: saturate(0.6); }
/* With a layer chosen, the layers above it fade out entirely, so you see
   straight down to it. Nothing moves. Their names and leaders stay, so any of
   them can still be chosen. */
.xv:has(.xv-l.sel) .xv-l.above:not(.sel) { opacity: 0; filter: none; pointer-events: none; }
.xv-leads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity var(--time-open); }
.xv-leads.on { opacity: 1; }
.xv-leads polyline { fill: none; stroke: var(--color-ink-faint); stroke-width: 1; }
.xv-leads polyline.hot { stroke: var(--color-accent); stroke-width: 1.5; }
.xv-leads circle { fill: var(--color-ground); stroke: var(--color-ink-faint); }
.xv-side { display: grid; gap: var(--space-5); align-content: start; position: relative; z-index: 2; min-width: 0; }
.xv-ctl { display: flex; gap: var(--space-3); }
.xv-toggle .off { display: none; }
.xv-toggle[aria-pressed="false"] .on { display: none; }
.xv-toggle[aria-pressed="false"] .off { display: inline; }
@media (scripting: none) { html:root .xv-ctl { display: none; } }
.xv-menu { list-style: none; display: grid; }
.xv-lk { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; color: var(--color-ink); text-decoration: none; font-size: var(--text-lead); font-stretch: var(--stretch-semi); font-weight: 400; }
.xv-lk .n, .xv-p h3 .n { display: inline-grid; place-items: center; flex: none; width: var(--xv-width-3); height: var(--xv-height-2); border-radius: 50%; border: var(--hairline) solid var(--color-ink-soft); font-size: var(--xv-font-size-2); font-weight: 600; font-stretch: 100%; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .xv-lk:hover { color: var(--color-accent); } .xv-lk:hover .n { border-color: var(--color-accent); } }
.xv-lk[aria-current="true"] { color: var(--color-accent); }
.xv-lk[aria-current="true"] .n { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.xv-opens { margin-left: var(--space-3); font-size: var(--text-small); font-stretch: 100%; color: var(--color-ink-faint); }
.xv-view { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-3); z-index: 3; }
.xv-view[hidden] { display: none; }
.xv-vf { position: relative; border-radius: var(--radius-m); overflow: auto; box-shadow: var(--shadow); background: var(--color-raised); overscroll-behavior: contain; min-height: 0; }
.xv-vf > img { display: block; width: 100%; height: auto; }
.xv-vf img { width: 100%; display: block; }
.xv-vbar { display: flex; align-items: center; gap: var(--space-4); }
.xv-vname { color: var(--color-ink-faint); font-size: var(--text-ui); }
.xv-panels { display: grid; gap: var(--space-6); position: relative; }
.xv-hint { display: none; color: var(--color-ink-faint); font-size: var(--text-ui); max-width: var(--xv-max-width); }
@media (scripting: enabled) { html:root .xv[data-state="open"]:not([data-sel]) .xv-hint { display: block; animation: xv-in var(--time-route) var(--ease); } }
/* The chosen layer is tied to its details by a two-part leader, in the accent. */
.xv-side { position: relative; }
.xv-menu, .xv-panels { padding-left: var(--xv-padding-left); }
.xv-tie { position: absolute; left: var(--xv-left-2); top: var(--tie-t, 0px); height: var(--tie-h, 0px); width: var(--tie-a, 0px); border-left: var(--hairline) solid var(--color-accent); border-top: var(--hairline) solid var(--color-accent); pointer-events: none; opacity: 0; transition: opacity var(--time-open), top var(--xv-transition-6) var(--ease), height var(--xv-transition-6) var(--ease); }
.xv-tie::after { content: ""; position: absolute; left: var(--xv-left-3); bottom: 0; width: var(--tie-b, 0px); border-bottom: var(--hairline) solid var(--color-accent); }
@media (scripting: enabled) { html:root .xv[data-sel] .xv-tie { opacity: 1; } }
.xv[data-sel] .xv-p.on h3 .n { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.xv[data-sel] .xv-p.on h3 { color: var(--color-accent); }

.xv-p { display: grid; gap: var(--space-3); max-width: var(--xv-max-width-2); }
.xv-p:focus { outline: none; }
.xv-p h3 { display: flex; align-items: center; gap: var(--space-3); font-stretch: var(--stretch-wide); font-weight: 400; font-size: var(--text-lead); }
.xv-p p { color: var(--color-ink-soft); }
@media (scripting: enabled) { html:root .xv-p { display: none; } }
@media (scripting: enabled) { html:root .xv-p.on { display: grid; animation: xv-in var(--time-route) var(--ease); } }
@keyframes xv-in { from { opacity: 0; transform: var(--xv-transform-4); } }
::view-transition-group(xv-pick) { animation-duration: var(--xv-animation-duration); animation-timing-function: var(--ease); }

/* Sheets drawn from the page itself */
.xv-sheet { position: absolute; inset: 0; padding: 8%; display: grid; gap: 6%; align-content: center; background: var(--color-xv-2); color: var(--color-xv-3); }
.xv-sws { display: flex; gap: 5%; }
.xv-sw { flex: 1; display: grid; gap: var(--xv-gap-2); }
.xv-sw i { aspect-ratio: 1; border-radius: var(--xv-border-radius-2); box-shadow: inset 0 0 0 var(--hairline) var(--color-xv-4); }
.xv-sw small { font-family: var(--font-mono); font-size: var(--xv-font-size-3); color: var(--color-xv-5); }
.xv-spec { font-family: Georgia, "Times New Roman", serif; font-size: var(--xv-font-size-4); line-height: 1.1; }
.xv-note { font-size: var(--xv-font-size-5); color: var(--color-xv-5); }
.xv-studio { padding: 0; grid-template-columns: 26% 1fr; gap: 0; align-content: stretch; background: var(--color-xv-6); }
.ss-rail { background: var(--color-xv-7); padding: 10% 8%; display: grid; gap: 7%; align-content: start; }
.ss-rail b { font-family: Georgia, serif; font-size: var(--xv-font-size-6); color: var(--color-xv-8); }
.ss-rail i { height: var(--xv-height-3); border-radius: var(--rule-strong); background: var(--color-xv-9); }
.ss-rail i:first-of-type { background: var(--color-xv-10); }
.ss-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3%; padding: 6% 5%; align-content: start; }
.ss-cols div { display: grid; gap: var(--xv-gap-2); align-content: start; }
.ss-cols small { font-size: var(--xv-font-size-7); color: var(--color-xv-11); }
.ss-cols span { height: var(--xv-height); border-radius: var(--xv-border-radius-2); background: var(--color-xv-12); box-shadow: 0 0 0 var(--hairline) var(--color-xv-13); }

/* Cover mode: the plain screenshot until you open it */
.xv-cover { display: none; }
.xv-in .xv-cover { all: unset; position: relative; display: block; width: 100%; cursor: pointer; border-radius: var(--radius-m); }
.xv-in .xv-cover:focus-visible { outline: var(--rule-strong) solid var(--color-accent); outline-offset: var(--xv-outline-offset); }
.xv-cover-img img { width: 100%; border-radius: var(--radius-m); box-shadow: var(--shadow); display: block; }
.xv-chip { position: absolute; right: var(--space-4); bottom: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius); background: var(--color-xv-14); color: var(--color-xv-15); font-size: var(--text-ui); font-weight: 500; backdrop-filter: var(--xv-backdrop-filter); transition: transform var(--time-menu) var(--ease); }
.xv-chip i { width: var(--xv-width-4); height: var(--xv-height-4); border: var(--xv-border); border-radius: var(--rule-strong); box-shadow: var(--xv-box-shadow-4); }
@media (hover: hover) { .xv-in .xv-cover:hover .xv-chip { transform: var(--xv-transform-5); background: var(--color-xv-16); } }
.xv-in[data-state="closed"] .xv-scene, .xv-in[data-state="closed"] .xv-leads { display: none; }
.xv-in[data-state="open"] .xv-cover { display: none; }
.xv-in[data-state="closed"] .xv-stage { min-height: 0; display: block; }
.xv-in .xv-aside { transition: opacity var(--xv-transition-5), filter var(--xv-transition-5), transform var(--xv-transition-5) var(--ease); }
@media (min-width: 64rem) {
  .xv-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .xv-in .xv-stage { grid-area: 1 / 1; }
  .xv-in .xv-aside, .xv-in .xv-side { grid-area: 1 / 2; }
  .xv-in[data-state="open"] .xv-aside { opacity: 0; visibility: hidden; filter: var(--xv-filter); transform: var(--xv-transform-6); pointer-events: none; transition: opacity var(--time-route), filter var(--time-route), transform var(--time-route) var(--ease), visibility 0s var(--time-route); }
  .xv-in[data-state="closed"] .xv-side { opacity: 0; visibility: hidden; }
  .xv-in .xv-side { transition: var(--xv-transition-7); }
}
@media (max-width: 63.99rem) {
  .xv-in[data-state="open"] .xv-aside { display: none; }
  .xv-in[data-state="closed"] .xv-side { display: none; }
  .xv-leads { display: none; }
  .xv-num { display: grid; }
  .xv-stage { min-height: var(--xv-min-height-2); }
  .xv-lk { font-size: var(--text-body); }
}
@media (scripting: none) { html:root .xv-in .xv-cover { display: none; } }
@media (scripting: none) { html:root .xv-in .xv-scene { display: block; } }
@media (scripting: none) { html:root .xv-in .xv-side { opacity: 1; visibility: visible; display: grid; } }
@media (scripting: none) { html:root .xv-in .xv-aside { display: none; } }
@media (prefers-reduced-motion: reduce) { .xv-stack, .xv-l, .xv { transition: none; } }
@media print { .xv-stage { display: none; } .xv-p { display: grid !important; } .xv-ctl, .xv-view { display: none; } }

.xv-z0 { --z: 0; }
.xv-z1 { --z: 1; }
.xv-z2 { --z: 2; }
.xv-z3 { --z: 3; }
.xv-z4 { --z: 4; }
.xv-z5 { --z: 5; }
.xv-z6 { --z: 6; }
.xv-z7 { --z: 7; }
.xv-z8 { --z: 8; }
.xv-bl-xv { --ar: 0.8; --w: var(--xv-w); }
.xv-bl-xv .xv-sw-a i { background: var(--color-xv-12); }
.xv-bl-xv .xv-sw-b i { background: var(--color-xv-6); }
.xv-bl-xv .xv-sw-c i { background: var(--color-xv-17); }
.xv-home-xv { --ar: 1.6; --w: var(--xv-w-2); }

.xv-at-xv { --ar: 1.6; --w: var(--xv-w-2); }
.xv-fashion-board-xv { --ar: 0.8; --w: var(--xv-w); }
.xv-fashion-board-xv .xv-sw-a i { background: var(--color-fb-paper); }
.xv-fashion-board-xv .xv-sw-b i { background: var(--color-fb-rose); }
.xv-fashion-board-xv .xv-sw-c i { background: var(--color-fb-olive); }
.xv-fashion-board-xv .xv-sw-d i { background: var(--color-fb-ink); }
.xv-at-xv .xv-sw-a i { background: var(--color-xv-18); }
.xv-at-xv .xv-sw-b i { background: var(--color-xv-19); }
.xv-at-xv .xv-sw-c i { background: var(--color-xv-20); }



/* The site's own palette, under the color layer's text */
.xv-p .xv-sws { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); color: var(--color-ink-soft); font-size: var(--text-small); }
.xv-p .xv-sw { display: inline-flex; flex: none; align-items: center; gap: var(--space-2); }
.xv-p .xv-sw i { width: var(--xv-sw); height: var(--xv-sw); aspect-ratio: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 var(--hairline) var(--color-line-strong); }
.xv-font { padding-left: var(--space-4); border-left: var(--hairline) solid var(--color-line-strong); }

/* On a phone the stack, the layer names, and the chosen layer's details all
   fit on one screen: a shorter stage, the names as a block of buttons, and
   the details right under them. */
@media (max-width: 47.99rem) {
  .xv { gap: var(--space-4); }
  .xv-stage { min-height: var(--xv-min-height-3); padding: var(--space-3) 0; }
  .xv-side { gap: var(--space-4); }
  .xv-menu { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .xv-menu, .xv-panels { padding-left: 0; }
  .xv-tie { display: none; }
  .xv-lk { gap: var(--space-2); min-height: var(--target-min); padding: var(--space-1) var(--space-3); border: var(--hairline) solid var(--color-line-strong); border-radius: var(--radius); font-size: var(--text-small); font-stretch: 100%; }
  .xv-lk .n { width: var(--xv-n-phone); height: var(--xv-n-phone); }
  .xv-lk[aria-current="true"] { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-ink); }
  .xv-p h3 { font-size: var(--text-body); }
  .xv-bl-xv { --w: var(--xv-w-phone); }
  .xv-fashion-board-xv { --w: var(--xv-w-phone); }
}

/* Try it: the working recreations, apart from the layers. */
.try[hidden] { display: none; }
.try-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.try-tabs [aria-selected="true"] { border-color: var(--color-accent); background: var(--color-accent-soft); }
.try-p { display: grid; gap: var(--space-4); }
.try-p h3 { font-size: var(--text-lead); font-stretch: var(--stretch-semi); font-weight: 400; }
.try-note { max-width: var(--measure); color: var(--color-ink-soft); }
.try-frame { overflow: hidden; border-radius: var(--radius-m); background: var(--color-raised); box-shadow: 0 0 0 var(--hairline) var(--color-line-strong), var(--shadow); }
@media (scripting: enabled) { html:root .try [data-off] { display: none; } }
@media (scripting: none) { html:root .try-tabs { display: none; } }


/* home */
.builds { list-style: none; display: grid; gap: var(--space-8) var(--space-7); grid-template-columns: var(--home-grid-template-columns); }
.builds li { display: grid; gap: var(--space-3); align-content: start; }
.builds .vig { margin-bottom: var(--space-3); max-width: var(--home-max-width); }
.builds h3 { font-stretch: var(--stretch-semi); font-weight: 400; font-size: var(--text-lead); }
.builds p { color: var(--color-ink-soft); max-width: var(--home-max-width-2); }
.builds a { font-size: var(--text-ui); font-weight: 500; justify-self: start; }
.start .big { font-size: var(--text-statement); font-stretch: var(--stretch-wide); font-weight: 300; line-height: 1.25; max-width: var(--home-max-width-3); }
.ai-facts { margin-top: var(--space-3); }
.ai-lead { font-size: var(--text-h2); font-stretch: var(--stretch-wide); font-weight: 300; line-height: 1.2; max-width: var(--home-max-width-4); }
.ai-facts { grid-template-columns: var(--home-grid-template-columns-2); gap: var(--space-6) var(--space-7); }
.ai-facts dt { font-size: var(--text-body); color: var(--color-ink); font-weight: 500; }
.ai-facts dd { color: var(--color-ink-soft); }
.ai-notes { list-style: none; display: grid; gap: var(--space-1); font-size: var(--text-small); color: var(--color-ink-faint); max-width: var(--home-max-width-5); }
.sec-ai { position: relative; isolation: isolate; }
.sec-ai::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, color-mix(in oklch, var(--color-hero-sun) 12%, transparent), transparent) 88% 22% / 62% 60% no-repeat, radial-gradient(closest-side, color-mix(in oklch, var(--color-cool) 8%, transparent), transparent) 8% 88% / 48% 46% no-repeat; }
.ai-k { color: var(--color-accent); }
.ai-stat { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin: 0; }
.ai-n { font-size: var(--home-font-size); font-stretch: var(--stretch-wide); font-weight: 200; line-height: 0.9; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.ai-stat figcaption { display: grid; gap: var(--space-3); max-width: var(--home-max-width-6); color: var(--color-ink-soft); }
.ai-meter { display: block; height: var(--home-height); width: var(--home-width); border-radius: var(--home-border-radius); background: var(--color-line-strong); overflow: hidden; }
.ai-meter i { display: block; height: 100%; width: 45%; background: linear-gradient(var(--home-background), var(--color-accent), var(--color-home-1)); border-radius: var(--home-border-radius); }
.ai-ic { display: block; width: var(--home-width-2); height: var(--home-height-2); margin-bottom: var(--space-3); fill: none; stroke: var(--color-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ai-vs { overflow-x: auto; }
.ai-tbl { width: 100%; border-collapse: collapse; font-size: var(--text-ui); }
.ai-tbl thead th { text-align: left; font-weight: 500; font-size: var(--text-small); color: var(--color-ink-faint); padding: 0 var(--space-4) var(--space-3); }
.ai-tbl thead .ai-us { color: var(--color-accent); }
.ai-tbl tbody th { text-align: left; font-weight: 400; color: var(--color-ink-soft); padding: var(--space-4) var(--space-4) var(--space-4) 0; border-top: var(--hairline) solid var(--color-line); width: 26%; }
.ai-tbl td { padding: var(--space-4); border-top: var(--hairline) solid var(--color-line); vertical-align: top; }
.ai-tbl td:nth-of-type(1) { color: var(--color-ink-faint); }
.ai-tbl td:nth-of-type(2) { color: var(--color-ink); background: color-mix(in oklch, var(--color-accent) 7%, transparent); }
.ai-tbl tbody tr:last-child td:nth-of-type(2) { border-radius: 0 0 var(--radius) var(--radius); }
/* On a phone it stays a table: the two column heads once at the top, each
   question across the full width, and its two answers side by side beneath. */
@media (max-width: 47.99rem) {
.ai-tbl, .ai-tbl thead, .ai-tbl tbody { display: block; }
.ai-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--space-2); }
.ai-tbl thead td { display: none; }
.ai-tbl thead th { padding: 0 var(--space-3) var(--space-3); }
.ai-tbl tbody th { grid-column: 1 / -1; width: auto; padding: var(--space-5) 0 var(--space-2); color: var(--color-ink); font-weight: 500; }
.ai-tbl td { padding: var(--space-3); border-top: 0; line-height: var(--leading-snug); }
.ai-tbl tbody tr td:nth-of-type(2) { border-radius: var(--radius); }
}
.ai-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); padding-top: var(--space-3); }
.ai-cta p { font-size: var(--text-lead); font-stretch: var(--stretch-wide); font-weight: 300; line-height: 1.25; max-width: var(--home-max-width-3); }

/* ==================== Work and case studies ==================== */
/* rooms */
/* As you scroll, the whole page crosses from one build's colors to the next
   (rooms.js): the ground, the words, and the accents together, straight
   across in OKLab, so no other hue shows on the way. The words change over
   the middle of each crossing, while the gap between rooms fills the screen. */
body.rooms-on {
  --pb: 0; --pa: 0;
  --color-ground: var(--rm-ground);
  --color-ink: var(--rm-ink);
  --color-ink-soft: var(--rm-soft);
  --color-ink-faint: var(--rm-soft);
  --color-accent: var(--rm-acc);
  --color-link: var(--color-accent);
  --color-link-hover: var(--color-ink);
  background: var(--color-ground); color: var(--color-ink);
}
/* The header and the index stay on screen through every crossing. Their words
   take near white or near black, whichever the ground beneath needs, and fade
   from one to the other as the ground passes the middle. */
body.rooms-on .site-h, body.rooms-on .rm-index { --color-ink: var(--rm-safe); --color-ink-soft: var(--color-ink); --color-accent: var(--color-ink); --color-link: var(--color-ink); --color-link-hover: var(--color-ink); --color-line: color-mix(in oklab, var(--rm-safe) 12%, transparent); --color-line-strong: color-mix(in oklab, var(--rm-safe) 30%, transparent); color: var(--color-ink); }
body.rooms-on .site-h, body.rooms-on .site-h a, body.rooms-on .site-h summary, body.rooms-on .rm-index, body.rooms-on .rm-index a { transition: color var(--time-route), border-color var(--time-route), background-color var(--time-route); }
body.rooms-on .site-f { background: color-mix(in oklab, var(--color-ground) 88%, var(--color-ink)); }
.rooms8 .room { background: transparent; color: var(--color-ink); transition: none; min-height: var(--rooms-min-height); padding-block: var(--rooms-padding-block); }
@media (scripting: none) { html:root .rooms8 .room-blossom { background: var(--color-rooms-1); color: var(--color-rooms-2); } }
@media (scripting: none) { html:root .rooms8 .room-atlas { background: var(--color-rooms-5); color: var(--color-rooms-6); } }
.rm-gap { height: var(--rooms-height); }
.rm-gap-end { height: var(--rooms-height-2); }
/* A room rises a little as it comes near, and its picture fades in. The
   words fade down through the middle of each crossing (rooms.js). */
body.rooms-on [data-fade] { opacity: var(--rm-fade); }
.rooms8 .room-in { transform: translateY(calc((1 - var(--p, 1)) * var(--rooms-transform))); }
.rooms8 .room-shot { opacity: calc(0.25 + var(--p, 1) * 0.75); }
/* The whole room opens its case study: the name, the picture, the figures. */
.rooms8 .room-in { position: relative; }
.rooms8 .room-go::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.rooms8 .room-in:has(.room-go) { cursor: pointer; }
@media (hover: hover) {
  .rooms8 .room-in:has(.room-go:hover) .room-shot { outline: var(--rule-strong) solid var(--color-accent); outline-offset: var(--space-2); }
  .rooms8 .room-in:has(.room-go:hover) h2 { text-decoration: underline; text-decoration-thickness: var(--hairline); text-underline-offset: var(--space-2); }
}
.rooms8 .room-go:focus-visible { outline-offset: var(--space-1); }
.rooms8 .room h2 { font-size: var(--rooms-font-size); color: var(--color-ink); }
.rooms8 .room-k, .rooms8 .room-l, .rooms8 .room-f span { color: var(--color-ink-soft); }
/* Petals and sparks drift behind the words. A soft halo in the ground's
   color keeps every letter clear of them. */
.rooms8 .room-t, .rooms8 .room-f { text-shadow: 0 0 var(--hairline) var(--color-ground), 0 0 var(--space-2) var(--color-ground), 0 0 var(--space-3) var(--color-ground), 0 0 var(--space-4) var(--color-ground), 0 0 var(--space-6) var(--color-ground); }
/* A button with its own fill needs no halo. */
.rooms8 .room-atlas .room-go { text-shadow: none; }
.rooms8 .room-f b { color: var(--color-accent); }
.rm-word { display: flex; align-items: center; gap: var(--space-3); color: var(--color-accent); }
.rm-word-bl span { font-family: Georgia, serif; font-style: italic; font-size: var(--text-lead); }
.rm-word-bl .rm-fl { width: var(--rooms-width); height: var(--rooms-height-3); }
.room-atlas .rm-word { font-family: system-ui, sans-serif; font-weight: 600; letter-spacing: var(--rooms-letter-spacing); font-size: var(--text-small); }
.room-blossom h2 { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: var(--rooms-letter-spacing-2); }
.room-blossom .room-go { font-family: Georgia, serif; font-style: italic; font-size: var(--text-lead); color: var(--color-accent); text-decoration-thickness: var(--hairline); }
.room-blossom .room-shot { border-radius: var(--rooms-border-radius); box-shadow: var(--rooms-box-shadow); }
.room-blossom .room-f b { font-family: Georgia, serif; font-style: italic; }
.room-atlas h2 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 200; letter-spacing: var(--rooms-letter-spacing-3); }
.room-atlas .room-go { display: inline-flex; padding: var(--rooms-padding); border-radius: var(--rule-strong); background: var(--color-rooms-8); color: var(--color-rooms-5); text-decoration: none; font-family: system-ui, sans-serif; font-weight: 500; font-size: var(--text-ui); }
.room-atlas .room-shot { border-radius: var(--rule-strong); box-shadow: var(--rooms-box-shadow-2); }
.room-atlas .room-f b { font-family: system-ui, sans-serif; font-weight: 200; }
.rm-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.rooms8, .rm-index, .ph, .site-f, main > .wrap { position: relative; z-index: 1; }
.rm-deco-blossom { opacity: var(--pb); background: radial-gradient(60% 50% at 85% 20%, var(--color-rooms-15), transparent 70%); }
.rm-deco-atlas { opacity: var(--pa); }
.rm-deco.is-off { display: none; }
.rm-deco-fb { opacity: var(--pf); }
/* Each piece sits at its own angle and drifts on a layer of its own, so the
   compositor moves it without redrawing it. */
.rm-piece { position: absolute; left: var(--x); top: var(--y); width: var(--pw); opacity: var(--po); rotate: var(--turn); will-change: transform; animation: rm-drift var(--dur) ease-in-out var(--delay) infinite alternate; }
.rm-piece svg { display: block; width: 100%; height: auto; fill: none; stroke: var(--color-fb-olive); }
.rm-pc-cut { stroke-width: 1.3; }
.rm-pc-seam { stroke-width: 0.9; }
.rm-pc-grain, .rm-pc-notch { stroke-width: 0.9; }
@keyframes rm-drift { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
/* On a phone, fewer and smaller pieces, so the room stays calm: two at the top
   corners and two below the words. */
@media (max-width: 39.99rem) {
  .rm-piece { width: calc(var(--pw) * var(--fb-phone-scale)); opacity: calc(var(--po) * var(--fb-phone-fade)); }
  .rm-piece:not(:nth-child(1), :nth-child(4), :nth-child(8), :nth-child(9)) { display: none; }
}
.rm-fl { display: block; width: 100%; height: auto; fill: var(--color-rooms-16); }
.rm-fl-c { fill: var(--color-rooms-17); }
.rm-petal { position: absolute; top: -10%; animation: rm-fall linear infinite; }
@keyframes rm-fall { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(var(--sway), var(--rooms-transform-2)) rotate(var(--rooms-transform-3)); } }
.rm-sun { position: absolute; right: var(--rooms-right); top: var(--rooms-top); width: var(--rooms-width-2); height: var(--rooms-height-4); border-radius: 50%; background: radial-gradient(circle, var(--color-rooms-18), var(--color-rooms-19) 40%, transparent 70%); animation: var(--rooms-animation); }
@keyframes rm-breathe { to { transform: var(--rooms-transform-4); opacity: 0.8; } }
.rm-mote { position: absolute; bottom: -2%; width: var(--s); height: var(--s); border-radius: 50%; background: var(--color-rooms-20); box-shadow: var(--rooms-box-shadow-3); animation: rm-rise linear infinite; }
@keyframes rm-rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: 0.9; } to { transform: var(--rooms-transform-5); opacity: 0; } }
.rm-index { position: fixed; right: max(var(--space-4), calc(var(--gut-r) / 2 - var(--rooms-right-2))); top: 50%; translate: 0 -50%; z-index: 4; }
.rm-index ol { list-style: none; display: grid; gap: var(--space-3); }
.rm-index a { display: flex; flex-direction: row-reverse; align-items: center; gap: var(--space-3); color: var(--color-ink-soft); text-decoration: none; font-size: var(--text-small); }
.rm-index i { width: var(--rooms-width-3); height: var(--rooms-height-5); border-radius: 50%; border: var(--hairline) solid currentColor; transition: background-color var(--time-open), transform var(--time-open); }
.rm-index span { opacity: 0; translate: var(--rooms-translate); transition: opacity var(--time-open), translate var(--time-open); }
.rm-index a:hover span, .rm-index a:focus-visible span { opacity: 1; translate: 0 0; }
.rm-index span { position: absolute; right: var(--rooms-right-3); white-space: nowrap; padding: var(--space-1) var(--space-2); border-radius: var(--radius); background: var(--color-ground); pointer-events: none; }
.rm-index a { position: relative; min-width: var(--space-5); min-height: var(--space-5); justify-content: center; }
.rm-index a[aria-current="true"] { color: var(--color-accent); }
.rm-index a[aria-current="true"] i { background: currentColor; transform: scale(1.3); }
@media (scripting: none) { html:root .rm-index { display: none; } }
@media (max-width: 64rem) {
.rm-index { right: var(--gut-r); top: auto; bottom: var(--space-5); translate: none; padding: var(--space-2) var(--space-3); border: var(--hairline) solid var(--color-line); border-radius: var(--radius); background: var(--color-ground); box-shadow: 0 var(--shadow-y) var(--shadow-blur) var(--color-shadow); }
.rm-index ol { display: flex; gap: var(--space-4); }
.rm-index span { position: static; opacity: 1; translate: none; padding: 0; background: none; }
.rm-index a { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
.rm-petal, .rm-mote, .rm-sun, .rm-piece { animation: none; }
.rooms8 .room-in { transform: none; }
body.rooms-on .site-h, body.rooms-on .site-h a, body.rooms-on .site-h summary, body.rooms-on .rm-index, body.rooms-on .rm-index a { transition: none; }
.rm-petal { top: calc(var(--sway) + 40%); }
}
.wk-reel { max-width: var(--rooms-max-width); color: var(--color-ink-soft); font-size: var(--text-ui); margin-top: calc(var(--space-5) * -1); padding-bottom: var(--space-9); }
.wk-later { padding-block: var(--space-8) 0; }
.room { --r-bg: var(--color-ground); --r-ink: var(--color-ink); --r-soft: var(--color-ink-soft); --r-acc: var(--color-accent); background: var(--r-bg); color: var(--r-ink); padding-block: var(--rooms-padding-block-2); min-height: var(--rooms-min-height-2); display: grid; align-items: center; transition: background-color var(--rooms-transition) var(--ease), color var(--rooms-transition) var(--ease); }
.room-blossom { --r-bg: var(--color-rooms-1); --r-ink: var(--color-rooms-21); --r-soft: var(--color-rooms-22); --r-acc: var(--color-rooms-4); --r-font: Georgia, "Times New Roman", serif; }
.room-fashion-board { --r-bg: var(--color-fb-paper); --r-ink: var(--color-fb-ink); --r-soft: var(--color-fb-soft); --r-acc: var(--color-fb-olive); --r-font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
.room-atlas { --r-bg: var(--color-rooms-23); --r-ink: var(--color-rooms-24); --r-soft: var(--color-rooms-25); --r-acc: var(--color-rooms-26); --r-font: system-ui, -apple-system, "Segoe UI", sans-serif; }
.room-in { display: grid; gap: var(--space-7) var(--space-8); align-items: center; }
@media (min-width: 64rem) {
.room-in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
.room-f { grid-column: 1 / -1; }
}
.room-t { display: grid; gap: var(--space-4); align-content: start; }
.room h2 { font-family: var(--r-font, var(--font-body)); font-size: var(--rooms-font-size-3); line-height: 0.98; font-weight: 400; }
.room-blossom h2 { font-style: italic; letter-spacing: var(--rooms-letter-spacing-4); }
.room-atlas h2 { font-weight: 200; letter-spacing: var(--rooms-letter-spacing-3); }
.room-fashion-board h2 { font-weight: 400; letter-spacing: var(--fb-tracking); }
.rm-word-fb { display: grid; gap: 0; color: var(--color-ink); font-family: var(--r-font); font-size: var(--text-ui); line-height: var(--leading-tight); }
.room-fashion-board .room-go { display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 var(--space-5); background: var(--color-fb-olive); color: var(--color-fb-paper); text-decoration: none; }
.room-fashion-board .room-shot { border-radius: 0; box-shadow: 0 var(--space-6) var(--space-8) var(--color-fb-shadow); }
.room-fashion-board .room-f b { font-family: var(--r-font); font-weight: 400; font-size: var(--text-lead); }
.room-k { color: var(--r-soft); }
.room-l { color: var(--r-soft); max-width: var(--rooms-max-width-2); font-size: var(--text-body); }
.room-go { color: var(--r-acc); font-weight: 500; justify-self: start; }
.room-shot { display: block; border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 var(--space-6) var(--space-8) var(--color-rooms-27); }
.room-shot img { width: 100%; display: block; }
.room-f { display: grid; grid-template-columns: var(--rooms-grid-template-columns); gap: var(--space-6); list-style: none; }
.room-f li { display: grid; gap: var(--space-1); }
.room-f span { color: var(--r-soft); font-size: var(--text-ui); }
.room-f b { font-family: var(--r-font, var(--font-body)); font-size: var(--text-h2); font-weight: 400; color: var(--r-acc); line-height: 1.05; }
.room-blossom .room-f b { font-style: italic; }

/* case */
.title-block { gap: var(--space-4); }
.tb-lines { display: grid; gap: var(--space-1); font-size: var(--text-lead); color: var(--color-ink-soft); font-weight: 350; }
.cs-facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.outcomes { list-style: none; display: grid; gap: var(--space-8) var(--space-7); grid-template-columns: var(--case-grid-template-columns); }
.outcomes li { display: grid; gap: var(--space-2); align-content: start; }
.ap { display: grid; gap: var(--space-7); }
.ap-group { display: grid; gap: var(--space-3); }
.ap-group h3 { font-size: var(--text-lead); font-weight: 400; }
.ap-row { display: grid; gap: var(--space-2) var(--space-5); align-items: center; }
@media (min-width: 48rem) { .ap-row { grid-template-columns: var(--ap-label-w) minmax(0, 1fr) var(--ap-value-w); } }
.ap-k { color: var(--color-ink); font-weight: 500; }
.ap-v { color: var(--color-ink-soft); font-size: var(--text-ui); font-variant-numeric: tabular-nums; }
.ap-sq { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ap-sq i, .ap-key i { width: var(--ap-sq); height: var(--ap-sq); border: var(--rule-strong) solid var(--color-ink-faint); border-radius: var(--radius); }
.ap-sq i.on, .ap-key i.on { border-color: var(--color-accent); background: var(--color-accent); }
.ap-key { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--color-ink-soft); font-size: var(--text-small); }
.ap-key span { display: inline-flex; align-items: center; gap: var(--space-2); }
.ap-key i { width: var(--space-4); height: var(--space-4); }
.ap-track { display: block; padding: var(--space-1); border: var(--hairline) solid var(--color-line-strong); border-radius: var(--radius); }
.ap-bar { display: block; width: 100%; height: var(--ap-bar-h); }
.ap-bar rect { fill: var(--color-accent); }
.journey { list-style: none; counter-reset: journey; display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--journey-min)), 1fr)); }
.journey li { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: var(--rule-strong) solid var(--color-accent); counter-increment: journey; }
.journey h3 { font-size: var(--text-lead); font-weight: 400; line-height: var(--leading-snug); }
.journey h3::before { content: counter(journey) ". "; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.journey p { color: var(--color-ink-soft); font-size: var(--text-ui); }
.rooms8 .room-fashion-board .room-go { text-shadow: none; }
.oc-v { display: block; margin-bottom: var(--space-2); font-stretch: var(--stretch-wide); font-weight: 300; font-size: var(--text-h2); line-height: 1.05; color: var(--color-accent); }
.outcomes h3 { font-weight: 500; font-size: var(--text-body); }
.outcomes p { color: var(--color-ink-soft); }
.cs-top7 { padding-bottom: var(--space-6); }
.cs-top7 .cs-facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.cs-top7 .cap { margin-top: var(--space-5); }

/* studio */
/* The studio recreation, in Blossom's own palette: paper, ink, and rose.
   System serif stands in for the studio's web fonts, so nothing loads from
   anyone else. */
[data-studio] { --su-paper: var(--color-studio-1); --su-card: var(--color-studio-2); --su-ink: var(--color-studio-3); --su-muted: var(--color-studio-4); --su-line: var(--color-studio-5); --su-rose: var(--color-studio-6); --su-rose-soft: var(--color-studio-7); --su-leaf: var(--color-studio-8); --su-serif: Georgia, "Times New Roman", serif; color: var(--su-ink); font-size: var(--studio-font-size); line-height: 1.45; }
.su { display: grid; grid-template-columns: var(--studio-grid-template-columns); min-height: var(--studio-min-height); background: var(--su-paper); }
.su-rail { background: var(--color-studio-9); padding: var(--space-4) var(--space-3); display: grid; gap: var(--space-4); align-content: start; border-right: var(--hairline) solid var(--su-line); }
.su-mark { font-family: var(--su-serif); font-size: var(--studio-font-size-2); }
.su-mark span { color: var(--su-rose); font-style: italic; }
.su-rail nav { display: grid; gap: var(--studio-gap); }
.su-nav { all: unset; display: grid; padding: var(--studio-padding); border-radius: var(--radius); cursor: pointer; }
.su-nav b { font-weight: 600; font-size: var(--text-small); }
.su-nav span { color: var(--su-muted); font-size: var(--studio-font-size-3); }
.su-nav[aria-current="page"] { background: var(--su-card); box-shadow: inset var(--studio-box-shadow) 0 0 var(--su-rose); }
.su-nav:focus-visible { outline: var(--rule-strong) solid var(--su-rose); }
@media (hover: hover) { .su-nav:hover { background: var(--color-studio-10); } }
.su-you { display: grid; gap: var(--studio-gap-2); padding-top: var(--space-3); border-top: var(--hairline) solid var(--su-line); }
.su-you small { color: var(--su-muted); font-size: var(--studio-font-size-3); }
[data-studio] select { font: inherit; font-size: var(--studio-font-size-4); color: var(--su-ink); background: var(--su-card); border: var(--hairline) solid var(--color-studio-11); border-radius: var(--radius); padding: var(--studio-padding-2); max-width: 100%; }
.su-main { padding: var(--studio-padding-3); display: grid; gap: var(--studio-gap-3); align-content: start; min-width: 0; overflow-x: auto; }
.su-main h4 { font-family: var(--su-serif); font-weight: 400; font-size: var(--studio-font-size-5); }
.su-sub { color: var(--su-muted); }
.su-cols { display: grid; grid-template-columns: var(--studio-grid-template-columns-2); gap: var(--space-2); min-width: var(--studio-min-width); }
.su-col { display: grid; gap: var(--studio-gap-4); align-content: start; background: var(--color-studio-12); border-radius: var(--studio-border-radius); padding: var(--space-2); }
.su-col h5 { display: flex; justify-content: space-between; font-size: var(--studio-font-size-3); letter-spacing: var(--studio-letter-spacing); color: var(--su-muted); font-weight: 600; }
.su-card { background: var(--su-card); border-radius: var(--radius); padding: var(--space-2); display: grid; gap: var(--studio-gap-2); box-shadow: 0 0 0 var(--hairline) var(--su-line); }
.su-card p { font-family: var(--su-serif); font-size: var(--studio-font-size); line-height: 1.25; }
.su-card small { color: var(--su-muted); font-size: var(--studio-font-size-3); }
[data-studio] button:not(.su-nav) { font: inherit; font-size: var(--studio-font-size-6); font-weight: 600; color: var(--su-rose); background: var(--su-rose-soft); border: 0; border-radius: var(--studio-border-radius-2); padding: var(--studio-padding-4); cursor: pointer; justify-self: start; min-height: var(--space-6); }
[data-studio] button:not(.su-nav):disabled { color: var(--su-muted); background: var(--color-studio-13); cursor: not-allowed; }
[data-studio] button:not(.su-nav):focus-visible { outline: var(--rule-strong) solid var(--su-rose); outline-offset: var(--rule-strong); }
.su-list { list-style: none; display: grid; gap: var(--studio-gap-5); }
.su-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--studio-padding-5); background: var(--su-card); border-radius: var(--radius); box-shadow: 0 0 0 var(--hairline) var(--su-line); flex-wrap: wrap; }
.su-list small { color: var(--su-muted); }
.su-row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.su-slot { display: grid; gap: var(--studio-gap-6); max-width: var(--studio-max-width); }
.su-slot span { font-weight: 600; font-size: var(--studio-font-size-6); }
.su-preview { display: grid; grid-template-columns: 2fr 1fr; gap: var(--studio-gap-4); margin-top: var(--studio-margin-top); }
.su-pv-cover { min-height: var(--space-9); border-radius: var(--radius); background: var(--studio-background); color: var(--color-studio-2); padding: var(--studio-padding-6); display: flex; align-items: flex-end; font-family: var(--su-serif); font-size: var(--studio-font-size-2); }
.su-pv-feat { border-radius: var(--radius); background: var(--su-card); box-shadow: 0 0 0 var(--hairline) var(--su-line); padding: var(--studio-padding-6); font-family: var(--su-serif); }
.su-log { list-style: none; display: grid; gap: var(--studio-gap-2); }
.su-log li { display: grid; gap: var(--studio-gap-7); padding: var(--studio-padding-7); border-bottom: var(--hairline) solid var(--su-line); }
.su-log small { color: var(--su-muted); }
.su-note { min-height: var(--studio-min-height-2); color: var(--su-leaf); font-weight: 600; }
.su-bad { color: var(--su-rose); font-weight: 600; }
.su-empty { color: var(--su-muted); }
.su-reset { margin: var(--studio-margin); }
@media (max-width: 40rem) { .su { grid-template-columns: minmax(0, 1fr); } .su-rail { border-right: 0; border-bottom: var(--hairline) solid var(--su-line); } .su-rail nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } .su-nav span { display: none; } }


/* atlas */
/* Atlas case study: the two working recreations, in Atlas's own colors. */
.ag-t0 { background: var(--atlas-background); } .ag-t1 { background: radial-gradient(circle at 70% 30%, var(--color-atlas-1), var(--color-atlas-2) 45%, var(--color-atlas-3)); } .ag-t2 { background: var(--atlas-background-2); } .ag-t3 { background: radial-gradient(circle at 40% 60%, var(--color-atlas-4), var(--color-atlas-5) 60%, var(--color-atlas-6)); } .ag-t4 { background: var(--atlas-background-3); } .ag-t5 { background: radial-gradient(circle at 50% 40%, var(--color-atlas-7), var(--color-atlas-8) 50%, var(--color-atlas-9)); } .ag-t6 { background: var(--atlas-background-4); } .ag-t7 { background: radial-gradient(circle at 30% 30%, var(--color-atlas-10), var(--color-atlas-11) 55%, var(--color-atlas-12)); } .ag-t8 { background: var(--atlas-background-5); } .ag-t9 { background: radial-gradient(circle at 60% 70%, var(--color-atlas-13), var(--color-atlas-14) 45%, var(--color-atlas-15)); } .ag-t10 { background: var(--atlas-background-6); } .ag-t11 { background: radial-gradient(circle at 45% 35%, var(--color-atlas-16), var(--color-atlas-17) 55%, var(--color-atlas-18)); }
.as-sheet { background: var(--color-atlas-19); color: var(--color-atlas-20); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.as-est { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; }
.as-form { display: grid; gap: var(--space-1); font-size: var(--atlas-font-size); }
.as-form b { font-weight: 300; font-size: var(--atlas-font-size-2); margin-bottom: var(--atlas-margin-bottom); }
.as-form small { color: var(--color-atlas-21); }
.as-form i { display: block; height: var(--atlas-height); border: var(--hairline) solid var(--color-atlas-22); border-radius: var(--rule-strong); }
.as-total { display: grid; gap: var(--atlas-gap); }
.as-total span { font-weight: 200; font-size: var(--atlas-font-size-3); color: var(--color-atlas-23); }
.as-total i { display: block; height: var(--hairline); background: var(--color-atlas-24); }
.as-total em { display: block; height: var(--atlas-height-2); width: 60%; background: var(--color-atlas-23); border-radius: var(--rule-strong); }
.as-gal { display: grid; gap: var(--atlas-gap-2); }
.as-gal b { font-weight: 300; font-size: var(--atlas-font-size-2); }
.as-gal small { font-size: var(--atlas-font-size-4); color: var(--color-atlas-21); }
.as-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--atlas-gap-3); }
.as-tiles i { aspect-ratio: 1; border-radius: var(--hairline); opacity: 0.85; }

/* Working recreations, shown in the viewer */
.ae, .ag { --at-bg: var(--color-atlas-19); --at-ink: var(--color-atlas-20); --at-soft: var(--color-atlas-21); --at-line: var(--color-atlas-25); --at-gold: var(--color-atlas-23); background: var(--at-bg); color: var(--at-ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 300; min-height: 100%; }
.ae { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5) var(--space-7); padding: var(--atlas-padding); align-content: start; }
@media (min-width: 40rem) { .ae { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ae-form { display: grid; gap: var(--space-4); align-content: start; }
.ae-h { font-size: var(--text-lead); font-weight: 200; letter-spacing: var(--atlas-letter-spacing); }
.ae-f { display: grid; gap: var(--space-1); }
.ae-l { font-size: var(--text-small); color: var(--at-soft); letter-spacing: var(--atlas-letter-spacing-2); }
.ae select, .ae input { min-width: 0; font: inherit; font-weight: 400; color: var(--at-ink); background: var(--color-atlas-26); border: var(--hairline) solid var(--at-line); border-radius: var(--rule-strong); min-height: var(--atlas-min-height); padding: 0 var(--space-3); }
.ae select:focus-visible, .ae input:focus-visible, .ae button:focus-visible, .ag button:focus-visible { outline: var(--rule-strong) solid var(--at-gold); outline-offset: var(--rule-strong); }
.ae-out { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-2); }
.ae-total { font-size: var(--atlas-font-size-5); font-weight: 200; color: var(--at-gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ae-lines { list-style: none; display: grid; gap: var(--space-2); border-top: var(--hairline) solid var(--at-line); padding-top: var(--space-3); }
.ae-lines li { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-ui); }
.ae-lines b { font-weight: 400; font-variant-numeric: tabular-nums; }
.ae-fine, .ae-sample { font-size: var(--text-small); color: var(--at-soft); }
.ae-send, .ag-btn { justify-self: start; font: inherit; font-weight: 500; min-height: var(--atlas-min-height); padding: 0 var(--space-5); border-radius: var(--rule-strong); border: var(--hairline) solid var(--at-gold); background: var(--at-gold); color: var(--color-atlas-19); cursor: pointer; transition: filter var(--time-menu); }
.ag-btn.ghost { background: transparent; color: var(--at-ink); border-color: var(--at-line); }
@media (hover: hover) { .ae-send:hover, .ag-btn:hover { filter: brightness(1.08); } .ag-btn.ghost:hover { border-color: var(--at-soft); } }
.ae-send:active, .ag-btn:active { transform: translateY(var(--hairline)); }
.ag-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.ae-carry { display: grid; gap: var(--space-2); border: var(--hairline) solid var(--at-line); border-radius: var(--rule-strong); padding: var(--space-4); }
.ae-carry[hidden] { display: none; }
.ae-carry dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); font-size: var(--text-ui); }
.ae-carry dt { color: var(--at-soft); }
.ae-ch { font-size: var(--text-small); color: var(--at-soft); }
.ae-sample { grid-column: 1 / -1; }

.ag { display: grid; gap: var(--space-5); padding: var(--atlas-padding); align-content: start; }
@media (min-width: 44rem) { .ag { grid-template-columns: var(--atlas-grid-template-columns); } }
.ag-h { font-size: var(--text-small); color: var(--at-soft); letter-spacing: var(--atlas-letter-spacing-3); margin-bottom: var(--space-3); }
.ag-studio { display: grid; gap: var(--space-3); align-content: start; padding-right: var(--space-4); }
@media (min-width: 44rem) { .ag-studio { border-right: var(--hairline) solid var(--at-line); } }
.ag-card { display: grid; gap: var(--space-1); }
.ag-card b { font-weight: 400; font-size: var(--text-body); }
.ag-state { font-size: var(--text-ui); }
.ag-state i { display: inline-block; width: var(--space-2); height: var(--space-2); border-radius: 50%; margin-right: var(--space-2); background: var(--at-soft); }
.ag[data-state="unlocked"] .ag-state i { background: var(--color-atlas-27); }
.ag[data-state="locked"] .ag-state i { background: var(--at-gold); }
.ag[data-state="revoked"] .ag-state i, .ag[data-state="expired"] .ag-state i { background: var(--color-atlas-28); }
.ag-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ag-log { list-style: none; display: grid; gap: var(--space-2); font-size: var(--text-small); color: var(--at-soft); border-top: var(--hairline) solid var(--at-line); padding-top: var(--space-3); }
.ag-reset { justify-self: start; font: inherit; font-size: var(--text-small); background: none; border: 0; color: var(--at-gold); text-decoration: underline; cursor: pointer; padding: var(--space-1) 0; }
.ag-client { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.ag-msg { font-size: var(--text-body); font-weight: 300; max-width: var(--atlas-max-width); }
.ag-grid { display: grid; grid-template-columns: var(--atlas-grid-template-columns-2); gap: var(--space-2); }
.ag-tile { position: relative; aspect-ratio: 3 / 4; border: 0; border-radius: var(--rule-strong); padding: 0; cursor: pointer; overflow: hidden; transition: transform var(--time-menu) var(--ease), opacity var(--time-open); }
@media (hover: hover) { .ag-tile:hover { transform: var(--atlas-transform); } }
.ag-wm { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--atlas-font-size-6); letter-spacing: var(--atlas-letter-spacing-4); color: var(--color-atlas-29); background: var(--atlas-background-7); transition: var(--atlas-transition); }
.ag[data-state="unlocked"] .ag-wm { opacity: 0; }
.ag-heart { position: absolute; right: var(--atlas-right); bottom: var(--atlas-bottom); width: var(--atlas-width); height: var(--atlas-height-3); fill: none; stroke: var(--color-atlas-30); stroke-width: 1.6; filter: drop-shadow(0 var(--hairline) var(--rule-strong) var(--color-atlas-31)); }
.ag-tile[aria-pressed="true"] .ag-heart { fill: var(--at-gold); stroke: var(--at-gold); }
.ag[data-state="revoked"] .ag-grid, .ag[data-state="expired"] .ag-grid { display: none; }
.ag-dl { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ag:not([data-state="unlocked"]) .ag-dl { display: none; }
.ag-done { font-size: var(--text-small); color: var(--color-atlas-32); min-height: var(--atlas-min-height-2); }
.ag-sample { font-size: var(--text-small); color: var(--at-soft); grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .ag-tile, .ag-wm { transition: none; } }

/* Each petal and spark takes its place and timing from rooms.js. */
/* Petals stay pale enough that a petal behind a line never drops the words
   below 4.5 to 1. */
.rm-petal {
  left: var(--x);
  width: var(--pw);
  opacity: calc(var(--po) * 0.5);
  animation-duration: var(--dur);
  animation-delay: var(--delay);
}

.rm-mote {
  left: var(--x);
  animation-duration: var(--dur);
  animation-delay: var(--delay);
}

/* On Rooms the header's glass takes on the room's ground, so its text keeps
   the same contrast as the page beneath it. */
body.rooms-on .site-h {
  --color-glass: color-mix(in oklab, var(--color-ground) 72%, transparent);
  --color-glass-hi: color-mix(in oklab, var(--color-ink) 5%, transparent);
  --color-glass-lo: color-mix(in oklab, var(--color-ink) 2%, transparent);
  --color-glass-edge: color-mix(in oklab, var(--color-ink) 10%, transparent);
}

/* ==================== Capabilities, datasheets, Lab ==================== */
/* caps */
.spreads { display: grid; gap: var(--space-10); padding-block: var(--space-6) var(--space-4); }
.spread { display: grid; gap: var(--space-5) var(--space-9); align-items: center; }
@media (min-width: 56rem) {
.spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.spread.flip .spread-v { order: 2; }
}
.spread-v { max-width: var(--caps-max-width); justify-self: center; width: 100%; }
.spread-t { display: grid; gap: var(--space-4); align-content: start; }
.spread-t h2 { font-stretch: var(--stretch-wide); font-weight: 350; font-size: var(--text-h2); }
.rd { border: var(--hairline) solid var(--color-line-strong); border-radius: var(--radius); padding: var(--caps-padding); margin: var(--space-2) 0 0; display: inline-flex; justify-self: start; gap: var(--rule-strong); }
.rd label { position: relative; cursor: pointer; }
.rd input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rd span { display: inline-block; padding: var(--space-2) var(--space-5); border-radius: var(--caps-border-radius); font-size: var(--text-ui); color: var(--color-ink-soft); line-height: 1.6; transition: background-color var(--time-menu), color var(--time-menu); }
@media (hover: hover) {
.rd label:hover span { color: var(--color-ink); }
}
.rd input:checked + span { background: var(--color-accent); color: var(--color-on-accent); font-weight: 600; }
.rd input:focus-visible + span { outline: var(--rule-strong) solid var(--color-accent); outline-offset: var(--rule-strong); }
.ds-d { padding-block: var(--caps-padding-block); }
.ds-facts { display: grid; gap: var(--space-6) var(--space-7); grid-template-columns: var(--caps-grid-template-columns); padding-block: var(--space-7); }
.ds-facts dt { display: grid; gap: var(--space-1); }
.ds-facts .dv { font-stretch: var(--stretch-wide); font-weight: 300; font-size: var(--text-h1); line-height: 1; color: var(--color-accent); }
.ds-facts .dk { font-weight: 500; }
.ds-facts dd { color: var(--color-ink-soft); font-size: var(--text-ui); margin-top: var(--space-2); }
.ds-rows dd { display: grid; }
@media print {
.rd { display: none; }
}
.lib { display: grid; gap: var(--space-5); }
.lib-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.lib-fs { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.lib-f { all: unset; cursor: pointer; display: inline-grid; padding: var(--space-2) 0; color: var(--color-ink-soft); font-size: var(--text-ui); box-shadow: var(--caps-box-shadow); transition: color var(--time-menu), box-shadow var(--time-menu); }
.lib-f::after { content: attr(data-cat); font-weight: 600; visibility: hidden; height: 0; overflow: hidden; }
.lib-f[data-cat="all"]::after { content: "All"; }
.lib-f[aria-pressed="true"] { color: var(--color-ink); font-weight: 600; box-shadow: inset 0 var(--caps-box-shadow-2) 0 var(--color-accent); }
.lib-f:focus-visible { outline: var(--rule-strong) solid var(--color-accent); outline-offset: var(--caps-outline-offset); }
@media (hover: hover) {
.lib-f:hover { color: var(--color-ink); }
}
.lib-q { font: inherit; font-size: var(--caps-font-size); color: var(--color-ink); background: var(--color-raised); border: var(--hairline) solid var(--color-line-strong); border-radius: var(--radius); padding: var(--space-2) var(--space-4); min-height: var(--caps-min-height); width: var(--caps-width); }
.lib-q:focus-visible { outline: var(--rule-strong) solid var(--color-accent); outline-offset: var(--rule-strong); }
@media (scripting: none) { html:root .lib-bar, html:root .lib-n { display: none; } }
.lib-list { list-style: none; display: grid; }
.lib-row > a, .lib-row > div { display: grid; grid-template-columns: var(--caps-grid-template-columns-2); gap: var(--space-2) var(--space-5); align-items: baseline; padding-block: var(--space-4); text-decoration: none; color: var(--color-ink); }
.lib-row + .lib-row > * { box-shadow: inset 0 var(--hairline) 0 var(--color-line); }
.lib-name { font-stretch: var(--stretch-semi); font-size: var(--text-body); font-weight: 500; }
.lib-line { color: var(--color-ink-soft); font-size: var(--text-ui); }
.lib-cat { color: var(--color-ink-faint); font-size: var(--text-small); }
.lib-st { font-size: var(--text-ui); color: var(--color-ink-faint); text-align: right; }
.lib-on { color: var(--color-accent); font-weight: 500; }
.lib-wait .lib-name { color: var(--color-ink-soft); }
@media (hover: hover) {
.lib-row > a:hover .lib-name { color: var(--color-accent); }
}
@media (max-width: 52rem) {
.lib-row > a, .lib-row > div { grid-template-columns: minmax(0, 1fr) auto; }
.lib-line { grid-column: 1 / -1; }
.lib-cat { grid-row: 1; grid-column: 2; text-align: right; }
.lib-st { grid-column: 1 / -1; text-align: left; }
}
.lab-front { display: grid; gap: var(--space-8); padding-bottom: var(--space-6); }
.lab-feature { display: grid; gap: var(--space-6) var(--space-8); align-items: center; padding: var(--caps-padding-2); border-radius: var(--radius-l); background: radial-gradient(80% 120% at 0% 100%, color-mix(in oklch, var(--color-hero-sun) 16%, transparent), transparent 60%), var(--color-raised); color: var(--color-ink); text-decoration: none; transition: transform var(--caps-transition) var(--ease); }
@media (min-width: 60rem) {
.lab-feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.lab-feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.lab-feature.flip .lab-glimpse { order: 2; }
}
@media (hover: hover) {
.lab-feature:hover { transform: var(--caps-transform); }
.lab-feature:hover .go { color: var(--color-accent); text-decoration: underline; }
}
.lab-feature:focus-visible { outline: var(--rule-strong) solid var(--color-accent); outline-offset: var(--caps-outline-offset); }
.lab-glimpse { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.lab-glimpse figcaption { font-size: var(--text-small); color: var(--color-ink-faint); margin-top: var(--space-2); }
.lab-ft { display: grid; gap: var(--space-3); }
.lab-ft h2 { font-stretch: var(--stretch-wide); font-weight: 350; font-size: var(--text-h1); line-height: 1; }
.lab-ft p { color: var(--color-ink-soft); max-width: var(--caps-max-width-2); }
.lab-next h2 { font-stretch: var(--stretch-wide); font-weight: 350; font-size: var(--text-h2); margin-bottom: var(--space-5); }
.lab-next ol { list-style: none; display: grid; gap: var(--space-4) var(--space-7); grid-template-columns: var(--caps-grid-template-columns-3); }
.lab-next li { display: grid; gap: var(--space-1); }
.lab-next b { font-weight: 500; color: var(--color-ink-soft); }
.lab-next span { color: var(--color-ink-faint); font-size: var(--text-ui); }

/* diag */
/* Datasheet diagrams */
.dg .d-t { display: none; }
body:has(#rd-tech:checked) .dg .d-p { display: none; }
body:has(#rd-tech:checked) .dg .d-t { display: inline; font-family: var(--font-mono); font-size: var(--text-small); letter-spacing: 0; color: var(--color-cool); }
.dg svg { width: var(--diag-width); height: var(--diag-height); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pk { display: grid; gap: var(--space-6); }
.pk-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 56rem) { .pk-grid { grid-template-columns: var(--diag-grid-template-columns); } }
.pk-a { display: grid; gap: var(--space-1); justify-items: start; color: var(--color-ink); }
.pk-a span { color: var(--color-ink-soft); font-size: var(--text-ui); }
.pk-site { color: var(--color-accent); }
.pk-site b, .pk-dev b { color: var(--color-ink); font-weight: 500; }
.pk-steps { list-style: none; display: grid; gap: var(--space-4); }
.pk-s { display: grid; gap: var(--space-2); color: var(--color-ink-soft); }
.pk-s p { font-size: var(--text-ui); }
.pk-track { position: relative; display: block; height: var(--rule-strong); background: var(--color-line-strong); }
.pk-track::after { content: ""; position: absolute; top: var(--diag-top); width: var(--diag-width-2); height: var(--diag-height-2); border: solid var(--color-ink-faint); border-width: var(--rule-strong) var(--rule-strong) 0 0; }
.pk-to-site .pk-track::after { right: 0; rotate: var(--diag-rotate); }
.pk-to-dev .pk-track::after { left: 0; rotate: var(--diag-rotate-2); }
.pk-local .pk-track, .pk-check .pk-track { background: none; border-top: var(--rule-strong) dotted var(--color-line-strong); height: 0; }
.pk-local .pk-track::after, .pk-check .pk-track::after { display: none; }
.pk-track i { position: absolute; top: var(--diag-top); left: 0; width: var(--diag-width-3); height: var(--diag-height-3); border-radius: 50%; background: var(--color-accent); opacity: 0; }
.pk-fake { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3) var(--space-5); align-items: center; padding: var(--space-5); border-radius: var(--radius-m); background: color-mix(in oklch, var(--color-mark) 10%, transparent); }
@media (min-width: 40rem) { .pk-fake { grid-template-columns: auto minmax(0, 1fr); } }
.pk-bad { color: var(--color-mark); }
.pk-bad b { color: var(--color-ink); font-weight: 500; }
.pk-fake p { color: var(--color-ink-soft); font-size: var(--text-ui); }
.pk-x { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pk-s { animation: var(--diag-animation); }
  .pk-s2 { animation-delay: var(--diag-animation-delay); } .pk-s3 { animation-delay: var(--diag-animation-delay-2); } .pk-s4 { animation-delay: var(--diag-animation-delay-3); }
  .pk-s .pk-track i { animation: var(--diag-animation-2); }
  .pk-s2 .pk-track i { animation-delay: var(--diag-animation-delay); } .pk-s3 .pk-track i { animation-delay: var(--diag-animation-delay-2); } .pk-s4 .pk-track i { animation-delay: var(--diag-animation-delay-3); }
  .pk-to-dev .pk-track i { animation-name: pk-run-back; }
}
/* The two steps that happen on one side only: the phone unlocks, then the site checks. */
.pk-dev svg, .pk-site svg { position: relative; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .pk-dev svg { animation: var(--diag-animation-3); }
  .pk-site svg { animation: var(--diag-animation-4); }
}
@keyframes pk-unlock { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-accent) 60%, transparent); color: var(--color-accent); } 12% { box-shadow: var(--diag-box-shadow); color: var(--color-accent); } 24% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-accent) 50%, transparent); color: var(--color-accent); } 25%, 100% { box-shadow: 0 0 0 0 transparent; color: inherit; } }
@keyframes pk-check { 0% { box-shadow: 0 0 0 0 var(--color-diag-1); color: var(--color-diag-2); } 15% { box-shadow: var(--diag-box-shadow-2); color: var(--color-diag-2); } 25% { color: var(--color-diag-2); } 26%, 100% { box-shadow: 0 0 0 0 transparent; color: inherit; } }
@keyframes pk-step { 0%, 26% { color: var(--color-ink); } 30%, 100% { color: var(--color-ink-soft); } }
@keyframes pk-run { 0% { opacity: 1; left: 0; } 20% { opacity: 1; left: var(--diag-left); } 24%, 100% { opacity: 0; left: var(--diag-left); } }
@keyframes pk-run-back { 0% { opacity: 1; left: var(--diag-left); } 20% { opacity: 1; left: 0; } 24%, 100% { opacity: 0; left: 0; } }

.st { display: grid; gap: var(--space-6); }
.st-grid { position: relative; display: grid; grid-template-columns: minmax(var(--space-9), 1fr) repeat(3, minmax(0, 1fr)); gap: var(--space-2) var(--space-3); align-items: center; }
.st-head { display: contents; color: var(--color-ink-faint); font-size: var(--text-small); }
.st-row { display: contents; }
.st-seat { font-weight: 500; font-size: var(--text-ui); }
.st-cell { position: relative; padding: var(--space-3); border-radius: var(--radius); background: var(--color-raised); font-size: var(--text-ui); color: var(--color-ink-soft); }
.st-hand { background: var(--color-raised-2); color: var(--color-ink); }
.st-mark { position: absolute; left: calc(-1 * var(--space-3) / 2 - var(--diag-left-2)); top: 50%; width: var(--diag-width-3); height: var(--diag-height-3); margin-top: var(--diag-margin-top); rotate: var(--diag-rotate); background: var(--color-accent); }
.st-hist { grid-column: 2 / -1; height: var(--rule-strong); margin-top: calc(-1 * var(--space-1)); background: linear-gradient(var(--diag-background), var(--color-accent), var(--color-accent)) left / var(--hist, 100%) 100% no-repeat, var(--color-line); }
.st-play { position: absolute; top: 0; bottom: 0; left: 0; width: var(--rule-strong); background: var(--color-accent); opacity: 0; }
.st-notes { list-style: none; display: grid; gap: var(--space-3); color: var(--color-ink-soft); font-size: var(--text-ui); max-width: var(--diag-max-width); }
.st-notes li { padding-left: var(--space-5); position: relative; }
.st-notes li::before { content: ""; position: absolute; left: 0; top: var(--diag-top-2); width: var(--diag-width-2); height: var(--diag-height-2); rotate: var(--diag-rotate); background: var(--color-accent); }
@media (prefers-reduced-motion: no-preference) {
  .st-c1, .st-c2, .st-c3 { animation: var(--diag-animation-5); }
  .st-c2 { animation-delay: var(--diag-animation-delay); } .st-c3 { animation-delay: var(--diag-animation-delay-2); }
  .st-hist { animation: var(--diag-animation-6); }
}
@keyframes st-on { 0% { box-shadow: inset 0 0 0 var(--hairline) var(--color-accent); } 30% { box-shadow: inset 0 0 0 var(--hairline) var(--color-accent); } 34%, 100% { box-shadow: inset 0 0 0 var(--hairline) transparent; } }
@keyframes st-hist { from { background-size: 0% 100%, auto; } to { background-size: 100% 100%, auto; } }
@media (max-width: 34rem) { .st-grid { grid-template-columns: var(--diag-grid-template-columns-2); gap: var(--space-2); } .st-cell { padding: var(--space-2); font-size: var(--text-small); } }


/* ==================== Process, Standards, About, Contact ==================== */
/* pg */
.faq { display: grid; gap: var(--space-6); }
.faq dt { font-size: var(--text-lead); font-stretch: var(--stretch-semi); }
.faq dd { color: var(--color-ink-soft); max-width: var(--pg-max-width); margin-top: var(--space-2); }
.facts-l { grid-template-columns: var(--pg-grid-template-columns); gap: var(--space-6) var(--space-8); }
.facts-l dt { font-size: var(--text-body); color: var(--color-ink); font-weight: 500; }
.facts-l dd { color: var(--color-ink-soft); }
.conds { list-style: none; display: grid; gap: var(--space-4) var(--space-6); grid-template-columns: var(--pg-grid-template-columns-2); }
.conds li { display: grid; gap: var(--pg-gap); }
.conds b { font-weight: 500; }
.conds span { color: var(--color-ink-faint); font-size: var(--text-small); }
.prose-l p { font-size: var(--text-lead); line-height: 1.55; font-weight: 350; color: var(--color-ink); }
.mailbig { font-stretch: var(--stretch-wide); font-weight: 300; font-size: var(--text-address); overflow-wrap: anywhere; }
.mailbig a { color: var(--color-ink); text-decoration-color: var(--color-accent); }
@media (hover: hover) {
.mailbig a:hover { color: var(--color-accent); }
}
.about-portrait { display: grid; gap: var(--space-3); }
.about-frame { aspect-ratio: 4 / 5; border-radius: var(--radius-m); background: radial-gradient(70% 60% at 50% 30%, color-mix(in oklch, var(--color-hero-sun) 18%, transparent), transparent 70%), var(--color-raised); }
.about-t { display: grid; gap: var(--space-6); }
.contact8 { display: grid; gap: var(--space-9); padding-bottom: var(--space-6); }
.ct-mail { display: grid; gap: var(--space-4); }
.ct-done { color: var(--color-pg-1); font-size: var(--text-ui); }
@media (scripting: none) { html:root .ct-copy { display: none; } }
.pr-wrap { overflow-x: auto; }
.pr { width: 100%; border-collapse: collapse; font-size: var(--text-ui); }
.pr thead th { text-align: left; font-weight: 500; color: var(--color-ink-faint); font-size: var(--text-small); padding: 0 var(--space-4) var(--space-3) 0; border-bottom: var(--hairline) solid var(--color-line-strong); }
.pr tbody th, .pr td { text-align: left; vertical-align: top; padding: var(--space-5) var(--space-4) var(--space-5) 0; border-bottom: var(--hairline) solid var(--color-line); }
.pr tbody th { font-weight: 400; min-width: var(--pg-min-width); }
.pr td { color: var(--color-ink-soft); max-width: var(--pg-max-width-2); }
.pr-n { display: inline-grid; place-items: center; width: var(--pg-width); height: var(--pg-height); margin-right: var(--space-3); border-radius: 50%; border: var(--hairline) solid var(--color-accent); color: var(--color-accent); font-size: var(--text-small); font-weight: 600; vertical-align: middle; }
.pr-t { font-size: var(--text-body); font-stretch: var(--stretch-semi); color: var(--color-ink); vertical-align: middle; }
.pr-gate { color: var(--color-ink); }
.pr-g { display: inline-flex; align-items: flex-start; gap: var(--space-2); }
.pr-gate .pr-ic { flex: none; width: var(--pg-width-2); height: var(--pg-height-2); margin-top: var(--pg-margin-top); }
.pr-none { color: var(--color-ink-faint); }
.pr-ic { fill: none; stroke: var(--color-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 47.99rem) {
.pr thead { position: absolute; width: var(--hairline); height: var(--hairline); overflow: hidden; clip-path: inset(50%); }
.pr, .pr tbody, .pr tr, .pr th, .pr td { display: block; }
.pr tr { padding: var(--space-5) 0; border-bottom: var(--hairline) solid var(--color-line); }
.pr tbody th, .pr td { border: 0; padding: var(--space-1) 0; max-width: none; }
.pr tbody th { margin-bottom: var(--space-2); }
.pr td::before { content: attr(data-label); display: block; font-size: var(--text-small); color: var(--color-ink-faint); }
.pr tbody { display: grid; gap: var(--space-4); }
.pr tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5); border: var(--hairline) solid var(--color-line); border-radius: var(--radius-m); background: var(--color-raised); }
.pr tbody th { grid-column: 1 / -1; display: flex; align-items: center; margin: 0; padding: 0; }
.pr-t { font-size: var(--text-lead); }
.pr td { padding: 0; color: var(--color-ink); font-size: var(--text-ui); line-height: var(--leading-snug); }
.pr td:nth-of-type(1) { grid-column: 1 / -1; font-size: var(--text-body); line-height: var(--leading-body); }
.pr td:nth-of-type(1)::before { display: none; }
.pr td::before { margin-bottom: var(--space-1); color: var(--color-ink-soft); font-weight: 500; }
.bs-x { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius); }
.bs-x > svg { min-width: var(--bs-min-width); }
}
/* Where a chart scrolls sideways, its right edge fades until the end is
   reached, so it reads as more to see rather than cut off. The fade follows
   the chart's own scroll, so a chart that fits never fades. */
@supports (animation-timeline: scroll()) {
  .bs-x, .sk-x, .table { animation: edge-fade linear both; animation-timeline: scroll(self inline); }
}
@keyframes edge-fade { 0%, 96% { mask-image: linear-gradient(to right, black 82%, transparent); } 100% { mask-image: none; } }
.pr-safe { list-style: none; display: grid; gap: var(--space-6) var(--space-7); grid-template-columns: var(--pg-grid-template-columns-3); }
.pr-safe li { display: grid; gap: var(--space-2); align-content: start; }
.pr-safe .pr-ic { width: var(--pg-width); height: var(--pg-height); margin-bottom: var(--space-2); }
.pr-safe h3 { font-size: var(--text-body); font-weight: 500; }
.pr-safe p { color: var(--color-ink-soft); }
.ct-how { list-style: none; counter-reset: ct; display: grid; gap: var(--space-4); max-width: var(--pg-max-width-3); }
.ct-how li { counter-increment: ct; display: grid; grid-template-columns: var(--pg-grid-template-columns-4); gap: var(--space-3); color: var(--color-ink-soft); }
.ct-how li::before { content: counter(ct); display: grid; place-items: center; width: var(--pg-width); height: var(--pg-height); border-radius: 50%; border: var(--hairline) solid var(--color-accent); color: var(--color-accent); font-size: var(--text-small); font-weight: 600; }
.ct-how b { color: var(--color-ink); font-weight: 500; }
.about10 { display: grid; gap: var(--space-7); padding-bottom: var(--space-6); }
.about-biz { display: grid; gap: var(--space-7); max-width: var(--pg-max-width-4); }
.about-biz section { display: grid; gap: var(--space-4); }
.about-biz h2, .about-me h2 { font-stretch: var(--stretch-wide); font-weight: 350; font-size: var(--text-h2); line-height: 1.15; }
.about-biz p { font-size: var(--text-body); color: var(--color-ink-soft); max-width: var(--pg-max-width-5); }
.about-div { border: 0; height: var(--hairline); width: var(--space-8); background: var(--color-accent); margin: var(--space-4) 0; }
.about-me { display: grid; gap: var(--space-7) var(--space-9); align-items: start; }
/* Until there's a photo, the words take the whole row. */
.about-me:not(:has(.about-portrait)) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) {
.about-me { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
}

/* bs */
.bs-0a { stop-color: var(--color-bs-1); } .bs-0b { stop-color: var(--color-bs-2); }
.bs-1a { stop-color: var(--color-bs-3); } .bs-1b { stop-color: var(--color-bs-4); }
.bs-2a { stop-color: var(--color-bs-5); } .bs-2b { stop-color: var(--color-bs-6); }
.bs-3a { stop-color: var(--color-bs-7); } .bs-3b { stop-color: var(--color-bs-8); }
.bs-4a { stop-color: var(--color-bs-9); } .bs-4b { stop-color: var(--color-bs-10); }
.bs-edge { fill: none; stroke: var(--color-bs-11); stroke-width: 1; }
.bs-ms { stroke: var(--color-ink-soft); stroke-width: 0.8; stroke-dasharray: 3 3; }
.bs-gate { fill: var(--color-accent); }
.bs-m { font-size: var(--bs-font-size); fill: var(--color-ink-soft); }

/* The Kit */
.kit { display: grid; gap: var(--space-4); }
.kit-tray { border-radius: var(--radius-l); padding: var(--bs-padding); background: var(--color-raised); }
.kit-h { font-size: var(--text-ui); color: var(--color-ink-faint); margin-bottom: var(--space-5); }
.kit-grid { list-style: none; display: grid; gap: var(--space-3); grid-template-columns: var(--bs-grid-template-columns); }
.kit-i { display: grid; grid-template-columns: var(--bs-grid-template-columns-2); gap: var(--space-1) var(--space-3); align-content: start; padding: var(--space-5) var(--space-4); border-radius: var(--radius-m); background: var(--color-ground); }
.kit-ic { grid-row: span 2; width: var(--bs-width); height: var(--bs-height); fill: none; stroke: var(--color-ink-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.kit-i h3 { font-size: var(--text-body); font-weight: 500; }
.kit-i p { color: var(--color-ink-soft); font-size: var(--text-ui); line-height: 1.5; }
.kit-opt { background: transparent; box-shadow: inset 0 0 0 var(--hairline) var(--color-line-strong); }
.kit-foot { font-size: var(--text-ui); color: var(--color-ink-soft); max-width: var(--bs-max-width); }
/* As the kit scrolls in, each piece settles into its place from a slight
   tilt. It's finished by the time a piece is fully on screen, so nothing is
   ever read mid-move, and scrolling stays the visitor's own. */
@keyframes kit-settle { from { transform: translateY(var(--lift)) rotate(var(--rot)) scale(0.96); } to { transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .kit-i { animation: kit-settle linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
.kit-1 { --rot: var(--bs-rot); --lift: var(--bs-lift); }
.kit-2 { --rot: var(--bs-rot-2); --lift: var(--bs-lift-2); }
.kit-3 { --rot: var(--bs-rot-3); --lift: var(--bs-lift-3); }
.kit-4 { --rot: var(--bs-rot-4); --lift: var(--bs-lift-4); }
.kit-5 { --rot: 0deg; --lift: var(--bs-lift-5); }
.kit-6 { --rot: var(--bs-rot-5); --lift: var(--bs-lift); }
.kit-7 { --rot: var(--bs-rot-6); --lift: var(--bs-lift-2); }
.kit-8 { --rot: var(--bs-rot-7); --lift: var(--bs-lift-3); }
.kit-9 { --rot: var(--bs-rot-8); --lift: var(--bs-lift-4); }
.kit-10 { --rot: var(--bs-rot-9); --lift: var(--bs-lift-5); }
.kit-11 { --rot: var(--bs-rot-10); --lift: var(--bs-lift); }
@media print { .kit-tray { background: none; } .kit-i { animation: none !important; break-inside: avoid; } }


/* std */
.sk-stage { border-radius: var(--radius-l); padding: var(--std-padding); background: radial-gradient(90% 120% at 80% 120%, color-mix(in oklch, var(--color-hero-sun) 22%, transparent), transparent 60%), linear-gradient(var(--std-background), var(--color-std-1), var(--color-std-2)); }
.sk-l { font-size: var(--std-font-size); fill: var(--color-std-3); }
.sk-kb { font-size: var(--std-font-size-2); fill: var(--color-std-4); }
.sk-bar { fill: var(--color-std-5); transform-box: fill-box; transform-origin: left center; filter: var(--std-filter); }
.sk-tk { stroke: var(--color-std-6); }
.sk-ax { font-size: var(--std-font-size-3); fill: var(--color-std-7); }
.sk-ml { stroke: var(--color-std-8); stroke-opacity: 0.45; stroke-dasharray: 3 3; }
.sk-mt { font-size: var(--std-font-size-2); fill: var(--color-std-8); }
@media (prefers-reduced-motion: no-preference) {
@media (scripting: enabled) { html:root .sk .sk-bar { transform: scaleX(0); } }
@media (scripting: enabled) { html:root .sk .sk-kb, html:root .sk .sk-m { opacity: 0; } }
.sk.on .sk-bar { animation: sk-grow linear forwards; }
.sk.on .sk-r .sk-bar { animation-delay: var(--sk-delay); animation-duration: var(--sk-dur); }
.sk.on .sk-kb { animation: var(--std-animation); }
.sk.on .sk-m1 { animation: var(--std-animation-2); }
.sk.on .sk-m2 { animation: var(--std-animation-3); }
}
@keyframes sk-grow { to { transform: scaleX(1); } }
@keyframes sk-fade { to { opacity: 1; } }
@media (scripting: none) { html:root .sk-again { display: none; } }
.sk { min-width: 0; }
.sk .row { margin-top: var(--space-4); }
/* On a narrow screen the drawing keeps a readable size and scrolls sideways,
   like the build chart on the process page. */
.sk-x { overflow-x: auto; overscroll-behavior-x: contain; }
.sk-x > svg { min-width: var(--bs-min-width); }
.sc-big { fill: var(--color-raised-2); stroke: var(--color-line-strong); }
.sc-us { fill: var(--color-accent); }
.sc-n { font-size: var(--std-font-size-4); font-stretch: 125%; font-weight: 300; }
.sc-n2 { font-size: var(--std-font-size-5); font-stretch: 125%; font-weight: 400; fill: var(--color-accent); }
.sc-l { font-size: var(--std-font-size-6); fill: var(--color-ink-soft); }
.sc { max-width: var(--std-max-width); }
.gas { display: grid; gap: var(--space-7); }
.ga { display: grid; gap: var(--space-3); max-width: var(--std-max-width-2); }
.ga-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.ga-h h3 { font-weight: 400; font-size: var(--text-body); color: var(--color-ink-soft); }
.ga-v { font-stretch: var(--stretch-wide); font-weight: 300; font-size: var(--text-h2); line-height: 1; font-variant-numeric: tabular-nums; }
.ga-v small { font-stretch: 100%; font-size: var(--text-ui); color: var(--color-ink-faint); font-weight: 400; }
.ga-scale { position: relative; height: var(--std-height); }
.ga-scale::before { content: ""; position: absolute; left: 0; right: 0; top: var(--std-top); height: var(--rule-strong); background: var(--color-line-strong); }
.ga-zone { position: absolute; top: var(--std-top-2); height: var(--std-height-2); border-radius: var(--rule-strong); background: color-mix(in oklch, var(--color-accent) 35%, transparent); }
.ga-high { left: var(--l); right: 0; }
.ga-low { left: 0; width: var(--l); }
.ga-line { position: absolute; left: var(--l); top: var(--std-top-3); width: var(--hairline); height: var(--std-height-3); background: var(--color-ink-faint); }
.ga-needle { position: absolute; left: var(--n); top: 0; width: var(--std-width); height: var(--std-height); margin-left: var(--std-margin-left); border-radius: var(--rule-strong); background: var(--color-accent); transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
@supports (animation-timeline: view()) {
.ga-needle { animation: ga-sweep linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
}
}
@keyframes ga-sweep { from { left: 0; opacity: 0.4; } }
.ga-p { color: var(--color-ink-soft); font-size: var(--text-ui); }
.ga-k { color: var(--color-ink-faint); }
.zeros { display: grid; gap: var(--space-6) var(--space-7); grid-template-columns: var(--std-grid-template-columns); }
.zeros dt { color: var(--color-ink-soft); font-size: var(--text-ui); }
.zeros dd { display: grid; gap: var(--space-2); }
.zeros b { font-stretch: var(--stretch-wide); font-weight: 300; font-size: var(--text-h1); line-height: 1; color: var(--color-ink); white-space: nowrap; }
.zeros b small { font-size: var(--text-lead); color: var(--color-ink-soft); }
.zeros span { color: var(--color-ink-faint); font-size: var(--text-ui); }
.notes { list-style: none; display: grid; gap: var(--space-2); font-size: var(--text-small); color: var(--color-ink-faint); max-width: var(--std-max-width-3); }
.ga-n0 { --n: 0%; }
.ga-l0 { --l: 0%; }
.ga-n1 { --n: 1%; }
.ga-l1 { --l: 1%; }
.ga-n2 { --n: 2%; }
.ga-l2 { --l: 2%; }
.ga-n3 { --n: 3%; }
.ga-l3 { --l: 3%; }
.ga-n4 { --n: 4%; }
.ga-l4 { --l: 4%; }
.ga-n5 { --n: 5%; }
.ga-l5 { --l: 5%; }
.ga-n6 { --n: 6%; }
.ga-l6 { --l: 6%; }
.ga-n7 { --n: 7%; }
.ga-l7 { --l: 7%; }
.ga-n8 { --n: 8%; }
.ga-l8 { --l: 8%; }
.ga-n9 { --n: 9%; }
.ga-l9 { --l: 9%; }
.ga-n10 { --n: 10%; }
.ga-l10 { --l: 10%; }
.ga-n11 { --n: 11%; }
.ga-l11 { --l: 11%; }
.ga-n12 { --n: 12%; }
.ga-l12 { --l: 12%; }
.ga-n13 { --n: 13%; }
.ga-l13 { --l: 13%; }
.ga-n14 { --n: 14%; }
.ga-l14 { --l: 14%; }
.ga-n15 { --n: 15%; }
.ga-l15 { --l: 15%; }
.ga-n16 { --n: 16%; }
.ga-l16 { --l: 16%; }
.ga-n17 { --n: 17%; }
.ga-l17 { --l: 17%; }
.ga-n18 { --n: 18%; }
.ga-l18 { --l: 18%; }
.ga-n19 { --n: 19%; }
.ga-l19 { --l: 19%; }
.ga-n20 { --n: 20%; }
.ga-l20 { --l: 20%; }
.ga-n21 { --n: 21%; }
.ga-l21 { --l: 21%; }
.ga-n22 { --n: 22%; }
.ga-l22 { --l: 22%; }
.ga-n23 { --n: 23%; }
.ga-l23 { --l: 23%; }
.ga-n24 { --n: 24%; }
.ga-l24 { --l: 24%; }
.ga-n25 { --n: 25%; }
.ga-l25 { --l: 25%; }
.ga-n26 { --n: 26%; }
.ga-l26 { --l: 26%; }
.ga-n27 { --n: 27%; }
.ga-l27 { --l: 27%; }
.ga-n28 { --n: 28%; }
.ga-l28 { --l: 28%; }
.ga-n29 { --n: 29%; }
.ga-l29 { --l: 29%; }
.ga-n30 { --n: 30%; }
.ga-l30 { --l: 30%; }
.ga-n31 { --n: 31%; }
.ga-l31 { --l: 31%; }
.ga-n32 { --n: 32%; }
.ga-l32 { --l: 32%; }
.ga-n33 { --n: 33%; }
.ga-l33 { --l: 33%; }
.ga-n34 { --n: 34%; }
.ga-l34 { --l: 34%; }
.ga-n35 { --n: 35%; }
.ga-l35 { --l: 35%; }
.ga-n36 { --n: 36%; }
.ga-l36 { --l: 36%; }
.ga-n37 { --n: 37%; }
.ga-l37 { --l: 37%; }
.ga-n38 { --n: 38%; }
.ga-l38 { --l: 38%; }
.ga-n39 { --n: 39%; }
.ga-l39 { --l: 39%; }
.ga-n40 { --n: 40%; }
.ga-l40 { --l: 40%; }
.ga-n41 { --n: 41%; }
.ga-l41 { --l: 41%; }
.ga-n42 { --n: 42%; }
.ga-l42 { --l: 42%; }
.ga-n43 { --n: 43%; }
.ga-l43 { --l: 43%; }
.ga-n44 { --n: 44%; }
.ga-l44 { --l: 44%; }
.ga-n45 { --n: 45%; }
.ga-l45 { --l: 45%; }
.ga-n46 { --n: 46%; }
.ga-l46 { --l: 46%; }
.ga-n47 { --n: 47%; }
.ga-l47 { --l: 47%; }
.ga-n48 { --n: 48%; }
.ga-l48 { --l: 48%; }
.ga-n49 { --n: 49%; }
.ga-l49 { --l: 49%; }
.ga-n50 { --n: 50%; }
.ga-l50 { --l: 50%; }
.ga-n51 { --n: 51%; }
.ga-l51 { --l: 51%; }
.ga-n52 { --n: 52%; }
.ga-l52 { --l: 52%; }
.ga-n53 { --n: 53%; }
.ga-l53 { --l: 53%; }
.ga-n54 { --n: 54%; }
.ga-l54 { --l: 54%; }
.ga-n55 { --n: 55%; }
.ga-l55 { --l: 55%; }
.ga-n56 { --n: 56%; }
.ga-l56 { --l: 56%; }
.ga-n57 { --n: 57%; }
.ga-l57 { --l: 57%; }
.ga-n58 { --n: 58%; }
.ga-l58 { --l: 58%; }
.ga-n59 { --n: 59%; }
.ga-l59 { --l: 59%; }
.ga-n60 { --n: 60%; }
.ga-l60 { --l: 60%; }
.ga-n61 { --n: 61%; }
.ga-l61 { --l: 61%; }
.ga-n62 { --n: 62%; }
.ga-l62 { --l: 62%; }
.ga-n63 { --n: 63%; }
.ga-l63 { --l: 63%; }
.ga-n64 { --n: 64%; }
.ga-l64 { --l: 64%; }
.ga-n65 { --n: 65%; }
.ga-l65 { --l: 65%; }
.ga-n66 { --n: 66%; }
.ga-l66 { --l: 66%; }
.ga-n67 { --n: 67%; }
.ga-l67 { --l: 67%; }
.ga-n68 { --n: 68%; }
.ga-l68 { --l: 68%; }
.ga-n69 { --n: 69%; }
.ga-l69 { --l: 69%; }
.ga-n70 { --n: 70%; }
.ga-l70 { --l: 70%; }
.ga-n71 { --n: 71%; }
.ga-l71 { --l: 71%; }
.ga-n72 { --n: 72%; }
.ga-l72 { --l: 72%; }
.ga-n73 { --n: 73%; }
.ga-l73 { --l: 73%; }
.ga-n74 { --n: 74%; }
.ga-l74 { --l: 74%; }
.ga-n75 { --n: 75%; }
.ga-l75 { --l: 75%; }
.ga-n76 { --n: 76%; }
.ga-l76 { --l: 76%; }
.ga-n77 { --n: 77%; }
.ga-l77 { --l: 77%; }
.ga-n78 { --n: 78%; }
.ga-l78 { --l: 78%; }
.ga-n79 { --n: 79%; }
.ga-l79 { --l: 79%; }
.ga-n80 { --n: 80%; }
.ga-l80 { --l: 80%; }
.ga-n81 { --n: 81%; }
.ga-l81 { --l: 81%; }
.ga-n82 { --n: 82%; }
.ga-l82 { --l: 82%; }
.ga-n83 { --n: 83%; }
.ga-l83 { --l: 83%; }
.ga-n84 { --n: 84%; }
.ga-l84 { --l: 84%; }
.ga-n85 { --n: 85%; }
.ga-l85 { --l: 85%; }
.ga-n86 { --n: 86%; }
.ga-l86 { --l: 86%; }
.ga-n87 { --n: 87%; }
.ga-l87 { --l: 87%; }
.ga-n88 { --n: 88%; }
.ga-l88 { --l: 88%; }
.ga-n89 { --n: 89%; }
.ga-l89 { --l: 89%; }
.ga-n90 { --n: 90%; }
.ga-l90 { --l: 90%; }
.ga-n91 { --n: 91%; }
.ga-l91 { --l: 91%; }
.ga-n92 { --n: 92%; }
.ga-l92 { --l: 92%; }
.ga-n93 { --n: 93%; }
.ga-l93 { --l: 93%; }
.ga-n94 { --n: 94%; }
.ga-l94 { --l: 94%; }
.ga-n95 { --n: 95%; }
.ga-l95 { --l: 95%; }
.ga-n96 { --n: 96%; }
.ga-l96 { --l: 96%; }
.ga-n97 { --n: 97%; }
.ga-l97 { --l: 97%; }
.ga-n98 { --n: 98%; }
.ga-l98 { --l: 98%; }
.ga-n99 { --n: 99%; }
.ga-l99 { --l: 99%; }
.ga-n100 { --n: 100%; }
.ga-l100 { --l: 100%; }

/* Text inside the drawings takes the page's type and ink, unless the drawing
   sets its own. :where() keeps this rule from outranking them. */
:where(.t) { font-family: var(--font-body); fill: var(--color-ink); }

/* On the narrowest screens (WCAG's 320 px reflow test) the wordmark and the
   Menu button sit a little closer, so the header never runs off the side. */
@media (max-width: 22.5rem) {
  .site-h-in {
    column-gap: var(--space-3);
  }

  .mnav summary {
    padding-inline: var(--space-3);
  }
}
