/* ==========================================================================
   THE REBUILD — prototype styles
   Display: Inter Tight (heavy grotesk, tight tracking — after the reference)
   Reading: Newsreader (editorial serif with optical sizes)
   Labels:  Geist Mono
   ========================================================================== */

:root {
  /* Core palette */
  --espresso: #241c19;
  --espresso-2: #2d2420;
  --espresso-3: #3a2f2a;
  --ivory: #f1eae0;
  --ivory-2: #e7ddcf;
  --paper: #f5f0e8;
  --oxblood: #762d32;
  --oxblood-deep: #5e2328;
  --oxblood-lift: #b8595e;   /* oxblood lifted for small accents on dark grounds */
  --charcoal: #141414;
  --charcoal-2: #1c1a19;
  --taupe: #a99b8e;
  --taupe-dark: #6f645b;     /* taupe deepened for text on ivory */
  --ink: #1f1916;

  --line-dark: rgba(241, 234, 224, 0.12);
  --line-light: rgba(36, 28, 25, 0.14);

  --f-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: var(--f-display); /* the typewriter label face is retired; labels use the product sans */

  --gutter: clamp(16px, 4.5vw, 64px);
  --measure: 34rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --track-tight: -0.045em;
  --track-label: 0.14em;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease);
}
body[data-theme="kit"],
body[data-theme="shift"] { background: var(--charcoal); }
body[data-theme="manual"] { background: var(--paper); color: var(--ink); color-scheme: light; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--oxblood-lift); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--oxblood); color: var(--ivory); }

/* Film grain — very faint, adds paper/print tooth */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
body[data-theme="manual"] .grain { opacity: 0.09; mix-blend-mode: multiply; }

/* ---------- Shared type primitives ---------- */
.label {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: var(--track-tight);
  line-height: 0.92;
  text-transform: uppercase;
  font-feature-settings: "ss01", "cv11";
}
.serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

.prototype-tag {
  position: fixed; right: 12px; bottom: 12px; z-index: 90;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 8px; border: 1px solid currentColor; opacity: 0.35;
  pointer-events: none;
}
body:not([data-view="home"]) .prototype-tag { display: none; }

/* ---------- Reveal motion ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv-line { display: block; overflow: hidden; }
.rv-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.in .rv-line > span, .rv-line.in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* View transitions between screens */
::view-transition-old(root) { animation: vt-out 0.35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   EMERGENCY KIT — navigation
   ========================================================================== */
.kit { min-height: 100svh; display: flex; flex-direction: column; }
.kit-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter); height: 56px; border-bottom: 1px solid var(--line-dark);
}
.kit-top a { display: inline-flex; align-items: center; gap: 10px; color: var(--taupe); transition: color 0.3s; padding: 10px 0; }
.kit-top a:hover { color: var(--ivory); }
.kit-top a svg { width: 16px; height: 16px; }
.kit-top .label:last-child { color: var(--taupe); }

.kit-head { padding: clamp(36px, 7vh, 96px) var(--gutter) clamp(28px, 5vh, 56px); display: grid; gap: 22px; }
.kit-head h1 { margin: 0; font-size: clamp(3.3rem, 13vw, 10.5rem); line-height: 0.86; }
.kit-head h1 .q { color: var(--oxblood-lift); }
.kit-head .ins { display: grid; gap: 2px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--taupe); }
.kit-head .ins span:first-child { color: var(--ivory); }
@media (min-width: 900px) {
  .kit-head { grid-template-columns: 1fr auto; align-items: end; }
  .kit-head .ins { text-align: right; padding-bottom: 0.6em; }
}

.em-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.em-list li { border-bottom: 1px solid var(--line-dark); }
.em-link {
  position: relative; display: grid; grid-template-columns: 40px 1fr 24px; align-items: start; gap: 4px 14px;
  padding: 20px var(--gutter); min-height: 84px; isolation: isolate; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.em-link::before { content: ""; position: absolute; inset: 0; background: var(--oxblood); z-index: -1; opacity: 0; transition: opacity 0.45s var(--ease); }
.em-link:active::before { opacity: 1; transition-duration: 0.1s; }
.em-link .n { font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: var(--oxblood-lift); padding-top: 0.32em; transition: color 0.3s; font-variant-numeric: tabular-nums; }
.em-link .t { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.018em; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.08; text-wrap: balance; }
.em-link .c { grid-column: 2; font-style: italic; color: var(--taupe); font-size: 1rem; line-height: 1.35; transition: color 0.3s; }
.em-link .go { grid-row: 1 / span 2; grid-column: 3; align-self: center; width: 20px; height: 20px; color: var(--taupe); transition: transform 0.5s var(--ease), color 0.3s; }
.em-link:active .c, .em-link:active .n, .em-link:active .go { color: var(--ivory); }

@media (min-width: 760px) {
  .em-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
  .em-list li { border-bottom: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); }
  .em-list li:nth-child(3n) { border-right: 0; }
  .em-link {
    grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; align-content: stretch;
    min-height: clamp(220px, 27vh, 300px); padding: 24px 28px 28px; gap: 0 12px;
  }
  .em-link .n { grid-column: 1; grid-row: 1; padding: 0; font-size: 12px; }
  .em-link .go { grid-column: 2; grid-row: 1; align-self: start; }
  .em-link .t { grid-column: 1 / -1; grid-row: 2; align-self: end; font-size: clamp(1.5rem, 2.3vw, 2.25rem); font-weight: 800; max-width: 13ch; }
  .em-link .c { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; }
  .em-link .bign {
    position: absolute; right: 22px; bottom: -0.16em; z-index: -1;
    font-family: var(--f-display); font-weight: 800; letter-spacing: -0.06em; font-size: 9rem; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(241, 234, 224, 0.06);
    transition: -webkit-text-stroke-color 0.5s var(--ease), transform 0.8s var(--ease);
  }
}
@media (min-width: 760px) and (hover: hover) {
  .em-link:hover::before { opacity: 1; }
  .em-link:hover .n, .em-link:hover .c, .em-link:hover .go { color: var(--ivory); }
  .em-link:hover .go { transform: translate(3px, -3px); }
  .em-link:hover .bign { -webkit-text-stroke-color: rgba(241, 234, 224, 0.28); transform: translateY(-6px); }
}
/* Mobile: the desktop numerals (Inter Tight 800, tight, outlined), sized for the row. */
@media (max-width: 759px) {
  .em-link { grid-template-columns: 62px 1fr 24px; }
  .em-link .n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .em-link .t { grid-column: 2; grid-row: 1; }
  .em-link .bign {
    grid-column: 1; grid-row: 1 / span 2; align-self: center;
    font-family: var(--f-display); font-weight: 800; letter-spacing: -0.06em; font-size: 2.6rem; line-height: 0.9;
    color: transparent; -webkit-text-stroke: 1px rgba(241, 234, 224, 0.5);
    transition: color 0.3s, -webkit-text-stroke-color 0.3s;
  }
  .em-link:active .bign { -webkit-text-stroke-color: var(--ivory); }
}

.kit-foot { padding: 22px var(--gutter) 32px; color: var(--taupe); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
@media (max-width: 759px) { .kit-foot { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 28px; } }

/* ==========================================================================
   EMERGENCY — single page
   ========================================================================== */
.em-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  background: rgba(20, 20, 20, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line-dark);
}
.em-bar .back { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.em-bar .back svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.em-bar .back:hover svg { transform: translateX(-4px); }
.em-bar .label { color: var(--taupe); }
.em-progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--oxblood-lift); width: 0; }

.em { padding-top: 56px; }
.em-head { padding: clamp(40px, 9vh, 110px) var(--gutter) clamp(36px, 6vh, 72px); border-bottom: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.em-head .num { font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--oxblood-lift); letter-spacing: -0.005em; display: flex; gap: 14px; align-items: center; }
.em-head .num::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.em-head h1 { margin: 20px 0 0; font-size: clamp(3rem, 12vw, 9.5rem); line-height: 0.86; max-width: 12ch; }
.em-head h1.long { font-size: clamp(2.3rem, 8vw, 6.8rem); max-width: 16ch; line-height: 0.9; }
.em-head .cue { margin-top: 20px; font-style: italic; color: var(--taupe); font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.em-head .ghost-n {
  position: absolute; right: calc(var(--gutter) * -0.4); top: 50%; transform: translateY(-50%);
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.07em; line-height: 0.8;
  font-size: clamp(14rem, 34vw, 30rem); color: transparent; -webkit-text-stroke: 1px rgba(241, 234, 224, 0.07);
  pointer-events: none; z-index: -1;
}
.em-head { isolation: isolate; }

.em-body { padding: 0 var(--gutter); }
.em-col { max-width: 40rem; margin: 0 auto; }
@media (min-width: 1100px) {
  .em-body { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 44rem) 1fr; gap: 0 56px; }
  .em-col { grid-column: 2; margin: 0; max-width: none; }
  .em-side { grid-column: 1; grid-row: 1; position: sticky; top: 104px; align-self: start; padding-top: 64px; }
}
@media (max-width: 1099px) { .em-side { display: none; } }
.em-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: x; }
.em-side a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 7px 0; color: var(--taupe); font-family: var(--f-display); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; transition: color 0.3s; }
.em-side a span:first-child { font-family: var(--f-mono); font-size: 12px; font-weight: 600; padding-top: 1px; }
.em-side a:hover { color: var(--ivory); }
.em-side a[aria-current="true"] { color: var(--ivory); }
.em-side a[aria-current="true"] span:first-child { color: var(--oxblood-lift); }
.em-side .label { color: var(--taupe); opacity: 0.7; display: block; margin-bottom: 14px; }

.sec { padding: clamp(36px, 6vh, 64px) 0 0; }
.sec-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--ivory); }
.sec-label::before { content: ""; width: 14px; height: 2px; background: var(--oxblood-lift); }
.sec p { margin: 0 0 1em; font-size: clamp(1.18rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--ivory-2); }
.sec p strong { color: var(--ivory); font-weight: 600; }
.sec.head p { font-style: italic; color: var(--taupe); padding-left: 20px; border-left: 1px solid var(--line-dark); }
.sec.verdict p { font-family: var(--f-serif); font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.32; color: var(--ivory); letter-spacing: -0.01em; }

/* FACT / FICTION */
.ff { margin-top: clamp(40px, 7vh, 72px); }
.fact {
  position: relative; background: var(--oxblood); color: var(--ivory);
  padding: 22px 22px 26px; margin: 0 calc(var(--gutter) * -1);
}
@media (min-width: 700px) { .fact { margin: 0; padding: 30px 34px 36px; } }
.fact .label { display: flex; justify-content: space-between; color: rgba(241, 234, 224, 0.75); }
.fact .label b { font-weight: 500; color: var(--ivory); }
.fact .stmt { margin: 26px 0 0; font-size: clamp(3rem, 11vw, 5.4rem); line-height: 0.86; }
.fiction { padding: 26px 0 0; }
.fiction .head { display: flex; justify-content: space-between; align-items: baseline; color: var(--taupe); padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.fiction ul { list-style: none; margin: 0; padding: 0; }
.fiction li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px dashed rgba(169, 155, 142, 0.22);
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; color: var(--taupe);
}
.fiction li .tag { font-style: normal; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: rgba(169, 155, 142, 0.55); }
.fiction li:nth-child(1) { opacity: 1; }
.fiction li:nth-child(2) { opacity: 0.88; }
.fiction li:nth-child(3) { opacity: 0.76; }
.fiction li:nth-child(4) { opacity: 0.64; }
.fiction li:nth-child(5) { opacity: 0.52; }
.fiction li.rv { opacity: 0; }
.fiction li.rv.in:nth-child(1) { opacity: 1; }
.fiction li.rv.in:nth-child(2) { opacity: 0.86; }
.fiction li.rv.in:nth-child(3) { opacity: 0.72; }
.fiction li.rv.in:nth-child(4) { opacity: 0.58; }
.fiction li.rv.in:nth-child(5) { opacity: 0.46; }

.possibles p { color: var(--taupe) !important; }
.possibles p .w { display: inline; transition: color 0.4s; }
.possibles p:last-child { color: var(--ivory) !important; font-weight: 500; }

.center { padding: clamp(56px, 10vh, 110px) 0 clamp(20px, 3vh, 40px); }
.center .big { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: var(--track-tight); line-height: 0.95; font-size: clamp(2.5rem, 7vw, 4.8rem); color: var(--ivory); text-wrap: balance; }
.center .big.caps { text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 0.88; }
.center .big .rv-line + .rv-line { margin-top: 0.08em; }
.center .big .rv-line:last-child span { color: var(--oxblood-lift); }
.center .big .rv-line:only-child span { color: var(--ivory); }
.center.quote .big { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(2rem, 4.6vw, 3.4rem); }

.verdict-open { padding: clamp(48px, 9vh, 100px) 0 0; }
.verdict-open .big { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: var(--track-tight); line-height: 0.9; font-size: clamp(4rem, 15vw, 9rem); text-transform: uppercase; color: var(--ivory); }
.verdict-open .after { margin-top: 18px; font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; color: var(--ivory-2); }

/* Table inside emergency */
.em-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.em-table th { text-align: left; font-weight: 500; color: var(--taupe); padding: 0 0 12px; }
.em-table td { padding: 14px 0; border-top: 1px solid var(--line-dark); vertical-align: top; font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.35; }
.em-table td:first-child { color: var(--ivory); padding-right: 16px; width: 44%; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.015em; }
.em-table td:last-child { font-style: italic; color: var(--taupe); }

/* Replies — screenshot-friendly */
.replies { display: grid; gap: 8px; margin: 14px 0 6px; }
.reply {
  justify-self: start; max-width: 100%;
  padding: 12px 18px; background: var(--ivory); color: var(--ink);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -0.015em; line-height: 1.3;
  border-radius: 18px 18px 18px 4px;
}
.sec.replies-sec .reply { background: var(--oxblood); color: var(--ivory); }

/* Your move */
.moves { margin-top: clamp(56px, 9vh, 96px); padding: 28px 0 8px; border-top: 2px solid var(--ivory); }
.moves .mv-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.moves h2 { margin: 0; font-size: clamp(2.4rem, 7vw, 4.4rem); }
.moves .mv-head .label { color: var(--taupe); }
.moves ol { list-style: none; margin: 0; padding: 0; }
.moves li { border-bottom: 1px solid var(--line-dark); }
.mv {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 44px 1fr 28px; gap: 12px; align-items: start;
  padding: 20px 0; -webkit-tap-highlight-color: transparent;
}
.mv .k { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.35rem; line-height: 1.15; color: var(--oxblood-lift); transition: color 0.3s; }
.mv .x { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--ivory); transition: color 0.4s; font-family: var(--f-serif); }
.mv .x strong { font-weight: 600; }
.mv .tick { width: 24px; height: 24px; margin-top: 3px; border: 1.5px solid rgba(241, 234, 224, 0.35); border-radius: 50%; position: relative; transition: background-color 0.35s var(--ease), border-color 0.35s; }
.mv .tick svg { position: absolute; inset: 4px; width: 13px; height: 13px; stroke: var(--ivory); stroke-width: 2.4; fill: none; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.4s var(--ease) 0.05s; }
.mv[aria-pressed="true"] .tick { background: var(--oxblood); border-color: var(--oxblood); }
.mv[aria-pressed="true"] .tick svg { stroke-dashoffset: 0; }
.mv[aria-pressed="true"] .x { color: var(--taupe); }
.mv[aria-pressed="true"] .k { color: var(--taupe); }
.moves .replies { padding: 0 0 20px 56px; margin-top: -6px; }
.moves.plain ol { counter-reset: none; }

.em-note { margin-top: 32px; padding: 18px 0 0; border-top: 1px solid var(--line-dark); font-size: 1.02rem !important; color: var(--taupe); font-style: italic; }
.bigline { margin: clamp(48px, 8vh, 80px) 0 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1; }
.bigline span { display: block; color: var(--oxblood-lift); }

/* End of emergency */
.em-end { margin-top: clamp(64px, 10vh, 120px); padding: 0 var(--gutter) 48px; }
.em-return {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1400px; margin: 0 auto;
  padding: 26px 24px; background: var(--ivory); color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s;
}
.em-return:hover { background: var(--oxblood); color: var(--ivory); }
.em-return .label { opacity: 0.6; display: block; margin-bottom: 8px; }
.em-return b { display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: var(--track-tight); line-height: 0.92; font-size: clamp(1.9rem, 5vw, 3.6rem); }
.em-return svg { width: 28px; height: 28px; flex: none; transform: rotate(180deg); }
.em-pn { display: grid; grid-template-columns: 1fr 1fr; max-width: 1400px; margin: 0 auto; border-bottom: 1px solid var(--line-dark); }
.em-pn a { padding: 22px 0; display: grid; gap: 6px; transition: color 0.3s; color: var(--taupe); }
.em-pn a:hover { color: var(--ivory); }
.em-pn a + a { text-align: right; border-left: 1px solid var(--line-dark); padding-left: 16px; }
.em-pn a:first-child { padding-right: 16px; }
.em-pn b { font-family: var(--f-display); font-weight: 700; color: var(--ivory); font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: -0.02em; line-height: 1.15; }

/* Calm treatment (09) */
.em.calm .em-head h1 { font-weight: 700; }
.em.calm .sec { padding-top: clamp(48px, 8vh, 88px); }

/* ==========================================================================
   THE SHIFT
   ========================================================================== */
.shift { min-height: 100svh; display: flex; flex-direction: column; }
.shift-stage { flex: 1; display: grid; align-content: center; justify-items: center; gap: clamp(28px, 5vh, 52px); padding: clamp(32px, 6vh, 72px) var(--gutter); }
.shift-title { display: grid; justify-items: center; text-align: center; gap: 0; max-width: 40rem; }
.shift-title h1 { margin: 0; font-size: clamp(4rem, 17vw, 15rem); line-height: 0.82; }
.shift-k { margin: clamp(22px, 4vh, 34px) 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; color: var(--ivory); }
.shift-intro { margin: 8px 0 0; max-width: 30rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.55; color: var(--taupe); }
.video {
  position: relative; margin: 0; width: min(100%, calc((100svh - 400px) * 16 / 9)); min-width: min(100%, 640px);
  aspect-ratio: 16 / 9; justify-self: center;
}
.video > iframe, .video > video, .video > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame {
  overflow: hidden; cursor: pointer; isolation: isolate;
  background:
    radial-gradient(120% 90% at 70% 30%, rgba(118, 45, 50, 0.38), transparent 60%),
    radial-gradient(90% 80% at 15% 90%, rgba(169, 155, 142, 0.14), transparent 60%),
    linear-gradient(160deg, #221a17, #0e0d0c);
}
.frame::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px); z-index: -1; }
.frame .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(72px, 10vw, 112px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(241, 234, 224, 0.5);
  transition: transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s;
}
.frame .play svg { width: 26%; height: 26%; margin-left: 6%; fill: var(--ivory); }
.frame:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--oxblood); border-color: var(--oxblood); }
.frame .fl { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; color: rgba(241, 234, 224, 0.6); }
.frame .tl { position: absolute; left: 18px; top: 16px; color: rgba(241, 234, 224, 0.6); }
.frame .msg { position: absolute; left: 50%; top: calc(50% + clamp(56px, 8vw, 84px)); transform: translateX(-50%); color: var(--ivory-2); opacity: 0; transition: opacity 0.4s; white-space: nowrap; }
.frame.tried .msg { opacity: 1; }

/* ==========================================================================
   v2 — ENTRY · HOME · MANUAL
   Inter Tight carries everything you navigate and every line that must land.
   Spectral carries the long-form reading. No monospace, no decorative italics.
   (The Emergency Kit and The Shift above keep their v1 styling for now.)
   ========================================================================== */
:root {
  --f-read: "Spectral", "Iowan Old Style", Georgia, serif;
  --n0: #0f0c0b;
  --n1: #151110;
  --esp-2b: #2b221e;
  --paper-r: #f3ede4;
  --paper-2r: #e9e0d2;
  --ink-r: #1e1815;
  --ink-2r: #4b4039;
  --mute-r: #7b6d63;
  --rule-r: rgba(30, 24, 21, 0.13);
  --rule-d: rgba(241, 234, 224, 0.11);
  --g2: 22px;
}
@media (min-width: 900px) { :root { --g2: 48px; } }

.ui { font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: 0.005em; line-height: 1.35; }
.prototype-tag { display: none !important; }

body[data-theme="entry"] { background: var(--n0); }
body[data-theme="home"] { background: var(--espresso); }
body[data-theme="manual"] { background: var(--paper-r); color: var(--ink-r); }
body[data-theme="manual"] .grain { opacity: 0.07; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   ENTRY
   ========================================================================== */
.entry {
  position: fixed; inset: 0; z-index: 10; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--n0); color: var(--ivory);
}
/* Light you feel more than see: two soft pools drifting over ~40 seconds. */
.en-light {
  position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 30% at 50% 46%, rgba(118, 45, 50, 0.24), transparent 70%),
    radial-gradient(30% 28% at 32% 70%, rgba(169, 155, 142, 0.07), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-3%, 2%, 0) scale(1); } to { transform: translate3d(3%, -2%, 0) scale(1.08); } }

/* Breathing: a warm pool behind the door, slowly swelling and settling (~9s). */
.entry::before {
  content: ""; position: absolute; left: 50%; top: 46%; z-index: -1; pointer-events: none;
  width: min(120vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.94);
  background: radial-gradient(closest-side, rgba(118, 45, 50, 0.3), rgba(118, 45, 50, 0.08) 55%, transparent 100%);
  opacity: 0.55; animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
/* Ready to open: light at the seam and on the handles comes and goes, out of step with the breath. */
.door::after {
  content: ""; position: absolute; left: 50%; top: 9%; bottom: 0; width: 1px; z-index: 2; pointer-events: none;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(214, 140, 128, 0.7) 45%, rgba(214, 140, 128, 0.35) 75%, transparent);
  opacity: 0; animation: seam 5s ease-in-out 1.2s infinite;
}
@keyframes seam { 0%, 100% { opacity: 0; } 50% { opacity: 0.85; } }
.leaf i { animation: handle 5s ease-in-out 1.2s infinite; }
@keyframes handle { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.entry.opening::before { animation: none; opacity: 0; transition: opacity 0.4s; }
/* Idle pulse, no hover needed: the doors swell very slightly and their edges warm, with a soft glow behind. */
@keyframes door-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.022; } }
.door::before {
  content: ""; position: absolute; inset: -46% -60%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(150, 58, 64, 0.42), rgba(118, 45, 50, 0.12) 60%, transparent);
  opacity: 0.35; animation: door-glow 5s ease-in-out 1.2s infinite;
}
@keyframes door-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
.leaf { animation: leaf-edge 5s ease-in-out 1.2s infinite; }
@keyframes leaf-edge { 0%, 100% { border-color: rgba(241, 234, 224, 0.55); } 50% { border-color: rgba(241, 234, 224, 0.9); } }
.entry.opening .door, .entry.opening .leaf { animation: none; }
.entry.opening .door::before { animation: none; opacity: 0; transition: opacity 0.3s; }
@media (prefers-reduced-motion: reduce) { .entry .door, .entry .door::before, .entry .leaf { animation: none; } }

.entry.opening .door::after { animation: none; opacity: 0; }
.entry.opening .leaf i { animation: none; }
@media (prefers-reduced-motion: reduce) { .entry::before, .door::after, .leaf i { animation: none; } }
.en-top { display: flex; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) 16px 0; animation: rise 0.9s var(--ease) both; }
.wm2 { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; text-transform: uppercase; }
.en-main { display: grid; place-content: center; justify-items: center; padding: 0 24px; text-align: center; }

/* The access mark: an arched double door, split down the seam. */
.door {
  position: relative; width: 112px; height: 164px; margin-bottom: 48px;
  perspective: 600px; -webkit-tap-highlight-color: transparent;
  animation: rise 1s var(--ease) 0.1s both, door-pulse 5s ease-in-out 1.2s infinite;
  transition: transform 0.25s var(--ease);
}
.door:active { transform: scale(0.97); }
.door-in {
  position: absolute; inset: 0; border-radius: 56px 56px 0 0; background: var(--espresso);
  transform-origin: 50% 62%;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.84, 0) 0.36s;
}
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(180deg, #2a201d, #171210);
  border: 1.5px solid rgba(241, 234, 224, 0.6);
  transition: transform 0.55s var(--ease), opacity 0.25s ease 0.42s;
}
.leaf.l { left: 0; border-radius: 56px 0 0 0; border-right-width: 0.75px; transform-origin: 0 50%; }
.leaf.r { right: 0; border-radius: 0 56px 0 0; border-left-width: 0.75px; transform-origin: 100% 50%; }
.leaf::after { content: ""; position: absolute; top: 14px; bottom: 16px; border: 1px solid rgba(241, 234, 224, 0.13); }
.leaf.l::after { left: 11px; right: 0; border-right: 0; border-radius: 42px 0 0 0; }
.leaf.r::after { right: 11px; left: 0; border-left: 0; border-radius: 0 42px 0 0; }
.leaf i { position: absolute; top: 57%; width: 1.5px; height: 22px; background: var(--oxblood-lift); transition: background-color 0.2s, transform 0.3s var(--ease); }
.leaf.l i { right: 8px; }
.leaf.r i { left: 8px; }
@media (hover: hover) {
  .door:hover .leaf.l { transform: rotateY(-9deg); }
  .door:hover .leaf.r { transform: rotateY(9deg); }
}
.en-h {
  margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.045em; line-height: 0.88; font-size: clamp(2.7rem, 12.5vw, 4.8rem);
  animation: rise 1s var(--ease) 0.2s both;
}
.en-cta {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 24px; border: 1px solid rgba(241, 234, 224, 0.32);
  font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -0.005em;
  animation: rise 1s var(--ease) 0.3s both;
  transition: background-color 0.35s var(--ease), color 0.35s, border-color 0.35s;
}
.en-cta svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.en-cta:hover { background: var(--ivory); color: var(--ink-r); border-color: var(--ivory); }
.en-cta:hover svg { transform: translateX(4px); }
.en-foot { margin: 0; text-align: center; padding: 0 16px calc(26px + env(safe-area-inset-bottom)); color: var(--taupe); opacity: 0.6; animation: rise 1s var(--ease) 0.4s both; }

/* Unlock: handles turn, doors swing, you walk through (~1s). */
.entry.opening .leaf i { background: var(--ivory); transform: rotate(90deg); }
.entry.opening .leaf.l { transform: rotateY(-80deg); opacity: 0; }
.entry.opening .leaf.r { transform: rotateY(80deg); opacity: 0; }
.entry.opening .door-in { transform: scale(28); }
.entry.opening .en-h, .entry.opening .en-cta, .entry.opening .en-top, .entry.opening .en-foot { opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; animation: none; }

/* ==========================================================================
   HOME — centred introduction, three equal choices
   ========================================================================== */
body[data-theme="home"] { background: #121010; }
/* Home typography follows the Mastermind reference (start.erevenue.cz/mastermind):
   one grotesk family — Helvetica/Arial — bold with tight tracking for headings, regular for text. */
.home3 { --f-home: "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: var(--f-home); }
.home3 {
  min-height: 100svh; display: flex; flex-direction: column;
  max-width: 1120px; margin: 0 auto; padding: 0 20px; color: var(--ivory);
}
.h3-head { padding: calc(64px + env(safe-area-inset-top)) 0 32px; text-align: center; }
.h3-title { margin: 0; font-family: var(--f-home); font-weight: 700; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.94; font-size: clamp(2.1rem, 9.6vw, 3.4rem); }
.h3-line { margin: 12px 0 0; font-family: var(--f-home); font-weight: 400; font-size: 1rem; line-height: 1.6; color: var(--taupe); }

.h3-opts { display: grid; gap: 22px; }
/* Each card: a dark surface, a fine gradient edge, and a soft diffused glow in its own colour. */
.opt {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 168px;
  padding: 22px 22px 20px; border-radius: 3px; -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--ease);
}
.opt::before {
  content: ""; position: absolute; inset: -6px; z-index: -2; border-radius: 10px;
  background: var(--glow); filter: blur(18px); opacity: 0.42; transition: opacity 0.4s var(--ease);
}
.opt::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--edge) border-box;
}
.opt-manual {
  --surface: #191513;
  --edge: linear-gradient(145deg, rgba(214, 186, 158, 0.6), rgba(120, 92, 74, 0.28) 45%, rgba(169, 155, 142, 0.5));
  --glow: linear-gradient(145deg, rgba(176, 138, 106, 0.55), rgba(96, 72, 56, 0.25) 50%, rgba(169, 155, 142, 0.45));
  --halo: rgba(176, 138, 106, 0.22);
}
.opt-kit {
  --surface: #191313;
  --edge: linear-gradient(145deg, rgba(196, 96, 102, 0.62), rgba(118, 45, 50, 0.3) 45%, rgba(168, 72, 78, 0.55));
  --glow: linear-gradient(145deg, rgba(150, 52, 58, 0.6), rgba(90, 33, 38, 0.3) 50%, rgba(140, 56, 62, 0.5));
  --halo: rgba(150, 52, 58, 0.3);
}
.opt-shift {
  --surface: #171616;
  --edge: linear-gradient(145deg, rgba(241, 234, 224, 0.42), rgba(120, 118, 115, 0.2) 45%, rgba(206, 200, 192, 0.36));
  --glow: linear-gradient(145deg, rgba(200, 194, 186, 0.3), rgba(90, 88, 86, 0.18) 50%, rgba(170, 165, 158, 0.26));
  --halo: rgba(200, 194, 186, 0.14);
}
.opt:active { transform: scale(0.99); }
.opt-head { display: flex; align-items: center; gap: 14px; }
.opt-n {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--f-home); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: #cfc8bf;
  font-variant-numeric: tabular-nums;
  background: #222020; border: 1.5px solid rgba(241, 234, 224, 0.2);
  box-shadow: 0 0 0 4px rgba(241, 234, 224, 0.045), 0 0 26px 2px var(--halo);
}
.opt-t { font-family: var(--f-home); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.15; }
.opt-d { margin: 10px 0 20px; font-family: var(--f-home); font-weight: 400; font-size: 1rem; line-height: 1.6; color: #b9ada0; max-width: 26rem; }
.opt-go {
  margin-top: auto; align-self: flex-end;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(241, 234, 224, 0.22); border-radius: 50%;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s;
}
.opt-go svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
@media (hover: hover) {
  .opt:hover::before { opacity: 0.62; }
  .opt:hover .opt-go { background: var(--ivory); border-color: var(--ivory); color: #121010; }
  .opt:hover .opt-go svg { transform: translateX(2px); }
}

.h3-foot { margin-top: auto; display: flex; justify-content: space-between; font-family: var(--f-home); font-size: 13px; padding: 36px 0 calc(24px + env(safe-area-inset-bottom)); color: var(--taupe); opacity: 0.5; }

@media (min-width: 900px) {
  .home3 { padding: 0 40px; }
  .h3-head { padding: 17vh 0 48px; }
  .h3-line { font-size: 1.15rem; }
  .h3-opts { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .opt { min-height: 250px; padding: 28px 28px 26px; }
  .opt-t { font-size: 1.5rem; }
  .opt-n { width: 50px; height: 50px; font-size: 16px; }
}

body.arrive .h3-head { animation: rise 0.8s var(--ease) both; }
body.arrive .opt { animation: rise 0.8s var(--ease) both; }
body.arrive .opt:nth-child(2) { animation-delay: 0.08s; }
body.arrive .opt:nth-child(3) { animation-delay: 0.16s; }

/* ==========================================================================
   MANUAL — reading chrome
   ========================================================================== */
.rbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 4px 0;
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center;
  background: rgba(243, 237, 228, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule-r); color: var(--ink-r);
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s;
}
body.bar-dark .rbar { background: rgba(15, 12, 11, 0.5); color: var(--ivory); border-color: var(--rule-d); }
.rb-back { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.rb-back svg { width: 18px; height: 18px; flex: none; }
.rb-back .ui { display: none; }
.rb-where { min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); font-size: 14px; letter-spacing: -0.01em; }
.rb-where b { font-weight: 600; }
.rb-name { display: none; opacity: 0.55; }
.rb-right { display: flex; align-items: center; }
.rb-pct { font-family: var(--f-display); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: 0.5; min-width: 3.6ch; text-align: right; }
.rb-toc { height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.rb-toc .ui { display: none; }
.rb-toc i { display: grid; gap: 5px; }
.rb-toc i::before, .rb-toc i::after { content: ""; display: block; width: 18px; height: 1.5px; background: currentColor; }
.rb-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.rb-line i { display: block; height: 100%; width: 0; background: var(--oxblood); transition: width 0.15s linear; }
body.bar-dark .rb-line i { background: var(--oxblood-lift); }
@media (min-width: 900px) {
  .rbar { grid-template-columns: 1fr auto 1fr; padding: 0 20px; height: 56px; }
  .rb-back { width: auto; justify-self: start; padding: 0 4px; }
  .rb-back .ui { display: inline; }
  .rb-name { display: inline; }
  .rb-right { justify-self: end; gap: 18px; }
  .rb-toc { padding: 0 4px; }
  .rb-toc .ui { display: inline; }
}

/* Contents */
.toc2 {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: var(--espresso); color: var(--ivory); overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-in-out);
}
.toc2.open { clip-path: inset(0 0 0 0); }
.toc-top { display: flex; justify-content: space-between; align-items: center; min-height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--g2) 0; border-bottom: 1px solid var(--rule-d); color: var(--taupe); }
.toc-x { min-height: 44px; padding: 0 2px; color: var(--ivory); }
.toc-l { list-style: none; margin: 0; padding: 12px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.toc-l a {
  display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: baseline; gap: 12px;
  padding: 20px var(--g2); border-bottom: 1px solid var(--rule-d);
  transition: background-color 0.35s var(--ease);
}
.toc-l a:hover { background: var(--esp-2b); }
.tn { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--oxblood-lift); font-variant-numeric: tabular-nums; }
.tt { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; font-size: clamp(1.45rem, 4.6vw, 2.6rem); }
.tp { color: var(--taupe); }
.toc-l a[aria-current="true"] { background: var(--oxblood); }
.toc-l a[aria-current="true"] .tn, .toc-l a[aria-current="true"] .tp { color: var(--ivory); }
.toc-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px var(--g2) calc(26px + env(safe-area-inset-bottom)); color: var(--taupe); }
.toc-f a { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory); min-height: 32px; }
.toc-f svg { width: 14px; height: 14px; }

/* ==========================================================================
   MANUAL — reading surface
   ========================================================================== */
.rd { --col: 34rem; }
@media (min-width: 900px) { .rd { --col: 36rem; } }
.col { max-width: var(--col); margin: 0 auto; }

.pg { padding: 64px var(--g2) 36px; }
.pg p, .pg li, .finale p, .finale li, .coda2 p {
  font-family: var(--f-read); font-weight: 400; font-size: 1.19rem; line-height: 1.62; color: var(--ink-r);
}
.pg p { margin: 0 0 1.05em; }
.pg p strong, .finale p strong { font-weight: 600; }
.rd em { font-style: italic; }
@media (min-width: 900px) {
  .pg { padding: 104px var(--g2) 56px; }
  .pg p, .pg li, .finale p, .finale li, .coda2 p { font-size: 1.32rem; }
}

.rd-h {
  margin: 1.9em 0 0.55em; max-width: 22ch; text-wrap: balance;
  font-family: var(--f-display); font-weight: 700;
  letter-spacing: -0.022em; line-height: 1.12; font-size: 1.6rem; color: var(--ink-r);
}
.col > .rd-h:first-child { margin-top: 0; }
@media (min-width: 900px) { .rd-h { font-size: 2.1rem; } }

/* Key sentence — the line he should leave with */
.key { margin: 1.5em 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--oxblood); }
.key p { margin: 0 0 0.25em !important; font-family: var(--f-read) !important; font-weight: 500 !important; font-size: 1.3rem !important; line-height: 1.42 !important; color: var(--ink-r); }
@media (min-width: 900px) { .key p { font-size: 1.46rem !important; } }

/* Structured lists */
.rows { list-style: none; margin: 0 0 1.4em; padding: 0; }
.rows li { position: relative; padding: 0.6em 0 0.6em 1.9em; border-top: 1px solid var(--rule-r); }
.rows li:last-child { border-bottom: 1px solid var(--rule-r); }
.rows li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 1em; height: 2px; background: var(--oxblood); }
.steps { list-style: none; margin: 1.2em 0 1.6em; padding: 0; }
.steps li { display: grid; grid-template-columns: 2.6rem 1fr; padding: 0.9em 0; border-top: 1px solid var(--rule-r); }
.steps li:last-child { border-bottom: 1px solid var(--rule-r); }
.sn { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1; letter-spacing: -0.04em; color: var(--oxblood); }

/* Self-check — an inset paper panel you can tap */
.chk { margin: 1.6em calc(var(--g2) * -1) 1.8em; padding: 6px var(--g2) 18px; background: var(--paper-2r); }
.chk ul { list-style: none; margin: 0; padding: 0; }
.chk li + li { border-top: 1px solid var(--rule-r); }
.chk button { width: 100%; min-height: 56px; text-align: left; display: grid; grid-template-columns: 34px 1fr; align-items: start; padding: 14px 0; -webkit-tap-highlight-color: transparent; }
.chk .box { width: 22px; height: 22px; margin-top: 0.22em; border: 1.5px solid var(--ink-r); position: relative; transition: background-color 0.25s var(--ease), border-color 0.25s; }
.chk .box svg { position: absolute; inset: 2px; width: 15px; height: 15px; stroke: var(--paper-r); stroke-width: 2.4; fill: none; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.35s var(--ease) 0.05s; }
.chk button[aria-pressed="true"] .box { background: var(--oxblood); border-color: var(--oxblood); }
.chk button[aria-pressed="true"] .box svg { stroke-dashoffset: 0; }
.chk .txt { font-family: var(--f-read); font-size: 1.12rem; line-height: 1.45; color: var(--ink-r); }
.chk p.chk-n { margin: 8px 0 0 !important; font-family: var(--f-display) !important; font-size: 13px !important; color: var(--mute-r) !important; }
.chk-n b { color: var(--oxblood); font-weight: 700; }
@media (min-width: 900px) { .chk { margin-left: -40px; margin-right: -40px; padding: 10px 40px 22px; } .chk .txt { font-size: 1.22rem; } }

/* Distinction panels — espresso inset inside the paper */
.panel { margin: 2.2em calc(var(--g2) * -1); padding: 30px var(--g2) 14px; background: var(--espresso); color: var(--ivory); }
.panel p { color: #e3d9cc !important; }
.panel p:first-child strong:only-child, .panel p:first-child > strong:first-child {
  display: block; margin-bottom: 6px; font-family: var(--f-display); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2; font-size: 1.2rem; color: var(--ivory);
}
.panel .rows li { border-color: var(--rule-d); color: var(--ivory); }
.panel .rows li::before { background: var(--oxblood-lift); }
@media (min-width: 900px) {
  .panel { margin: 2.6em -64px; padding: 44px 64px 22px; }
  .panel p:first-child > strong:first-child { font-size: 1.4rem; }
}

/* Safety note — quiet, legible, never decorated */
.note-safe { margin: 2.4em 0 1em; padding: 20px 20px 4px; border: 1px solid var(--ink-r); }
.note-safe p { font-size: 1.02rem !important; line-height: 1.55 !important; }
.note-safe strong:first-child { font-family: var(--f-display); font-weight: 700; }
.note-foot { margin-top: 3em; padding-top: 18px; border-top: 1px solid var(--rule-r); }
.note-foot p { font-size: 1.02rem !important; color: var(--ink-2r) !important; }

/* Exercises */
.write { margin: 1.6em 0 1.4em !important; padding: 26px 0; border-top: 1px solid var(--ink-r); border-bottom: 1px solid var(--ink-r); font-size: clamp(1.3rem, 2.4vw, 1.6rem) !important; line-height: 1.7 !important; }
.write .blank { display: inline-block; min-width: 5.2em; height: 1.05em; border-bottom: 2px solid var(--oxblood); margin: 0 0.15em; }
.prompts { margin: 1.4em 0 1.8em; }
.prompts p { margin: 0 !important; padding: 16px 0 46px; border-bottom: 1px solid var(--rule-r); font-family: var(--f-display) !important; font-size: 1rem !important; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-r); }

/* Five losses */
.losses { list-style: none; margin: 1.8em 0; padding: 0; }
.losses li { display: grid; grid-template-columns: 2.6rem 1fr; padding: 22px 0; border-top: 1px solid var(--rule-r); }
.losses li:last-child { border-bottom: 1px solid var(--rule-r); }
.ln-n { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--oxblood); padding-top: 0.35em; }
.losses h4 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-size: 1.3rem; color: var(--ink-r); }
.losses p { grid-column: 2; margin: 0 !important; color: var(--ink-2r) !important; font-size: 1.08rem !important; }
@media (min-width: 900px) { .losses h4 { font-size: 1.6rem; } }

/* The Math — a diagram, not a sentence */
.eqx { margin: 1.4em 0 2em; padding: 22px 0 6px; border-top: 2px solid var(--ink-r); }
.eqx-row { display: grid; grid-template-columns: 6.4rem 1fr 3.2rem; align-items: center; gap: 12px; padding: 9px 0; }
.eqx-k { font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; color: var(--ink-r); }
.eqx-bar { height: 22px; position: relative; }
.eqx-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink-r); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) 0.15s; }
.eqx.in .eqx-bar i { transform: none; }
.eqx-row.sum .eqx-bar i { background: var(--oxblood); }
.eqx-row.zero .eqx-bar { border: 1.5px dashed var(--mute-r); }
.eqx-row b { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; text-align: right; color: var(--ink-r); }
.eqx-row.sum b { color: var(--oxblood); }
.eqx-row.zero b, .eqx-row.zero .eqx-k { color: var(--mute-r); }
@media (min-width: 900px) { .eqx-row { grid-template-columns: 8rem 1fr 4.4rem; } .eqx-bar { height: 28px; } .eqx-row b { font-size: 2.1rem; } }

/* "Nothing" spread */
.spread { margin: 2em 0; }
.sp-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; color: var(--mute-r); }
.sp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--rule-r); }
.sp-row:last-child { border-bottom: 1px solid var(--rule-r); }
.sp-row span { font-family: var(--f-read); font-size: 1.12rem; color: var(--ink-r); }
.sp-row b { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1rem; line-height: 1.6; color: var(--oxblood); }
@media (min-width: 900px) { .spread { margin: 2.6em -6rem; } .sp-row b { font-size: 1.15rem; } .sp-row span { font-size: 1.3rem; } }

/* Not this / This */
.versus { margin: 2em 0; }
.vrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule-r); }
.vrow:last-child { border-bottom: 1px solid var(--rule-r); }
.vhead { border-top: 0; padding-top: 0; color: var(--mute-r); }
.vrow .no { font-family: var(--f-read); color: var(--mute-r); text-decoration: line-through; text-decoration-color: rgba(118, 45, 50, 0.55); text-decoration-thickness: 1.5px; }
.vrow .yes { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink-r); }

/* Growing weight / air / larger */
.stack { margin: 1.8em 0; }
.stack p { margin: 0 0 0.3em !important; font-family: var(--f-display) !important; letter-spacing: -0.02em; line-height: 1.15 !important; font-size: clamp(1.3rem, 5.2vw, 1.9rem) !important; }
.stack p:last-child { color: var(--oxblood); }
.air p { margin: 0 0 1.4em !important; padding-left: 20px; border-left: 2px solid var(--oxblood); font-size: 1.36rem !important; line-height: 1.42 !important; }
.pg .bigword { margin: 0.5em 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.86; font-size: clamp(3rem, 15vw, 5.4rem); color: var(--oxblood); }

/* Page moods */
.pg.quiet { padding-top: 22vh; padding-bottom: 22vh; }
.pg.quiet .col { max-width: 27rem; }
.pg.quiet p { color: var(--ink-2r); }
.pg.action { background: var(--paper-2r); }
.pg.action .rd-h { color: var(--oxblood); }
.pg.roomy .key { border: 0; padding: 0; margin: 1.4em 0; }
.pg.roomy .key p { font-family: var(--f-display) !important; font-weight: 700 !important; letter-spacing: -0.025em; line-height: 1.12 !important; font-size: clamp(1.7rem, 7vw, 2.6rem) !important; margin-bottom: 0.8em !important; }
.pg.roomy .key p:last-child { color: var(--oxblood); }

/* ==========================================================================
   MANUAL — statements
   ========================================================================== */
.st {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(96px + env(safe-area-inset-top)) var(--g2) 72px; background: var(--n1); color: var(--ivory);
}
.st .t {
  margin: 0; max-width: 15ch; text-wrap: balance;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.96;
  font-size: clamp(2.3rem, 10.2vw, 6rem);
}
.st .t .rv-line + .rv-line { margin-top: 0.1em; }

.st.hero { background: var(--n0); }
.st.hero .t { max-width: none; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.86; font-size: clamp(2.6rem, 12.2vw, 11rem); }
.st.hero .t .rv-line + .rv-line { margin-top: 0.05em; }
.st.hero .dim { color: var(--taupe); }

.st.opener { justify-content: space-between; }
.op-head { display: grid; gap: 10px; }
.op-n { display: block; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.07em; line-height: 0.78; font-size: clamp(4.5rem, 26vw, 11rem); color: var(--oxblood-lift); }
.op-t { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.st.opener.unnumbered .op-t { color: var(--oxblood-lift); }
.st.opener .t { margin-bottom: 40px; }
.st.opener.voice .t { font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; max-width: 17ch; }

.st.climax { min-height: 92svh; }
.st.climax.ox { background: var(--oxblood); }
.st.climax.dark { background: var(--n0); }
.st.list-st .t { max-width: none; font-size: clamp(2rem, 8.8vw, 5.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.st.list-st .t .rv-line + .rv-line { margin-top: 0.34em; }
.st.list-st .t .rv-line:nth-child(even) span { color: var(--taupe); }

/* In-flow statement: big type on the paper, second line in oxblood */
.moment { padding: 9vh var(--g2); }
.moment .t {
  margin: 0 auto; max-width: min(15ch, 100%); text-wrap: balance;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06;
  font-size: clamp(1.9rem, 7.8vw, 3.4rem); color: var(--ink-r);
}
.moment .t::before { content: ""; display: block; width: 32px; height: 2px; background: var(--oxblood); margin-bottom: 24px; }
@media (min-width: 900px) { .moment .t { max-width: 18ch; } .moment { padding: 12vh var(--g2); } }

@media (min-width: 900px) {
  .st { padding: 120px var(--g2) 96px; }
  .st.opener { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0 48px; }
  .op-head { align-self: start; }
  .st.opener .t { margin: 0; font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
  .op-n { font-size: clamp(8rem, 14vw, 13rem); }
  .op-t { font-size: 1.6rem; }
}

/* Chapter end */
.finale { background: var(--n1); color: var(--ivory); padding: 88px var(--g2) 0; }
.finale p, .finale li { color: #e3d9cc; }
.finale .rd-h { color: var(--ivory); }
.finale .chk { background: rgba(241, 234, 224, 0.05); }
.finale .chk li + li { border-color: var(--rule-d); }
.finale .chk .box { border-color: var(--ivory); }
.finale .chk .box svg { stroke: var(--ivory); }
.finale .chk .txt { color: var(--ivory); }
.finale .chk p.chk-n { color: var(--taupe) !important; }
.finale .key { border: 0; padding: 0; margin: 1.6em 0 0; }
.finale .key p { font-family: var(--f-display) !important; color: var(--ivory); font-weight: 700 !important; letter-spacing: -0.03em; line-height: 1.04 !important; font-size: clamp(2rem, 8.6vw, 3.8rem) !important; margin: 0 0 0.1em !important; }
.finale .key p + p { color: var(--oxblood-lift); }
.finale.only-next { padding-top: 0; }
.next {
  display: block; margin: 88px calc(var(--g2) * -1) 0; padding: 34px var(--g2) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-d); position: relative; isolation: isolate; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.finale.only-next .next { margin-top: 0; border-top: 0; }
.next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--oxblood); transform: translateY(101%); transition: transform 0.7s var(--ease); }
.next .ui { color: var(--taupe); }
.nx-t { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 12px; }
.nx-t span { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(1.9rem, 7.6vw, 4rem); max-width: 16ch; }
.nx-t svg { width: clamp(34px, 5vw, 60px); flex: none; margin-bottom: 0.3em; transition: transform 0.5s var(--ease); }
.next:active::before { transform: none; }
@media (hover: hover) { .next:hover::before { transform: none; } .next:hover .ui { color: var(--ivory); } .next:hover .nx-t svg { transform: translateX(10px); } }
@media (min-width: 900px) { .finale { padding-top: 120px; } .next { margin-top: 120px; padding-top: 48px; padding-bottom: 56px; } }

/* The Shift note after the last page */
.coda2 { background: var(--paper-2r); padding: 56px var(--g2) 64px; }
.coda2 p { color: var(--ink-2r); }
.btn2 {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 8px; padding: 0 22px;
  background: var(--ink-r); color: var(--paper-r); font-family: var(--f-display); font-weight: 700; font-size: 15px;
  transition: background-color 0.3s var(--ease);
}
.btn2:hover { background: var(--oxblood); }
.btn2 svg { width: 16px; height: 16px; }
