/* ==========================================================================
   Adopt Intelligence · Playbooks
   Light paper, one accent, the same type system as adoptintelligence.com
   and upskilling.adoptintelligence.com (Instrument Sans / Instrument Serif /
   IBM Plex Mono). Dark panels echo the book's cover.
   ========================================================================== */

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/InstrumentSans-normal-400_700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/InstrumentSans-normal-400_700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('../fonts/InstrumentSans-italic-400_700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/InstrumentSerif-italic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/InstrumentSerif-italic-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/InstrumentSerif-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-normal-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper:    #FCFCFD;
  --paper-2:  #F5F5F7;
  --paper-3:  #EFEFF2;
  --ink:      #0E0F13;
  --ink-deep: #0A0B0D;
  --text:     #0E0F13;
  --text-2:   #3C4048;
  --text-3:   #565B64;
  --text-4:   #767B84;
  --text-5:   #9BA0A8;
  --violet:   #6D3FE0;
  --violet-2: #7C4DEF;
  --violet-3: #5A2FCC;
  --violet-soft: #C4B5FD;
  --violet-wash: rgba(109, 63, 224, 0.045);
  --violet-wash-2: rgba(109, 63, 224, 0.10);
  --amber:    #F5B544;
  --line:     rgba(14, 15, 19, 0.09);
  --line-2:   rgba(14, 15, 19, 0.13);
  --line-3:   rgba(14, 15, 19, 0.22);
  --on-dark:  #ECEDEF;
  --on-dark-2:#A2A7AF;
  --on-dark-5:#55585F;
  --line-dark: rgba(255,255,255,0.08);
  --line-dark-2: rgba(255,255,255,0.14);

  --sans:  "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(20px, 4vw, 48px);
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --t-micro: 0.6875rem;
  --t-xs:    0.8125rem;
  --t-sm:    0.875rem;
  --t-base:  1rem;
  --t-md:    clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-lg:    clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --t-xl:    clamp(1.125rem, 1.02rem + 0.5vw, 1.3125rem);
  --t-h3:    clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --t-h2:    clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --t-h1:    clamp(2.375rem, 1.5rem + 3.8vw, 4.375rem);

  --lh-tight: 1.04;
  --lh-snug:  1.16;
  --lh-copy:  1.65;

  --tr-display: -0.034em;
  --tr-head:    -0.024em;
  --tr-body:    -0.004em;
  --tr-label:    0.12em;

  --radius: 4px;
  --radius-lg: 10px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: var(--lh-copy);
  letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: var(--tr-head); line-height: var(--lh-snug); text-wrap: balance; }
h1 em, h2 em, h3 em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.86em; background: var(--paper-3); padding: 0.08em 0.4em; border-radius: 3px; color: var(--text-2); }
ul, ol { margin: 0; padding-left: 1.2em; }
button { font: inherit; color: inherit; }
::selection { background: rgba(109,63,224,0.18); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
body { overflow-x: hidden; }
.wrap--narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 14px;
}
.eyebrow--muted { color: var(--text-5); }
.lede { font-size: var(--t-lg); color: var(--text-3); line-height: 1.6; max-width: 62ch; }
.meta { font-family: var(--mono); font-size: var(--t-xs); color: var(--text-5); letter-spacing: 0.02em; }
.muted { color: var(--text-4); }
.small { font-size: var(--t-sm); }
.serif-line { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); color: var(--text-2); line-height: 1.4; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ==========================================================================
   v2 · components
   ========================================================================== */
:root {
  --hue-eng: #6D3FE0;   /* Engineering Playbooks: the brand violet            */
  --hue-bus: #1B7FD1;   /* Business AI Playbooks: the blue of the ADI mark     */
  --hue-trn: #B3479F;   /* Training Companions: the orchid of the ADI mark     */
  --ok: #8BE3B4;
}
.grid > *, .hero__grid > *, .phero__grid > *, .split > *, .stage > *, .feature__grid > *, .torch-grid > *, .shapes > *, .runner > *, .evidence > *, .authorband > *, .cta > *, .ship > *, .layers-grid > * { min-width: 0; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--violet); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--t-sm); font-weight: 600;
  padding: 13px 22px; border-radius: 3px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  background: var(--ink); color: #fff;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}
.btn:hover { background: var(--violet); color: #fff; }
.btn span { transition: transform 240ms var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--violet); }
.btn--primary:hover { background: var(--violet-3); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); font-weight: 500; }
.btn--ghost:hover { border-color: var(--line-3); background: rgba(14,15,19,0.03); color: var(--ink); }
.btn--sm { padding: 8px 15px; font-size: var(--t-xs); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: var(--violet-soft); color: var(--ink); }
.btn--ghost-dark { background: transparent; border-color: var(--line-dark-2); color: var(--on-dark); font-weight: 500; }
.btn--ghost-dark:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); color: #fff; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(252,252,253,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 260ms var(--ease), background 260ms var(--ease); }
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(252,252,253,0.95); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 22px; width: auto; }
.brand__name { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.018em; white-space: nowrap; line-height: 1; }
.brand__name span { font-weight: 500; color: var(--text-4); }
.brand__sep { width: 1px; height: 18px; background: var(--line-3); margin: 0 2px; }
.brand__line { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink); line-height: 1; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); font-size: 13.5px; color: var(--text-3); white-space: nowrap; }
.nav__links > a { position: relative; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--ease); }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: 1px solid var(--line-2); border-radius: 3px; cursor: pointer; }
.nav__toggle span { display: block; width: 17px; height: 1.5px; margin: 0 auto; background: var(--ink); transition: transform 260ms var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: 8px var(--pad) 20px; background: var(--paper); }
.nav__mobile a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.nav__mobile a:last-child { border-bottom: 0; color: var(--violet); font-weight: 600; }
.nav__mobile.is-open { display: flex; }
@media (max-width: 900px) { .nav__links { display: none; } .nav__toggle { display: flex; } }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; border-top: 1px solid var(--line); position: relative; }
.section--flush { border-top: 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink-deep); color: var(--on-dark); border-top: 0; }
.section--dark .eyebrow { color: var(--violet-soft); }
.section--dark .lede, .section--dark .muted { color: var(--on-dark-2); }
.section--dark h2 { color: #fff; }
.section--dark a:hover { color: var(--violet-soft); }
.section--dark code { background: rgba(255,255,255,0.08); color: var(--on-dark); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { font-size: var(--t-h2); margin-bottom: 14px; }
.h2 { font-size: var(--t-h2); margin-bottom: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.hero__grid, .phero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: var(--tr-display); margin-bottom: 1.3rem; max-width: 12ch; }
.hero .lede { margin-bottom: 1.6rem; max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.caret { display: inline-block; width: 0.075em; height: 0.82em; margin: 0 0.1em 0 0.02em; background: var(--violet); vertical-align: -0.07em; border-radius: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .hero__grid, .phero__grid { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* three lines, announced above the fold */
.linebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.2rem; border-top: 1px solid var(--line-2); }
.linebar a { display: block; padding: 14px 16px 2px 0; position: relative; color: var(--text-3); }
.linebar a + a { padding-left: 16px; border-left: 1px solid var(--line); }
.linebar a::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: var(--hue); transition: width 400ms var(--ease); }
.linebar a + a::before { left: 16px; }
.linebar a:hover::before { width: 64px; }
.linebar b { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.linebar small { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: var(--t-micro); color: var(--text-4); letter-spacing: 0.03em; margin-top: 3px; }
.linebar small i { width: 6px; height: 6px; border-radius: 50%; background: var(--hue); flex: none; }
.linebar small i.soon { background: transparent; border: 1.5px solid var(--hue); }
.linebar small i.live { box-shadow: 0 0 0 0 var(--hue); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(109,63,224,0.5); } 100% { box-shadow: 0 0 0 9px rgba(109,63,224,0); } }
@media (max-width: 560px) { .linebar { grid-template-columns: 1fr; } .linebar a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .linebar a + a::before { left: 0; } .linebar a { padding-bottom: 12px; } }

/* ---------- stage: the book and the lab, together ---------- */
.stage { position: relative; min-height: 620px; }
.stage::before { content: ""; position: absolute; inset: -6% -10% 0 -4%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 62% 40%, rgba(124,77,239,0.20), rgba(124,77,239,0) 100%),
    radial-gradient(rgba(14,15,19,0.13) 1px, transparent 1.4px);
  background-size: auto, 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side at 58% 46%, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side at 58% 46%, #000 30%, transparent 100%); }
.stage .scene { position: absolute; right: 7%; top: 6px; z-index: 2; }
.stage .terminal { position: absolute; left: 0; bottom: 0; z-index: 3; width: min(432px, 86%); }
.stage .fan { position: absolute; z-index: 1; right: 7%; top: 6px; width: var(--w, 300px); aspect-ratio: 900 / 1273; }
.fan img { position: absolute; left: 0; top: 0; width: 86%; border-radius: 3px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -22px rgba(14,15,19,0.45); transform-origin: 20% 100%; transition: transform 900ms var(--ease); }
.fan img:nth-child(1) { transform: translate(34%, 6%) rotate(13deg); }
.fan img:nth-child(2) { transform: translate(24%, 3%) rotate(7deg); }
.stage:hover .fan img:nth-child(1) { transform: translate(44%, 5%) rotate(17deg); }
.stage:hover .fan img:nth-child(2) { transform: translate(30%, 2%) rotate(9deg); }
@media (max-width: 900px) {
  .stage { min-height: 0; display: grid; justify-items: center; gap: 26px; padding-top: 8px; }
  .stage .scene, .stage .terminal { position: relative; right: auto; left: auto; top: auto; bottom: auto; }
  .stage .terminal { width: 100%; }
  .stage .fan { display: none; }
}

/* ---------- the book, in three dimensions ---------- */
.scene { perspective: 2200px; position: relative; }
.floaty { transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.book {
  --w: 300px; --t: 40px; --rx: 0deg; --ry: 0deg;
  position: relative; display: block; width: var(--w); aspect-ratio: 900 / 1273;
  transform-style: preserve-3d;
  transform: rotateX(calc(-4deg + var(--rx))) rotateY(calc(27deg + var(--ry)));
  transition: transform 600ms var(--ease);
}
.book > * { position: absolute; backface-visibility: hidden; }
.book__front { inset: 0; transform: translateZ(calc(var(--t) / 2)); background: #0A0B0D center / cover no-repeat; border-radius: 2px 7px 7px 2px; overflow: hidden; }
.book__front::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5.5%; background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 40%, rgba(0,0,0,0.35) 78%, rgba(255,255,255,0.05)); }
.book__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 68%, rgba(255,255,255,0.07) 100%); }
.book__back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #0c0d11; border-radius: 7px 2px 2px 7px; }
.book__spine { top: 0; bottom: 0; left: calc(var(--t) / -2); width: var(--t); transform: rotateY(-90deg);
  background: linear-gradient(90deg, #050608 0%, #17181f 30%, #101116 70%, #060709 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 7% 0; border-radius: 2px; }
.book__spine img { width: 46%; height: auto; }
.book__spine b { writing-mode: vertical-rl; font-size: calc(var(--t) * 0.3); font-weight: 600; letter-spacing: -0.01em; color: #F3F3F5; white-space: nowrap; }
.book__spine b em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; }
.book__spine span { font-family: var(--mono); font-size: calc(var(--t) * 0.21); color: rgba(236,237,239,0.6); letter-spacing: 0.08em; }
.book__edge { top: 4px; bottom: 4px; right: calc(var(--t) / -2 + 3px); width: calc(var(--t) - 6px); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #f7f7f9 0 1.5px, #dcdde2 1.5px 2.5px); }
.book__top { left: 3px; right: 6px; top: calc(var(--t) / -2 + 3px); height: calc(var(--t) - 6px); transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #f7f7f9 0 1.5px, #d9dae0 1.5px 2.5px); }
.book-shadow { position: absolute; left: 4%; right: -8%; bottom: -34px; height: 30px; background: radial-gradient(ellipse at 45% 50%, rgba(14,15,19,0.5), rgba(14,15,19,0) 70%); filter: blur(11px); animation: shadow 7s ease-in-out infinite; pointer-events: none; }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.93); opacity: 0.78; } }
.book--sm { --w: 210px; --t: 28px; }

/* ---------- terminal ---------- */
.terminal { background: var(--ink-deep); color: var(--on-dark); border-radius: 9px; border: 1px solid var(--line-dark-2); box-shadow: 0 30px 60px -30px rgba(14,15,19,0.55), 0 8px 24px -12px rgba(14,15,19,0.4); overflow: hidden; font-family: var(--mono); font-size: 11.5px; line-height: 1.62; min-width: 0; max-width: 100%; }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-5); font-size: 11px; letter-spacing: 0.05em; }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2b33; }
.terminal__bar b { font-weight: 500; margin-left: 6px; color: var(--on-dark-2); }
.terminal__bar em { margin-left: auto; font-style: normal; color: var(--on-dark-5); }
.terminal pre { margin: 0; padding: 13px 16px 15px; white-space: pre; overflow: hidden; color: #C3C7CE; height: calc(var(--lines, 9) * 1.62em + 28px); }
.terminal .p { color: var(--on-dark-5); }
.terminal .c { color: #fff; }
.terminal .hd { color: #fff; font-weight: 500; }
.terminal .ok { color: var(--ok); }
.terminal .hi { color: var(--amber); }
.terminal .a { color: var(--violet-soft); }
.terminal .dim { color: var(--on-dark-5); }
.terminal .cur { display: inline-block; width: 0.55em; height: 1.05em; background: var(--violet-soft); vertical-align: -0.18em; animation: blink 1s steps(1) infinite; }
.terminal--flat { box-shadow: none; }

/* ---------- code card ---------- */
.code { background: var(--ink-deep); border: 1px solid var(--line-dark-2); border-radius: 9px; overflow: hidden; font-family: var(--mono); font-size: 12px; line-height: 1.62; color: #C3C7CE; }
.code__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-dark); font-size: 11px; color: var(--on-dark-2); letter-spacing: 0.04em; }
.code__bar span { color: var(--on-dark-5); }
.code pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; white-space: pre; }
.code .k, .code .kc, .code .ow { color: var(--violet-soft); }
.code .nf, .code .nc { color: #fff; }
.code .s2, .code .sd, .code .s1 { color: #E9C98A; }
.code .c1 { color: #6E737B; font-style: italic; }
.code .mi, .code .mf { color: var(--amber); }
.code .nt { color: var(--violet-soft); }
.code .nd { color: #E9C98A; }
.code .nb { color: #9EC9FF; }

/* ---------- layers: under every page a lab, under every lab a run ---------- */
.layers-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.layers { perspective: 1800px; height: 440px; display: grid; place-items: center; }
.layers__stack { position: relative; width: 250px; height: 320px; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(-38deg) translateZ(-40px); }
.layer { position: absolute; inset: 0; border-radius: 12px; padding: 20px; transition: transform 700ms var(--ease), opacity 400ms var(--ease), box-shadow 400ms var(--ease); cursor: pointer; }
.layer[data-layer="0"] { transform: translateZ(150px); background: #fff; border: 1px solid var(--line-2); box-shadow: -18px 18px 36px -14px rgba(14,15,19,0.22); }
.layer[data-layer="1"] { transform: translateZ(60px); background: var(--ink-deep); border: 1px solid #2a2b33; box-shadow: -18px 18px 36px -14px rgba(14,15,19,0.35); }
.layer[data-layer="2"] { transform: translateZ(-30px); background: #EFE9FD; border: 1px solid rgba(109,63,224,0.3); box-shadow: -24px 24px 40px -12px rgba(109,63,224,0.28); }
.picks { display: grid; gap: 6px; }
.pick { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; text-align: left; background: none; border: 0; border-left: 2px solid var(--line-2); padding: 14px 0 14px 20px; cursor: pointer; transition: border-color 300ms var(--ease); }
.pick .n { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: var(--tr-label); color: var(--text-5); padding-top: 6px; }
.pick b { font-size: var(--t-h3); font-weight: 600; letter-spacing: var(--tr-head); color: var(--text-4); transition: color 300ms var(--ease); }
.pick p { grid-column: 2; font-size: var(--t-md); color: var(--text-3); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 600ms var(--ease), opacity 400ms var(--ease); margin: 0; }
.pick[aria-pressed="true"] { border-left-color: var(--violet); }
.pick[aria-pressed="true"] .n { color: var(--violet); }
.pick[aria-pressed="true"] b { color: var(--ink); }
.pick[aria-pressed="true"] p { max-height: 160px; opacity: 1; }
@media (max-width: 900px) { .layers-grid { grid-template-columns: 1fr; } .layers { height: 380px; order: 2; } .layers__stack { width: 210px; height: 270px; } }

/* ---------- the chapter line ---------- */
.track { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; counter-reset: step; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line-3); }
.track::after { content: ""; position: absolute; top: 1px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px rgba(109,63,224,0.16); animation: travel 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
.track li { padding: 26px 18px 0 0; position: relative; counter-increment: step; }
.track li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--text-4); }
.track li b { display: block; font-size: var(--t-md); font-weight: 600; margin-bottom: 4px; }
.track li b::before { content: "0" counter(step) " "; font-family: var(--mono); font-size: var(--t-micro); font-weight: 400; color: var(--violet); letter-spacing: 0.06em; margin-right: 4px; }
.track li span { font-size: var(--t-xs); color: var(--text-4); line-height: 1.5; display: block; }
.track-note { margin-top: 26px; font-size: var(--t-sm); color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 28px; }
.track-note b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; } .track::before, .track::after { display: none; } .track li { border-top: 1px solid var(--line-3); } .track li::before { top: -6px; } }
@media (max-width: 520px) { .track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the shelf ---------- */
.shelves { display: grid; gap: clamp(28px, 4vw, 44px); }
.shelf { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0 clamp(20px, 3vw, 44px); align-items: end; }
.shelf__meta { padding-bottom: 18px; }
.shelf__meta .tagline { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hue); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.shelf__meta .tagline i { width: 8px; height: 8px; border-radius: 2px; background: var(--hue); }
.shelf__meta h3 { font-size: var(--t-h3); margin-bottom: 8px; }
.shelf__meta p { font-size: var(--t-sm); color: var(--text-3); line-height: 1.55; }
.shelf__meta .lab { margin-top: 10px; font-size: var(--t-xs); color: var(--text-4); }
.shelf__meta .lab b { color: var(--ink); font-weight: 600; }
.shelf__row { display: flex; align-items: flex-end; gap: 16px; padding: 14px 18px 0; position: relative; overflow-x: auto; scrollbar-width: none; }
.shelf__row::-webkit-scrollbar { display: none; }
.shelf__plank { grid-column: 2; height: 12px; margin-top: -1px; background: linear-gradient(180deg, #E4E4E9, #F1F1F4); border-top: 1px solid #CDCED6; border-radius: 0 0 4px 4px; box-shadow: 0 16px 22px -14px rgba(14,15,19,0.28); }
.shelf > .shelf__meta { grid-row: 1 / span 2; }
.vol { flex: none; width: 112px; height: 158px; border-radius: 2px 5px 5px 2px; position: relative; transform-origin: 50% 100%; transition: transform 420ms var(--ease), box-shadow 420ms var(--ease), opacity 700ms var(--ease); }
.reveal .vol { opacity: 0; transform: translateY(26px); }
.reveal.in .vol { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in .vol:hover { transform: translateY(-9px) rotate(-1.2deg); transition-delay: 0ms; }
.vol--out { width: 152px; height: 215px; background: #0A0B0D center / cover no-repeat; box-shadow: 0 10px 22px -10px rgba(14,15,19,0.55), inset 5px 0 8px -5px rgba(255,255,255,0.25); display: block; }
.vol--out .flag { position: absolute; left: -7px; top: 14px; background: var(--violet); color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; box-shadow: 0 6px 12px -6px rgba(109,63,224,0.8); }
.vol--plan { border: 1px dashed color-mix(in srgb, var(--hue) 50%, transparent); background:
    linear-gradient(180deg, color-mix(in srgb, var(--hue) 7%, #fff), #fff 70%),
    #fff;
  padding: 11px 11px 10px; display: flex; flex-direction: column; color: var(--ink); overflow: hidden; }
.vol--plan small { white-space: nowrap; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hue); }
.vol--plan b { font-size: 12.5px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; margin-top: 10px; display: block; }
.vol--plan b em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.22em; letter-spacing: -0.01em; display: block; }
.vol--plan svg { width: 100%; margin-top: auto; color: var(--hue); opacity: 0.75; }
.vol--plan .st { white-space: nowrap; overflow: hidden; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-5); margin-top: 8px; }
.vol--ghost { border-style: dotted; opacity: 0.7; }
.shelf-note { font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); letter-spacing: 0.03em; margin-top: 22px; }
@media (max-width: 900px) { .shelf { grid-template-columns: 1fr; } .shelf > .shelf__meta { grid-row: auto; padding-bottom: 0; } .shelf__plank { grid-column: 1; } }

/* ---------- feature (dark): Playbook 01 on the line page ---------- */
.feature { background: var(--ink-deep); color: var(--on-dark); position: relative; overflow: hidden; padding: clamp(52px, 7vw, 96px) 0; }
.feature::before { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; background: radial-gradient(circle, rgba(139,92,246,0.42), rgba(139,92,246,0) 62%); pointer-events: none; }
.feature__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; }
.feature h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: var(--tr-display); color: #fff; margin: 12px 0 14px; }
.feature .sub { font-size: var(--t-xl); color: var(--on-dark-2); max-width: 32ch; line-height: 1.35; margin-bottom: 14px; }
.feature .promise { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); color: #fff; margin-bottom: 22px; max-width: 36ch; }
.feature .pitch { color: var(--on-dark-2); font-size: var(--t-md); max-width: 54ch; margin-bottom: 26px; }
.feature .eyebrow { color: var(--violet-soft); }
.feature__stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.feature__stage .fan { position: absolute; width: 250px; aspect-ratio: 900 / 1273; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.feature__stage .fan img { border-color: rgba(255,255,255,0.1); }
.feature__stage .scene { position: relative; z-index: 2; }
.figures { display: grid; grid-template-columns: repeat(4, auto); gap: 0 clamp(18px, 3vw, 40px); justify-content: start; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid var(--line-dark-2); }
.figures div b { display: block; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.figures div span { font-size: var(--t-xs); color: var(--on-dark-2); display: block; margin-top: 6px; max-width: 14ch; line-height: 1.4; }
@media (max-width: 900px) { .feature__grid { grid-template-columns: 1fr; } .feature__stage { min-height: 380px; order: -1; } }
@media (max-width: 520px) { .figures { grid-template-columns: repeat(2, auto); row-gap: 18px; } }

/* ---------- author band ---------- */
.authorband { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(20px, 3.5vw, 48px); align-items: start; }
.authorband__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); filter: saturate(0.9); }
.creds { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; font-size: var(--t-xs); color: var(--text-3); }
.creds li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.creds li:last-child { border-bottom: 0; }
.creds svg { width: 15px; height: 15px; color: var(--violet); flex: none; }
.creds b { color: var(--ink); font-weight: 600; }
.authorband h2 { font-size: var(--t-h2); margin-bottom: 4px; }
.authorband .role { color: var(--text-4); font-size: var(--t-sm); margin-bottom: 16px; }
.authorband .bio { font-size: var(--t-md); color: var(--text-2); }
.authorband .links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: var(--t-sm); color: var(--text-3); }
.authorband .links a { border-bottom: 1px solid var(--line-3); }
.note { padding: 24px 26px; border-left: 2px solid var(--violet); background: var(--violet-wash); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.note .label { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.note blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: var(--t-xl); line-height: 1.42; color: var(--ink); }
.note .sign { display: flex; align-items: flex-end; gap: 16px; margin-top: 12px; }
.note .sign img { width: 140px; height: auto; }
.note .sign small { font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); letter-spacing: 0.06em; }
@media (max-width: 960px) { .authorband { grid-template-columns: 180px minmax(0, 1fr); } .authorband > .note { grid-column: 1 / -1; } }
@media (max-width: 560px) { .authorband { grid-template-columns: 1fr; } .authorband__photo { max-width: 200px; } }

/* ---------- published pieces, as tiles ---------- */
.pubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pub { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: inherit; transition: transform 320ms var(--ease), border-color 220ms var(--ease), box-shadow 320ms var(--ease); min-height: 172px; }
.pub:hover { transform: translateY(-4px); border-color: rgba(109,63,224,0.45); box-shadow: 0 18px 30px -22px rgba(109,63,224,0.55); color: inherit; }
.pub__icon { width: 46px; height: 46px; border-radius: 10px; background: var(--violet-wash-2); color: var(--violet); display: grid; place-items: center; transition: background 260ms var(--ease), color 260ms var(--ease), transform 420ms var(--ease); }
.pub__icon svg { width: 26px; height: 26px; }
.pub:hover .pub__icon { background: var(--violet); color: #fff; transform: rotate(-6deg) scale(1.06); }
.pub b { font-size: var(--t-md); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; display: block; }
.pub small { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); letter-spacing: 0.04em; }
.pub small i { font-style: normal; color: var(--violet); font-size: 14px; transition: transform 260ms var(--ease); }
.pub:hover small i { transform: translate(3px, -3px); }
.pubs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: clamp(28px, 4vw, 44px) 0 16px; }
.pubs-head h3 { font-size: var(--t-h3); }
.pubs-head p { font-size: var(--t-sm); color: var(--text-4); max-width: 60ch; margin: 0; }
.section--dark .pub { background: rgba(255,255,255,0.03); border-color: var(--line-dark-2); }
@media (max-width: 900px) { .pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pubs { grid-template-columns: 1fr; } .pub { min-height: 0; } }

/* ---------- product hero ---------- */
.phero { padding: clamp(32px, 4.5vw, 56px) 0 clamp(36px, 5vw, 60px); overflow: hidden; }
.phero h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: var(--tr-display); margin: 12px 0 16px; }
.phero__sub { font-size: var(--t-xl); color: var(--text-2); max-width: 30ch; margin-bottom: 12px; line-height: 1.35; }
.phero__promise { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); color: var(--text-3); margin-bottom: 22px; max-width: 40ch; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.byline img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.byline b { display: block; font-size: var(--t-sm); font-weight: 600; }
.byline small { display: block; font-size: var(--t-xs); color: var(--text-4); }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

/* the manifest: what ships, set like the file it is */
.manifest { margin: 0; max-width: 470px; font-size: var(--t-sm); }
.manifest__head { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.06em; color: var(--text-5); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.manifest__head::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(139,227,180,0.3); }
.manifest > div { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.manifest dt { flex: 1 1 auto; display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: var(--t-xs); color: var(--text-4); white-space: nowrap; }
.manifest dt::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line-3); transform: translateY(-3px); min-width: 18px; }
.manifest dd { margin: 0; flex: none; color: var(--ink); font-weight: 500; text-align: right; }
.manifest dd small { color: var(--text-4); font-weight: 400; font-size: 1em; }
@media (max-width: 480px) { .manifest > div { flex-direction: column; gap: 0; } .manifest dt::after { display: none; } .manifest dd { text-align: left; } }

/* ---------- marquee of lines worth remembering ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 0; background: var(--paper); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); white-space: nowrap; color: var(--text-2); display: inline-flex; align-items: center; }
.marquee span::after { content: ""; width: 7px; height: 7px; background: var(--violet); transform: rotate(45deg); margin: 0 34px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- the flashlight over the archive ---------- */
.torch-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.torch { border-radius: 14px; background: #07080a; border: 1px solid var(--line-dark-2); padding: 18px 18px 14px; position: relative; }
.torch svg { width: 100%; height: auto; display: block; cursor: crosshair; touch-action: none; }
.torch .tile { fill: #ECEDEF; fill-opacity: 0.035; stroke: #ECEDEF; stroke-opacity: 0.07; stroke-width: 0.25; transition: fill-opacity 180ms linear, stroke-opacity 180ms linear, fill 180ms linear; }
.torch .tile.req { fill: #F5B544; fill-opacity: 0.08; stroke: #F5B544; stroke-opacity: 0.7; stroke-width: 0.42; }
.torch .tile.lit { fill: #C4B5FD; fill-opacity: 0.55; stroke: #C4B5FD; stroke-opacity: 0.9; }
.torch .tile.cited { fill: #F6F3FF; fill-opacity: 0.96; stroke: #F5B544; stroke-opacity: 0; }
.torch .tile.req.lit, .torch .tile.req.cited { stroke: #F5B544; stroke-opacity: 1; stroke-width: 0.6; }
.torch .badge circle { fill: #8B5CF6; }
.torch .badge text { font-family: var(--sans); font-size: 2.6px; font-weight: 600; fill: #fff; text-anchor: middle; }
.torch__read { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 22px; align-items: baseline; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--on-dark-5); text-transform: uppercase; }
.torch__read b { font-family: var(--sans); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark); margin-right: 6px; font-variant-numeric: tabular-nums; }
.torch__read .am b { color: var(--amber); }
.torch__read .hint { grid-column: 1 / -1; color: var(--on-dark-2); text-transform: none; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.torch__read .hint::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--violet-soft); box-shadow: 0 0 0 4px rgba(196,181,253,0.15); animation: pulse 2.2s ease-out infinite; }
.problem blockquote { margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-size: var(--t-h3); line-height: 1.32; color: #fff; }
@media (max-width: 900px) { .torch-grid { grid-template-columns: 1fr; } }


/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 0; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; margin-bottom: -1px; font-size: var(--t-sm); font-weight: 500; color: var(--text-4); cursor: pointer; transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--violet); font-weight: 600; }
.tabs--dark { border-bottom-color: var(--line-dark-2); }
.tabs--dark button { color: var(--on-dark-2); }
.tabs--dark button:hover, .tabs--dark button[aria-selected="true"] { color: #fff; }
.tabs--dark button[aria-selected="true"] { border-bottom-color: var(--violet-soft); }
[data-panel][hidden] { display: none; }
.tool-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.tool-card .tabs { padding: 4px 10px 0; background: var(--paper-2); }
.tool-card .code { border: 0; border-radius: 0; }
.tool-card__cap { padding: 12px 18px; font-size: var(--t-xs); color: var(--text-4); border-top: 1px solid var(--line); background: #fff; }
.matrix { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.4; }
.matrix th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-5); font-weight: 500; text-align: left; padding: 12px 12px 8px; background: #fff; }
.matrix td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-3); }
.matrix td:first-child { font-weight: 600; color: var(--ink); width: 24%; }
.matrix td.best { background: var(--violet-wash); color: var(--ink); }
.matrix-wrap { overflow-x: auto; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 14px 14px 0 0; border-top: 1px solid var(--line-3); position: relative; font-size: var(--t-sm); color: var(--text-3); }
.steps li::before { content: counter(s); font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--violet); display: block; line-height: 1; margin-bottom: 8px; }
.steps li b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } }

/* ---------- six shapes ---------- */
.shapes { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.shapes__tabs { display: grid; gap: 6px; }
.shape-tab { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease); }
.shape-tab svg { width: 24px; height: 24px; color: var(--text-3); }
.shape-tab b { display: block; font-size: var(--t-sm); font-weight: 600; }
.shape-tab small { display: block; font-size: var(--t-xs); color: var(--text-4); line-height: 1.35; }
.shape-tab:hover { border-color: var(--line-3); transform: translateX(3px); }
.shape-tab[aria-selected="true"] { border-color: var(--violet); background: var(--violet-wash); }
.shape-tab[aria-selected="true"] svg { color: var(--violet); }
.shape-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: clamp(20px, 3vw, 32px); min-height: 400px; }
.shape-panel .q { font-family: var(--serif); font-style: italic; font-size: var(--t-h3); line-height: 1.3; margin: 6px 0 20px; }
.shape-panel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0 0 22px; }
.shape-panel dt { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text-5); margin-bottom: 6px; }
.shape-panel dd { margin: 0; font-size: var(--t-sm); color: var(--text-2); line-height: 1.5; }
.shape-panel .verdict { font-size: var(--t-sm); color: var(--text-2); padding: 14px 16px; background: var(--paper-2); border-radius: var(--radius); }
.shape-panel .verdict b { color: var(--ink); }
.shape-panel > * { animation: fadeup 420ms var(--ease) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { .shapes { grid-template-columns: 1fr; } .shapes__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shapes__tabs { grid-template-columns: 1fr; } .shape-panel dl { grid-template-columns: 1fr; } }

/* ---------- bars & charts ---------- */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 132px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: var(--t-sm); }
.bar .lbl { color: var(--text-2); font-weight: 500; }
.bar .lbl small { display: block; font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); font-weight: 400; letter-spacing: 0.04em; }
.bar .track-b { height: 18px; background: var(--paper-3); border-radius: 3px; overflow: hidden; }
.bar .fill { height: 100%; width: 0; background: var(--violet); border-radius: 3px; transition: width 1100ms var(--ease); }
.bar .fill--soft { background: var(--violet-soft); }
.bar .fill--ink { background: var(--text-5); }
.bar .val { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink); text-align: right; }
.bar .val small { display: block; color: var(--text-5); font-size: var(--t-micro); }
.bar--sm .track-b { height: 10px; }
.bar--sm { grid-template-columns: 150px minmax(0, 1fr) 48px; font-size: var(--t-xs); }
.chart-title { font-weight: 600; font-size: var(--t-md); margin-bottom: 3px; }
.chart-sub { font-size: var(--t-xs); color: var(--text-4); margin-bottom: 16px; }
.chart-note { font-size: var(--t-xs); color: var(--text-4); margin-top: 16px; line-height: 1.55; }
.chart-note code { font-size: 0.9em; }
@media (max-width: 480px) { .bar { grid-template-columns: 96px minmax(0, 1fr) 56px; } .bar--sm { grid-template-columns: 116px minmax(0,1fr) 44px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 28px); position: relative; }
.card--tint { background: var(--paper-2); }
.card h3 { font-size: var(--t-h3); margin-bottom: 8px; }
.card .num { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: var(--tr-label); color: var(--text-5); margin-bottom: 14px; display: block; text-transform: uppercase; }
.evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evidence .wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .evidence { grid-template-columns: 1fr; } }
.heat-wrap { overflow-x: auto; }
.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: var(--t-xs); }
.heat th { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-5); font-weight: 500; text-align: center; padding: 4px 8px; }
.heat td { padding: 7px 8px; text-align: center; border-radius: 3px; color: var(--ink); font-family: var(--mono); background: var(--paper-2); }
.heat td.row { text-align: left; font-family: var(--sans); font-weight: 500; color: var(--text-2); background: transparent; padding-left: 0; white-space: nowrap; }
.heat td[data-v="0"] { background: #F3F2F7; color: var(--text-4); }
.heat td[data-v="1"] { background: #E8E2FA; }
.heat td[data-v="2"] { background: #D4C7F5; }
.heat td[data-v="3"] { background: #B9A3EF; }
.heat td[data-v="4"] { background: #8C64E6; color: #fff; }
.heat td[data-v="5"] { background: var(--violet); color: #fff; }
.honest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); }
.honest div { padding: 18px 22px; border-right: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-2); }
.honest div:last-child { border-right: 0; }
.honest b { display: block; font-family: var(--mono); font-size: var(--t-micro); font-weight: 500; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text-5); margin-bottom: 6px; }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } .honest div { border-right: 0; border-bottom: 1px solid var(--line); } .honest div:last-child { border-bottom: 0; } }

/* what failed, quoted */
.failed { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.failed__nav { background: var(--paper-2); border-right: 1px solid var(--line); padding: 22px 0 14px; display: flex; flex-direction: column; }
.failed__nav .num { padding: 0 22px; color: #8a5a00; }
.failed__nav h3 { padding: 0 22px; font-size: var(--t-lg); margin-bottom: 14px; }
.failed__nav button { text-align: left; background: none; border: 0; border-left: 2px solid transparent; padding: 9px 20px; font-size: var(--t-sm); color: var(--text-3); cursor: pointer; }
.failed__nav button:hover { color: var(--ink); }
.failed__nav button[aria-selected="true"] { border-left-color: var(--amber); color: var(--ink); font-weight: 600; background: #fff; }
.failed__body { padding: 24px 28px; min-height: 250px; }
.failed__body .q { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); line-height: 1.35; margin-bottom: 14px; }
.failed__body .a { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--text-2); background: rgba(245,181,68,0.10); border-left: 2px solid var(--amber); padding: 12px 16px; border-radius: 0 6px 6px 0; margin-bottom: 14px; }
.failed__body .a span { display: block; font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; color: #8a5a00; margin-bottom: 4px; }
.failed__body .why { font-size: var(--t-sm); color: var(--text-2); max-width: 70ch; }
.failed__body > * { animation: fadeup 380ms var(--ease) both; }
@media (max-width: 700px) { .failed { grid-template-columns: 1fr; } .failed__nav { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; padding: 16px 12px 0; } .failed__nav .num, .failed__nav h3 { width: 100%; padding: 0 8px; } .failed__nav button { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; } .failed__nav button[aria-selected="true"] { border-bottom-color: var(--amber); } }

/* ---------- table of contents ---------- */
.toc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.toc__part { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.toc__part:last-child { border-right: 0; }
.toc__part header { padding: 18px 20px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.toc__part header span { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--violet); display: block; line-height: 1; margin-bottom: 6px; }
.toc__part header b { font-size: var(--t-lg); font-weight: 600; display: block; letter-spacing: var(--tr-head); }
.toc__part header small { font-size: var(--t-xs); color: var(--text-4); }
.toc__ch { padding: 14px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 8px; transition: background 220ms var(--ease); }
.toc__ch:last-child { border-bottom: 0; }
.toc__ch:hover { background: var(--violet-wash); }
.toc__ch .no { font-family: var(--mono); font-size: var(--t-xs); color: var(--text-5); padding-top: 2px; }
.toc__ch b { font-size: var(--t-sm); font-weight: 600; line-height: 1.3; }
.toc__ch p { grid-column: 2; font-size: var(--t-xs); color: var(--text-4); line-height: 1.45; margin: 2px 0 6px; }
.toc__ch .lab { grid-column: 2; font-family: var(--mono); font-size: var(--t-micro); color: var(--violet); letter-spacing: 0.04em; display: flex; gap: 10px; align-items: center; }
.toc__ch .lab i { font-style: normal; color: var(--text-5); }
.toc__ch .lab svg { width: 14px; height: 14px; color: var(--violet); }
.toc-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.toc-ends div { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: baseline; background: #fff; }
.toc-ends span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--violet); }
.toc-ends b { font-size: var(--t-sm); font-weight: 600; }
.toc-ends p { grid-column: 2; font-size: var(--t-xs); color: var(--text-4); margin: 0; }
@media (max-width: 960px) { .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .toc__part:nth-child(2) { border-right: 0; } .toc__part:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .toc { grid-template-columns: 1fr; } .toc__part { border-right: 0; border-bottom: 1px solid var(--line); } .toc-ends { grid-template-columns: 1fr; } }

/* ---------- the lab runner ---------- */
.runner { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: clamp(16px, 2.5vw, 28px); align-items: stretch; }
.runner__list { display: grid; gap: 4px; align-content: start; }
.runner__lab { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 9px 12px; cursor: pointer; color: var(--on-dark-2); transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.runner__lab .id { font-family: var(--mono); font-size: var(--t-xs); color: var(--violet-soft); }
.runner__lab b { font-size: var(--t-sm); font-weight: 500; }
.runner__lab .ch { font-family: var(--mono); font-size: var(--t-micro); color: var(--on-dark-5); }
.runner__lab:hover { background: rgba(255,255,255,0.04); color: #fff; }
.runner__lab[aria-selected="true"] { background: rgba(196,181,253,0.10); border-color: rgba(196,181,253,0.35); color: #fff; }
.runner__lab[aria-selected="true"] b { font-weight: 600; }
.runner__screen { display: grid; grid-template-rows: auto auto; gap: 12px; align-content: start; }
.runner__screen .terminal pre { font-size: 12px; }
.runner__proves { font-size: var(--t-sm); color: var(--on-dark-2); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; }
.runner__proves b { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--violet-soft); font-weight: 500; }
.runner__proves span { color: var(--on-dark); }
.labfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(24px, 3.5vw, 40px); border-top: 1px solid var(--line-dark-2); }
.labfacts div { padding: 20px 24px 0 0; }
.labfacts div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.labfacts b { display: block; color: #fff; font-size: var(--t-lg); font-weight: 600; margin-bottom: 6px; letter-spacing: var(--tr-head); }
.labfacts p { font-size: var(--t-sm); color: var(--on-dark-2); }
.lab-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; margin-bottom: clamp(24px, 3.5vw, 40px); }
@media (max-width: 900px) { .runner { grid-template-columns: 1fr; } .runner__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .labfacts { grid-template-columns: 1fr; } .labfacts div + div { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .runner__list { grid-template-columns: 1fr; } }
.seal { width: 96px; height: 96px; font-family: var(--mono); font-size: 7.6px; letter-spacing: 0.22em; fill: currentColor; color: var(--violet-soft); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .seal { display: none; } .lab-head { grid-template-columns: 1fr; } }

/* ---------- the reader: an open book you can leaf through ---------- */
.reader { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 14px; align-items: center; max-width: 980px; margin: 0 auto; }
.reader__book { position: relative; aspect-ratio: 1818 / 1287; perspective: 2600px; filter: drop-shadow(0 30px 34px rgba(14,15,19,0.22)); }
.reader__page { position: absolute; top: 0; width: 50%; height: 100%; background: #fff; overflow: hidden; cursor: zoom-in; }
.reader__page img, .reader__leaf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reader__page--left { left: 0; border-radius: 4px 0 0 4px; }
.reader__page--right { left: 50%; border-radius: 0 4px 4px 0; }
.reader__page--left::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14,15,19,0.16), rgba(14,15,19,0) 9%); pointer-events: none; }
.reader__page--right::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,19,0.16), rgba(14,15,19,0) 9%); pointer-events: none; }
.reader__page.is-empty { background: transparent; cursor: default; }
.reader__page.is-empty img, .reader__page.is-empty::after { display: none; }
.reader__leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: left center; display: none; z-index: 5; }
.reader__leaf.is-on { display: block; }
.reader__leaf img { position: absolute; inset: 0; backface-visibility: hidden; background: #fff; }
.reader__leaf .back { transform: rotateY(180deg); }
.reader__nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 20px; color: var(--ink); display: grid; place-items: center; transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease); }
.reader__nav:hover { background: var(--violet); border-color: var(--violet); color: #fff; transform: scale(1.06); }
.reader__nav:disabled { opacity: 0.3; pointer-events: none; }
.reader__thumbs { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.reader__thumbs button { background: #fff; border: 1px solid var(--line-2); border-radius: 100px; padding: 7px 14px; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.05em; color: var(--text-3); cursor: pointer; transition: all 200ms var(--ease); }
.reader__thumbs button:hover { border-color: var(--line-3); color: var(--ink); }
.reader__thumbs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.reader__hint { grid-column: 1 / -1; text-align: center; font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); letter-spacing: 0.04em; margin-top: 10px; }
@media (max-width: 640px) { .reader { grid-template-columns: 1fr 1fr; } .reader__book { grid-column: 1 / -1; grid-row: 1; } .reader__nav { justify-self: center; grid-row: 2; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,11,13,0.93); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: calc(100vh - 80px); max-width: min(92vw, 900px); border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); background: #fff; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: var(--t-xs); color: var(--on-dark-2); }

/* ---------- what ships ---------- */
.ship { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ship__list { list-style: none; padding: 0; margin: 0; }
.ship__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-3); }
.ship__list li:first-child { border-top: 1px solid var(--line-3); }
.ship__list .ext { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.06em; color: var(--violet); padding-top: 4px; }
.ship__list b { display: block; color: var(--ink); font-weight: 600; font-size: var(--t-md); margin-bottom: 2px; }
.tree { font-family: var(--mono); font-size: 11.5px; line-height: 1.75; color: var(--on-dark-2); }
.tree b { color: var(--on-dark); font-weight: 500; }
.tree i { font-style: normal; color: var(--on-dark-5); }
.tree .k { color: var(--violet-soft); }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 18px; font-size: var(--t-xs); color: var(--text-3); }
.terms b { display: block; font-family: var(--mono); font-size: var(--t-micro); font-weight: 500; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text-5); margin-bottom: 6px; }
@media (max-width: 860px) { .ship { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .terms { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-weight: 600; font-size: var(--t-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--violet); font-size: 20px; font-weight: 400; transition: transform 220ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-3); font-size: var(--t-sm); }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { border-radius: 14px; background: var(--ink-deep); color: var(--on-dark); padding: clamp(28px, 4.5vw, 56px); display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(20px, 3vw, 44px); align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(139,92,246,0.45), rgba(139,92,246,0) 65%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: var(--t-h2); color: #fff; margin-bottom: 10px; }
.cta p { color: var(--on-dark-2); max-width: 50ch; }
.cta .eyebrow { color: var(--violet-soft); }
.cta__actions { display: grid; gap: 10px; }
.cta__actions .btn { width: 100%; justify-content: center; }
.cta__note { font-family: var(--mono); font-size: var(--t-micro); color: var(--on-dark-5); letter-spacing: 0.04em; line-height: 1.6; }
.cta__cover { width: 118px; aspect-ratio: 900 / 1273; border-radius: 2px 5px 5px 2px; background: #0A0B0D center / cover no-repeat; box-shadow: 0 20px 30px -16px #000, inset 4px 0 6px -4px rgba(255,255,255,0.3); transform: rotate(-4deg); border: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } .cta__cover { display: none; } }

/* ---------- footer ---------- */
.footer { padding: clamp(28px, 4vw, 44px) 0 24px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; padding-bottom: 22px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 28px 48px; font-size: var(--t-xs); color: var(--text-4); }
.footer__cols b { display: block; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text-5); margin-bottom: 10px; font-weight: 500; }
.footer__cols a { display: block; padding: 3px 0; }
.footer__copy { font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }
.reveal--keep { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal .vol { opacity: 1 !important; transform: none !important; } .floaty, .book-shadow, .marquee__track, .track::after, .seal { animation: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ?static in the URL: everything in its final state, for screenshots and print */
.is-static .reveal, .is-static .reveal .vol { opacity: 1 !important; transform: none !important; }
.is-static *, .is-static *::before, .is-static *::after { transition: none !important; animation: none !important; }

/* covers, by title (kept last so shorthand backgrounds above do not reset it) */
.cover-swq.cover-swq { background-image: url('../img/cover.jpg'); }

.codesplit { grid-template-columns: minmax(0, 664px) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.codesplit .code { font-size: 11.4px; }
@media (max-width: 1000px) { .codesplit { grid-template-columns: 1fr; } }


/* ==========================================================================
   landing · one product, one page
   ========================================================================== */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; font-size: var(--t-sm); transition: top 200ms var(--ease); }
.skip:focus { top: 12px; color: #fff; }
html { scroll-padding-top: 72px; }

.layer-no { display: inline-block; padding: 2px 7px; margin-right: 8px; border: 1px solid currentColor; border-radius: 3px; letter-spacing: 0.1em; }
.h2--xl { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.06; letter-spacing: var(--tr-display); }
.pick .go { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: var(--t-xs); color: var(--violet); white-space: nowrap; border-bottom: 1px solid rgba(109,63,224,0.35); cursor: pointer; transition: border-color 200ms var(--ease); }
.pick .go:hover { border-bottom-color: var(--violet); }

/* the rail: book / lab / evidence, while you are inside them */
.rail { position: fixed; left: 22px; top: 50%; z-index: 30; transform: translateY(-50%); display: none; flex-direction: column; gap: 14px; mix-blend-mode: difference; opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease); }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; gap: 10px; color: #fff; opacity: 0.4; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; transition: opacity 300ms var(--ease); }
.rail a:hover { color: #fff; opacity: 0.8; }
.rail a i { width: 10px; height: 1.5px; background: #fff; transition: width 400ms var(--ease); }
.rail a.is-active { opacity: 1; }
.rail a.is-active i { width: 26px; }
@media (min-width: 1400px) { .rail { display: flex; } }

/* the buy bar */
.buybar { position: fixed; left: 50%; bottom: 18px; z-index: 45; transform: translate(-50%, 160%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 12px; background: rgba(10,11,13,0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; box-shadow: 0 24px 50px -18px rgba(14,15,19,0.65); transition: transform 600ms var(--ease); max-width: calc(100vw - 24px); }
.buybar.is-on { transform: translate(-50%, 0); }
.buybar__cover { flex: none; width: 30px; height: 42px; border-radius: 1px 3px 3px 1px; background: #0A0B0D center / cover no-repeat; box-shadow: inset 2px 0 3px -2px rgba(255,255,255,0.5); }
.buybar__text { display: grid; line-height: 1.25; padding-right: 6px; }
.buybar__text b { font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
.buybar__text small { font-family: var(--mono); font-size: var(--t-micro); color: var(--on-dark-2); letter-spacing: 0.03em; white-space: nowrap; }
.buybar .btn { padding: 10px 16px; }
@media (max-width: 520px) { .buybar__text small { display: none; } .buybar { gap: 10px; } }
.is-static .buybar, .is-static .rail { display: none !important; }
@media print { .buybar, .rail, .nav, .progress { display: none !important; } }


/* ==========================================================================
   landing v4 · quieter labels, the book in focus, concrete layers
   ========================================================================== */

/* section openers read as a phrase, not as a tag */
.eyebrow { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.005em; text-transform: none; color: var(--violet); margin: 0 0 10px; }
.eyebrow--muted { color: var(--text-4); }

/* small captions: plain sans, sentence case */
.shape-panel dt, .card .num, .terms b, .footer__cols b, .note .label, .failed__body .a span, .runner__proves b, .matrix th, .heat th {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-4); }
.note .label { color: var(--violet); }
.runner__proves b { color: var(--violet-soft); font-size: var(--t-sm); }
.failed__body .a span { color: #8a5a00; }
.torch__read { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--on-dark-2); }
.pub small, .reader__thumbs button, .reader__hint, .cta__note, .footer__copy, .buybar__text small, .rail a { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.reader__thumbs button, .reader__hint, .cta__note, .footer__copy { font-size: var(--t-xs); }
.rail a { font-size: 12px; }
.toc__part header span { font-size: 1.125rem; }

/* the edition line above the title */
.edition { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 16px; }
.edition__name { font-family: var(--serif); font-style: italic; font-size: 1.4375rem; color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; }
.edition__name span { color: var(--violet); }
.edition__with { font-size: var(--t-sm); color: var(--text-4); padding-left: 14px; border-left: 1px solid var(--line-3); line-height: 1.25; }
.manifest { margin-top: 4px; }

/* ---------- a quiet grid of tiles, the archive of the cover ---------- */
:root { --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect x='3.5' y='3.5' width='23' height='23' rx='4.5' fill='none' stroke='%230E0F13' stroke-opacity='.075'/%3E%3C/svg%3E");
        --tile-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect x='3.5' y='3.5' width='23' height='23' rx='4.5' fill='none' stroke='%23FFFFFF' stroke-opacity='.09'/%3E%3C/svg%3E"); }
.tiles { position: absolute; inset: -8% -16% -8% -12%; z-index: 0; pointer-events: none; background-image: var(--tile); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(closest-side at 52% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side at 52% 50%, #000 30%, transparent 100%); }
.tiles::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 48%, rgba(124,77,239,0.17), rgba(124,77,239,0) 72%); }
.tiles i { position: absolute; left: calc(var(--c) * 30px + 3.5px); top: calc(var(--r) * 30px + 3.5px); width: 23px; height: 23px; border-radius: 4.5px; background: rgba(109,63,224,0.13); border: 1px solid rgba(109,63,224,0.38); opacity: 0; animation: twinkle 7s ease-in-out var(--d, 0s) infinite; }
.tiles i.am { background: rgba(245,181,68,0.14); border-color: rgba(245,181,68,0.85); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.86); } 35%, 65% { opacity: 1; transform: scale(1); } }
#format, #inside, #faq { overflow: hidden; }
#format > .wrap, #inside > .wrap, #faq > .wrap { position: relative; }
#format::before, #inside::before, #faq::before { content: ""; position: absolute; width: 660px; height: 480px; pointer-events: none; background-image: var(--tile); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 100%); mask-image: radial-gradient(closest-side, #000 10%, transparent 100%); }
#format::before { left: -120px; top: 20px; }
#inside::before { right: -160px; top: -90px; }
#faq::before { right: -200px; bottom: -160px; }
.cta > * { z-index: 1; }
.cta::after { content: ""; position: absolute; z-index: 0; right: 0; top: 0; bottom: 0; width: 60%; pointer-events: none; background-image: var(--tile-light); background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }

/* ---------- the stage: one book, its pages behind it ---------- */
.stage--book { --bw: clamp(240px, 24.5vw, 326px); min-height: 610px; display: grid; place-items: center; padding-right: 13%; }
.stage--book::before { display: none; }
.stage--book .scene { position: relative; right: auto; top: auto; z-index: 2; }
.stage--book .book { --w: var(--bw); --t: 42px; }
.stage--book .fan { position: absolute; z-index: 1; left: calc(50% - 6.5%); top: 50%; right: auto; width: var(--bw); aspect-ratio: 900 / 1273; transform: translate(-50%, -50%); }
.stage--book .fan img { width: 92%; opacity: 0; transform: translate(8%, 3%) rotate(3deg); transform-origin: 18% 100%; transition: transform 1300ms var(--ease), opacity 700ms var(--ease); box-shadow: 0 22px 44px -24px rgba(14,15,19,0.5); }
.stage--book.is-in .fan img { opacity: 1; }
.stage--book.is-in .fan img:nth-child(1) { transform: translate(calc(56% + var(--px, 0) * -38px), calc(5% + var(--py, 0) * -16px)) rotate(20deg); transition-delay: 420ms; }
.stage--book.is-in .fan img:nth-child(2) { transform: translate(calc(41% + var(--px, 0) * -26px), calc(2.5% + var(--py, 0) * -11px)) rotate(13deg); transition-delay: 280ms; }
.stage--book.is-in .fan img:nth-child(3) { transform: translate(calc(26% + var(--px, 0) * -15px), calc(1% + var(--py, 0) * -6px)) rotate(6deg); transition-delay: 140ms; }
.stage--book.is-live .fan img { transition: transform 700ms var(--ease), opacity 700ms var(--ease); transition-delay: 0ms !important; }
.stage--book.is-live:hover .fan img:nth-child(1) { transform: translate(calc(66% + var(--px, 0) * -38px), calc(4% + var(--py, 0) * -16px)) rotate(24deg); }
.stage--book.is-live:hover .fan img:nth-child(2) { transform: translate(calc(48% + var(--px, 0) * -26px), calc(2% + var(--py, 0) * -11px)) rotate(15.5deg); }
.stage--book.is-live:hover .fan img:nth-child(3) { transform: translate(calc(30% + var(--px, 0) * -15px), calc(0.5% + var(--py, 0) * -6px)) rotate(7deg); }

@media (max-width: 900px) { .stage--book { min-height: 500px; padding-right: 16%; } .tiles { inset: -4% -8%; } }
@media (max-width: 520px) { .stage--book { --bw: 210px; min-height: 420px; } }

/* ---------- three layers that look like what they are ---------- */
.layers__stack { width: 264px; height: 344px; }
.layer { padding: 0; overflow: hidden; }
.layer--book img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.layer--lab .lbar { display: flex; align-items: center; gap: 5px; padding: 10px 13px; border-bottom: 1px solid #23242b; }
.layer--lab .lbar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #34353d; }
.layer--lab .lbar span { margin-left: 6px; font-family: var(--mono); font-size: 8.5px; color: var(--on-dark-2); }
.layer--lab pre { margin: 0; padding: 13px 14px; font-family: var(--mono); font-size: 9.6px; line-height: 1.66; color: #C3C7CE; white-space: pre; }
.layer--lab .p { color: var(--on-dark-5); } .layer--lab .hd { color: #fff; } .layer--lab .ok { color: var(--ok); } .layer--lab .a { color: var(--violet-soft); }
.layer--run { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.layer--run b { font-family: var(--mono); font-size: 8.5px; font-weight: 500; color: var(--violet-3); margin-bottom: 4px; }
.lrow { display: grid; grid-template-columns: 66px minmax(0, 1fr) 28px; gap: 8px; align-items: center; font-size: 9.5px; color: var(--text-2); }
.lrow i { display: block; height: 11px; border-radius: 3px; background: rgba(109,63,224,0.17); position: relative; overflow: hidden; }
.lrow i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: var(--violet); border-radius: 3px; }
.lrow em { font-style: normal; font-family: var(--mono); font-size: 9px; text-align: right; color: var(--ink); }
.lheat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 8px; }
.lheat u { display: block; height: 12px; border-radius: 2px; background: #F8F7FC; text-decoration: none; }
.lheat u[data-v="1"] { background: #E8E2FA; } .lheat u[data-v="2"] { background: #D4C7F5; } .lheat u[data-v="3"] { background: #B9A3EF; } .lheat u[data-v="4"] { background: #8C64E6; } .lheat u[data-v="5"] { background: var(--violet); }
.layer--run small { margin-top: auto; font-family: var(--mono); font-size: 7.5px; color: var(--text-4); }
@media (max-width: 900px) { .layers__stack { width: 230px; height: 300px; } }

/* ---------- evidence, in one panel ---------- */
.ev { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.ev > .tabs { padding: 6px 14px 0; background: var(--paper-2); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ev > .tabs::-webkit-scrollbar { display: none; }
.ev__panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 3.5vw, 48px); padding: clamp(22px, 3vw, 34px); align-items: center; min-height: 326px; }
.ev__panel[hidden] { display: none; }
.ev__panel--one { grid-template-columns: 1fr; align-items: start; }
.ev__panel > * { animation: fadeup 420ms var(--ease) both; }
.ev__say { border-left: 1px solid var(--line-2); padding-left: clamp(18px, 3vw, 36px); font-size: var(--t-sm); color: var(--text-2); }
.ev__big { font-size: clamp(2.6rem, 2rem + 2.6vw, 4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; color: var(--ink); }
.ev__big span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.5em; letter-spacing: 0; color: var(--violet); margin: 0 3px; }
.ev__note { font-size: var(--t-xs); color: var(--text-4); margin-top: 10px; }
.ev .chart-sub { margin-bottom: 18px; }
.ev .heat td { padding: 6px 8px; }
.ev .failed { display: block; padding: 0; overflow: visible; }
.ev .failed__nav { flex-direction: row; flex-wrap: wrap; gap: 6px; background: none; border: 0; padding: 0 0 18px; }
.ev .failed__nav button { border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 14px; font-size: var(--t-xs); background: #fff; color: var(--text-3); }
.ev .failed__nav button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.ev .failed__body { padding: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 0 clamp(20px, 3.5vw, 48px); align-items: start; }
.ev .failed__body .q, .ev .failed__body .a { grid-column: 1; }
.ev .failed__body .a { margin-bottom: 0; }
.ev .failed__body .why { grid-column: 2; grid-row: 1 / span 2; align-self: center; border-left: 1px solid var(--line-2); padding-left: clamp(18px, 3vw, 36px); }
@media (max-width: 760px) {
  .ev__panel { grid-template-columns: 1fr; min-height: 0; }
  .ev__say, .ev .failed__body .why { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 18px; }
  .ev .failed__body { grid-template-columns: 1fr; gap: 14px; } .ev .failed__body .why { grid-column: 1; grid-row: auto; }
}
.pubs--slim { margin-top: 14px; gap: 10px; }
.pubs--slim .pub { grid-template-rows: none; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 0; padding: 12px 14px; }
.pubs--slim .pub__icon { width: 38px; height: 38px; border-radius: 9px; }
.pubs--slim .pub__icon svg { width: 22px; height: 22px; }
.pubs--slim .pub b { font-size: var(--t-sm); line-height: 1.25; }
.pubs--slim .pub > i { font-style: normal; color: var(--violet); transition: transform 260ms var(--ease); }
.pubs--slim .pub:hover > i { transform: translate(3px, -3px); }
.pubs-foot { font-size: var(--t-xs); color: var(--text-4); margin-top: 12px; max-width: 86ch; }
@media (prefers-reduced-motion: reduce) { .tiles i { animation: none; opacity: 0.7; } .stage--book .book__front::after { animation: none !important; } }
.is-static .tiles i { opacity: 0.8; }


/* ==========================================================================
   landing v4b
   ========================================================================== */

/* the book arrives turning, and light crosses its cover */
@property --base { syntax: "<angle>"; inherits: true; initial-value: 27deg; }
.stage--book .scene { opacity: 0; transform: translateY(30px) scale(0.955); transition: opacity 900ms var(--ease), transform 1400ms var(--ease); }
.stage--book.is-in .scene { opacity: 1; transform: none; }
.stage--book .book { --base: 58deg; transform: rotateX(calc(-4deg + var(--rx))) rotateY(calc(var(--base) + var(--ry))); transition: transform 700ms var(--ease), --base 1500ms var(--ease); }
.stage--book.is-in .book { --base: 27deg; }
.stage--book.is-live:hover .book { --base: 19deg; }
.stage--book .book__front { box-shadow: 12px 0 30px -16px rgba(14,15,19,0.6); }
.stage--book .book__front::after { background: linear-gradient(105deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.20) 50%, rgba(255,255,255,0) 60%, rgba(255,255,255,0) 100%); background-size: 260% 100%; background-position: 135% 0; transition: background-position 1300ms var(--ease); }
.stage--book.is-in .book__front::after { animation: sheen 2200ms var(--ease) 1300ms 1; }
.stage--book.is-live:hover .book__front::after { background-position: -45% 0; }
@keyframes sheen { from { background-position: 135% 0; } to { background-position: -45% 0; } }

/* the layers, pulled apart so each one is seen whole */
.layers { height: 540px; }
.layers__stack { width: 236px; height: 308px; transform: rotateX(57deg) rotateZ(-38deg); }
.layers .layer { opacity: 0.5; cursor: pointer; transition: transform 800ms var(--ease), opacity 500ms var(--ease), box-shadow 500ms var(--ease); }
.layers .layer[data-layer="0"] { transform: translateZ(190px); }
.layers .layer[data-layer="1"] { transform: translateZ(0); }
.layers .layer[data-layer="2"] { transform: translateZ(-190px); }
.layers[data-active="0"] .layer[data-layer="0"] { opacity: 1; transform: translateZ(214px); box-shadow: -26px 26px 46px -14px rgba(14,15,19,0.30), 0 0 0 1.5px var(--violet); }
.layers[data-active="1"] .layer[data-layer="1"] { opacity: 1; transform: translateZ(24px); box-shadow: -26px 26px 46px -14px rgba(14,15,19,0.45), 0 0 0 1.5px var(--violet-soft); }
.layers[data-active="2"] .layer[data-layer="2"] { opacity: 1; transform: translateZ(-166px); box-shadow: -30px 30px 50px -12px rgba(109,63,224,0.38), 0 0 0 1.5px var(--violet); }
.layer--lab pre { font-size: 8.9px; padding: 11px 13px; }
.layer--run { padding: 16px 16px 13px; gap: 8px; }
.lheat u { height: 10px; }
@media (max-width: 900px) { .layers { height: 470px; } .layers__stack { width: 204px; height: 266px; }
  .layers .layer[data-layer="0"] { transform: translateZ(160px); } .layers .layer[data-layer="2"] { transform: translateZ(-160px); }
  .layers[data-active="0"] .layer[data-layer="0"] { transform: translateZ(180px); } .layers[data-active="2"] .layer[data-layer="2"] { transform: translateZ(-140px); } }
.is-static .stage--book .scene { opacity: 1; transform: none; }

/* narrow screens: keep the pages behind the book, keep the grid away from text */
@media (max-width: 900px) {
  .stage--book .fan { display: block; }
  #format::before, #faq::before { display: none; }
}


/* ==========================================================================
   landing v5 · a focused page
   ========================================================================== */
.section { padding: clamp(44px, 5.4vw, 76px) 0; }
.phero { padding-bottom: clamp(28px, 3.5vw, 44px); }
.stage--book { min-height: 560px; }
.section__head { margin-bottom: clamp(22px, 3vw, 36px); }

/* the idea */
.idea__head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(22px, 3vw, 34px); }
.idea__head .h2 { margin-bottom: 0; }
.shapes--row { grid-template-columns: 1fr; gap: 12px; }
.shapes--row .shapes__tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.shapes--row .shape-tab { grid-template-columns: 1fr; gap: 6px; justify-items: start; padding: 12px 14px; }
.shapes--row .shape-tab:hover { transform: translateY(-2px); }
.shapes--row .shape-tab small { display: none; }
.shapes--row .shape-panel { min-height: 0; padding: clamp(20px, 2.6vw, 30px); }
.shapes--row .shape-panel .q { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); }
.shapes--row .shape-panel .q svg { flex: none; width: 30px; height: 30px; color: var(--violet); margin-top: 3px; }
.shapes--row .shape-panel dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.shapes--row .shape-panel dl > div { padding: 14px 22px 0 0; }
.shapes--row .shape-panel dl > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.shapes--row .shape-panel .verdict { padding: 0; background: none; color: var(--text-3); max-width: 96ch; }
.idea__foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 4vw, 64px); align-items: start; margin-top: clamp(24px, 3vw, 36px); }
.idea__foot .steps { margin: 0; }
.idea__foot p { font-size: var(--t-md); color: var(--text-3); padding-top: 14px; }
.idea__foot p b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .idea__head, .idea__foot { grid-template-columns: 1fr; } .shapes--row .shapes__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shapes--row .shape-panel dl { grid-template-columns: 1fr; } .shapes--row .shape-panel dl > div + div { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .shapes--row .shapes__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the playbook: three layers, and the one you chose, opened */
#playbook { overflow: hidden; }
#playbook > .wrap { position: relative; }
#playbook::before { content: ""; position: absolute; left: -120px; top: 10px; width: 660px; height: 480px; pointer-events: none; background-image: var(--tile); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 100%); mask-image: radial-gradient(closest-side, #000 10%, transparent 100%); }
#inside::before { display: none; }
.layers { height: 500px; }
.pick p { max-width: 54ch; }
.inside { margin-top: clamp(12px, 2vw, 24px); border: 1px solid var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; scroll-margin-top: 84px; box-shadow: 0 30px 60px -44px rgba(14,15,19,0.4); }
.inside__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); background: var(--paper-2); }
.inside__tabs button { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 15px 12px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: var(--t-md); font-weight: 500; color: var(--text-4); cursor: pointer; transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease); }
.inside__tabs button + button { border-left: 1px solid var(--line); }
.inside__tabs button span { font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); }
.inside__tabs button:hover { color: var(--ink); }
.inside__tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; background: #fff; border-bottom-color: var(--violet); }
.inside__tabs button[aria-selected="true"] span { color: var(--violet); }
.inside__panel { padding: clamp(20px, 3vw, 36px); }
.inside__panel[hidden] { display: none; }
.inside__panel > * { animation: fadeup 460ms var(--ease) both; }

.inside__book { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 52px); align-items: start; }
.inside .reader { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; max-width: none; margin: 0; }
.inside .reader__book { grid-column: 1 / -1; filter: drop-shadow(0 22px 26px rgba(14,15,19,0.2)); }
.inside .reader__nav { width: 40px; height: 40px; font-size: 18px; grid-row: 2; }
.inside .reader__nav.prev { grid-column: 1; } .inside .reader__nav.next { grid-column: 3; }
.inside .reader__thumbs { grid-column: 2; grid-row: 2; margin: 0; gap: 6px; }
.inside .reader__thumbs button { padding: 6px 12px; }
.inside .reader__hint { grid-column: 1 / -1; margin: 0; }
.contents { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.contents li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.contents li span { font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); }
.contents li b { font-weight: 500; color: var(--ink); line-height: 1.35; }
.contents li i { font-style: normal; font-family: var(--mono); font-size: var(--t-micro); color: var(--violet); }
.contents li.contents__part { display: block; border-bottom: 0; padding: 14px 0 2px; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--violet); }
.contents li.contents__ends { grid-template-columns: auto minmax(0, 1fr); }
.contents li.contents__ends span { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--text-4); }
.contents li.contents__ends b { color: var(--text-2); }
.contents li:first-child { padding-top: 0; } .contents li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .inside__book { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .inside .reader__thumbs { grid-column: 1 / -1; grid-row: 3; } .inside__tabs button span { display: none; } }

.inside__lab { background: var(--ink-deep); color: var(--on-dark); }
.inside__lab code { background: rgba(255,255,255,0.08); color: var(--on-dark); }
.inside__lab .labfacts { margin-top: clamp(20px, 3vw, 30px); }
.inside__lab .labfacts b { font-size: var(--t-md); }

.inside__lede { font-size: var(--t-lg); color: var(--text-2); max-width: 70ch; margin-bottom: 20px; }
.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.findings > div { padding: 20px 26px 20px 0; border-bottom: 1px solid var(--line); }
.findings > div:nth-child(even) { padding-left: 26px; padding-right: 0; border-left: 1px solid var(--line); }
.findings b { display: block; font-size: var(--t-lg); font-weight: 600; letter-spacing: var(--tr-head); line-height: 1.25; margin-bottom: 6px; }
.findings p { font-size: var(--t-sm); color: var(--text-3); margin: 0; }
.inside__note { font-size: var(--t-sm); color: var(--text-3); margin: 20px 0 0; max-width: 92ch; }
@media (max-width: 720px) { .findings { grid-template-columns: 1fr; } .findings > div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* what you get, and the offer beside it */
.ship { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
.ship .h2 { margin-bottom: 22px; }
.ship__list li { padding: 13px 0; }
.offer { position: relative; overflow: hidden; border-radius: 16px; background: var(--ink-deep); color: var(--on-dark); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; justify-items: start; }
.offer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -240px; background: radial-gradient(circle, rgba(139,92,246,0.5), rgba(139,92,246,0) 65%); pointer-events: none; }
.offer::after { content: ""; position: absolute; inset: 0 0 0 40%; pointer-events: none; background-image: var(--tile-light); background-size: 30px 30px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 62%); mask-image: linear-gradient(200deg, #000, transparent 62%); }
.offer > * { position: relative; z-index: 1; }
.offer__cover { width: 84px; aspect-ratio: 900 / 1273; border-radius: 2px 5px 5px 2px; background: #0A0B0D center / cover no-repeat; box-shadow: 0 18px 28px -14px #000, inset 4px 0 6px -4px rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.1); transform: rotate(-4deg); margin-bottom: 4px; }
.offer__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: var(--tr-head); line-height: 1.1; color: #fff; margin: 0; }
.offer__title em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.offer__price { display: flex; align-items: flex-end; gap: 14px; margin: 2px 0 0; }
.offer__price b { font-size: clamp(3rem, 2.4rem + 2.4vw, 4.25rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.9; color: #fff; }
.offer__price span { font-size: var(--t-sm); color: var(--on-dark-2); line-height: 1.35; padding-bottom: 4px; }
.offer__price s { color: var(--on-dark); text-decoration-color: var(--violet-soft); }
.offer__text { color: var(--on-dark); font-size: var(--t-md); margin: 0; max-width: 40ch; }
.offer .btn { width: 100%; justify-content: center; margin-top: 4px; }
.offer__note, .offer__terms { font-size: var(--t-xs); color: var(--on-dark-2); margin: 0; }
.offer__terms { border-top: 1px solid var(--line-dark-2); padding-top: 14px; width: 100%; }
.offer__terms a { color: var(--on-dark); border-bottom: 1px solid var(--line-dark-2); }
@media (max-width: 860px) { .ship { grid-template-columns: 1fr; } }


/* ==========================================================================
   landing v6
   ========================================================================== */

/* the three layers move slowly and settle, like sheets being lifted */
.layers .layer { transition: transform 1900ms cubic-bezier(0.33, 0, 0.15, 1), opacity 1300ms ease, box-shadow 1300ms ease; }
.pick { transition: border-color 900ms ease; }
.pick b, .pick .n { transition: color 900ms ease; }
.pick p { transition: max-height 1300ms cubic-bezier(0.33, 0, 0.15, 1), opacity 1000ms ease; }
.pick[aria-pressed="true"] p { transition-delay: 0ms, 250ms; }

/* published articles, with the covers they were published under */
.article-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.article-card { display: block; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; color: inherit; transition: transform 380ms var(--ease), border-color 260ms var(--ease), box-shadow 380ms var(--ease); }
.article-card:hover { transform: translateY(-4px); border-color: rgba(109,63,224,0.45); box-shadow: 0 20px 30px -22px rgba(14,15,19,0.5); color: inherit; }
.article-card img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-bottom: 1px solid var(--line); transition: transform 700ms var(--ease); }
.article-card:hover img { transform: scale(1.035); }
.article-card span { display: block; padding: 11px 13px 12px; position: relative; background: #fff; }
.article-card b { display: block; font-size: var(--t-sm); font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
.article-card i { display: block; margin-top: 4px; font-style: normal; font-size: var(--t-xs); color: var(--violet); }
@media (max-width: 860px) { .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .article-cards { grid-template-columns: 1fr; } }
.footer__copy { justify-content: flex-start; }


/* ==========================================================================
   landing v7 · the three layers come right after the hero
   ========================================================================== */
#playbook::before { display: none; }
#format { border-top: 1px solid var(--line); }
#format .layers-grid { align-items: center; }
.inside { margin-top: 0; }
.pick .go { margin-left: 4px; }


/* ==========================================================================
   landing v8 · the idea, as one compact card
   ========================================================================== */
.idea { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4.5vw, 64px); align-items: center; }
.idea .h2 { margin-bottom: 14px; }
.idea .lede { font-size: var(--t-md); max-width: 46ch; }
.order { list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 30px; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line-2); counter-reset: o; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.order li { counter-increment: o; display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.order li::before { content: counter(o); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.375rem; color: var(--violet); line-height: 1; }
.idea__tools { font-size: var(--t-sm); color: var(--text-3); margin: 12px 0 0; max-width: 46ch; }
.idea__tools b { color: var(--ink); font-weight: 600; }

.shapecard { border: 1px solid var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px -44px rgba(14,15,19,0.4); }
.shapecard__tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.sc-tab { display: grid; justify-items: center; gap: 5px; padding: 12px 2px 10px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; color: var(--text-4); font-size: 12px; font-weight: 500; transition: color 300ms var(--ease), background 300ms var(--ease), border-color 300ms var(--ease); }
.sc-tab + .sc-tab { border-left: 1px solid var(--line); }
.sc-tab svg { width: 20px; height: 20px; }
.sc-tab:hover { color: var(--ink); }
.sc-tab[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; border-bottom-color: var(--violet); }
.sc-tab[aria-selected="true"] svg { color: var(--violet); }
.shapecard__body { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(18px, 2.4vw, 30px); padding: 22px 24px 22px; align-items: start; }
#shape-viz svg { display: block; width: 100%; height: auto; }
.sv-tile { fill: #fff; stroke: rgba(14,15,19,0.13); stroke-width: 0.7; transition: fill 700ms ease, stroke 700ms ease; }
.sv-tile.on { fill: var(--violet); stroke: var(--violet); }
.sv-tile.miss { fill: rgba(245,181,68,0.16); stroke: var(--amber); stroke-width: 1; stroke-dasharray: 2.4 2.2; }
.sv-halo { fill: rgba(109,63,224,0.10); stroke: rgba(109,63,224,0.35); stroke-width: 0.7; transform-box: fill-box; transform-origin: center; animation: sv-pop 700ms var(--ease) both; }
.sv-box { fill: rgba(109,63,224,0.06); stroke: var(--violet); stroke-width: 0.9; stroke-dasharray: 3 2.4; animation: sv-fade 700ms ease both; }
.sv-line { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: sv-draw 1100ms ease 150ms forwards; }
@keyframes sv-pop { from { opacity: 0; transform: scale(0.5); } }
@keyframes sv-fade { from { opacity: 0; } }
@keyframes sv-draw { to { stroke-dashoffset: 0; } }
.is-static .sv-line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .sv-line { stroke-dashoffset: 0; animation: none; } }
.shapecard__q { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.3; color: var(--ink); margin: 14px 0 0; min-height: 5.2em; }
.shapecard__name { font-size: var(--t-sm); color: var(--text-3); margin: 0 0 10px; }
.shapecard__name b { color: var(--violet); font-weight: 600; }
.shapecard__right { min-height: 244px; }
.shapecard__right dl { margin: 0; border-top: 1px solid var(--line); }
.shapecard__right dl > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.shapecard__right dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.shapecard__right dt { font-size: 0.75rem; font-weight: 600; color: var(--text-4); margin-bottom: 2px; }
.shapecard__right dd { margin: 0; font-size: var(--t-sm); line-height: 1.45; color: var(--text-2); }
@media (max-width: 900px) { .idea { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .shapecard__body { grid-template-columns: 1fr; padding: 18px; } .sc-tab span { display: none; } .sc-tab { padding: 12px 2px; } .shapecard__q, .shapecard__right { min-height: 0; } }

/* the card keeps one height while it cycles through the shapes */
.shapecard__body { min-height: 338px; }
@media (max-width: 560px) { .shapecard__body { min-height: 0; } }


/* ==========================================================================
   landing v9 · the time argument, and a footer that closes the page
   ========================================================================== */
.time__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.time__head .h2 { margin: 0; font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.875rem); line-height: 1.1; }
.time__head .lede { font-size: var(--t-md); }
.time { list-style: none; padding: 0; margin: clamp(24px, 3.5vw, 40px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-3); }
.time li { padding: 20px 24px 0 0; }
.time li + li { padding-left: 24px; border-left: 1px solid var(--line-2); }
.time b { display: block; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; color: var(--ink); }
.time li:nth-child(odd) b { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); color: var(--violet); }
.time span { display: block; font-size: var(--t-sm); color: var(--text-3); line-height: 1.5; }
@media (max-width: 900px) { .time__head { grid-template-columns: 1fr; } .time { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .time li:nth-child(3) { padding-left: 0; border-left: 0; } .time li:nth-child(n+3) { border-top: 1px solid var(--line-2); margin-top: 12px; } }
@media (max-width: 480px) { .time { grid-template-columns: 1fr; } .time li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); margin-top: 12px; } }

.footer--dark { position: relative; overflow: hidden; background: var(--ink-deep); color: var(--on-dark); border-top: 0; padding: clamp(44px, 5.5vw, 72px) 0 26px; }
.footer--dark::before { content: ""; position: absolute; right: 0; top: 0; width: 55%; height: 300px; pointer-events: none; background-image: var(--tile-light); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent 100%); mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent 100%); }
.footer--dark::after { content: ""; position: absolute; width: 620px; height: 620px; right: -200px; top: -380px; background: radial-gradient(circle, rgba(139,92,246,0.34), rgba(139,92,246,0) 65%); pointer-events: none; }
.footer--dark > .wrap { position: relative; z-index: 1; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__name span { color: var(--on-dark-2); }
.brand--light .brand__sep { background: rgba(255,255,255,0.28); }
.brand--light .brand__line { color: #fff; }
.footer__top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 22px 32px; padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line-dark-2); }
.footer__line { margin: 18px 0 0; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: var(--tr-display); line-height: 1.08; color: #fff; }
.footer__line em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 0.8fr)) minmax(0, 1.25fr); gap: 28px clamp(20px, 3.5vw, 48px); padding: clamp(26px, 3.5vw, 40px) 0; }
.footer__grid b { display: block; font-size: var(--t-sm); font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer__grid a { display: block; padding: 4px 0; font-size: var(--t-sm); color: var(--on-dark-2); transition: color 200ms var(--ease); overflow-wrap: anywhere; }
.footer__grid a:hover { color: #fff; }
.footer__grid p { font-size: var(--t-xs); color: var(--on-dark-5); margin: 8px 0 0; max-width: 34ch; line-height: 1.55; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: var(--t-xs); color: var(--on-dark-5); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .footer__grid { grid-template-columns: 1fr; } }


/* ==========================================================================
   landing v11 · the tile grid, in two more places
   ========================================================================== */
#time, #idea { overflow: hidden; }
#time > .wrap, #idea > .wrap { position: relative; }
#time::before, #idea::before { content: ""; position: absolute; pointer-events: none; background-image: var(--tile); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, transparent 100%); mask-image: radial-gradient(closest-side, #000 8%, transparent 100%); }
#time::before { width: 720px; height: 460px; right: -170px; top: -150px; }
#idea::before { width: 640px; height: 480px; left: -210px; bottom: -190px; }
@media (max-width: 900px) { #time::before, #idea::before { display: none; } }


/* ==========================================================================
   landing v12 · phones and tablets
   ========================================================================== */

/* a finger on the archive moves the light sideways and still scrolls the page */
.torch svg { touch-action: pan-y; }
/* long words and addresses never push a column wider than the screen */
.lede, .phero__sub, .phero__promise, .footer__grid a, .offer__terms, .faq summary { overflow-wrap: anywhere; }
img { height: auto; }

@media (max-width: 900px) {
  .stage--book { padding-right: 18%; }
  .inside__tabs button { padding: 13px 6px; font-size: var(--t-sm); white-space: nowrap; }
  .shapecard__tabs .sc-tab { min-height: 48px; }
  .authorband { gap: 22px; }
}

@media (max-width: 700px) {
  /* the terminal scrolls sideways instead of cutting its lines */
  .inside .terminal pre, .runner__screen .terminal pre { overflow-x: auto; font-size: 10.5px; -webkit-overflow-scrolling: touch; }
  .inside .terminal__bar em { display: none; }
  .inside .terminal__bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .runner__proves { grid-template-columns: 1fr; gap: 2px; }
  .inside__lab .labfacts div { padding: 16px 0 0; }
  .inside__lab .labfacts div + div { border-top: 1px solid var(--line-dark); margin-top: 16px; }
  .inside__lede { font-size: var(--t-md); }
  .findings b { font-size: var(--t-md); }
}

@media (max-width: 560px) {
  /* the edition line stacks, without the divider */
  .edition { display: block; }
  .edition__with { display: block; padding-left: 0; border-left: 0; margin-top: 4px; }
  /* both hero buttons take the full width */
  .phero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .phero__cta .btn { justify-content: center; }
  .manifest { max-width: none; }
  /* the buy bar spans the screen and its title shortens before the button does */
  .buybar { left: 10px; right: 10px; bottom: 10px; max-width: none; transform: translateY(170%); justify-content: space-between; gap: 10px; padding: 8px 8px 8px 10px; }
  .buybar.is-on { transform: none; }
  .buybar__text { flex: 1 1 auto; min-width: 0; padding-right: 0; }
  .buybar__text b { overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { flex: none; }
  /* the article covers stay two to a row */
  .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .article-card span { padding: 9px 10px 10px; }
  .article-card b { font-size: var(--t-xs); }
  .inside__panel { padding: 18px 16px; }
  .inside .reader { gap: 10px; }
  .offer { padding: 22px 20px; }
  .footer__top .btn { width: 100%; justify-content: center; }
  .footer__bottom { flex-direction: column; }
  .section { padding: 40px 0; }
  .layers { height: 430px; }
}

@media (max-width: 380px) {
  /* the smallest phones: the wordmark makes room for the menu button */
  .nav__inner { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .brand { gap: 7px; }
  .brand img { height: 18px; }
  .brand__name { font-size: 0.8125rem; }
  .brand__line { font-size: 1rem; }
  .buybar__cover { display: none; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .phero h1 { font-size: 2.125rem; }
  .stage--book { --bw: 190px; min-height: 380px; }
  .offer__price b { font-size: 2.75rem; }
}


/* the payment provider's verification badge, under the button in the offer */
.offer__badge { display: block; width: 100%; max-width: 320px; line-height: 0; border-radius: 9px; transition: opacity 200ms var(--ease); }
.offer__badge:hover { opacity: 0.85; }
.offer__badge img { display: block; width: 100%; }


/* the launch price and the date it ends */
.offer__when { margin: -4px 0 0; font-size: var(--t-sm); color: var(--on-dark); line-height: 1.45; }

/* ---- the checkout, embedded under the offer ---- */
.checkout { margin-top: clamp(20px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--paper); overflow: hidden; scroll-margin-top: 84px; box-shadow: 0 30px 60px -40px rgba(14,15,19,0.45); }
.checkout__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px clamp(18px, 3vw, 32px) 16px; border-bottom: 1px solid var(--line); }
.checkout__head p { margin: 0; }
.checkout__head p + p { margin-top: 6px; font-size: var(--t-sm); color: var(--text-3); max-width: 64ch; line-height: 1.55; }
.checkout__close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text-3); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.checkout__close:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
.checkout__frame { min-height: 580px; display: grid; }
.checkout__frame iframe { width: 100%; min-height: 580px; border: 0; display: block; }
.checkout.is-loading .checkout__frame { background: linear-gradient(90deg, var(--paper-2) 0%, var(--paper-3) 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: checkout-wait 1.6s linear infinite; }
@keyframes checkout-wait { to { background-position: -200% 0; } }
.checkout__alt { margin: 0; padding: 14px clamp(18px, 3vw, 32px); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-3); }
.checkout__alt a { color: var(--violet); border-bottom: 1px solid rgba(109,63,224,0.3); }
@media (prefers-reduced-motion: reduce) { .checkout.is-loading .checkout__frame { animation: none; } }

/* ---- the newsletter form (Kit), in the site's own clothes ---- */
.subscribe__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.subscribe__grid > * { min-width: 0; }
.subscribe .h2 { margin-bottom: 12px; }
.subscribe__text { color: var(--text-3); font-size: var(--t-md); line-height: 1.6; max-width: 46ch; margin: 0; }
.subscribe__form { background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; padding: clamp(18px, 2.6vw, 26px); box-shadow: 0 30px 60px -44px rgba(14,15,19,0.5); }
.subscribe__row { display: flex; gap: 10px; }
.subscribe__input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--t-md); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--ink); }
.subscribe__input:focus { outline: 2px solid rgba(109,63,224,0.35); border-color: var(--violet); }
.subscribe__input::placeholder { color: var(--text-5); }
.subscribe__btn { flex: none; position: relative; font: inherit; border: 0; }
.subscribe__btn .formkit-spinner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; opacity: 0; }
.subscribe__btn .formkit-spinner div { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: subscribe-wait 1.2s infinite ease-in-out both; }
.subscribe__btn .formkit-spinner div:nth-child(2) { animation-delay: .15s; } .subscribe__btn .formkit-spinner div:nth-child(3) { animation-delay: .3s; }
.subscribe__btn[data-active] .formkit-spinner { opacity: 1; } .subscribe__btn[data-active] > span { opacity: 0; }
@keyframes subscribe-wait { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.subscribe__lines { border: 0; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.subscribe__legend { grid-column: 1 / -1; padding: 0; margin: 0 0 4px; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); }
.subscribe__line { display: flex; align-items: flex-start; gap: 9px; font-size: var(--t-sm); color: var(--text-2); line-height: 1.35; cursor: pointer; }
.subscribe__line input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--violet); cursor: pointer; }
.subscribe__line small { display: block; font-size: var(--t-micro); color: var(--text-5); }
@media (max-width: 520px) { .subscribe__lines { grid-template-columns: minmax(0, 1fr); } }
.subscribe__note { margin: 12px 0 0; font-family: var(--mono); font-size: var(--t-micro); color: var(--text-5); letter-spacing: 0.03em; }
.subscribe__errors { list-style: none; margin: 0 0 10px; padding: 0; color: #B3261E; font-size: var(--t-sm); }
.subscribe__errors:empty { display: none; }
.subscribe .formkit-alert-success { list-style: none; margin: 0; padding: 14px 16px; border-radius: 9px; background: var(--violet-wash-2); color: var(--violet-3); font-size: var(--t-md); line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .subscribe__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .subscribe__row { flex-direction: column; } .subscribe__btn { width: 100%; justify-content: center; } }
