/* ==========================================================================
   Bundle Cat — $BUN
   Medieval stone & steel, disciplined like a trading terminal.
   ========================================================================== */

:root {
  --ink-950: #0c0f10;
  --stone-900: #14181a;
  --stone-850: #191e20;
  --stone-800: #1f2528;
  --stone-700: #2b3236;
  --stone-600: #3c4448;
  --steel-500: #7b858a;
  --steel-400: #9aa3a8;
  --steel-300: #bcc3c6;
  --steel-200: #d8dddf;
  --steel-100: #eef1f2;
  --moss-800: #1b221c;
  --moss-600: #3a4636;
  --moss-400: #6f7d60;
  --moss-300: #8e9c7c;
  --parchment: #ece5d2;
  --parchment-hi: #f5f0e2;
  --parchment-lo: #ddd3ba;
  --ink: #1d1e1a;
  --ink-2: #44443b;
  --ink-3: #77756a;
  --rule-ink: rgba(29, 30, 26, 0.18);
  --rule-steel: rgba(216, 221, 223, 0.14);
  --bronze: #b08a4a;
  --leather: #5b3a28;
  --rh: #00c805;
  --rh-deep: #1c7a26;

  --serif: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --header-h: 76px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code { font-family: var(--mono); }

html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--steel-200);
  background: var(--stone-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

::selection { background: var(--parchment); color: var(--ink); }

:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }
.story :focus-visible, .compare :focus-visible { outline-color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px;
  background: var(--parchment); color: var(--ink);
  font-weight: 600; border-radius: 3px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

section[id] { scroll-margin-top: var(--header-h); }

.section { position: relative; padding-block: clamp(96px, 12vw, 176px); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font: 600 0.72rem/1.2 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.eyebrow--ink { color: var(--ink-3); }
.eyebrow__sep { color: var(--steel-500); }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-title {
  margin-top: 18px;
  font: 500 clamp(2.6rem, 6vw, 5rem)/0.98 var(--serif);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--parchment);
}
.section-head--ink .section-title { color: var(--ink); }
.section-lede {
  margin-top: 18px; max-width: 46ch;
  font: italic 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.5 var(--serif);
  color: var(--steel-300);
}

.pip {
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rh);
  box-shadow: 0 0 0 3px rgba(0, 200, 5, 0.16);
}

/* ---------- Buttons ---------- */
.btn {
  --mx: 50%; --my: 50%;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 50px;
  padding: 0 1.5em;
  font: 650 0.78rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(160px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.975); transition-duration: 0.1s; }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: 0.72rem; }

.btn--primary {
  color: #15181a;
  background: linear-gradient(180deg, #f7f4ea 0%, #e0dbcc 46%, #ccc6b4 54%, #e8e3d6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 14px 30px -14px rgba(0, 0, 0, 0.7);
}
.btn--primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg);
  transition: left 0.8s var(--ease);
}
.btn--primary:hover::after { left: 130%; }
.btn--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 20px 36px -14px rgba(0, 0, 0, 0.75);
}

.btn--steel-outline {
  color: var(--steel-100);
  background: rgba(12, 15, 16, 0.5);
  border: 1px solid rgba(216, 221, 223, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--steel-outline:hover { border-color: var(--steel-100); background: rgba(40, 46, 50, 0.6); }

.btn--ghost {
  color: var(--steel-200);
  border: 1px solid rgba(216, 221, 223, 0.22);
  background: rgba(12, 15, 16, 0.18);
}
.btn--ghost:hover { color: var(--steel-100); border-color: rgba(216, 221, 223, 0.55); }

.icon-x { width: 15px; height: 15px; fill: currentColor; }
.icon-arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(12, 15, 16, 0.55), rgba(12, 15, 16, 0.12));
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: rgba(17, 21, 22, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--rule-steel);
}
.site-header__inner {
  width: min(1360px, 100% - 2 * var(--gutter));
  height: 100%;
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(216, 221, 223, 0.55), 0 6px 16px -6px rgba(0, 0, 0, 0.8);
}
.brand__name {
  font: 600 1.35rem/1 var(--serif);
  letter-spacing: 0.01em;
  color: var(--parchment);
  white-space: nowrap;
}
.brand__ticker {
  padding: 5px 8px 4px;
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--steel-200);
  border: 1px solid rgba(216, 221, 223, 0.28);
  border-radius: 2px;
}

.site-nav__list { display: flex; align-items: center; gap: 6px; }
.site-nav__link {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 14px;
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel-300);
  transition: color 0.25s;
}
.site-nav__link::after {
  content: "";
  position: absolute; left: 50%; bottom: 4px;
  width: 5px; height: 5px;
  background: var(--rh);
  transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform 0.35s var(--ease);
}
.site-nav__link:hover { color: var(--steel-100); }
.site-nav__link.is-active { color: var(--parchment); }
.site-nav__link.is-active::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.site-nav__list li:nth-last-child(2) { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(216, 221, 223, 0.3);
  border-radius: 3px;
  background: rgba(12, 15, 16, 0.4);
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--steel-100);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; right: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 72px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 55% at 72% 48%, rgba(214, 218, 210, 0.38), transparent 70%),
    linear-gradient(180deg, #6b706b 0%, #4f5550 38%, #353d35 70%, #1d231f 100%);
}

.hero__bg {
  --py: 0px;
  position: absolute; inset: -8% 0; z-index: -4;
  background: url("assets/banner.png") left center / auto max(100%, 62vw) no-repeat;
  filter: saturate(0.78) brightness(0.86) contrast(0.96);
  transform: translate3d(0, var(--py), 0) scale(1.04);
  will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.45) 56%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.45) 56%, transparent 70%);
}

.hero__fog {
  position: absolute; left: -40%; right: -40%;
  pointer-events: none;
  filter: blur(18px);
}
.hero__fog--back {
  z-index: -3;
  bottom: 0; height: 75%;
  background:
    radial-gradient(ellipse 30% 40% at 15% 70%, rgba(222, 226, 219, 0.32), transparent 70%),
    radial-gradient(ellipse 25% 35% at 45% 85%, rgba(222, 226, 219, 0.26), transparent 70%),
    radial-gradient(ellipse 35% 30% at 78% 60%, rgba(222, 226, 219, 0.22), transparent 70%);
  animation: fog-drift 70s ease-in-out infinite alternate;
}
.hero__fog--front {
  z-index: 2;
  bottom: -6%; height: 26%;
  background:
    radial-gradient(ellipse 22% 60% at 25% 80%, rgba(210, 215, 208, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 55% at 65% 90%, rgba(210, 215, 208, 0.16), transparent 70%);
  animation: fog-drift 46s ease-in-out infinite alternate-reverse;
}
@keyframes fog-drift {
  from { transform: translate3d(-7%, 0, 0); }
  to   { transform: translate3d(7%, -2%, 0); }
}

.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 15, 16, 0.82) 0%, rgba(12, 15, 16, 0.55) 34%, rgba(12, 15, 16, 0.12) 58%, transparent 72%),
    linear-gradient(0deg, var(--stone-900) 0%, rgba(20, 24, 26, 0) 22%),
    linear-gradient(180deg, rgba(12, 15, 16, 0.5) 0%, transparent 18%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero__eyebrow { color: var(--steel-300); }

.hero__title { margin-top: 28px; }
.hero__name {
  display: block;
  font: 500 clamp(3.4rem, 7vw, 6.8rem)/0.9 var(--serif);
  letter-spacing: -0.015em;
  color: var(--parchment-hi);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__ticker {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 20px;
  font: 700 clamp(1rem, 1.7vw, 1.3rem)/1 var(--sans);
  letter-spacing: 0.34em;
  color: var(--steel-200);
}
.hero__ticker::before {
  content: "";
  width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel-300));
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__ticker {
    background: linear-gradient(100deg, #8c969b 0%, #f6f8f8 18%, #9aa3a8 36%, #e9edee 52%, #7f898e 70%, #d9dee0 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 7s ease-in-out infinite;
  }
  .hero__ticker::before { -webkit-background-clip: border-box; background-clip: border-box; }
}
@keyframes sheen {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

.hero__tagline {
  margin-top: 36px;
  font: 500 clamp(1.7rem, 3.2vw, 2.6rem)/1.12 var(--serif);
  color: var(--steel-100);
}
.hero__tagline span { display: block; }
.hero__tagline span + span { color: var(--parchment); font-style: italic; }

.hero__quote {
  position: relative;
  margin-top: 22px;
  padding-left: 22px;
  font: italic 400 clamp(1.05rem, 1.4vw, 1.2rem)/1.5 var(--serif);
  color: var(--steel-300);
  border-left: 1px solid rgba(216, 221, 223, 0.35);
}
.hero__quote::before {
  content: "";
  position: absolute; left: -4px; top: 50%;
  width: 7px; height: 7px;
  background: var(--steel-300);
  transform: translateY(-50%) rotate(45deg);
}

.hero .cta-row { margin-top: 38px; }

/* Contract address */
.ca {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin-top: 28px;
  padding: 6px 6px 6px 16px;
  background: rgba(10, 13, 14, 0.58);
  border: 1px solid rgba(216, 221, 223, 0.2);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ca__label {
  font: 600 0.64rem/1.2 var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel-400);
  padding-right: 14px;
  border-right: 1px solid var(--rule-steel);
}
.ca__value {
  min-width: 0;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--parchment);
  overflow-wrap: anywhere;
  user-select: all;
}
.ca__copy {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; min-width: 104px;
  padding: 0 14px;
  justify-content: center;
  font: 650 0.7rem/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel-100);
  background: linear-gradient(180deg, #3b4347, #2a3034);
  border: 1px solid rgba(216, 221, 223, 0.3);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
}
.ca__copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ca__copy:hover { border-color: rgba(216, 221, 223, 0.6); }
.ca__copy:active { transform: scale(0.96); }
.ca__copy.is-copied {
  color: #d9f5da;
  border-color: rgba(0, 200, 5, 0.55);
  background: linear-gradient(180deg, #24402a, #1b2f20);
}
.ca__note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--steel-400);
}

/* Hero figure */
.hero__figure-wrap {
  --py: 0px;
  justify-self: center;
  transform: translate3d(0, var(--py), 0);
  will-change: transform;
}
.hero__figure { position: relative; display: flex; justify-content: center; }
.hero__plinth {
  position: absolute; left: 50%; bottom: -2%;
  width: 115%; aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 34% 5% at 50% 95%, rgba(8, 10, 10, 0.55), transparent 70%),
    radial-gradient(circle at 50% 55%, rgba(236, 232, 220, 0.2), transparent 55%);
  pointer-events: none;
}
.hero__float {
  position: relative;
  animation: float 8s ease-in-out infinite;
}
.hero__img {
  width: min(100%, calc(min(78vh, 780px) * 0.869));
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(-0.4deg); }
}

.glint {
  position: absolute;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.95) 50%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.95) 50%, transparent 55%),
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 8%, transparent 40%);
  opacity: 0;
  transform: scale(0) rotate(0deg);
  animation: glint 7s ease-in-out infinite;
}
.glint--tip { left: 44.8%; top: 1.4%; }
.glint--pauldron { left: 71%; top: 43%; width: 16px; height: 16px; margin: -8px 0 0 -8px; animation-delay: 3.4s; }
@keyframes glint {
  0%, 78%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  84% { opacity: 1; transform: scale(1) rotate(45deg); }
  90% { opacity: 0; transform: scale(0.2) rotate(90deg); }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  width: 30px; height: 60px;
  transform: translateX(-50%);
  display: flex; justify-content: center;
}
.hero__scroll-line {
  position: relative; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(216, 221, 223, 0.5));
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: 0; top: -30%;
  width: 1px; height: 30%;
  background: var(--parchment);
  animation: scroll-cue 2.4s var(--ease) infinite;
}
@keyframes scroll-cue { to { top: 100%; } }

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--parchment-hi), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(170, 158, 124, 0.25), transparent 70%),
    linear-gradient(180deg, var(--parchment) 0%, #e4dcc6 100%);
}
.story::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 7px;
  border-top: 1px solid rgba(29, 30, 26, 0.35);
  border-bottom: 1px solid rgba(29, 30, 26, 0.15);
  background: rgba(29, 30, 26, 0.06);
}

.story__headline { margin-top: 34px; }
.story__then {
  max-width: 17ch;
  font: 500 clamp(2.3rem, 5.6vw, 5rem)/1.02 var(--serif);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.strike {
  background: linear-gradient(90deg, var(--ink), var(--ink)) no-repeat 0 56% / 0% 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1.3s var(--ease) 0.5s, color 1.3s 0.5s;
}
.story__then.is-visible .strike,
html:not(.js) .strike { background-size: 100% 3px; color: #99958a; }

.story__turn {
  position: relative;
  width: 14px; height: clamp(56px, 8vw, 96px);
  margin: 26px 0 26px clamp(8px, 1vw, 16px);
}
.engrave-line {
  position: absolute; left: 50%; top: 0; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--ink));
  transform-origin: top;
}
.engrave-gem {
  position: absolute; left: 50%; bottom: 0;
  width: 11px; height: 11px;
  border: 1.5px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.js .story__turn .engrave-line { transform: scaleY(0); transition: transform 1s var(--ease) 0.4s; }
.js .story__turn.is-visible .engrave-line { transform: scaleY(1); }

.story__now {
  font: 600 clamp(2.7rem, 7.2vw, 6.4rem)/0.96 var(--serif);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.story__now em {
  font-style: italic;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--rh-deep);
}

.story__body {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.25fr;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 44px;
  border-top: 1px solid var(--rule-ink);
}
.story__col { font: 400 1.22rem/1.55 var(--serif); color: var(--ink-2); }

.dropcap::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font: 600 4.3em/0.8 var(--serif);
  color: var(--ink);
}

.story__pivot {
  position: relative;
  padding-top: 22px;
  font: italic 500 clamp(1.6rem, 2.5vw, 2.15rem)/1.2 var(--serif);
  color: var(--ink);
}
.story__pivot::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 64px; height: 1px;
  background: var(--ink);
}
.story__pivot::after {
  content: "";
  position: absolute; left: 60px; top: -3px;
  width: 7px; height: 7px;
  background: var(--ink);
  transform: rotate(45deg);
}

.orders { counter-reset: order; }
.orders li {
  counter-increment: order;
  position: relative;
  padding: 12px 0 12px 3.2rem;
  border-bottom: 1px dashed var(--rule-ink);
}
.orders li:first-child { padding-top: 0; }
.orders li::before {
  content: counter(order, upper-roman) ".";
  position: absolute; left: 0; top: 16px;
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.orders li:first-child::before { top: 4px; }
.orders li:last-child { color: var(--ink); border-bottom: 0; }

/* Flow */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: 8px;
}
.flow::before,
.flow::after {
  content: "";
  position: absolute; top: 36px; left: 12.5%; right: 12.5%;
  height: 1px;
}
.flow::before {
  background: repeating-linear-gradient(90deg, rgba(29, 30, 26, 0.45) 0 10px, transparent 10px 18px);
}
.flow::after {
  height: 2px; top: 35.5px;
  background: linear-gradient(90deg, rgba(29, 30, 26, 0.1), var(--ink) 50%, var(--rh-deep));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.8s var(--ease) 0.3s;
}
.flow.is-visible::after, html:not(.js) .flow::after { transform: scaleX(1); }

.flow__node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
}
.flow__node:not(:last-child)::after {
  content: "";
  position: absolute; top: 32px; right: -5px;
  width: 9px; height: 9px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
.flow__rune {
  position: relative;
  isolation: isolate;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  font: 600 0.95rem/1 var(--serif);
  color: var(--ink);
}
.flow__rune::before,
.flow__rune::after {
  content: "";
  position: absolute; z-index: -1;
  transform: rotate(45deg);
}
.flow__rune::before {
  inset: 9px;
  background: var(--parchment);
  border: 1.5px solid var(--ink);
}
.flow__rune::after {
  inset: 13px;
  border: 1px solid rgba(29, 30, 26, 0.35);
}
.flow__node:last-child .flow__rune { color: var(--parchment); }
.flow__node:last-child .flow__rune::before { background: var(--ink); }
.flow__node:last-child .flow__rune::after { border-color: rgba(236, 229, 210, 0.4); }
.flow__word {
  font: 600 clamp(1rem, 1.5vw, 1.25rem)/1 var(--serif);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.34em;
}
.js .flow .flow__node { opacity: 0; transform: translateY(10px); transition: opacity 0.7s, transform 0.7s var(--ease); }
.js .flow.is-visible .flow__node { opacity: 1; transform: none; }
.js .flow.is-visible .flow__node:nth-child(2) { transition-delay: 0.35s; }
.js .flow.is-visible .flow__node:nth-child(3) { transition-delay: 0.7s; }
.js .flow.is-visible .flow__node:nth-child(4) { transition-delay: 1.05s; }

/* ==========================================================================
   The Machine
   ========================================================================== */
.machine {
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(142, 156, 124, 0.09), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(216, 221, 223, 0.05), transparent 70%),
    linear-gradient(180deg, var(--stone-900), #111516);
}

.machine__steps {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--rule-steel);
}
.step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 44px 24px 40px;
  outline: none;
  cursor: default;
  transition: flex-grow 0.7s var(--ease), background-color 0.5s;
}
.step + .step { border-left: 1px solid rgba(216, 221, 223, 0.07); }
.step:focus-visible { box-shadow: inset 0 0 0 2px var(--parchment); }

.step__rail {
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: rgba(216, 221, 223, 0.22);
}
.step__rail::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--steel-100), rgba(216, 221, 223, 0.2));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.7s var(--ease);
}
.step__node {
  position: absolute; left: 24px; top: -5px;
  width: 11px; height: 11px;
  background: var(--stone-900);
  border: 1px solid var(--steel-400);
  transform: rotate(45deg);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step__num {
  display: block;
  font: italic 500 clamp(2.4rem, 3.6vw, 3.4rem)/1 var(--serif);
  color: var(--steel-500);
  transition: color 0.4s;
}
.step__title {
  margin-top: 18px;
  max-width: 13ch;
  font: 500 clamp(1.25rem, 1.8vw, 1.6rem)/1.15 var(--serif);
  color: var(--steel-100);
}
.step__reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s var(--ease), opacity 0.5s;
}
.step__reveal p {
  min-height: 0;
  overflow: hidden;
  max-width: 32ch;
  padding-top: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--steel-300);
}
.step__reveal p::before {
  content: "";
  display: block;
  width: 28px; height: 1px;
  margin: 18px 0 14px;
  background: var(--steel-500);
}

.step:hover, .step:focus, .step.is-open {
  flex-grow: 1.9;
  background: linear-gradient(180deg, rgba(216, 221, 223, 0.045), transparent 70%);
}
.step:hover .step__rail::after, .step:focus .step__rail::after, .step.is-open .step__rail::after { transform: scaleX(1); }
.step:hover .step__node, .step:focus .step__node, .step.is-open .step__node {
  background: var(--rh);
  border-color: var(--rh);
  box-shadow: 0 0 0 4px rgba(0, 200, 5, 0.14);
}
.step:hover .step__num, .step:focus .step__num, .step.is-open .step__num { color: var(--parchment); }
.step:hover .step__reveal, .step:focus .step__reveal, .step.is-open .step__reveal { grid-template-rows: 1fr; opacity: 1; }

.machine__hint {
  margin-top: 22px;
  font: 600 0.68rem/1 var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel-500);
}

@media (hover: none) {
  .step__reveal { grid-template-rows: 1fr; opacity: 1; }
  .machine__hint { display: none; }
}

/* ==========================================================================
   Mascot
   ========================================================================== */
.mascot {
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 55% at 28% 50%, rgba(207, 212, 204, 0.1), transparent 70%),
    linear-gradient(180deg, #111516 0%, var(--moss-800) 45%, #1d251f 100%);
}
.mascot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.mascot__stage {
  position: relative;
  width: min(440px, 100%);
  justify-self: center;
  padding: 24px 0;
}
.arch { position: relative; aspect-ratio: 4 / 5; }
.arch__frame {
  position: absolute; inset: 0;
  padding: 10px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(160deg, #4a5358, #23292c 45%, #3a4247);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 0 8px var(--moss-800),
    0 0 0 9px rgba(216, 221, 223, 0.2),
    0 50px 90px -40px rgba(0, 0, 0, 0.9);
}
.arch__frame::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 -60px 80px -40px rgba(12, 15, 16, 0.7);
  pointer-events: none;
}
.arch__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 999px 999px 2px 2px;
}
.arch__keystone {
  position: absolute; left: 50%; top: -8px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--steel-100), var(--steel-500));
  border: 1px solid rgba(0, 0, 0, 0.5);
  transform: translateX(-50%) rotate(45deg);
}

.tag {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center;
  padding: 10px 26px 10px 16px;
  font: 700 0.68rem/1 var(--sans);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--parchment-hi), var(--parchment-lo));
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
  white-space: nowrap;
  translate: 0 0;
  animation: tag-float 6s ease-in-out infinite;
  transition: translate 0.6s var(--ease);
}
.tag--stage { top: 12%; left: -14%; }
.tag--front { top: 50%; right: -16%; animation-delay: -2s; clip-path: polygon(12px 50%, 0 0, 100% 0, 100% 100%, 0 100%); padding: 10px 16px 10px 26px; }
.tag--crowd { bottom: 12%; left: -8%; animation-delay: -4s; }
.mascot__stage:hover .tag--stage { translate: -10px -8px; }
.mascot__stage:hover .tag--front { translate: 12px 0; }
.mascot__stage:hover .tag--crowd { translate: -8px 10px; }
@keyframes tag-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

.mascot__title {
  margin-top: 22px;
  font: 500 clamp(2.4rem, 5vw, 4.5rem)/0.98 var(--serif);
  text-transform: uppercase;
  color: var(--steel-100);
}
.mascot__title span { display: block; }
.mascot__title-accent { color: var(--parchment); font-style: italic; }

.mascot__lead {
  margin-top: 30px;
  font: italic 400 clamp(1.3rem, 2vw, 1.6rem)/1.4 var(--serif);
  color: var(--steel-200);
}

.titles {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-steel);
}
.titles li:nth-child(-n+2) {
  flex-basis: 100%;
  font: 400 1.2rem/1.5 var(--serif);
  color: var(--steel-300);
}
.titles li:nth-child(2) { margin-bottom: 10px; }
.titles__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font: 650 0.7rem/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel-100);
  border: 1px solid rgba(216, 221, 223, 0.28);
  border-radius: 2px;
  background: rgba(216, 221, 223, 0.04);
  transition: border-color 0.3s, background-color 0.3s;
}
.titles__badge::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--steel-300);
  transform: rotate(45deg);
}
.titles__badge:hover { border-color: rgba(216, 221, 223, 0.6); background: rgba(216, 221, 223, 0.08); }

/* ==========================================================================
   Comparison
   ========================================================================== */
.compare {
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, var(--parchment-hi), transparent 70%),
    linear-gradient(180deg, #e8e1cd, #e1d8c0);
}
.compare__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.compare__side { position: relative; }
.compare__kicker {
  font: 700 0.72rem/1 var(--sans);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-3);
}
.compare__line {
  margin-top: 16px;
  font: 500 clamp(2rem, 3.6vw, 3.2rem)/1.04 var(--serif);
  color: var(--ink);
}
.compare__points { margin-top: 36px; }
.compare__points li {
  padding: 13px 0;
  font: 400 1.15rem/1.4 var(--serif);
  color: var(--ink-2);
  border-top: 1px solid var(--rule-ink);
}

.tape { position: relative; height: 260px; margin-top: 40px; }
.tape span {
  display: inline-flex; align-items: center;
  height: 34px;
  padding: 0 18px;
  font: 700 0.72rem/1 var(--mono);
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* Disorder */
.compare__side--without .compare__kicker { transform: rotate(-2deg) translateX(6px); display: inline-block; }
.compare__side--without .compare__line { transform: rotate(-1.2deg) translateX(-4px); color: #3a3a33; }
.compare__side--without .compare__points li:nth-child(1) { margin-left: 18px; transform: rotate(0.8deg); }
.compare__side--without .compare__points li:nth-child(2) { margin-left: -6px; margin-right: 30px; transform: rotate(-1.4deg); }
.compare__side--without .compare__points li:nth-child(3) { margin-left: 40px; transform: rotate(1.1deg); border-top-style: dashed; }

.tape--chaos span {
  position: absolute;
  color: #6d6a5d;
  background: #d6cdb3;
  clip-path: polygon(2% 8%, 12% 0, 30% 10%, 55% 2%, 78% 12%, 100% 0, 97% 55%, 100% 100%, 70% 90%, 45% 100%, 20% 92%, 0 100%, 4% 50%);
  transition: transform 0.6s var(--ease);
}
.tape--chaos span:nth-child(1) { top: 2%;  left: 6%;  transform: rotate(-7deg); }
.tape--chaos span:nth-child(2) { top: 16%; left: 48%; transform: rotate(11deg); opacity: 0.8; }
.tape--chaos span:nth-child(3) { top: 38%; left: 14%; transform: rotate(4deg); opacity: 0.65; }
.tape--chaos span:nth-child(4) { top: 50%; left: 54%; transform: rotate(-15deg); }
.tape--chaos span:nth-child(5) { top: 70%; left: 0;   transform: rotate(-3deg); opacity: 0.75; }
.tape--chaos span:nth-child(6) { top: 80%; left: 36%; transform: rotate(8deg); }
.compare__side--without:hover .tape--chaos span:nth-child(odd) { transform: rotate(-11deg) translateY(4px); }
.compare__side--without:hover .tape--chaos span:nth-child(even) { transform: rotate(14deg) translateX(6px); }

/* Structure */
.tape--order {
  display: grid;
  grid-auto-rows: 34px;
  gap: 10px;
  align-content: center;
  padding-left: 22px;
  border-left: 2px solid var(--ink);
}
.tape--order::before {
  content: "";
  position: absolute; left: -6px; top: -6px;
  width: 10px; height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
}
.tape--order span {
  position: relative;
  justify-content: space-between;
  color: var(--ink);
  background: rgba(245, 240, 226, 0.75);
  border: 1px solid var(--rule-ink);
}
.tape--order span::after {
  content: "";
  width: 18px; height: 1px;
  background: var(--rh-deep);
}
.tape--order span::before {
  content: "";
  position: absolute; left: -23px; top: 50%;
  width: 16px; height: 1px;
  background: var(--ink);
}
.js .compare__side--with .tape--order span { opacity: 0; transform: translateX(-12px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.js .compare__side--with.is-visible .tape--order span { opacity: 1; transform: none; }
.js .compare__side--with.is-visible .tape--order span:nth-child(2) { transition-delay: 0.1s; }
.js .compare__side--with.is-visible .tape--order span:nth-child(3) { transition-delay: 0.2s; }
.js .compare__side--with.is-visible .tape--order span:nth-child(4) { transition-delay: 0.3s; }
.js .compare__side--with.is-visible .tape--order span:nth-child(5) { transition-delay: 0.4s; }
.js .compare__side--with.is-visible .tape--order span:nth-child(6) { transition-delay: 0.5s; }
.compare__side--with .compare__kicker { color: var(--rh-deep); }

/* Sword divider */
.compare__divider {
  position: relative;
  display: flex; justify-content: center;
  padding-top: 44px;
}
.compare__divider::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 8px; height: 30px;
  background: repeating-linear-gradient(180deg, var(--leather) 0 4px, #4a2f20 4px 6px);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 -10px 0 -1px var(--bronze);
}
.compare__divider::after {
  content: "";
  position: absolute; top: 32px; left: 50%;
  width: 60px; height: 7px;
  background: linear-gradient(180deg, #d9b878, var(--bronze) 60%, #7f6130);
  border-radius: 4px;
  transform: translateX(-50%);
}
.blade {
  width: 10px;
  height: 100%;
  background: linear-gradient(90deg, #7c858a 0%, #eef1f2 48%, #a7afb3 52%, #6f787d 100%);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 50% 100%, 0 94%);
  transform-origin: top;
}
.js .compare__divider .blade { transform: scaleY(0); transition: transform 1.2s var(--ease) 0.2s; }
.js .compare__divider.is-visible .blade { transform: scaleY(1); }

/* ==========================================================================
   Vault
   ========================================================================== */
.vault {
  background:
    radial-gradient(ellipse 50% 45% at 50% 40%, rgba(216, 221, 223, 0.06), transparent 70%),
    linear-gradient(180deg, #121617, var(--ink-950));
}
.vault__battlements {
  position: absolute; left: 0; right: 0; top: -26px;
  height: 27px;
  background: repeating-linear-gradient(90deg, #121617 0 64px, transparent 64px 104px);
  pointer-events: none;
}

.vault__gate {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(96px, 12vw, 150px) clamp(24px, 7vw, 96px) clamp(64px, 8vw, 96px);
  text-align: center;
}
.vault__gate::before,
.vault__gate::after {
  content: "";
  position: absolute; bottom: 0; top: 30%;
  width: 14px;
  border-left: 1px solid var(--rule-steel);
  border-right: 1px solid var(--rule-steel);
  background: repeating-linear-gradient(180deg, transparent 0 46px, var(--rule-steel) 46px 47px);
}
.vault__gate::before { left: -28px; }
.vault__gate::after { right: -28px; }

.vault__arch {
  position: absolute; inset: 0;
  border: 1px solid rgba(216, 221, 223, 0.2);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  pointer-events: none;
}
.vault__arch-inner {
  position: absolute; inset: 16px 16px 0;
  border: 1px solid rgba(216, 221, 223, 0.1);
  border-bottom: 0;
  border-radius: inherit;
}
.vault__portcullis {
  position: absolute; inset: 17px 17px 0;
  border-radius: 50% 50% 0 0 / 33% 33% 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(216, 221, 223, 0.045) 55px 57px),
    repeating-linear-gradient(180deg, transparent 0 55px, rgba(216, 221, 223, 0.03) 55px 56px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
}

.vault__content { position: relative; }
.shield {
  width: 68px; height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}
.vault__title {
  margin-top: 18px;
  font: 500 clamp(2.6rem, 6.8vw, 5.8rem)/0.96 var(--serif);
  text-transform: uppercase;
  color: var(--parchment);
}
.vault__copy {
  margin-top: 36px;
  font: 400 clamp(1.2rem, 1.9vw, 1.5rem)/1.6 var(--serif);
  color: var(--steel-300);
}
.vault__copy span { display: block; }
.vault__copy span:nth-child(n+4) { color: var(--steel-100); font-style: italic; }

.plaques {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  max-width: 900px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  text-align: center;
}
.plaque {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 12px 6px;
  border-top: 1px solid rgba(216, 221, 223, 0.25);
  position: relative;
}
.plaque::before {
  content: "";
  position: absolute; left: 50%; top: -4px;
  width: 7px; height: 7px;
  background: var(--ink-950);
  border: 1px solid var(--steel-400);
  transform: translateX(-50%) rotate(45deg);
}
.plaque__k {
  font: 700 0.66rem/1 var(--sans);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--steel-500);
}
.plaque__v { font: 500 1.35rem/1.2 var(--serif); color: var(--parchment); }

/* ==========================================================================
   Chart / The Book
   ========================================================================== */
.book {
  background: linear-gradient(180deg, var(--ink-950), #151a1c);
  border-top: 1px solid var(--rule-steel);
}
.book__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.book__frame {
  border: 1px solid rgba(216, 221, 223, 0.16);
  border-radius: 6px;
  overflow: hidden;
  background: #0b0e0f;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.book__bar {
  display: flex; align-items: center; gap: 16px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule-steel);
  background: linear-gradient(180deg, #1a1f22, #14181a);
}
.book__dots { display: flex; gap: 6px; flex: none; }
.book__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--stone-600); }
.book__path {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 0.78rem/1 var(--mono);
  color: var(--steel-400);
}
.book__status {
  flex: none;
  padding: 6px 10px;
  font: 700 0.62rem/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--parchment);
  border: 1px solid rgba(236, 229, 210, 0.35);
  border-radius: 2px;
}
.book__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 440px;
}
.book__iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.book__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 32px 20px;
}
.book__placeholder[hidden] { display: none; }
.book__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(216, 221, 223, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 221, 223, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
}
.book__message { position: relative; max-width: 50ch; text-align: center; }
.book__seal {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid rgba(216, 221, 223, 0.35);
  background: radial-gradient(circle at 35% 30%, #2d3438, #151a1c);
  box-shadow: 0 0 0 6px rgba(216, 221, 223, 0.04);
}
.book__seal svg { width: 24px; height: 24px; fill: none; stroke: var(--steel-200); stroke-width: 1.6; }
.book__kicker { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--serif); color: var(--parchment); }
.book__text { margin-top: 14px; font-size: 0.98rem; color: var(--steel-300); }
.book__pair {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  font: 700 0.66rem/1 var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel-500);
}
.book__pair code {
  padding: 6px 10px;
  font-size: 0.85rem; letter-spacing: 0.04em; text-transform: none;
  color: var(--parchment);
  border: 1px solid var(--rule-steel);
  border-radius: 2px;
}

/* ==========================================================================
   Finale
   ========================================================================== */
.finale {
  position: relative;
  padding-bottom: clamp(80px, 10vw, 140px);
  background: #151a1c;
  overflow: hidden;
}
.finale__strip {
  position: relative;
  aspect-ratio: 3 / 1;
  min-height: 420px;
  max-height: 86vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.finale__bg {
  --py: 0px;
  position: absolute; inset: -8% 0; z-index: -2;
  background: url("assets/banner.png") center / cover no-repeat;
  filter: saturate(0.82) brightness(0.8);
  transform: translate3d(0, var(--py), 0) scale(1.04);
  will-change: transform;
}
.finale__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 15, 16, 0.78) 0%, rgba(12, 15, 16, 0.25) 32%, transparent 42%, transparent 58%, rgba(12, 15, 16, 0.25) 68%, rgba(12, 15, 16, 0.78) 100%),
    linear-gradient(180deg, #151a1c 0%, transparent 18%, transparent 78%, #151a1c 100%);
}
.finale__title {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-inline: max(var(--gutter), calc((100% - 1360px) / 2));
  font: 500 clamp(2.2rem, 5.2vw, 5.6rem)/0.95 var(--serif);
  text-transform: uppercase;
  color: var(--parchment-hi);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}
.finale__title span { max-width: 34%; }
.finale__title span:last-child { text-align: right; font-style: italic; }

.finale__inner { position: relative; text-align: center; margin-top: -24px; }
.finale__sub {
  display: inline-flex; align-items: center; gap: 18px;
  margin-bottom: 30px;
  font: italic 400 clamp(1.2rem, 2vw, 1.5rem)/1 var(--serif);
  color: var(--steel-200);
}
.finale__sub::before, .finale__sub::after {
  content: "";
  width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel-400));
}
.finale__sub::after { transform: scaleX(-1); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 64px 0 40px;
  background: var(--ink-950);
  border-top: 1px solid var(--rule-steel);
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-steel);
}
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand img {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(216, 221, 223, 0.35);
}
.site-footer__name { font: 600 1.6rem/1 var(--serif); color: var(--parchment); }
.site-footer__meta {
  display: flex; gap: 10px;
  margin-top: 8px;
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel-400);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-footer__links a {
  display: inline-flex; align-items: center; min-height: 40px;
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel-300);
  transition: color 0.25s;
}
.site-footer__links a:hover { color: var(--parchment); }
.site-footer__disclaimer {
  max-width: 88ch;
  margin-top: 28px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--steel-500);
}

/* ==========================================================================
   Reveal
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .tag--stage { left: -6%; }
  .tag--front { right: -6%; }
  .tag--crowd { left: -2%; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 32px;
    background: rgba(14, 17, 18, 0.97);
    border-bottom: 1px solid var(--rule-steel);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .site-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s;
  }
  .site-header:has(.site-nav.is-open) { background: rgba(14, 17, 18, 0.97); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    display: flex;
    min-height: 60px; padding: 0;
    font: 500 1.7rem/1 var(--serif);
    letter-spacing: 0; text-transform: none;
    color: var(--steel-100);
    border-bottom: 1px solid var(--rule-steel);
  }
  .site-nav__link::after { left: auto; right: 6px; bottom: 50%; transform: translateY(50%) rotate(45deg) scale(0); }
  .site-nav__link.is-active::after { transform: translateY(50%) rotate(45deg) scale(1); }
  .site-nav__list li:nth-last-child(2) { margin: 24px 0 0; }
  .site-nav__list li:last-child { margin-top: 12px; }
  .site-nav__list .btn { width: 100%; min-height: 54px; font-size: 0.8rem; }

  /* Hero stacks */
  .hero { min-height: 0; padding: calc(var(--header-h) + 20px) 0 88px; }
  .hero__bg {
    -webkit-mask-image: none; mask-image: none;
    background-size: cover;
  }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(12, 15, 16, 0.35) 0%, rgba(12, 15, 16, 0.2) 30%, rgba(12, 15, 16, 0.72) 58%, rgba(20, 24, 26, 0.94) 85%, var(--stone-900) 100%);
  }
  .hero__inner { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .hero__figure-wrap { order: -1; }
  .hero__img { width: min(74vw, 380px, calc(44vh * 0.869)); width: min(74vw, 380px, calc(44svh * 0.869)); }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__title { margin-top: 20px; }
  .hero__ticker::after {
    content: "";
    width: 56px; height: 1px;
    background: linear-gradient(90deg, var(--steel-300), transparent);
  }
  .hero__tagline { margin-top: 26px; }
  .hero__quote { padding: 0; border: 0; }
  .hero__quote::before { display: none; }
  .hero .cta-row { justify-content: center; margin-top: 30px; }
  .hero__scroll { display: none; }

  /* Story */
  .story__body { grid-template-columns: 1fr 1fr; }
  .story__col--orders { grid-column: 1 / -1; }

  /* Machine becomes a vertical sequence */
  .machine__steps { flex-direction: column; border-bottom: 0; }
  .step {
    flex: none;
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 16px;
    padding: 28px 0 28px 28px;
    border-left: 1px solid rgba(216, 221, 223, 0.22);
  }
  .step + .step { border-left: 1px solid rgba(216, 221, 223, 0.22); }
  .step__rail { left: -1px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: transparent; }
  .step__rail::after { display: none; }
  .step__node { left: -5px; top: 36px; }
  .step__num { grid-row: span 2; font-size: 2.4rem; }
  .step__title { margin-top: 4px; max-width: none; }
  .step__reveal { grid-column: 2; grid-template-rows: 1fr; opacity: 1; }
  .step__reveal p::before { margin: 12px 0 10px; }
  .machine__hint { display: none; }
  .step:hover, .step:focus, .step.is-open { flex-grow: 0; }

  /* Mascot */
  .mascot__grid { grid-template-columns: 1fr; }
  .mascot__stage { width: min(380px, 78%); }
  .mascot__copy { text-align: center; }
  .titles { justify-content: center; }

  /* Compare */
  .compare__split { grid-template-columns: 1fr; gap: 56px; }
  .compare__divider {
    height: 60px; padding: 0;
    justify-content: flex-start; align-items: center;
  }
  .compare__divider::before { top: 50%; left: 0; width: 30px; height: 8px; transform: translateY(-50%); box-shadow: -10px 0 0 -1px var(--bronze); }
  .compare__divider::after { top: 50%; left: 32px; width: 7px; height: 60px; transform: translateY(-50%); background: linear-gradient(90deg, #d9b878, var(--bronze) 60%, #7f6130); }
  .blade {
    width: calc(100% - 39px); height: 10px;
    margin-left: 39px;
    background: linear-gradient(180deg, #7c858a 0%, #eef1f2 48%, #a7afb3 52%, #6f787d 100%);
    clip-path: polygon(0 0, 97% 0, 100% 50%, 97% 100%, 0 100%);
    transform-origin: left;
  }
  .js .compare__divider .blade { transform: scaleX(0); }
  .js .compare__divider.is-visible .blade { transform: scaleX(1); }

  /* Vault */
  .vault__gate::before, .vault__gate::after { display: none; }
}

@media (max-width: 760px) {
  .hero__name { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero .cta-row { width: 100%; }
  .hero .cta-row .btn { flex: 1 1 0; min-height: 54px; padding: 0 1em; }
  .hero .cta-row .btn--primary { flex-basis: 100%; }

  .ca {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    padding: 12px 8px 8px 14px;
    gap: 8px 12px;
    text-align: left;
  }
  .ca__label { grid-column: 1 / -1; border: 0; padding: 0; }
  .ca__copy { min-height: 46px; }

  .story__body { grid-template-columns: 1fr; }

  .flow { grid-template-columns: 1fr; gap: 26px; justify-items: start; padding-left: 4px; }
  .flow::before, .flow::after { top: 29px; bottom: 29px; left: 32px; right: auto; width: 1px; height: auto; }
  .flow::before { background: repeating-linear-gradient(180deg, rgba(29, 30, 26, 0.45) 0 10px, transparent 10px 18px); }
  .flow::after { width: 2px; left: 31.5px; background: linear-gradient(180deg, rgba(29, 30, 26, 0.1), var(--ink) 50%, var(--rh-deep)); transform-origin: top; transform: scaleY(0); }
  .flow.is-visible::after, html:not(.js) .flow::after { transform: scaleY(1); }
  .flow__node { flex-direction: row; gap: 22px; text-align: left; }
  .flow__node:not(:last-child)::after { display: none; }

  .tag { font-size: 0.6rem; padding: 8px 20px 8px 12px; }
  .tag--front { padding: 8px 12px 8px 20px; }
  .tag--stage { left: -10%; }
  .tag--front { right: -12%; }
  .tag--crowd { left: -6%; }

  .plaques { grid-template-columns: 1fr; gap: 0; }
  .plaque { padding-bottom: 20px; }

  .book__viewport { aspect-ratio: auto; min-height: 0; height: 520px; }
  .book__path { font-size: 0.7rem; }

  .finale__strip { aspect-ratio: auto; height: min(150vw, 640px); min-height: 0; max-height: none; }
  .finale__bg { inset: 22% 0; background-size: cover; transform: none; }
  .finale__veil {
    background: linear-gradient(180deg, #151a1c 0%, #151a1c 23%, rgba(21, 26, 28, 0) 36%, rgba(21, 26, 28, 0) 64%, #151a1c 77%, #151a1c 100%);
  }
  .finale__title {
    flex-direction: column; justify-content: space-between;
    padding: 10% var(--gutter);
    text-align: center;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
  .finale__title span, .finale__title span:last-child { max-width: none; text-align: center; }
  .finale__title br { display: none; }
  .finale__inner { margin-top: 0; }
  .finale .cta-row .btn { flex: 1 1 100%; min-height: 54px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1.15rem; }
  .brand__logo { width: 36px; height: 36px; }
  .brand { gap: 9px; }
  .hero .cta-row .btn { font-size: 0.72rem; }
}

@media (max-width: 340px) {
  .brand__ticker { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .glint { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__bg, .finale__bg, .hero__figure-wrap { transform: none !important; }
}
