/* The Last Relay — website. Palette and type follow the second-edition book. */

@font-face { font-family: "Cormorant"; src: url("../assets/fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../assets/fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson"; src: url("../assets/fonts/crimson.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Crimson"; src: url("../assets/fonts/crimson-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson"; src: url("../assets/fonts/crimson-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #ECE9DF;
  --paper-2: #E2DDD0;
  --letter: #F5F1E6;
  --ink: #182229;
  --ink-2: #10171C;
  --ink-3: #22303A;
  --milk: #EEEAE0;
  --muted: #6F7D83;
  --muted-dark: #A7B0B2;
  --accent: #8C7A5B;
  --brass: #C9B48C;
  --rule: #B9B2A2;
  --rule-dark: rgba(238, 234, 224, .14);
  --hard: #6B3A2E;
  --cool: #DCE1DE;

  --band-fail: #6B3A2E;
  --band-cost: #B08A4E;
  --band-success: #5F7A72;
  --band-adv: #2F4C5C;

  --display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --body: "Crimson", "Crimson Text", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 1px 2px rgba(16, 23, 28, .06), 0 12px 32px -12px rgba(16, 23, 28, .22);
  --shadow-lift: 0 2px 6px rgba(16, 23, 28, .10), 0 28px 60px -24px rgba(16, 23, 28, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-2); color: var(--ink); font: 400 clamp(17px, 1.05vw + 12px, 19.5px)/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--milk); color: var(--ink); font: 600 14px var(--ui); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 14px; font: 600 12px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--brass { color: var(--brass); }
.eyebrow--ink { color: var(--ink-3); }
.display { font-family: var(--display); font-weight: 500; font-size: clamp(42px, 5.4vw, 76px); line-height: .98; letter-spacing: -.012em; }
.display--md { font-size: clamp(38px, 4vw, 58px); line-height: 1.02; }
.display--sm { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.02; }
.lede { font-size: clamp(21px, 1.6vw, 25px); line-height: 1.42; color: var(--milk); }
.lede--ink { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { --b: 1px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: var(--b) solid transparent; font: 600 15px/1 var(--ui); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn--ivory { color: var(--ink); background: linear-gradient(180deg, #FBF9F3 0%, #E9E4D7 100%); border-color: rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .2), 0 14px 34px -10px rgba(0, 0, 0, .55); }
.btn--ivory:hover { box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .2), 0 18px 40px -10px rgba(0, 0, 0, .6); }
.btn--glass { color: var(--milk); background: linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .06)); border-color: rgba(255, 255, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px -12px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.btn--glass:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .10)); }
.btn--ink { color: var(--milk); background: linear-gradient(180deg, #2A3843 0%, #141C22 100%); border-color: rgba(16, 23, 28, .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(16, 23, 28, .3), 0 14px 30px -14px rgba(16, 23, 28, .7); }
.btn--line { color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35)); border-color: rgba(24, 34, 41, .18); box-shadow: inset 0 1px 0 #fff, var(--shadow-soft); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); transition: background-color .35s, box-shadow .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s; }
.nav__inner { display: flex; align-items: center; gap: 28px; width: min(1200px, 100% - 2 * var(--gutter)); height: 60px; margin-inline: auto; }
.nav.is-solid { background: rgba(16, 23, 28, .72); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.nav__publisher { display: flex; align-items: center; flex: none; opacity: .92; transition: opacity .2s; }
.nav__publisher:hover { opacity: 1; }
.nav__publisher img { width: 88px; height: auto; }
.nav__sep { width: 1px; height: 22px; margin: 0 -14px; background: rgba(238, 234, 224, .22); flex: none; }
.nav__brand { font: 500 24px/1 var(--display); color: var(--milk); text-decoration: none; letter-spacing: .005em; white-space: nowrap; }
.nav__brand span { font-style: italic; color: var(--brass); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { white-space: nowrap; font: 500 14px/1 var(--ui); color: rgba(238, 234, 224, .78); text-decoration: none; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--milk); }
.nav__menu-cta { display: none; }
.nav__toggle { display: none; position: relative; width: 40px; height: 40px; margin-left: 4px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); cursor: pointer; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: var(--milk); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, min(100svh, 940px)); display: flex; flex-direction: column; justify-content: flex-end; padding: 108px 0 36px; color: var(--milk); background: var(--ink-2); overflow: hidden; isolation: isolate; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; z-index: -2; transform: scale(1.04); animation: heroIn 2.4s var(--ease) both; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 18, 22, .94) 0%, rgba(12, 18, 22, .78) 34%, rgba(12, 18, 22, .22) 64%, rgba(12, 18, 22, .05) 100%), linear-gradient(180deg, rgba(12, 18, 22, .55) 0%, transparent 22%, transparent 62%, var(--ink-2) 100%); }
@keyframes heroIn { from { transform: scale(1.1); opacity: .2; } to { transform: scale(1.04); opacity: 1; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 48px; flex: 1; }
.hero__title { font: 500 clamp(64px, 9.4vw, 140px)/.86 var(--display); letter-spacing: -.02em; margin-bottom: 18px; }
.hero__title small { display: block; font-size: .36em; font-style: italic; letter-spacing: 0; color: var(--brass); margin: 0 0 .1em .06em; }
.hero__kicker { font: italic 400 clamp(21px, 1.8vw, 26px)/1.3 var(--body); color: rgba(238, 234, 224, .86); margin-bottom: 26px; }
.hero__hook { font-size: clamp(18px, 1.3vw, 21px); line-height: 1.5; color: rgba(238, 234, 224, .92); max-width: 30em; padding-left: 18px; border-left: 2px solid rgba(201, 180, 140, .6); margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 16px; font: 500 13px/1.4 var(--ui); color: rgba(238, 234, 224, .62); letter-spacing: .01em; }
.hero__book { margin: 0; display: flex; justify-content: center; perspective: 1600px; }
.book3d { position: relative; width: min(360px, 100%); border-radius: 3px 8px 8px 3px; transform: rotateY(-16deg) rotateX(3deg); transform-style: preserve-3d; box-shadow: 1px 1px 0 rgba(255, 255, 255, .06), 30px 40px 70px -20px rgba(0, 0, 0, .8), 8px 10px 20px rgba(0, 0, 0, .35); transition: transform .9s var(--ease); animation: bookIn 1.6s .2s var(--ease) both; }
.book3d img { width: 100%; border-radius: inherit; }
.book3d::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .12) 45%, rgba(0, 0, 0, .15)); }
.book3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, rgba(255, 255, 255, .14) 0%, transparent 28%, transparent 70%, rgba(255, 255, 255, .06) 100%); pointer-events: none; }
.hero__book:hover .book3d { transform: rotateY(-6deg) rotateX(1deg) translateY(-6px); }
@keyframes bookIn { from { opacity: 0; transform: rotateY(-30deg) rotateX(6deg) translateY(30px); } }
.book3d--flat { transform: rotateY(-10deg); animation: none; width: 100%; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.facts div { padding: 18px 22px; display: flex; align-items: baseline; gap: 12px; }
.facts div + div { border-left: 1px solid rgba(255, 255, 255, .10); }
.facts dt { font: 500 34px/1 var(--display); color: var(--milk); white-space: nowrap; }
.facts dd { margin: 0; font: 500 13px/1.3 var(--ui); color: rgba(238, 234, 224, .7); }

/* ---------- Section shells ---------- */
.section { padding: clamp(80px, 9vw, 132px) 0; }
.paper { background: var(--paper); color: var(--ink); }
.tint { background: linear-gradient(180deg, var(--paper-2), #E6E2D6); color: var(--ink); }
.dark { background: var(--ink); color: var(--milk); }
.section-head { margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.section-head__aside { font-size: 18.5px; color: var(--muted); margin: 0; max-width: 34em; }
.dark .section-head__aside { color: var(--muted-dark); }

/* ---------- Premise ---------- */
.premise { padding-bottom: clamp(80px, 9vw, 128px); }
.premise__art { position: relative; margin: 0; }
.premise__art img { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; object-position: 50% 60%; }
.premise__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink-2) 0%, transparent 18%, transparent 60%, var(--ink) 100%); }
.premise__art figcaption { position: absolute; z-index: 1; right: var(--gutter); bottom: 56px; font: 500 12.5px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(238, 234, 224, .7); }
.premise__art figcaption span { color: var(--brass); margin-right: 10px; }
.premise__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; margin-top: -40px; position: relative; }
.premise__body p:not(.lede) { color: rgba(238, 234, 224, .8); }
.premise__body .lede { margin-bottom: 1.1em; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { position: relative; padding: 28px 26px 30px; border-radius: var(--radius); background: linear-gradient(180deg, var(--letter), #EFEADD); border: 1px solid rgba(24, 34, 41, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--shadow-soft); }
.pillar__num { display: inline-block; font: 600 12px/1 var(--ui); letter-spacing: .1em; color: var(--accent); margin-bottom: 26px; }
.pillar h3 { font: 500 27px/1.08 var(--display); margin-bottom: 12px; }
.pillar p { font-size: 17.5px; color: #3D4A51; }

/* ---------- Roll ---------- */
.roll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.roll__copy .display { margin-bottom: 22px; }
.roll__copy > p:not(.eyebrow):not(.lede) { color: #3D4A51; }
.five { list-style: none; counter-reset: five; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; }
.five li { counter-increment: five; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(24, 34, 41, .08); font: 500 14px/1.2 var(--ui); }
.five li::before { content: counter(five); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--milk); font-size: 11.5px; }
.five b { font-weight: 600; }
.bands { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.bands th, .bands td { padding: 11px 16px; background: rgba(255, 255, 255, .5); transition: background-color .3s, color .3s; }
.bands th { width: 110px; text-align: left; font: 600 14px/1.2 var(--ui); border-radius: 12px 0 0 12px; position: relative; padding-left: 26px; }
.bands th::before { content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--c); }
.bands td { border-radius: 0 12px 12px 0; font-size: 17.5px; }
.bands [data-band="fail"] { --c: var(--band-fail); }
.bands [data-band="cost"] { --c: var(--band-cost); }
.bands [data-band="success"] { --c: var(--band-success); }
.bands [data-band="adv"] { --c: var(--band-adv); }
.bands tr.is-hit th, .bands tr.is-hit td { background: var(--ink); color: var(--milk); }

.roller { position: sticky; top: 88px; padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .52)); border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, var(--shadow-lift); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
.roller__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.roller__head .eyebrow { margin: 0; }
.roller__mod { min-width: 54px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--milk); font: 600 15px/1 var(--ui); text-align: center; font-variant-numeric: tabular-nums; }
.roller__controls { display: grid; gap: 2px; border-radius: 16px; overflow: hidden; background: rgba(24, 34, 41, .06); }
.switch, .stepper { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: rgba(255, 255, 255, .72); cursor: pointer; }
.stepper { cursor: default; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #CFCBC0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); transition: background-color .25s; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 3px 8px rgba(0, 0, 0, .12); transition: transform .3s var(--ease); }
.switch input:checked + .switch__track { background: var(--band-success); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch__label { display: grid; gap: 1px; flex: 1; min-width: 0; }
.switch__label b { font: 600 14.5px/1.25 var(--ui); }
.switch__label small { font: 400 12.5px/1.3 var(--ui); color: var(--muted); }
.switch__val { font: 600 14px/1 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper__ctl { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(24, 34, 41, .07); }
.stepper__ctl button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); font: 500 18px/1 var(--ui); cursor: pointer; }
.stepper__ctl button:disabled { opacity: .35; cursor: default; }
.stepper__ctl output { min-width: 34px; text-align: center; font: 600 15px/1 var(--ui); font-variant-numeric: tabular-nums; }
.roller__desperate { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(107, 58, 46, .1); color: var(--hard); font: 500 13.5px/1.35 var(--ui); }
.odds { margin: 18px 0 20px; }
.odds__bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(24, 34, 41, .08); gap: 2px; }
.odds__bar span { flex: 0 0 auto; width: 0; transition: width .5s var(--ease); }
.odds [data-band="fail"] { --c: var(--band-fail); }
.odds [data-band="cost"] { --c: var(--band-cost); }
.odds [data-band="success"] { --c: var(--band-success); }
.odds [data-band="adv"] { --c: var(--band-adv); }
.odds__bar span { background: var(--c); }
.odds__legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; font: 500 12px/1.3 var(--ui); color: var(--muted); }
.odds__legend li { display: flex; flex-direction: column; gap: 2px; }
.odds__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-bottom: 2px; }
.odds__legend b { font: 600 15px/1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.roller__result { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "die out" "btn btn"; gap: 16px 18px; align-items: center; padding-top: 18px; border-top: 1px solid rgba(24, 34, 41, .1); }
.roller__result .btn { grid-area: btn; width: 100%; }
.roller__out { grid-area: out; min-height: 64px; }
.roller__total { font: 500 26px/1.1 var(--display); margin: 0 0 4px; }
.roller__text { font-size: 16.5px; color: #3D4A51; margin: 0; }
.die { grid-area: die; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 72px; height: 72px; padding: 11px; border-radius: 18px; background: linear-gradient(145deg, #FFFDF8, #E5DFD1); border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(0, 0, 0, .06), 0 10px 22px -8px rgba(16, 23, 28, .45); }
.die span { width: 11px; height: 11px; margin: auto; border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .18s, transform .18s; }
.die span.on { opacity: 1; transform: scale(1); }
.die.is-rolling { animation: tumble .6s var(--ease); }
@keyframes tumble { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-24deg) scale(.9) translateY(-6px); } 60% { transform: rotate(18deg) scale(1.05); } 100% { transform: rotate(0) scale(1); } }
.roller.is-fail .roller__total { color: var(--band-fail); }
.roller.is-cost .roller__total { color: #8A6630; }
.roller.is-success .roller__total { color: #46605A; }
.roller.is-adv .roller__total { color: var(--band-adv); }

.trail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid rgba(24, 34, 41, .12); }
.daysteps { list-style: none; counter-reset: d; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0; }
.daysteps li { counter-increment: d; display: grid; gap: 4px; padding: 16px 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(24, 34, 41, .06); }
.daysteps li::before { content: "0" counter(d); font: 600 11px/1 var(--ui); letter-spacing: .08em; color: var(--accent); }
.daysteps b { font: 500 22px/1.1 var(--display); }
.daysteps span { font: 400 13px/1.35 var(--ui); color: var(--muted); }
.dials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dial { display: grid; gap: 6px; padding: 16px 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(24, 34, 41, .06); }
.dial__pips { display: flex; gap: 4px; margin-bottom: 6px; }
.dial__pips i { flex: 1; height: 6px; border-radius: 3px; background: rgba(24, 34, 41, .12); }
.dial__pips i.on { background: var(--ink); }
.dial--wolf .dial__pips i.on { background: var(--hard); }
.dial b { font: 500 22px/1.1 var(--display); }
.dial span { font: 400 13px/1.35 var(--ui); color: var(--muted); }

/* ---------- Interludes ---------- */
.interlude, .wire, .closing { position: relative; isolation: isolate; overflow: hidden; color: var(--milk); background: var(--ink-2); }
.interlude { min-height: clamp(460px, 62vw, 760px); display: flex; align-items: flex-end; padding: 0 0 clamp(48px, 6vw, 88px); }
.interlude > img, .wire > img, .closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.interlude__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 0% 100%, rgba(10, 15, 19, .82) 0%, rgba(10, 15, 19, .45) 45%, transparent 75%), linear-gradient(180deg, var(--ink) 0%, rgba(16, 23, 28, 0) 22%, rgba(16, 23, 28, 0) 50%, rgba(12, 18, 22, .7) 100%); }
.interlude--right .interlude__shade { background: linear-gradient(180deg, var(--paper) 0%, rgba(236, 233, 223, 0) 14%), radial-gradient(90% 70% at 100% 100%, rgba(10, 15, 19, .8) 0%, rgba(10, 15, 19, .4) 45%, transparent 75%), linear-gradient(180deg, transparent 55%, rgba(12, 18, 22, .75) 100%); }
.interlude__copy { max-width: 1200px; }
.interlude__copy .display { margin-bottom: 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, .4); }
.interlude__copy p:not(.eyebrow) { max-width: 30em; font-size: 19.5px; color: rgba(238, 234, 224, .86); }
.interlude--right .interlude__copy { text-align: right; }

/* ---------- Crew ---------- */
.crew { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.worker__open { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; border: 0; background: none; cursor: pointer; }
.worker__open img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); transition: transform .5s var(--ease), box-shadow .5s var(--ease), filter .5s; filter: saturate(.92); margin-bottom: 14px; }
.worker__open:hover img { transform: translateY(-4px); box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .9); filter: saturate(1.05); }
.worker__role { font: 600 11px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.worker__name { font: 500 24px/1.05 var(--display); color: var(--milk); margin-bottom: 8px; }
.worker__belief { font: italic 400 15.5px/1.35 var(--body); color: var(--muted-dark); }
.worker__open:hover .worker__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(201, 180, 140, .6); }
.crew__note { margin-top: 36px; font: 500 14px/1.4 var(--ui); color: var(--muted-dark); }

/* ---------- Route ---------- */
.route-map { margin: 0 0 clamp(28px, 4vw, 48px); }
.route-map img { width: 100%; }
.route-map figcaption { margin-top: 6px; font: italic 400 14px/1.4 var(--body); color: var(--muted); text-align: right; }
.stops { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stops li { display: grid; gap: 3px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(24, 34, 41, .07); }
.stops b { font: 500 23px/1.1 var(--display); }
.stops li > span:last-child { font-size: 16px; line-height: 1.4; color: #4A575E; }
.stops__when { font: 600 11px/1.2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.stops--shared { grid-template-columns: repeat(4, 1fr); }
.stops--end { grid-template-columns: repeat(3, 1fr); }
.stops--shared li { background: var(--letter); box-shadow: var(--shadow-soft); border-color: transparent; }
.fork { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.fork__route { padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #E5E0D3, #DDD8CA); border: 1px solid rgba(24, 34, 41, .06); }
.fork__route--cut { background: linear-gradient(180deg, #DCE1DE, #D2D8D5); }
.fork__route header { margin-bottom: 16px; }
.fork__route h3 { font: 500 32px/1.05 var(--display); margin-bottom: 12px; }
.fork__route .eyebrow { margin-bottom: 8px; }
.fork__stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.fork__stats span { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .6); font: 600 12.5px/1 var(--ui); }
.fork__route .stops li { background: rgba(255, 255, 255, .45); }

/* ---------- Wolves ---------- */
.wolves__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.wolves__art { position: relative; min-height: 600px; }
.wolves__art img { position: absolute; border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }
.wolves__a { width: 66%; left: 0; top: 0; }
.wolves__b { width: 54%; right: 0; bottom: 0; outline: 6px solid var(--ink); }
.wolves__copy .display { margin-bottom: 20px; }
.wolves__copy .lede { margin-bottom: 28px; }
.ladder { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ladder li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid var(--rule-dark); }
.ladder__range { display: grid; place-items: center; height: 44px; border-radius: 12px; font: 600 15px/1 var(--ui); background: rgba(201, 180, 140, .14); color: var(--brass); }
.ladder li:nth-child(3) .ladder__range { background: rgba(160, 80, 60, .22); color: #E0A28E; }
.ladder b { display: block; font: 500 24px/1.1 var(--display); margin-bottom: 4px; }
.ladder p { font-size: 16.5px; color: rgba(238, 234, 224, .76); }
.wolves__measures { font-size: 17px; color: var(--muted-dark); }

/* ---------- Wire ---------- */
.wire { min-height: clamp(560px, 66vw, 820px); display: flex; align-items: center; padding: 96px 0; }
.wire > img { object-position: 70% 50%; }
.wire__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 15, 19, .94) 0%, rgba(10, 15, 19, .82) 34%, rgba(10, 15, 19, .2) 62%, rgba(10, 15, 19, 0) 100%), linear-gradient(180deg, var(--ink) 0%, transparent 14%, transparent 86%, var(--ink-2) 100%); }
.wire__copy { display: grid; justify-items: start; padding-right: min(46%, 560px); }
.wire__copy .display { margin-bottom: 18px; }
.wire__copy .lede { margin-bottom: 18px; }
.wire__copy > p:not(.eyebrow):not(.lede) { color: rgba(238, 234, 224, .8); max-width: 33em; }
.wire__facts { list-style: none; display: flex; gap: 10px; padding: 0; margin: 26px 0 0; }
.wire__facts li { display: grid; gap: 6px; min-width: 132px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.wire__facts b { font: 500 34px/1 var(--display); }
.wire__facts span { font: 500 12.5px/1.3 var(--ui); color: rgba(238, 234, 224, .7); }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--letter), #EFEADD); border: 1px solid rgba(24, 34, 41, .07); box-shadow: inset 0 1px 0 #fff, var(--shadow-soft); }
.mode__len { font: 600 12px/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.mode h3 { font: 500 34px/1.02 var(--display); margin-bottom: 12px; }
.mode p { color: #3D4A51; }
.mode__for { margin-top: auto; padding-top: 18px; font: 500 13.5px/1.4 var(--ui); color: var(--muted) !important; }
.mode--main { background: linear-gradient(180deg, #24323C, var(--ink)); color: var(--milk); border-color: rgba(0, 0, 0, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow-lift); }
.mode--main p { color: rgba(238, 234, 224, .8); }
.mode--main .mode__len { color: var(--brass); }
.mode--main .mode__for { color: var(--muted-dark) !important; }
.mode--hard { border-top: 3px solid var(--hard); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spread { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #d8d3c6; cursor: zoom-in; box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.spread img { width: 100%; aspect-ratio: 900 / 582; object-fit: cover; }
.spread span { position: absolute; left: 10px; bottom: 10px; padding: 6px 11px; border-radius: 999px; font: 600 12px/1 var(--ui); color: var(--milk); background: rgba(16, 23, 28, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.spread:hover, .spread:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.spread:hover span, .spread:focus-visible span { opacity: 1; transform: none; }
.spread::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; margin-left: -9px; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .12) 50%, transparent); pointer-events: none; }

/* ---------- Launch ---------- */
.fullbook { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: 16px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 0% 0%, #2A3943 0%, var(--ink) 55%, var(--ink-2) 100%); color: var(--milk); box-shadow: var(--shadow-lift); }
.fullbook__cover { perspective: 1200px; }
.fullbook .display { margin-bottom: 16px; }
.fullbook__body > p:not(.eyebrow) { color: rgba(238, 234, 224, .8); max-width: 40em; }
.includes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 24px 0 0; }
.includes li { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); }
.includes b { font: 500 26px/1.05 var(--display); color: var(--milk); }
.includes span { font-size: 15.5px; line-height: 1.4; color: rgba(238, 234, 224, .72); }
.fullbook__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.fullbook__cta p { margin: 0; font: 500 13px/1.4 var(--ui); color: var(--muted-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.faq .section-head { position: sticky; top: 100px; }
.faq__list { display: grid; gap: 8px; }
.faq details { border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(24, 34, 41, .06); transition: background-color .3s; }
.faq details[open] { background: rgba(255, 255, 255, .85); box-shadow: var(--shadow-soft); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 500 22px/1.2 var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(24, 34, 41, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%23182229' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; margin: 0; color: #3D4A51; font-size: 17.5px; }

/* ---------- Closing ---------- */
.closing { min-height: clamp(520px, 64vw, 800px); display: flex; align-items: flex-start; padding: clamp(80px, 9vw, 128px) 0; color: var(--ink); }
.closing > img { object-position: 50% 70%; }
.closing__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #E6E2D6 0%, rgba(236, 233, 223, .78) 24%, rgba(236, 233, 223, 0) 58%), linear-gradient(0deg, var(--ink-2) 0%, transparent 18%); }
.closing__copy .display { margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-2); color: var(--muted-dark); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font: 400 14px/1.5 var(--ui); }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 20px 48px; }
.footer__publisher { display: inline-block; margin-bottom: 14px; }
.footer__publisher img { width: 140px; height: auto; }
.footer__line { max-width: 34em; }
.footer__line a { color: var(--milk); text-decoration-color: rgba(238, 234, 224, .35); text-underline-offset: 3px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer nav a { color: var(--muted-dark); text-decoration: none; }
.footer nav a:hover { color: var(--milk); }
.footer__legal { grid-column: 1 / -1; padding-top: 20px; margin: 0; border-top: 1px solid var(--rule-dark); font-size: 12.5px; color: #7E898C; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(8, 12, 15, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox { width: min(1500px, 100vw - 32px); max-height: calc(100vh - 32px); background: transparent; color: var(--milk); overflow: visible; }
.lightbox__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lightbox__bar h2 { font: 500 26px/1 var(--display); margin-right: auto; }
.lightbox__count { font: 500 13px/1 var(--ui); color: var(--muted-dark); margin-right: 8px; font-variant-numeric: tabular-nums; }
.lightbox__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)); color: var(--milk); font: 400 24px/1 var(--ui); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: var(--paper); }
.sheet { width: min(860px, 100vw - 32px); max-height: calc(100vh - 32px); border-radius: var(--radius-lg); background: var(--ink); color: var(--milk); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); overflow: auto; }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.sheet__grid { display: grid; grid-template-columns: 300px 1fr; }
.sheet__grid > img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.sheet__body { padding: 34px 34px 30px; }
.sheet__body .display { margin-bottom: 10px; }
.sheet__body .eyebrow { color: var(--brass); }
.sheet__belief { font: italic 400 20px/1.4 var(--body); color: var(--brass); margin-bottom: 16px; }
.sheet__body > div > p { color: rgba(238, 234, 224, .82); font-size: 17px; }
.sheet dl { display: grid; gap: 12px; margin: 18px 0 0; }
.sheet dt { font: 600 11px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.sheet dd { margin: 2px 0 0; font-size: 17px; line-height: 1.4; }
.sheet__secret { margin-top: 22px !important; padding-top: 16px; border-top: 1px dashed rgba(238, 234, 224, .2); font: italic 400 15.5px/1.4 var(--body); color: var(--muted-dark); }
dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .crew { grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stops--shared { grid-template-columns: repeat(2, 1fr); }
  .wire__copy { padding-right: 36%; }
}
/* The menu collapses earlier than the layout: the publisher mark and five links need ~1080px. */
@media (max-width: 1080px) {
  .nav__links { position: absolute; top: calc(60px + env(safe-area-inset-top)); left: 12px; right: 12px; flex-direction: column; gap: 0; margin: 0; padding: 8px; border-radius: 18px; background: rgba(16, 23, 28, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links a { padding: 14px 14px; font-size: 16px; border-radius: 12px; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(16, 23, 28, .9); }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero { padding-top: 92px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__book { justify-content: flex-start; }
  .book3d { width: min(220px, 52vw); }
  .hero__art { object-position: 64% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(12, 18, 22, .5) 0%, rgba(12, 18, 22, .78) 40%, rgba(12, 18, 22, .9) 70%, var(--ink-2) 100%); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .10); }
  .section-head--split, .premise__grid, .roll, .trail, .wolves__grid, .faq { grid-template-columns: 1fr; gap: 28px; }
  .premise__grid { margin-top: 0; }
  .roller { position: static; }
  .fork { grid-template-columns: 1fr; }
  .stops--end { grid-template-columns: 1fr; }
  .wolves__art { min-height: 0; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; }
  .wire { align-items: flex-end; }
  .wire > img { object-position: 64% 50%; }
  .wire__shade { background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 15, 19, .2) 20%, rgba(10, 15, 19, .5) 45%, rgba(10, 15, 19, .95) 72%, var(--ink-2) 100%); }
  .wire__copy { padding-right: 0; padding-top: 32vh; }
  .modes { grid-template-columns: 1fr; }
  .fullbook { grid-template-columns: 1fr; }
  .fullbook__cover { width: 180px; }
  .sheet__grid { grid-template-columns: 1fr; }
  .sheet__grid > img { height: 360px; object-position: 50% 20%; }
}
@media (max-width: 640px) {
  .pillars, .daysteps { grid-template-columns: 1fr 1fr; }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stops--shared { grid-template-columns: 1fr; }
  .dials__grid { grid-template-columns: 1fr; }
  .includes { grid-template-columns: 1fr; }
  .nav__sep { display: none; }
  .nav__inner { gap: 14px; }
  .nav__brand { font-size: 21px; }
  .wire__facts { flex-wrap: wrap; }
  .wire__facts li { min-width: 0; flex: 1 1 30%; }
  .hero__ctas .btn { width: 100%; }
  .hero__book { display: none; }
  .br-wide { display: none; }
  .nav__cta { display: none; }
  .nav__menu-cta { display: block; color: var(--brass) !important; }
  .nav__toggle { margin-left: auto; }
  .facts div { flex-direction: column; gap: 6px; padding: 14px 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .interlude--right .interlude__copy { text-align: left; }
  .pillar { padding: 22px 18px; }
  .pillar h3 { font-size: 23px; }
  .odds__legend { font-size: 11px; }
}
@media (max-width: 420px) {
  .pillars, .daysteps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
