/* ==========================================================================
   Bennu Data — independent design build
   Author: DeepSeek. Plain HTML/CSS/JS, no framework, no build step.
   Direction: archival calm. Paper, ink, one forest accent; gold as material.
   ========================================================================== */

@font-face {
  font-family: "Bennu Serif";
  src: url("../fonts/serif-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bennu Serif";
  src: url("../fonts/serif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f0e5;
  --paper-2: #ebe4d4;
  --surface: #fbf7ee;
  --surface-2: #f6f0e4;
  --ink: #16241d;
  --ink-2: #3f4f45;
  --muted: #6e7970;
  --line: rgba(22, 36, 29, 0.13);
  --line-strong: rgba(22, 36, 29, 0.26);
  --forest: #27523f;
  --forest-deep: #142c22;
  --forest-soft: rgba(39, 82, 63, 0.08);
  --gold: #9d7a38;
  --gold-dark: #7f5c24;
  --gold-soft: #c4a873;
  --dark: #14231c;
  --dark-2: #1b2d24;
  --paper-on-dark: #f1eadb;
  --serif: "Bennu Serif", "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono",
    monospace;
  --shadow-card: 0 1px 0 rgba(28, 42, 34, 0.04), 0 28px 48px -36px rgba(28, 42, 34, 0.55);
  --shadow-soft: 0 18px 36px -30px rgba(28, 42, 34, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
::selection { background: rgba(169, 131, 63, 0.28); }

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 28px 0 26px;
  text-wrap: balance;
}
.display .line { display: block; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.35;
}

.lede {
  max-width: 36em;
  font-size: clamp(16px, 1.3vw, 17.5px);
  line-height: 1.85;
  color: var(--ink-2);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow .no { color: var(--gold-dark); }
.eyebrow-rule { width: 34px; height: 1px; background: var(--gold-dark); opacity: 0.8; }
.eyebrow-light { color: rgba(241, 234, 219, 0.62); }
.eyebrow-light .no { color: var(--gold-soft); }

.sec-head { margin-bottom: 56px; }
.sec-head h2 { margin-top: 24px; }
.sec-head-split {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: end;
}
.sec-side {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  padding-bottom: 6px;
}

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-primary { background: var(--forest); color: #f7f2e7; }
.btn-primary:hover { background: var(--forest-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(28, 42, 34, 0.04); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Interactive hover button (adapted from user_magicui) ---------- */

.ihb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  padding: 0 22px 0 34px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.ihb-fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--forest);
  clip-path: circle(4px at 17px 50%);
  transition: clip-path 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.ihb-text {
  position: relative;
  white-space: nowrap;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}
.ihb-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  color: #f7f2e7;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.24s var(--ease), transform 0.28s var(--ease);
}
.ihb-hover svg { width: 16px; height: 16px; flex: none; }
.ihb:hover,
.ihb:focus-visible { border-color: var(--forest); color: #f7f2e7; }
.ihb:hover .ihb-fill,
.ihb:focus-visible .ihb-fill { clip-path: circle(150% at 17px 50%); }
.ihb:hover .ihb-text,
.ihb:focus-visible .ihb-text { opacity: 0; transform: translateX(14px); }
.ihb:hover .ihb-hover,
.ihb:focus-visible .ihb-hover { opacity: 1; transform: translateX(0); }
/* Compact variant for the header */
.ihb-sm {
  min-width: 150px;
  min-height: 44px;
  padding: 0 16px 0 28px;
  font-size: 13.5px;
}
.ihb-sm .ihb-fill { clip-path: circle(3.5px at 14px 50%); }
.ihb-sm:hover .ihb-fill,
.ihb-sm:focus-visible .ihb-fill { clip-path: circle(150% at 14px 50%); }
.ihb-sm .ihb-hover { padding: 0 12px; gap: 5px; font-size: 13.5px; }
.ihb-sm .ihb-hover svg { width: 14px; height: 14px; }

@media (hover: none) {
  .ihb { padding-left: 24px; }
  .ihb-sm { padding-left: 16px; }
  .ihb-fill, .ihb-hover { display: none; }
  .ihb-text { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ihb-fill, .ihb-text, .ihb-hover { transition: none; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  border-bottom: 1px solid rgba(44, 90, 68, 0.35);
  padding-bottom: 4px;
  transition: border-color 0.18s var(--ease), gap 0.18s var(--ease);
}
.link-arrow:hover { border-color: var(--forest); gap: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.18s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 2px;
}
.lang-toggle span[data-lang-label] { transition: color 0.18s var(--ease); }
html[data-lang="zh"] .lang-toggle [data-lang-label="zh"],
html[data-lang="en"] .lang-toggle [data-lang-label="en"] { color: var(--ink); }
.lang-slash { opacity: 0.5; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 11px 9px;
  position: relative;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px clamp(20px, 4vw, 48px) 24px;
  background: var(--paper);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
}
.mobile-menu .btn { margin-top: 20px; width: 100%; }
.mobile-menu .ihb { margin-top: 20px; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(48px, 6vw, 84px) clamp(56px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { padding-top: 8px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-points {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero-points li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--line);
  line-height: 1.5;
}
.hero-points li:last-child { border-right: 0; padding-right: 0; margin-right: 0; }

/* ---------- Dossier (hero visual) ---------- */

.hero-visual { position: relative; }
.dossier {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  aspect-ratio: 10 / 10.6;
}

.dossier-sheet {
  position: absolute;
  right: 1.5%;
  top: 1%;
  width: 57%;
  aspect-ratio: 3 / 3.75;
  transform: rotate(5deg);
  background: var(--surface-2);
  border: 1px solid rgba(28, 42, 34, 0.12);
  box-shadow: 0 30px 50px -40px rgba(28, 42, 34, 0.6);
  padding: 2.6cqw;
}
.sheet-svg { width: 100%; }
.sheet-svg svg { width: 100%; height: auto; }
.sheet-label {
  position: absolute;
  left: 2.6cqw;
  top: 1.4cqw;
  font-family: var(--mono);
  font-size: 1.15cqw;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.sheet-list {
  position: absolute;
  left: 2.6cqw;
  right: 2.6cqw;
  bottom: 2.4cqw;
  border-top: 1px solid rgba(28, 42, 34, 0.18);
  padding-top: 1.2cqw;
}
.sheet-list div {
  display: flex;
  justify-content: space-between;
  padding: 0.34cqw 0;
  font-family: var(--mono);
  font-size: 1.05cqw;
  color: var(--ink-2);
}
.sheet-list dd { color: var(--ink); }

.dossier-folder {
  position: absolute;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
}
.folder-a {
  left: 2%;
  top: 30%;
  width: 42%;
  height: 26%;
  transform: rotate(-7deg);
  background: var(--forest);
}
.folder-a::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1.6cqw;
  width: 38%;
  height: 1.8cqw;
  background: var(--forest);
  border-radius: 2px 2px 0 0;
}
.folder-b {
  left: 20%;
  bottom: 17%;
  width: 44%;
  height: 27%;
  transform: rotate(6.5deg);
  background: #dfd0b4;
  border: 1px solid rgba(28, 42, 34, 0.14);
}
.folder-b::before {
  content: "";
  position: absolute;
  right: 6%;
  top: -1.7cqw;
  width: 34%;
  height: 1.9cqw;
  background: #dfd0b4;
  border: 1px solid rgba(28, 42, 34, 0.14);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.folder-tab {
  position: absolute;
  left: 2.2cqw;
  bottom: 1.6cqw;
  font-family: var(--mono);
  font-size: 1.25cqw;
  letter-spacing: 0.22em;
  color: rgba(247, 242, 231, 0.72);
}
.folder-b .folder-tab { color: rgba(28, 42, 34, 0.5); bottom: auto; top: 1.6cqw; right: 2.2cqw; left: auto; }

.dossier-card {
  position: absolute;
  left: 5%;
  top: 12%;
  width: 68%;
  transform: rotate(-1.6deg);
  background: #fcf9f1;
  border: 1px solid rgba(28, 42, 34, 0.16);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 34px 54px -34px rgba(28, 42, 34, 0.62);
  padding: 3cqw 3cqw 2.6cqw;
}

.dc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1cqw;
  padding-bottom: 1.5cqw;
  border-bottom: 1px solid rgba(28, 42, 34, 0.16);
  font-family: var(--mono);
  font-size: 1.22cqw;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.dc-no { color: var(--gold-dark); letter-spacing: 0.08em; }

.dc-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 4.5cqw;
  line-height: 1.22;
  margin: 2.4cqw 0 0.8cqw;
  letter-spacing: 0;
}
.dc-sub {
  font-family: var(--mono);
  font-size: 1.22cqw;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dc-board {
  margin: 2.4cqw 0 0.4cqw;
  border: 1px solid rgba(28, 42, 34, 0.14);
  background: #efe6d4;
}
.dc-board svg { width: 100%; height: auto; }

.dc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.4cqw;
  margin-top: 1.4cqw;
}
.dc-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1cqw;
  border-top: 1px solid rgba(28, 42, 34, 0.12);
  padding: 1.05cqw 0;
  font-size: 1.3cqw;
  line-height: 1.4;
}
.dc-meta dt { color: var(--muted); white-space: nowrap; }
.dc-meta dd { text-align: right; color: var(--ink); }
.dc-status { color: var(--gold-dark) !important; }

.dc-stamp {
  position: absolute;
  right: -11cqw;
  bottom: -14cqw;
  width: 13.5cqw;
  height: 13.5cqw;
  border: 1.5px solid var(--gold-dark);
  border-radius: 50%;
  transform: rotate(-12deg);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--gold-dark);
  font-family: var(--mono);
  letter-spacing: 0.16em;
  opacity: 0.88;
  background: rgba(252, 249, 241, 0.72);
}
.dc-stamp::before {
  content: "";
  position: absolute;
  inset: 0.55cqw;
  border: 1px solid rgba(138, 101, 40, 0.55);
  border-radius: 50%;
}
.dc-stamp span { font-size: 1.75cqw; line-height: 1.2; }
.dc-stamp small { font-size: 0.92cqw; letter-spacing: 0.14em; margin-top: 0.35cqw; }


/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 7.5vw, 108px); border-top: 1px solid var(--line); }
.section-tint { background: var(--paper-2); }

.section-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.section-foot p { font-size: 14px; color: var(--muted); }

/* Acquisition index */

.index-list { border-bottom: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 48px minmax(140px, 210px) minmax(0, 1fr) minmax(150px, 190px) 18px;
  gap: 32px;
  align-items: center;
  padding: 26px 18px;
  margin-inline: -18px;
  border-top: 1px solid var(--line);
  position: relative;
  border-radius: 2px;
  transition: background-color 0.22s var(--ease);
}
.index-row::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.32s var(--ease);
}
.index-row:hover { background: rgba(250, 246, 236, 0.72); }
.index-row:hover::before { width: 72px; }
.idx-no { font-family: var(--mono); font-size: 11px; color: var(--gold-dark); letter-spacing: 0.08em; }
.idx-name { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.3; }
.idx-desc { font-size: 15px; color: var(--ink-2); line-height: 1.7; max-width: 46em; }
.idx-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); }
.idx-arrow { color: var(--muted); transition: transform 0.22s var(--ease), color 0.22s var(--ease); }
.index-row:hover .idx-arrow { transform: translateX(6px); color: var(--forest); }

.index-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.note-rule { width: 22px; height: 1px; background: var(--gold); flex: none; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.step {
  position: relative;
  padding: 26px 30px 26px 0;
  border-right: 1px solid var(--line);
}
.step + .step { padding-left: 30px; }
.step:last-child { border-right: 0; padding-right: 0; }
.step::before {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.step + .step::before { left: 30px; }
.step-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold-dark); }
.step h3 { margin: 30px 0 10px; font-size: 23px; }
.step p { font-size: 14.5px; line-height: 1.72; color: var(--ink-2); min-height: 76px; }
.step-meta {
  display: block;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border-block: 1px solid var(--line);
  padding-block: 16px;
}
.assurances span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  padding-inline: 26px;
  border-left: 1px solid var(--line);
}
.assurances span:first-child { padding-left: 0; border-left: 0; }

/* ---------- Story / film ---------- */

.story {
  background: var(--dark);
  color: var(--paper-on-dark);
  padding-block: clamp(64px, 8vw, 108px);
  border-top: 1px solid var(--line);
}
.story-head h2 { color: var(--paper-on-dark); margin-top: 24px; }
.story-head-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
}
.story-head-grid p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(241, 234, 219, 0.66);
  padding-bottom: 6px;
}

.film { margin-top: 52px; }
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f1b15;
  border: 1px solid rgba(241, 234, 219, 0.16);
  overflow: hidden;
}
.storyboard {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sb-frame {
  position: relative;
  padding: 56px 26px 26px;
  border-left: 1px solid rgba(241, 234, 219, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.sb-frame:first-child { border-left: 0; }
.sb-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}
.sb-art { display: block; flex: 1; display: grid; place-items: center; }
.sb-art svg { width: 100%; height: auto; max-height: 42%; }
.sb-title {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--paper-on-dark);
  margin-bottom: 6px;
}
.sb-sub {
  display: block;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(241, 234, 219, 0.56);
  max-width: 24em;
}
.film-overlay { position: absolute; inset: 0; pointer-events: none; }
.film-badge {
  position: absolute;
  left: 22px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: rgba(15, 27, 21, 0.72);
  border: 1px solid rgba(241, 234, 219, 0.2);
  font-size: 11px;
  color: rgba(241, 234, 219, 0.78);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); }
.film-meta {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(241, 234, 219, 0.4);
}

/* ---------- Principles ---------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.why-lead h2 { margin-top: 24px; }
.why-list { border-top: 1px solid var(--line-strong); }
.why-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.why-list .no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  padding-top: 6px;
}
.why-list h3 { font-size: 20px; margin-bottom: 8px; }
.why-list p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; grid-column: 2; }

/* ---------- Closing ---------- */

.closing {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 8vw, 104px);
}
.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}
.closing h2 { margin-top: 24px; font-size: clamp(32px, 4vw, 54px); }
.closing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 320px; padding-bottom: 4px; }
.closing-small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--muted); line-height: 1.8; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 56px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.65fr));
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-tagline { margin-top: 18px; font-size: 13.5px; color: var(--ink-2); max-width: 22em; }
.footer-copy { margin-top: 18px; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.footer-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col a, .footer-link {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.18s var(--ease);
  padding: 0;
  text-align: left;
}
.footer-col a { position: relative; }
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.footer-col a:hover::after { transform: scaleX(1); }
.footer-col a:hover, .footer-link:hover { color: var(--ink); }
.footer-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 4px; max-width: 20em; }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer-base .mono { font-size: 11px; letter-spacing: 0.06em; }

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: clamp(44px, 5vw, 72px) clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: end;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-top: 26px;
  text-wrap: balance;
}
.page-hero .lede { margin-top: 20px; }
.page-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.page-index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.page-index a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.page-index a strong { font-weight: 500; color: var(--ink); transition: color 0.18s var(--ease); }
.page-index a:hover strong { color: var(--forest); }
.page-index .idx-arrow { color: var(--muted); transition: transform 0.18s var(--ease), color 0.18s var(--ease); }
.page-index a:hover .idx-arrow { transform: translateX(3px); color: var(--forest); }
main [id] { scroll-margin-top: 92px; }

/* ---------- Detail steps (how it works) ---------- */

.detail-steps { border-top: 1px solid var(--line-strong); }
.detail-step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.detail-step .num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1;
}
.detail-step h3 { font-size: 26px; margin-bottom: 12px; }
.detail-step p { font-size: 15px; line-height: 1.8; color: var(--ink-2); max-width: 40em; }

/* ---------- Agent section ---------- */

.agent-block {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(24px, 3.5vw, 44px);
}
.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr);
  align-items: stretch;
}
.agent-panel { background: var(--paper); border: 1px solid var(--line); padding: 22px; }
.agent-panel .panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(28, 42, 34, 0.08);
  font-size: 13px;
  color: var(--ink-2);
}
.panel-row:last-child { border-bottom: 0; }
.panel-row .mono { font-size: 11px; color: var(--muted); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); margin-right: 8px; vertical-align: 1px; }
.status-dot.muted { background: var(--line-strong); }

.agent-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
  text-align: center;
  color: var(--muted);
}
.agent-flow .flow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  position: relative;
}
.agent-flow .flow-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.agent-flow .mono { font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-2); }
.agent-flow small { font-size: 11px; color: var(--muted); }
.agent-verify-list { margin-top: 4px; }
.verify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(28, 42, 34, 0.08);
  font-size: 12.5px;
  color: var(--ink-2);
}
.verify-row:last-child { border-bottom: 0; }
.verify-row .mono { font-size: 11px; color: var(--ink); }
.verify-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.audit {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 7px;
}
.audit-line { display: flex; align-items: baseline; gap: 18px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.audit-line .t { color: var(--gold-dark); letter-spacing: 0.06em; }
.audit-line .ok { margin-left: auto; color: var(--forest); letter-spacing: 0.08em; }

/* ---------- Permissions / security ---------- */

.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.perm {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
}
.perm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.perm-head .mark { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.perm-block .perm-head .mark { background: var(--gold); }
.perm ul { margin-top: 4px; }
.perm li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(28, 42, 34, 0.08);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.perm li:last-child { border-bottom: 0; }
.perm li strong { color: var(--ink); font-weight: 500; }
.perm .glyph { font-family: var(--mono); font-size: 12px; color: var(--forest); flex: none; }
.perm-block .glyph { color: var(--gold-dark); }

.env-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(250, 246, 236, 0.55);
}
.env-note div { padding: 18px 22px; border-left: 1px solid var(--line); }
.env-note div:first-child { border-left: 0; }
.env-note dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.env-note dd { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  transition: transform 0.2s var(--ease);
}
.faq summary .plus::before { left: 0; top: 6.5px; width: 14px; height: 1px; }
.faq summary .plus::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.faq details[open] summary .plus::after { transform: scaleY(0); }
.faq details p {
  padding: 0 44px 24px 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 56em;
}

/* ---------- CTA band (inner pages) ---------- */

.cta-band {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: clamp(56px, 7vw, 88px);
}
.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.cta-band h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 22px; }
.cta-band .btn { margin-bottom: 4px; }

/* ---------- Cases ---------- */

.case-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.case-sheet:nth-child(even) .case-content { order: 2; }
.case-sheet:nth-child(even) .case-media { order: 1; }
.case-sheet.case-flip .case-content { order: 2; }
.case-sheet.case-flip .case-media { order: 1; }
.section-case { padding-block: 0; }
.case-content .eyebrow { margin-bottom: 20px; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 16px;
  margin: -8px 0 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.case-meta .sep { color: var(--line-strong); }
.case-meta strong { font-weight: 400; color: var(--ink-2); }
.case-meta .ok { color: var(--gold-dark); }
@media (max-width: 720px) {
  .case-meta { gap: 3px 12px; }
  .case-meta .sep { display: none; }
}
.case-content h2 { font-size: clamp(28px, 3vw, 40px); }
.case-content .case-lede { margin-top: 16px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.case-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.case-lists h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.case-lists ul { border-top: 1px solid var(--line); }
.case-lists li {
  padding: 9px 0 9px 16px;
  border-bottom: 1px solid rgba(28, 42, 34, 0.08);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  position: relative;
}
.case-lists li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.case-media { position: sticky; top: 104px; }
.mock {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
@media (hover: hover) {
  .mock:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(28, 42, 34, 0.04), 0 34px 56px -38px rgba(23, 34, 29, 0.62);
  }
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.mock-body { padding: 18px; }
.mock-body svg { width: 100%; height: auto; }
.mock-sub {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--surface);
}
.mock-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.repo-tree { font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--ink-2); }
.repo-tree .dir { color: var(--ink); }
.repo-tree .dim { color: var(--muted); }
.repo-tree .gold { color: var(--gold-dark); }
.commit-list { margin-top: 16px; border-top: 1px solid var(--line); }
.commit {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(28, 42, 34, 0.08);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.commit .m { color: var(--ink); }

.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th, .inv-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(28, 42, 34, 0.1);
  font-size: 12.5px;
}
.inv-table th {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--line-strong);
}
.inv-table td.mono { font-size: 11px; color: var(--ink); }
.inv-table .tag-cell { color: var(--gold-dark); font-family: var(--mono); font-size: 9.5px; }
.inv-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}

.milestones { display: grid; gap: 0; }
.milestone {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 42, 34, 0.1);
}
.milestone .when { font-family: var(--mono); font-size: 10px; color: var(--gold-dark); }
.milestone .what { font-size: 13px; color: var(--ink-2); }
.milestone .count { font-family: var(--mono); font-size: 10px; color: var(--muted); }

/* ---------- Case note (editorial footnote) ---------- */

.case-note {
  display: grid;
  grid-template-columns: minmax(0, 92px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  margin: clamp(18px, 2.4vw, 30px) 0 clamp(56px, 7vw, 96px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}
.case-note-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.case-note-rule {
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--gold-dark);
  opacity: 0.75;
}
.case-note-lead {
  max-width: 66ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------- Legal ---------- */

.prose { max-width: 760px; padding-block: clamp(34px, 4vw, 52px) clamp(52px, 5.5vw, 80px); }
.prose h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.prose .updated { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 36px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose p, .prose li { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
.prose li { margin: 4px 0; }
.prose .note {
  margin-top: 40px;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Apply dialog ---------- */

.apply-dialog:not([open]) { display: none; }
.apply-dialog {
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(20, 35, 28, 0.6);
}
.apply-dialog::backdrop { background: rgba(20, 35, 28, 0.48); }
.apply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex: none;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.apply-head h2 { font-size: 26px; }
.apply-head p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.apply-close {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
}
.apply-close:hover { border-color: var(--ink-2); }
.apply-body { flex: 1 1 auto; min-height: 0; padding: 22px 26px 26px; overflow-y: auto; }
.apply-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; color: var(--ink-2); }
.field label .req { color: var(--gold-dark); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-dark);
  outline-offset: 1px;
  border-color: var(--gold-dark);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apply-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.apply-form .btn { width: 100%; }
.apply-note { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.apply-status {
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.apply-status.is-visible { display: block; }
.apply-status.ok { border-color: rgba(44, 90, 68, 0.4); }

.apply-form-pinned { display: flex; flex-direction: column; gap: 0; flex: 1 1 auto; min-height: 0; }
.apply-fields, .apply-footer { display: grid; gap: 16px; }
.apply-footer {
  flex: none;
  gap: 8px;
  padding: 12px clamp(16px, 4vw, 26px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.apply-footer .btn:hover, .apply-footer .btn:active { transform: none; }
.apply-footer .apply-status { margin: 0; overflow-wrap: anywhere; }
.apply-footer .apply-status.error { border-color: #975635; }

.registration-receipt {
  position: fixed;
  z-index: 65;
  top: 12px;
  inset-inline: 0;
  width: fit-content;
  max-width: calc(100vw - 24px);
  margin-inline: auto;
  padding: 14px 24px;
  border-radius: 5px;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 44, 34, .15);
  font: 500 16px/1.55 var(--sans);
  text-align: center;
  pointer-events: none;
}
.site-header > .registration-receipt { position: absolute; top: calc(100% + 12px); }
@media (max-width: 580px) {
  .registration-receipt { padding: 12px 18px; font-size: 15px; }
}


/* ---------- Reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal-left { transform: translateX(-26px); }
html.js .reveal-right { transform: translateX(26px); }
html.js .reveal-left.is-visible,
html.js .reveal-right.is-visible { transform: none; }
.detail-steps .detail-step:nth-child(2) { --reveal-delay: 0.06s; }
.detail-steps .detail-step:nth-child(3) { --reveal-delay: 0.12s; }
.detail-steps .detail-step:nth-child(4) { --reveal-delay: 0.18s; }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-actions { gap: 14px; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
  .sec-head-split { grid-template-columns: 1fr; gap: 20px; }
  .sec-side { max-width: 44em; }
  .step { padding-right: 20px; }
  .step + .step { padding-left: 20px; }
  .detail-step { grid-template-columns: 64px minmax(0, 1fr); gap: 28px; }
  .case-sheet { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 640px; }
  .dossier { margin-inline: auto; max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-top: 1px solid var(--line); }
  .step + .step { padding-left: 0; }
  .step:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--line); }
  .step:nth-child(even) { padding-left: 32px; }
  .step:nth-child(-n + 2) { border-top: 0; }
  .step::before { left: 0; top: -3.5px; }
  .step:nth-child(even)::before { left: 32px; }
  .step p { min-height: 0; }
  .why { grid-template-columns: 1fr; gap: 44px; }
  .closing-inner { grid-template-columns: 1fr; gap: 32px; }
  .closing-actions { max-width: none; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-flow { padding: 16px 0; }
  .agent-flow .flow-line { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, var(--line-strong), transparent); }
  .agent-flow .flow-line::after { right: auto; left: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .case-sheet { grid-template-columns: 1fr; }
  .case-sheet:nth-child(even) .case-content { order: 1; }
  .case-sheet:nth-child(even) .case-media { order: 2; }
  .case-sheet.case-flip .case-content { order: 1; }
  .case-sheet.case-flip .case-media { order: 2; }
  .section-case { padding-block: 0; }
  .case-media { position: static; }
  .case-content { max-width: 640px; }
  .story-head-grid { grid-template-columns: 1fr; gap: 20px; }
  .film-frame { aspect-ratio: 4 / 3; }
  .storyboard { grid-template-columns: 1fr 1fr; }
  .sb-frame { border-top: 1px solid rgba(241, 234, 219, 0.1); }
  .sb-frame:nth-child(-n + 2) { border-top: 0; }
  .sb-frame:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 20px; flex-wrap: wrap; }
  .footer-contact .footer-head { margin-bottom: 0; }
  .footer-note { margin-top: 0; max-width: 26em; }
}

@media (max-width: 720px) {
  .header-inner { height: 64px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text strong { font-size: 17px; }
  .brand-sub { display: none; }
  .header-cta { display: none; }
  .site-header { position: sticky; }
  .mobile-menu:not([hidden]) { display: block; }
  .hero { padding-block: 36px 56px; }
  .display { font-size: clamp(38px, 10.6vw, 52px); margin-top: 22px; }
  .lede { font-size: 15.5px; }
  .hero-actions { margin-top: 26px; }
  .hero-points { flex-wrap: wrap; gap: 10px 0; }
  .hero-points li { font-size: 9.5px; padding-right: 12px; margin-right: 12px; }
  .section { padding-block: 56px; }
  .sec-head { margin-bottom: 36px; }
  .index-row {
    grid-template-columns: 34px 1fr 18px;
    grid-template-areas: "no name arrow" ". desc arrow" ". meta meta";
    gap: 8px 12px;
    padding: 20px 12px;
    margin-inline: -12px;
  }
  .idx-no { grid-area: no; }
  .idx-name { grid-area: name; font-size: 20px; }
  .idx-desc { grid-area: desc; font-size: 14px; }
  .idx-meta { grid-area: meta; padding-top: 4px; }
  .idx-arrow { grid-area: arrow; align-self: start; }
  .index-row::before { left: 12px; }
  .index-note { align-items: flex-start; line-height: 1.7; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(odd), .step:nth-child(even) { padding: 22px 0; border-right: 0; }
  .step:nth-child(-n + 2) { border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step + .step { padding-left: 0; }
  .step:nth-child(even)::before { left: 0; }
  .step h3 { margin-top: 18px; }
  .assurances span { padding-inline: 14px; font-size: 9.5px; }
  .assurances span:nth-child(3) { border-left: 0; padding-left: 0; }
  .story-head h2 { font-size: 30px; }
  .film-frame { aspect-ratio: auto; display: flex; flex-direction: column; }
  .storyboard { position: static; order: 2; grid-template-columns: 1fr; }
  .film-overlay {
    position: static;
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(241, 234, 219, 0.1);
  }
  .film-badge { position: static; }
  .sb-frame { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid rgba(241, 234, 219, 0.1); }
  .sb-frame:first-child { border-top: 0; }
  .sb-frame:nth-child(3) { border-left: 0; }
  .sb-no { align-self: flex-start; }
  .sb-art { flex: none; width: 56px; }
  .sb-art svg { max-height: none; }
  .sb-title { font-size: 18px; }
  .film-badge { font-size: 10px; }
  .film-meta { position: static; font-size: 8.5px; }
  .why-list li { grid-template-columns: 32px 1fr; column-gap: 14px; }
  .closing h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .detail-step { grid-template-columns: 40px 1fr; gap: 16px; padding: 28px 0; }
  .detail-step .num { font-size: 26px; }
  .detail-step h3 { font-size: 22px; }
  .perm-grid { grid-template-columns: 1fr; }
  .env-note { grid-template-columns: 1fr; }
  .env-note div { border-left: 0; border-top: 1px solid var(--line); }
  .env-note div:first-child { border-top: 0; }
  .case-lists { grid-template-columns: 1fr; gap: 20px; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .apply-head { padding: 20px 20px 16px; }
  .apply-body { padding: 18px 20px 22px; }
  .faq summary { font-size: 17px; }
}

@media (max-width: 420px) {
  .lang-toggle { font-size: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 10px; }
  .dossier { max-width: 380px; }
}

/* ---------- 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;
  }
  html.js .reveal,
  html.js .reveal-left,
  html.js .reveal-right { opacity: 1; transform: none; }
}

/* ---------- English text tweaks ---------- */

html[data-lang="en"] .display { letter-spacing: -0.02em; }
html[data-lang="en"] .idx-name { font-size: 22px; }
html[data-lang="en"] .dc-title { letter-spacing: -0.01em; }
html[data-lang="en"] .step p { min-height: 96px; }
html[data-lang="en"] .hero-points li { letter-spacing: 0.02em; }
@media (max-width: 720px) {
  html[data-lang="en"] .step p { min-height: 0; }
}

/* ---------- Bilingual legal pages ---------- */
.lang-en { display: none; }
html[data-lang="en"] .lang-zh { display: none; }
html[data-lang="en"] .lang-en { display: block; }

/* ---------- Optional story film ---------- */
.film-frame.has-video { background: #0f1b15; }
.film-frame.has-video .film-placeholder { display: none; }
.film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f1b15;
}
.film-video:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* Play affordance laid over the poster. Hides on first play, returns when the film ends. */
.film-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 20px);
  padding: 0;
  border: 0;
  background:
    radial-gradient(ellipse 46% 34% at 50% 50%, rgba(8, 14, 11, 0.52), rgba(8, 14, 11, 0.2) 64%, rgba(8, 14, 11, 0) 80%),
    linear-gradient(180deg, rgba(8, 14, 11, 0.14), rgba(8, 14, 11, 0.4));
  color: var(--paper-on-dark);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease;
}
.film-play[hidden] { display: none; }
.film-play-badge {
  position: relative;
  display: block;
  width: clamp(58px, 6vw, 76px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 162, 90, 0.65);
  border-radius: 50%;
  background: rgba(15, 27, 21, 0.5);
  backdrop-filter: blur(6px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.film-play-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--paper-on-dark);
}
.film-play-caption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 234, 219, 0.9);
  text-shadow: 0 1px 2px rgba(8, 14, 11, 0.85), 0 2px 14px rgba(8, 14, 11, 0.5);
}
.film-play-time { color: var(--gold-soft); }
.film-play:hover .film-play-badge,
.film-play:focus-visible .film-play-badge {
  transform: scale(1.05);
  border-color: var(--gold-soft);
  background: rgba(201, 162, 90, 0.16);
}
.film-play:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -4px; }

@media (max-width: 720px) {
  .film-play-badge { width: 52px; }
  .film-play-caption { gap: 9px; font-size: 9px; letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  .film-play,
  .film-play-badge { transition: none; }
}

/* ---------- Injected contact email ---------- */
.footer-contact [data-contact-email]:empty { display: none; }
.footer-contact a.footer-link { word-break: break-all; }

/* ---------- Mobile menu visibility at every width where nav is hidden ---------- */
.mobile-menu:not([hidden]) { display: block; }

/* ---------- Home: cover ---------- */

.home-open { padding: 0; }
.home-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(36px, 5vw, 72px);
  min-height: calc(100svh - 76px);
  padding-bottom: clamp(24px, 3vw, 40px);
}
.home-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: clamp(36px, 6vh, 54px);
}
.home-display {
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 1.03;
  margin: 26px 0 0;
  letter-spacing: -0.025em;
}
.home-display .line { display: block; }
.home-display .home-value {
  color: var(--gold-dark);
  letter-spacing: -0.035em;
  font-variant-numeric: lining-nums;
}
.home-lede {
  margin-top: clamp(26px, 3vw, 36px);
  max-width: 34em;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.85;
  color: var(--ink-2);
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: clamp(28px, 3.4vw, 40px);
}
.home-actions .link-arrow { margin-top: 2px; }

/* Home: valuation panel (hero) */

.valuation {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: clamp(36px, 6vh, 54px);
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.valuation-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.valuation-title {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}
.valuation-field { margin-top: 16px; }
.valuation-field > label,
.valuation-label label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.valuation-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.valuation-label output {
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}
.valuation-select {
  position: relative;
  margin-top: 4px;
  border-bottom: 1px solid var(--line-strong);
}
.valuation-select select {
  appearance: none;
  width: 100%;
  padding: 8px 26px 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 15px/1.4 var(--sans);
  cursor: pointer;
}
.valuation-select svg {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 10px;
  height: 7px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.valuation-range {
  appearance: none;
  width: 100%;
  height: 22px;
  margin-top: 6px;
  background: transparent;
  cursor: pointer;
}
.valuation-range::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); }
.valuation-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -6px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 1px rgba(28, 42, 34, 0.24);
}
.valuation-range::-moz-range-track { height: 2px; background: var(--line-strong); }
.valuation-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 1px rgba(28, 42, 34, 0.24);
}
.valuation-range:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 6px; }
.valuation-result {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.valuation-caption {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.valuation-amount {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
  white-space: nowrap;
}
.valuation-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.home-docket {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 24px 32px;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}
.home-docket p {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.home-docket .docket-label {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Hero entrance: copy rises, valuation slides in from the right, docket fades last */

@keyframes home-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes home-slide {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes home-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .home-copy > * {
    animation: home-rise 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  html.js .home-copy > :nth-child(2) { animation-delay: 0.07s; }
  html.js .home-copy > :nth-child(3) { animation-delay: 0.14s; }
  html.js .home-copy > :nth-child(4) { animation-delay: 0.21s; }
  html.js .valuation {
    animation: home-slide 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.18s both;
  }
  html.js .home-docket {
    animation: home-fade 0.6s ease 0.36s both;
  }
}
html[data-lang="en"] .home-display {
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

/* ---------- Home: at a glance ---------- */

.glance {
  border-top: 1px solid var(--line-strong);
  padding-block: clamp(56px, 6.5vw, 92px) clamp(64px, 7vw, 104px);
}
.glance-head { margin-bottom: clamp(32px, 4vw, 52px); }
.glance-head h2 { margin-top: 22px; max-width: 14em; }

/* 首页六件事：两列动态列表 */
.glance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
/* 首页六件事：两列动态列表 */
.glance-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  padding: 30px 28px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}
.glance-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  transition: width 0.45s ease;
}
.glance-item:hover { background: rgba(255, 255, 255, 0.34); }
.glance-item:hover::before { width: 100%; }
.glance-item:hover .glance-no { color: var(--gold-ink); }
.glance-item .glance-no {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  padding-top: 5px;
  transition: color 0.25s ease;
}
.glance-item h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}
.glance-item p {
  grid-column: 2;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}
.glance-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 30px;
}
.glance-note {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Read-only & compliance ---------- */

.readonly-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-left: 0;
  background: rgba(255, 255, 255, 0.28);
}
.readonly-item {
  display: grid;
  gap: 10px;
  padding: 26px 28px;
  border-left: 1px solid var(--line);
}
.readonly-item .mono {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
}
.readonly-item strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.readonly-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.perm-drawers {
  margin-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.perm-drawer { border-bottom: 1px solid var(--line-strong); }
.perm-drawer summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}
.perm-drawer summary::-webkit-details-marker { display: none; }
.perm-drawer summary strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}
.perm-drawer summary .mono {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.perm-drawer[open] summary .mono { color: var(--gold-dark); }
.perm-drawer .plus {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}
.perm-drawer .plus::before,
.perm-drawer .plus::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  transition: transform 0.2s ease;
}
.perm-drawer .plus::before { left: 0; top: 5.5px; width: 12px; height: 1px; }
.perm-drawer .plus::after { left: 5.5px; top: 0; width: 1px; height: 12px; }
.perm-drawer[open] .plus::after { transform: rotate(90deg); }
.perm-drawer ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  padding: 0 4px 24px;
  list-style: none;
}
.perm-drawer li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.perm-drawer li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
}
.readonly-note {
  margin-top: 22px;
  max-width: 72em;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 980px) {
  .home-cover {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: clamp(32px, 5vw, 52px);
    min-height: 0;
    padding-top: clamp(44px, 6vw, 72px);
    padding-bottom: clamp(44px, 6vw, 72px);
  }
  .home-copy { grid-column: 1; grid-row: 1; }
  .valuation { grid-column: 1; grid-row: 2; margin-top: 0; max-width: 560px; }
  .home-docket { grid-column: 1; grid-row: 3; align-self: start; }
  .home-display { font-size: clamp(40px, 7.8vw, 76px); }
  html[data-lang="en"] .home-display { font-size: clamp(30px, 5.6vw, 50px); }
  .readonly-strip { grid-template-columns: minmax(0, 1fr); }
  .readonly-item { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .readonly-item:first-child { border-top: 0; }
  .perm-drawer ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .home-docket { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 760px) {
  .home-display { font-size: clamp(28px, 8vw, 38px); }
  html[data-lang="en"] .home-display { font-size: clamp(26px, 7.4vw, 34px); }
  .home-lede { font-size: 15.5px; line-height: 1.8; }
  .valuation { padding: 20px 18px; max-width: none; }
  .valuation-title { font-size: 20px; }
  .valuation-amount { font-size: 28px; }
  .glance-list { grid-template-columns: minmax(0, 1fr); border-left: 0; }
  .glance-item { padding: 22px 0; border-right: 0; }
  .glance-item h3 { font-size: 20px; }
  .glance-cta { margin-top: 24px; }
  .perm-drawer summary { gap: 14px; }
  .perm-drawer summary strong { font-size: 19px; }
  .readonly-item strong { font-size: 19px; }
}

/* ---------- Home: story film placeholder (rebuilt 2026-11-19) ---------- */

.film-solo .film-frame { border-color: rgba(241, 234, 219, 0.18); }
.film-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 38px);
  background:
    radial-gradient(120% 90% at 78% 34%, rgba(201, 162, 90, 0.12), transparent 62%),
    radial-gradient(90% 80% at 12% 88%, rgba(58, 110, 82, 0.2), transparent 66%),
    #0f1b15;
}
.film-slate {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(241, 234, 219, 0.14);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(241, 234, 219, 0.5);
}
.film-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(22px, 4vw, 56px);
}
.film-caption { align-self: center; max-width: 26em; }
.film-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}
.film-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 4px rgba(201, 162, 90, 0.14);
}
.film-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper-on-dark);
}
.film-note {
  margin-top: 18px;
  max-width: 24em;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(241, 234, 219, 0.62);
}
.film-chapters {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 300px;
  border-top: 1px solid rgba(241, 234, 219, 0.16);
}
.film-chapters li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(241, 234, 219, 0.1);
}
.film-chapters span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}
.film-chapters em {
  font-style: normal;
  font-family: var(--serif);
  font-size: 21px;
  color: rgba(241, 234, 219, 0.88);
}
.film-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(241, 234, 219, 0.14);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(241, 234, 219, 0.45);
}

@media (max-width: 920px) {
  .film-stage { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 26px 22px; }
  .film-chapters {
    justify-self: stretch;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    border-top: 1px solid rgba(241, 234, 219, 0.16);
  }
  .film-chapters li:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 720px) {
  .film-solo .film-frame { aspect-ratio: auto; }
  .film-solo .film-frame.has-video { aspect-ratio: 16 / 9; }
  .film-placeholder { position: static; padding: 18px; }
  .film-slate { padding-bottom: 12px; font-size: 9px; letter-spacing: 0.12em; }
  .film-title { margin-top: 14px; font-size: clamp(34px, 9vw, 46px); }
  .film-note { margin-top: 12px; font-size: 13px; line-height: 1.7; }
  .film-stage { gap: 20px; padding-block: 22px 16px; }
  .film-chapters { column-gap: 18px; }
  .film-chapters li { padding: 10px 0; }
  .film-chapters em { font-size: 18px; }
  .film-foot { padding-top: 12px; font-size: 8.5px; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .film-placeholder { transition: none; }
}

/* ==========================================================================
   Case media — dimensional intake cards (2026-11 review)
   Depth: stacked backing sheet, warm stage light, pointer-tracked tilt.
   ========================================================================== */

.case-media {
  perspective: 1200px;
  perspective-origin: 52% 44%;
}

/* second sheet underneath, offset like a copy of the page */
.case-media::before {
  content: "";
  position: absolute;
  inset: 16px 12px -18px 30px;
  background: linear-gradient(158deg, #f4ead4, #e3d4b6);
  border: 1px solid rgba(138, 101, 40, 0.24);
  box-shadow: 0 20px 32px -26px rgba(23, 34, 29, 0.42);
  transform: translate(2px, 3px) rotate(0.8deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  pointer-events: none;
}

/* warm stage light behind the card */
.case-media::after {
  content: "";
  position: absolute;
  inset: 18% 6% -6% 8%;
  background: radial-gradient(56% 52% at 56% 50%, rgba(169, 131, 63, 0.26), rgba(44, 90, 68, 0.16) 46%, rgba(44, 90, 68, 0) 74%);
  filter: blur(26px);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.case-media > .mock {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 2px solid var(--gold-dark);
  border-radius: 3px;
  transform-style: preserve-3d;
  --shine-x: 50%;
  --shine-y: 34%;
  box-shadow:
    0 1px 0 rgba(28, 42, 34, 0.06),
    0 2px 4px -2px rgba(23, 34, 29, 0.18),
    0 14px 24px -18px rgba(23, 34, 29, 0.42),
    0 34px 54px -44px rgba(23, 34, 29, 0.55),
    -16px 26px 44px -40px rgba(23, 34, 29, 0.4);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: transform;
}

/* pointer-tracked specular sheen */
.case-media > .mock::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(250px circle at var(--shine-x) var(--shine-y), rgba(255, 252, 243, 0.9), rgba(255, 252, 243, 0) 68%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.42s var(--ease);
}

@media (hover: hover) {
  .case-media:hover > .mock::after,
  .case-media.is-tilting > .mock::after { opacity: 1; }

  .case-media.is-tilting::before {
    transform: translate(10px, 14px) rotate(1.5deg);
    box-shadow: 0 26px 40px -28px rgba(23, 34, 29, 0.5);
  }

  .case-media.is-tilting > .mock {
    box-shadow:
      0 1px 0 rgba(28, 42, 34, 0.05),
      0 12px 20px -14px rgba(28, 42, 34, 0.34),
      0 36px 48px -34px rgba(23, 34, 29, 0.6),
      -24px 42px 64px -54px rgba(23, 34, 29, 0.5);
  }
}

@media (max-width: 920px) {
  .case-media { perspective: none; }
  .case-media::before { inset: 10px 6px -12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-media > .mock,
  .case-media > .mock::after,
  .case-media::before,
  .case-media::after { transition: none; }
}

/* ==========================================================================
   Case media — ledger focus & PCB deck (2026-11 review, round 2)
   ========================================================================== */

/* --- law card: ledger rows, one line in focus at a time --- */

.mock-ledger .mock-body { padding: 12px 16px 14px; }
.mock-ledger .inv-table { border-left: 1px solid rgba(138, 101, 40, 0.24); }
.mock-ledger .inv-table th,
.mock-ledger .inv-table td { padding: 10px 9px; }
.mock-ledger .inv-table th:nth-child(2),
.mock-ledger .inv-table td:nth-child(2),
.mock-ledger .inv-table th:nth-child(3),
.mock-ledger .inv-table td:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mock-ledger .inv-table td {
  transition:
    opacity 0.32s var(--ease),
    background-color 0.32s var(--ease),
    color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}
.mock-ledger .inv-table tbody tr:last-child td { border-bottom: 0; }
.mock-ledger .inv-legend {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

@media (hover: hover) and (pointer: fine) {
  .mock-ledger .inv-table tbody:has(tr:hover) tr:not(:hover) td { opacity: 0.3; }

  .mock-ledger .inv-table tbody tr:hover td {
    background-color: rgba(169, 131, 63, 0.1);
  }
  .mock-ledger .inv-table tbody tr:hover td:first-child {
    box-shadow: inset 2px 0 0 var(--gold-dark);
    color: var(--ink);
  }
  .mock-ledger .inv-table tbody tr:hover td:last-child {
    box-shadow: inset -2px 0 0 rgba(138, 101, 40, 0.45);
  }
  .mock-ledger .inv-table tbody tr:hover .tag-cell { opacity: 1; }
}

/* --- PCB card: three-render deck --- */

.pcb-body { padding: 12px; }
.pcb-deck { display: grid; gap: 12px; }
.pcb-stage {
  position: relative;
  aspect-ratio: 640 / 420;
  border: 1px solid var(--line);
  background:
    radial-gradient(118% 88% at 50% 8%, rgba(255, 252, 243, 0.96), rgba(243, 237, 225, 0.66) 56%, rgba(232, 222, 202, 0.92));
  overflow: hidden;
}
.pcb-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.48s var(--ease), transform 0.72s var(--ease);
  pointer-events: none;
}
.pcb-panel.is-active { opacity: 1; transform: none; }
.pcb-panel img { width: 100%; height: 100%; display: block; object-fit: contain; }

.pcb-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 6px 2px;
}
.pcb-tab {
  flex: 0 0 auto;
  width: 31.5%;
  display: grid;
  gap: 7px;
  padding: 7px 9px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 18px -16px rgba(23, 34, 29, 0.55);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.42s var(--ease),
    box-shadow 0.42s var(--ease),
    border-color 0.42s var(--ease),
    background-color 0.42s var(--ease);
}
.pcb-tab:nth-child(1) { transform: rotate(-1.4deg) translateY(1px); z-index: 1; }
.pcb-tab:nth-child(2) { transform: rotate(0.5deg) translateY(-1px); z-index: 2; }
.pcb-tab:nth-child(3) { transform: rotate(-0.7deg) translateY(1px); z-index: 1; }
.pcb-tab.is-active {
  z-index: 5;
  transform: rotate(0deg) translateY(-6px);
  background: #fffdf6;
  border-color: rgba(138, 101, 40, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 20px 30px -24px rgba(23, 34, 29, 0.6);
}
.pcb-thumb {
  display: block;
  height: 58px;
  border: 1px solid rgba(28, 42, 34, 0.08);
  background: #f7f1e4;
  overflow: hidden;
}
.pcb-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 44%; opacity: 0.8; }
.pcb-tab.is-active .pcb-thumb img { opacity: 1; }
.pcb-tab-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcb-tab.is-active .pcb-tab-label { color: var(--ink); }
.pcb-tab:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .pcb-tab:hover { transform: rotate(0deg) translateY(-4px); z-index: 4; }
}

@media (max-width: 640px) {
  .pcb-thumb { height: 44px; }
  .pcb-tab { width: 32%; padding: 6px 7px 7px; }
  .case-note { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcb-panel, .pcb-tab, .mock-ledger .inv-table td { transition: none; }
}


/* ==========================================================================
   Case media — ledger rows across the other cards (2026-11 review, round 3)
   ========================================================================== */

/* --- coding card: file tree and commit log lead the eye one line at a time --- */

.mock-ledger-code .mock-body { padding: 12px 16px 14px; }
.mock-ledger-code .repo-tree {
  margin: 0 0 14px;
  padding: 0;
  border-left: 1px solid rgba(138, 101, 40, 0.24);
}
.mock-ledger-code .repo-line {
  display: block;
  padding: 2px 9px 2px 11px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre;
  transition:
    opacity 0.32s var(--ease),
    background-color 0.32s var(--ease),
    color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}
.mock-ledger-code .commit-list {
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}
.mock-ledger-code .commit {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  transition:
    opacity 0.32s var(--ease),
    background-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}
.mock-ledger-code .commit:last-child { border-bottom: 0; }

@media (hover: hover) and (pointer: fine) {
  .mock-ledger-code .repo-tree:has(.repo-line:hover) .repo-line:not(:hover),
  .mock-ledger-code .commit-list:has(.commit:hover) .commit:not(:hover) {
    opacity: 0.3;
  }
  .mock-ledger-code .repo-line:hover,
  .mock-ledger-code .commit:hover {
    background-color: rgba(169, 131, 63, 0.1);
    color: var(--ink);
    box-shadow:
      inset 2px 0 0 var(--gold-dark),
      inset -2px 0 0 rgba(138, 101, 40, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock-ledger-code .repo-line,
  .mock-ledger-code .commit { transition: none; }
}


/* ==========================================================================
   How it works — intake flow diagram (2026-11 review)
   A five-stop pipeline: unsorted material -> four steps -> confirmed list.
   Steps light up one at a time; the panel below carries the boundary copy.
   ========================================================================== */

.flow {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: clamp(20px, 2.8vw, 34px) clamp(20px, 2.8vw, 36px) clamp(18px, 2.2vw, 26px);
}

.flow-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.flow-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-dark);
}

.flow-state {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.flow-state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 131, 63, 0.13);
  animation: flowPulse 2.6s ease-in-out infinite;
}
@keyframes flowPulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 0 3px rgba(169, 131, 63, 0.1); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(169, 131, 63, 0.04); }
}

/* Board: source | track | result */

.flow-board-body {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 216px;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 42px) 0 clamp(22px, 2.8vw, 32px);
}

.flow-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Unsorted material */

.flow-files {
  position: relative;
  height: 186px;
}
.flow-file {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 6px 14px -12px rgba(28, 42, 34, 0.6);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
  touch-action: none;
  cursor: grab;
  transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) rotate(var(--r, 0deg));
}
.flow-file::before {
  content: "";
  flex: none;
  width: 7px;
  height: 9px;
  border: 1px solid currentColor;
  opacity: 0.45;
  background: linear-gradient(180deg, transparent 55%, currentColor 55%, currentColor 72%, transparent 72%);
}
.flow-file:nth-child(1) { top: 0; left: 0; --r: -3deg; }
.flow-file:nth-child(2) { top: 28px; left: 30px; --r: 2.5deg; }
.flow-file:nth-child(3) { top: 58px; left: 4px; --r: -1.5deg; }
.flow-file:nth-child(4) { top: 90px; left: 36px; --r: 3deg; }
.flow-file:nth-child(5) { top: 122px; left: 8px; --r: -2deg; }
.flow-file:nth-child(6) { top: 154px; left: 42px; --r: 1.5deg; }

.flow-source-note {
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* The rail and its four stops */

.flow-track {
  position: relative;
}
.flow-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background-color: var(--line-strong);
  background-image: linear-gradient(
    90deg,
    rgba(217, 191, 124, 0) 0%,
    rgba(217, 191, 124, 0.92) 50%,
    rgba(169, 131, 63, 0) 100%
  );
  background-repeat: no-repeat;
  background-size: 24% 2px;
  background-position: -24% 0;
  box-shadow: 0 0 5px rgba(217, 191, 124, 0.28);
}
/* The sweep is driven from JS so each glint starts exactly when the step changes. */
.flow-rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(169, 131, 63, 0.5), var(--gold));
  transition: width 0.6s var(--ease), height 0.6s var(--ease);
}

.flow-stops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.flow-stop {
  position: relative;
  padding: 26px 10px 0 0;
  text-align: left;
}
.flow-stop-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.flow-stop.is-done .flow-stop-dot {
  background: var(--gold);
  border-color: var(--gold-dark);
}
.flow-stop.is-active .flow-stop-dot {
  background: var(--gold);
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(169, 131, 63, 0.16);
}
.flow-stop.is-active .flow-stop-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: flowRipple 0.9s var(--ease) forwards;
}
@keyframes flowRipple {
  from { opacity: 0.55; transform: scale(0.55); }
  to { opacity: 0; transform: scale(1.5); }
}

.flow-stop-no {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.24s var(--ease);
}
.flow-stop-name {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-2);
  transition: color 0.24s var(--ease);
}
.flow-stop:hover .flow-stop-name,
.flow-stop:hover .flow-stop-no { color: var(--forest); }
.flow-stop.is-active .flow-stop-no { color: var(--gold-dark); }
.flow-stop.is-active .flow-stop-name { color: var(--forest); }

/* Confirmed result */

.flow-out-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 16px 12px;
  opacity: 0.48;
  filter: saturate(0.35);
  transform: translateY(4px);
  transition: opacity 0.55s var(--ease), filter 0.55s var(--ease),
    transform 0.55s var(--ease), border-color 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}
.flow-out-card.is-live {
  opacity: 1;
  filter: none;
  transform: none;
  border-color: rgba(138, 101, 40, 0.45);
  box-shadow: 0 12px 26px -24px rgba(28, 42, 34, 0.7);
}
.flow-out-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
}
.flow-out-title {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.flow-out-rows {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.flow-out-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.flow-out-rows li .mono {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.flow-out-foot {
  margin-top: 11px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Boundary copy for the active step */

.flow-panels {
  display: grid;
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 2.4vw, 28px);
}
.flow-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease),
    visibility 0s linear 0.42s;
}
.flow-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.42s var(--ease) 0.04s, transform 0.42s var(--ease) 0.04s,
    visibility 0s linear 0s;
}
.flow-panel-kicker {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.flow-panel h3 {
  margin-top: 9px;
  font-size: 24px;
  line-height: 1.3;
}
.flow-panel-line {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 46em;
}
/* Boundary readout: concrete values for the step, set like an instrument panel */

.flow-facts {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.flow-facts-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
}
.flow-facts-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  transform: rotate(45deg);
}
.flow-fact {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.flow-fact dt {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.flow-fact dd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.flow-fact + .flow-fact::before {
  content: "";
  align-self: center;
  width: 1px;
  height: 10px;
  margin-right: 2px;
  background: var(--line-strong);
}
.flow-fact dd::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(169, 131, 63, 0.12);
}
.flow-panel.is-active .flow-fact { animation: flowFactIn 0.5s var(--ease) both; }
.flow-panel.is-active .flow-fact:nth-child(2) { animation-delay: 0.07s; }
.flow-panel.is-active .flow-fact:nth-child(3) { animation-delay: 0.14s; }
@keyframes flowFactIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.flow-facts::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -30%;
  width: 26%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(169, 131, 63, 0) 0%,
    rgba(169, 131, 63, 0.85) 50%,
    rgba(169, 131, 63, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
}
.flow-panel.is-active .flow-facts::after { animation: flowFactsSweep 1.4s var(--ease) 0.1s both; }
@keyframes flowFactsSweep {
  0% { left: -30%; opacity: 0; }
  18% { opacity: 0.95; }
  80% { opacity: 0.95; }
  100% { left: 104%; opacity: 0; }
}

.flow-foot {
  margin-top: clamp(16px, 2vw, 22px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .flow-board-body { grid-template-columns: 184px minmax(0, 1fr) 200px; }
  .flow-file { font-size: 9px; }
}

@media (max-width: 920px) {
  .flow-board-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }
  .flow-files {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .flow-file {
    position: static;
    transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0);
  }
  .flow-source-note { margin-top: 10px; }
  .flow-track { padding-left: 20px; }
  .flow-rail {
    left: 5px;
    right: auto;
    top: 11px;
    bottom: 11px;
    width: 1px;
    height: auto;
  }
  .flow-rail-fill {
    width: 100%;
    height: 0;
  }
  .flow-stops { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-stop {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }
  .flow-stop:first-child { border-top: 0; }
  .flow-stop-dot { top: 17px; left: -20px; }
  .flow-stop-name { display: inline-block; margin-top: 0; margin-left: 10px; }
  .flow-panel { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flow-panel h3 { font-size: 22px; }
}

@media (max-width: 640px) {
  .flow { padding: 18px 16px 16px; }
  .flow-board-head { gap: 10px; padding-bottom: 12px; }
  .flow-kicker {
    white-space: nowrap;
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .flow-kicker::before { width: 14px; }
  .flow-state {
    white-space: nowrap;
    font-size: 8.5px;
    letter-spacing: 0.06em;
    gap: 7px;
  }
  .flow-panel-line { font-size: 14px; }
  .flow-out-card { padding: 12px 14px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-state-dot { animation: none; }
  .flow-stop.is-active .flow-stop-dot::after { animation: none; }
  .flow-panel.is-active .flow-fact,
  .flow-panel.is-active .flow-facts::after { animation: none; }
  .flow-rail-fill { transition: none; }
}


/* How it works — data flow details (2026-11 review, round 2) */

.flow-files-wrap {
  position: relative;
}

.flow-scan {
  position: absolute;
  inset: -11px -9px;
  border: 1px dashed rgba(169, 131, 63, 0.5);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.flow[data-phase="2"] .flow-scan,
.flow[data-phase="3"] .flow-scan {
  opacity: 1;
  transform: none;
}
.flow-scan-tag {
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 0 6px;
  background: var(--surface);
  color: var(--gold-dark);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 15px;
}

.flow-trace {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(6px, 1vw, 10px);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-trace-label {
  padding-right: 14px;
  border-right: 1px solid var(--line-strong);
  color: var(--gold-dark);
  letter-spacing: 0.18em;
}
.flow-trace-text {
  margin-right: auto;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flow-trace-guard {
  color: var(--ink-2);
  white-space: nowrap;
}
.flow-trace-guard::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold-dark);
  vertical-align: 1px;
}

/* The rail acts as a data pipe: moving ticks inside the filled part,
   a bright head at the current point, and dashed feeders into the columns. */

.flow-rail-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 249, 232, 0.95) 0 3px,
    transparent 3px 14px
  );
  opacity: 0.55;
  animation: flowRailRun 1.4s linear infinite;
}
.flow-rail-fill::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #f8ecce;
  box-shadow: 0 0 10px 2px rgba(206, 168, 96, 0.55);
}
@keyframes flowRailRun {
  from { background-position: 0 0; }
  to { background-position: 14px 0; }
}

@media (min-width: 921px) {
  .flow-track::before,
  .flow-track::after {
    content: "";
    position: absolute;
    top: 5px;
    width: clamp(20px, 3vw, 44px);
    height: 1px;
    background-image: repeating-linear-gradient(
      90deg,
      rgba(138, 101, 40, 0.48) 0 4px,
      transparent 4px 10px
    );
    pointer-events: none;
  }
  .flow-track::before {
    left: calc(-1 * clamp(20px, 3vw, 44px));
    animation: flowFeedIn 1.2s linear infinite;
  }
  .flow-track::after {
    right: calc(-1 * clamp(20px, 3vw, 44px));
    animation: flowFeedOut 1.2s linear infinite;
  }
  @keyframes flowFeedIn {
    from { background-position: -10px 0; }
    to { background-position: 0 0; }
  }
  @keyframes flowFeedOut {
    from { background-position: 0 0; }
    to { background-position: 10px 0; }
  }
}

@media (max-width: 920px) {
  .flow-rail-fill::before {
    background-image: repeating-linear-gradient(
      180deg,
      rgba(255, 249, 232, 0.95) 0 3px,
      transparent 3px 14px
    );
    animation-name: flowRailRunY;
  }
  .flow-rail-fill::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -3px;
    margin: 0 0 0 -3.5px;
  }
  @keyframes flowRailRunY {
    from { background-position: 0 0; }
    to { background-position: 0 14px; }
  }
  .flow-trace {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
  }
  .flow-trace-text { white-space: normal; }
  .flow-trace-guard { margin-left: auto; }
  .flow-scan { inset: -8px -7px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-rail-fill::before { animation: none; opacity: 0.35; }
  .flow-rail-fill::after { box-shadow: none; }
  .flow-track::before,
  .flow-track::after { animation: none; }
  .flow-scan { transition: none; }
}


/* How it works — ambient data flow, pause state (2026-11 review, round 3) */

.flow-board-body { position: relative; }

.flow-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.flow-particle {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(138, 101, 40, 0.96) 0% 34%,
    rgba(201, 169, 106, 0.85) 58%,
    rgba(217, 191, 124, 0) 100%
  );
  box-shadow: 0 0 4px rgba(169, 131, 63, 0.42);
  opacity: 0;
  will-change: transform, opacity;
}
.flow-particle.is-tick {
  border-radius: 1px;
  background: rgba(138, 101, 40, 0.9);
  box-shadow: 0 0 5px 1px rgba(169, 131, 63, 0.4);
}

/* Footer: quiet auto-demo state + explicit resume after a click */

.flow-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.flow-foot-text {
  margin-right: auto;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.flow-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.flow-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(169, 131, 63, 0.12);
}
.flow.is-paused .flow-status { color: var(--gold-dark); }
.flow.is-locked .flow-status { color: var(--forest); }

.flow-resume {
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid rgba(169, 131, 63, 0.55);
  background: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  cursor: pointer;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.flow-resume[hidden] { display: none; }
.flow-resume:hover {
  color: var(--forest);
  border-color: var(--forest);
}
.flow-resume:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Continuous ambient motion — the board never sits still while auto demo runs */

.flow-file { animation: flowFileFloat 7s ease-in-out infinite; }
.flow-file:nth-child(2) { animation-delay: -1.1s; }
.flow-file:nth-child(3) { animation-delay: -2.3s; }
.flow-file:nth-child(4) { animation-delay: -3.2s; }
.flow-file:nth-child(5) { animation-delay: -4.4s; }
.flow-file:nth-child(6) { animation-delay: -5.3s; }

@keyframes flowFileFloat {
  0%, 100% {
    transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) rotate(var(--r, 0deg))
      translateY(0);
  }
  50% {
    transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) rotate(var(--r, 0deg))
      translateY(-2px);
  }
}

.flow-stop.is-active .flow-stop-dot { animation: flowDotBreathe 2.8s ease-in-out infinite; }
@keyframes flowDotBreathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(169, 131, 63, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(169, 131, 63, 0.05); }
}

.flow-out-card.is-live { animation: flowOutBreathe 3.6s ease-in-out infinite; }
@keyframes flowOutBreathe {
  0%, 100% { box-shadow: 0 12px 26px -24px rgba(28, 42, 34, 0.7); }
  50% {
    box-shadow: 0 14px 30px -22px rgba(28, 42, 34, 0.62),
      0 0 0 1px rgba(169, 131, 63, 0.18);
  }
}

.flow-status::before { animation: flowStatusBlink 2.4s ease-in-out infinite; }
@keyframes flowStatusBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(169, 131, 63, 0.08); }
}

.flow-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    180deg,
    rgba(201, 169, 106, 0) 0%,
    rgba(201, 169, 106, 0.16) 42%,
    rgba(217, 191, 124, 0.55) 50%,
    rgba(201, 169, 106, 0.16) 58%,
    rgba(201, 169, 106, 0) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 240%;
  background-position: 0 -160%;
  opacity: 0;
  pointer-events: none;
}
.flow[data-phase="2"] .flow-scan::after,
.flow[data-phase="3"] .flow-scan::after {
  animation: flowScanSweep 3.4s ease-in-out infinite;
}
@keyframes flowScanSweep {
  0% { background-position: 0 -160%; opacity: 0; }
  12% { opacity: 0.9; }
  50% { opacity: 0.9; }
  88% { opacity: 0.9; }
  100% { background-position: 0 160%; opacity: 0; }
}

/* Freeze every ambient animation the moment the visitor stops on the board */

.flow.is-paused .flow-file,
.flow.is-paused .flow-stop.is-active .flow-stop-dot,
.flow.is-paused .flow-out-card.is-live,
.flow.is-paused .flow-status::before,
.flow.is-paused .flow-state-dot,
.flow.is-paused .flow-rail-fill::before,
.flow.is-paused .flow-track::before,
.flow.is-paused .flow-track::after,
.flow.is-paused .flow-scan::after {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .flow-foot { gap: 6px 12px; }
  .flow-foot-text { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-file,
  .flow-stop.is-active .flow-stop-dot,
  .flow-out-card.is-live,
  .flow-status::before,
  .flow-scan::after {
    animation: none;
  }
  .flow-particle { display: none; }
  .flow-resume { transition: none; }
}

/* When stopped, the active boundary copy reads at full contrast */

.flow.is-paused .flow-panel.is-active .flow-panel-line { color: var(--ink); }

/* Rail glint is triggered per step from JS, so nothing to freeze here. */

@media (max-width: 920px) {
  .flow-rail {
    background-image: linear-gradient(
      180deg,
      rgba(217, 191, 124, 0) 0%,
      rgba(217, 191, 124, 0.92) 50%,
      rgba(169, 131, 63, 0) 100%
    );
    background-size: 2px 20%;
    background-position: 0 -20%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-rail { background-image: none; box-shadow: none; }
}

/* Boundary readout on small screens: tighter rows, still one line per value */

@media (max-width: 640px) {
  .flow-facts {
    gap: 6px 18px;
    margin-top: 14px;
    padding-top: 10px;
  }
}


/* ==========================================================================
   How it works — the intake console (2026-11 review, round 4)
   The flow becomes a dark instrument panel: parchment documents and a printed
   manifest sit on deep forest, a gold signal path carries the data, and each
   step changes the console state (scan beam, manifest seal, live readouts).
   ========================================================================== */

.flow {
  /* Local palette: the panel inverts the page, so every token inside is light. */
  --ink: #f2ecdd;
  --ink-2: #ccd4c8;
  --muted: #93a497;
  --line: rgba(242, 236, 221, 0.13);
  --line-strong: rgba(242, 236, 221, 0.28);
  --surface: #10281e;
  --surface-2: #0a1c15;
  --gold: #c9a86a;
  --gold-dark: #dcbd82;
  --gold-soft: #ecd3a0;
  --forest: #f0e7d3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.32);
  background:
    radial-gradient(120% 90% at 10% -14%, rgba(220, 189, 130, 0.18) 0%, rgba(220, 189, 130, 0) 56%),
    radial-gradient(90% 84% at 94% 112%, rgba(84, 136, 110, 0.3) 0%, rgba(84, 136, 110, 0) 62%),
    linear-gradient(156deg, #18392c 0%, #10271e 48%, #091a13 100%);
  box-shadow:
    0 48px 96px -58px rgba(5, 17, 12, 0.95),
    inset 0 1px 0 rgba(242, 236, 221, 0.09);
  color: var(--ink);
}

/* Registration frame: hairline inset border plus gold corner ticks */
.flow::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(201, 168, 106, 0.1);
  background-image:
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    linear-gradient(var(--gold-soft), var(--gold-soft));
  background-repeat: no-repeat;
  background-size: 20px 1px, 1px 20px, 20px 1px, 1px 20px, 20px 1px, 1px 20px, 20px 1px, 1px 20px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  opacity: 0.6;
}

.flow > * {
  position: relative;
  z-index: 1;
}

/* Header */

.flow-board-head { border-bottom-color: var(--line); }

.flow-kicker {
  color: rgba(242, 236, 221, 0.62);
  letter-spacing: 0.2em;
}
.flow-kicker::before {
  background: linear-gradient(90deg, var(--gold-soft), rgba(236, 211, 160, 0.1));
}

.flow-state { color: var(--ink-2); }

.flow-state-dot {
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(236, 211, 160, 0.14), 0 0 12px rgba(236, 211, 160, 0.5);
}

/* The stage: dotted plotting grid and a warm pool of light under the rail */

.flow-board-body {
  background-image: radial-gradient(rgba(242, 236, 221, 0.075) 1px, transparent 1.4px);
  background-size: 24px 24px;
  background-position: -12px -12px;
}
.flow-board-body::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(44% 62% at 60% 48%, rgba(236, 211, 160, 0.12), transparent 72%),
    radial-gradient(32% 44% at 6% 76%, rgba(236, 211, 160, 0.08), transparent 72%);
}
.flow-board-body > .flow-source,
.flow-board-body > .flow-track,
.flow-board-body > .flow-out {
  position: relative;
  z-index: 1;
}

/* The beam sweeps the stage while the agent inventories the material */
.flow-beam {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  background: linear-gradient(
    180deg,
    rgba(236, 211, 160, 0) 0%,
    rgba(236, 211, 160, 0.04) 38%,
    rgba(236, 211, 160, 0.2) 49%,
    rgba(236, 211, 160, 0.04) 60%,
    rgba(236, 211, 160, 0) 100%
  );
}
.flow[data-phase="2"] .flow-beam {
  animation: flowBeamSweep 3.4s cubic-bezier(0.45, 0, 0.25, 1) 0.2s 2;
}
@keyframes flowBeamSweep {
  0% { opacity: 0; transform: translateY(-100%); }
  10% { opacity: 1; }
  78% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(100%); }
}

/* Supplier material: parchment sheets floating on the dark panel */

.flow-source { position: relative; }
.flow-source::before {
  content: "";
  position: absolute;
  left: -22px;
  right: -14px;
  top: 26px;
  height: 176px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(52% 52% at 50% 50%, rgba(236, 211, 160, 0.16), transparent 72%);
}
.flow-source > * { position: relative; z-index: 1; }

.flow-file {
  background: linear-gradient(180deg, #f8f1e2 0%, #eee3cd 100%);
  border-color: rgba(201, 168, 106, 0.46);
  color: #27362c;
  box-shadow:
    0 16px 28px -18px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.flow-file::before { border-color: rgba(39, 54, 44, 0.5); }

.flow-source-note { color: rgba(242, 236, 221, 0.42); }

.flow-scan { border-color: rgba(236, 211, 160, 0.55); }
.flow-scan-tag {
  background: #0d2119;
  color: var(--gold-soft);
  box-shadow: 0 0 0 1px rgba(201, 168, 106, 0.28);
}
.flow-scan::after {
  background-image: linear-gradient(
    180deg,
    rgba(236, 211, 160, 0) 0%,
    rgba(236, 211, 160, 0.12) 42%,
    rgba(255, 247, 224, 0.5) 50%,
    rgba(236, 211, 160, 0.12) 58%,
    rgba(236, 211, 160, 0) 100%
  );
}

/* The signal path */

.flow-rail {
  background-color: rgba(242, 236, 221, 0.18);
  background-image: linear-gradient(
    90deg,
    rgba(236, 211, 160, 0) 0%,
    rgba(255, 247, 224, 0.95) 50%,
    rgba(236, 211, 160, 0) 100%
  );
  box-shadow: 0 0 12px rgba(236, 211, 160, 0.35);
}
.flow-rail-fill {
  background: linear-gradient(90deg, rgba(201, 168, 106, 0.22), rgba(232, 203, 146, 0.8));
  box-shadow: 0 0 9px rgba(236, 211, 160, 0.4);
}

.flow-stop-no { color: rgba(242, 236, 221, 0.44); }
.flow-stop-name { font-size: 19px; color: rgba(242, 236, 221, 0.66); }
.flow-stop:hover .flow-stop-name,
.flow-stop:hover .flow-stop-no { color: var(--ink); }
.flow-stop.is-active .flow-stop-no { color: var(--gold-soft); }
.flow-stop.is-active .flow-stop-name { color: var(--ink); }

.flow-stop.is-active .flow-stop-name::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 9px;
  background: linear-gradient(90deg, var(--gold-soft), rgba(236, 211, 160, 0));
}

.flow-stop-dot {
  border-color: rgba(242, 236, 221, 0.34);
  background: #10281e;
}
.flow-stop.is-done .flow-stop-dot,
.flow-stop.is-active .flow-stop-dot {
  background: linear-gradient(180deg, #f4e2b8, #d3ac6d);
  border-color: rgba(255, 244, 214, 0.85);
}
.flow-stop.is-active .flow-stop-dot::after { border-color: var(--gold-soft); }
@keyframes flowDotBreathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(236, 211, 160, 0.2), 0 0 14px rgba(236, 211, 160, 0.4); }
  50% { box-shadow: 0 0 0 9px rgba(236, 211, 160, 0.04), 0 0 22px rgba(236, 211, 160, 0.6); }
}

@media (min-width: 921px) {
  .flow-track::before,
  .flow-track::after {
    background-image: repeating-linear-gradient(
      90deg,
      rgba(236, 211, 160, 0.4) 0 4px,
      transparent 4px 10px
    );
  }
}

/* Confirmed result: a printed sheet resting on the dark panel */

.flow-out-card {
  --ink: #1c2a22;
  --ink-2: #46564b;
  --muted: #778077;
  --line: rgba(28, 42, 34, 0.13);
  --line-strong: rgba(28, 42, 34, 0.26);
  --gold: #a9833f;
  --gold-dark: #8a6528;
  position: relative;
  background: linear-gradient(180deg, #f9f3e6 0%, #f0e6d2 100%);
  border: 1px solid rgba(201, 168, 106, 0.5);
  box-shadow:
    0 30px 50px -34px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transform: rotate(-0.6deg) translateY(5px);
}
.flow-out-card.is-live {
  border-color: rgba(236, 211, 160, 0.72);
  box-shadow:
    0 34px 56px -32px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(236, 211, 160, 0.16);
  transform: rotate(0deg) translateY(0);
}
.flow-out-title { font-size: 17px; }
.flow-out-rows li .mono { color: #8b8f7f; }

.flow-out-seal {
  position: absolute;
  right: -9px;
  bottom: -13px;
  z-index: 3;
  padding: 4px 8px;
  border: 1px solid rgba(138, 101, 40, 0.55);
  border-radius: 2px;
  font-size: 6.8px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  white-space: nowrap;
  color: #8a6528;
  background: rgba(249, 243, 230, 0.96);
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transform-origin: 100% 100%;
}
.flow[data-phase="3"] .flow-out-seal {
  animation: flowSealStamp 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) 0.28s both;
}
@keyframes flowSealStamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.7); }
  55% { opacity: 1; transform: rotate(-7deg) scale(0.94); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}

.flow-out-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    180deg,
    rgba(169, 131, 63, 0) 0%,
    rgba(169, 131, 63, 0.1) 44%,
    rgba(201, 169, 106, 0.34) 50%,
    rgba(169, 131, 63, 0.1) 56%,
    rgba(169, 131, 63, 0) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 220%;
  background-position: 0 -160%;
  opacity: 0;
}
.flow[data-phase="2"] .flow-out-card::after {
  animation: flowCardScan 2.4s ease-in-out infinite;
}
@keyframes flowCardScan {
  0% { background-position: 0 -160%; opacity: 0; }
  14% { opacity: 1; }
  84% { opacity: 1; }
  100% { background-position: 0 160%; opacity: 0; }
}

@keyframes flowOutBreathe {
  0%, 100% {
    box-shadow: 0 30px 50px -34px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(236, 211, 160, 0.12);
  }
  50% {
    box-shadow: 0 34px 56px -30px rgba(0, 0, 0, 0.94), 0 0 0 1px rgba(236, 211, 160, 0.3),
      0 0 26px rgba(236, 211, 160, 0.16);
  }
}

/* Ruler ticks under the four stops: a quiet instrument detail */
.flow-stops { position: relative; }
.flow-stops::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 5px;
  pointer-events: none;
  opacity: 0.45;
  background: repeating-linear-gradient(
    90deg,
    rgba(236, 211, 160, 0.35) 0 1px,
    transparent 1px 14px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
@media (max-width: 920px) {
  .flow-stops::after { display: none; }
}

/* Data trace bar */

.flow-trace { border-top-color: var(--line); color: rgba(242, 236, 221, 0.45); }
.flow-trace-label { color: var(--gold-soft); border-right-color: var(--line-strong); }
.flow-trace-text { color: var(--ink-2); }
.flow-trace-guard { color: var(--gold-soft); }
.flow-trace-guard::before {
  background: var(--gold-soft);
  box-shadow: 0 0 8px rgba(236, 211, 160, 0.6);
  animation: flowGuardBlink 2.2s ease-in-out infinite;
}
@keyframes flowGuardBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* Boundary copy: large serif step title, instrument readout, ghost step number */

.flow-panels { border-top-color: var(--line); }
.flow-panels::after {
  content: var(--step-no, "01");
  position: absolute;
  right: -6px;
  bottom: -34px;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(108px, 12.5vw, 168px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(236, 211, 160, 0.06);
  pointer-events: none;
}
.flow-panel { position: relative; z-index: 1; }
.flow-panel-kicker { color: var(--gold-soft); letter-spacing: 0.18em; }
.flow-panel h3 {
  font-size: clamp(26px, 2.5vw, 30px);
  color: var(--ink);
}
.flow-panel-line { color: #d9ded2; font-size: 15px; }
.flow.is-paused .flow-panel.is-active .flow-panel-line { color: var(--ink); }

.flow-facts { border-top-color: var(--line); }
.flow-facts-tag { color: var(--gold-soft); }
.flow-facts-tag::before { background: var(--gold-soft); }
.flow-fact dt { color: rgba(242, 236, 221, 0.55); }
.flow-fact dd { color: var(--gold-soft); }
.flow-fact dd::before {
  background: var(--gold-soft);
  box-shadow: 0 0 0 2px rgba(236, 211, 160, 0.12);
}
.flow-fact + .flow-fact::before { background: var(--line-strong); }
.flow-facts::after {
  background: linear-gradient(
    90deg,
    rgba(236, 211, 160, 0) 0%,
    rgba(236, 211, 160, 0.9) 50%,
    rgba(236, 211, 160, 0) 100%
  );
}

/* Footer controls */

.flow-foot { border-top-color: var(--line); }
.flow-foot-text { color: rgba(242, 236, 221, 0.58); }
.flow-status { color: rgba(242, 236, 221, 0.48); }
.flow-status::before {
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(236, 211, 160, 0.1);
}
.flow.is-paused .flow-status { color: var(--gold-soft); }
.flow.is-locked .flow-status { color: var(--ink); }
.flow-resume { color: var(--gold-soft); border-bottom-color: rgba(236, 211, 160, 0.5); }
.flow-resume:hover { color: var(--ink); border-color: var(--ink); }
.flow-resume:focus-visible { outline-color: var(--gold-soft); }

/* Particles read as gold dust on the dark stage */
.flow-particle {
  background: radial-gradient(
    circle,
    rgba(255, 246, 220, 0.98) 0% 30%,
    rgba(236, 211, 160, 0.9) 56%,
    rgba(236, 211, 160, 0) 100%
  );
  box-shadow: 0 0 8px 1px rgba(236, 211, 160, 0.55);
}
.flow-particle.is-tick {
  background: rgba(255, 244, 214, 0.85);
  box-shadow: 0 0 9px 1px rgba(236, 211, 160, 0.5);
}

/* Freeze the stage effects when the visitor stops on the board */
/* Only the stepping pauses. The stage keeps scanning, so a hovered board
   still reads as a live instrument rather than a frozen screenshot. */
.flow.is-paused .flow-out-seal { animation-play-state: running; }

/* The manifest keeps filling as the steps advance: it starts as a dim sheet
   and reads brighter the closer the intake gets to a confirmed result. */
.flow[data-phase="0"] .flow-out-card { opacity: 0.92; filter: saturate(0.82); }
.flow[data-phase="1"] .flow-out-card { opacity: 0.96; filter: saturate(0.9); }
.flow[data-phase="2"] .flow-out-card { opacity: 1; filter: none; }

/* Wider stage on desktop: more air, larger presence */
@media (min-width: 921px) {
  .flow-board-body {
    grid-template-columns: 226px minmax(0, 1fr) 232px;
    gap: clamp(26px, 3.4vw, 52px);
    padding-block: clamp(34px, 4.2vw, 56px) clamp(28px, 3.4vw, 44px);
  }
}
@media (min-width: 921px) and (max-width: 1120px) {
  .flow-board-body {
    grid-template-columns: 196px minmax(0, 1fr) 208px;
    gap: clamp(18px, 2.6vw, 32px);
  }
}

@media (max-width: 920px) {
  .flow::before { inset: 7px; }
  .flow-board-body { background-size: 20px 20px; }
  .flow-source::before { display: none; }
  .flow-out-card { transform: none; }
  .flow-panels::after {
    right: -2px;
    bottom: -18px;
    font-size: 96px;
  }
}

@media (max-width: 640px) {
  .flow-beam { display: none; }
  .flow-out-seal { right: 2px; bottom: -11px; padding: 3px 6px; font-size: 6.4px; }
  .flow-panel h3 { font-size: 24px; }
  .flow-panel-line { font-size: 14px; }
}

/* Progress hairline, stage flash, completion frame (2026-11 review, round 5) */

/* The console reports its own progress on the header rule */
.flow-board-head { position: relative; }
.flow-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(236, 211, 160, 0.1);
}
.flow-progress-fill {
  display: block;
  width: 25%;
  height: 1px;
  background: linear-gradient(90deg, rgba(236, 211, 160, 0.12), rgba(236, 211, 160, 0.9));
  box-shadow: 0 0 10px rgba(236, 211, 160, 0.55);
  transition: width 0.8s var(--ease);
}

/* A light band crosses the panel whenever the step changes */
.flow-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 46%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 246, 222, 0.06) 30%,
    rgba(255, 246, 222, 0.24) 47%,
    rgba(255, 246, 222, 0.34) 50%,
    rgba(255, 246, 222, 0.24) 53%,
    rgba(255, 246, 222, 0.06) 70%,
    transparent 100%
  );
  filter: blur(3px);
  will-change: transform, opacity;
}

.flow { transition: border-color 0.8s var(--ease), box-shadow 0.8s var(--ease); }
.flow[data-phase="3"] {
  border-color: rgba(201, 168, 106, 0.5);
  box-shadow:
    0 48px 96px -58px rgba(5, 17, 12, 0.95),
    0 0 0 1px rgba(201, 168, 106, 0.12),
    0 0 64px -32px rgba(236, 211, 160, 0.4),
    inset 0 1px 0 rgba(242, 236, 221, 0.11);
}
.flow[data-phase="3"]::before { opacity: 0.92; }

@media (max-width: 640px) {
  .flow-sheen { width: 70%; filter: blur(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .flow[data-phase="2"] .flow-beam,
  .flow[data-phase="2"] .flow-out-card::after,
  .flow-trace-guard::before { animation: none; }
  .flow-beam,
  .flow-sheen { display: none; }
  .flow[data-phase="3"] .flow-out-seal {
    animation: none;
    opacity: 1;
    transform: rotate(-7deg);
  }
  .flow-out-card,
  .flow-rail-fill,
  .flow-progress-fill,
  .flow { transition: none; }
}


/* ==========================================================================
   How it works — the intake film (2026-11 review, round 6)
   The component plays as one continuous four-act sequence: papers fall into
   order, the authorization frame draws around them, each document is copied
   and carried through a read-only gate into the manifest, then the manifest
   is stamped. Hover pauses the stepping; clicking pins a single act.
   ========================================================================== */

/* A pool of light that shifts with the act */
.flow-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(50% 62% at 56% 46%, rgba(236, 211, 160, 0.15), transparent 72%);
  transition: opacity 1.1s var(--ease);
}
.flow[data-phase="1"] .flow-aura { opacity: 0.34; }
.flow[data-phase="2"] .flow-aura { opacity: 0.52; }
.flow[data-phase="3"] .flow-aura {
  opacity: 0.44;
  background: radial-gradient(52% 64% at 72% 50%, rgba(236, 211, 160, 0.2), transparent 74%);
}

/* The read-only gate: a slit of light on the signal path */
.flow-gate {
  position: absolute;
  left: auto;
  right: 0;
  top: 5px;
  z-index: 3;
  width: 2px;
  height: 82px;
  margin: -41px 0 0 -1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(236, 211, 160, 0) 0%,
    rgba(255, 247, 224, 0.9) 46%,
    rgba(236, 211, 160, 0) 100%
  );
  box-shadow: 0 0 16px 3px rgba(236, 211, 160, 0.32);
  transition: opacity 0.5s var(--ease);
}
.flow[data-phase="2"] .flow-gate { opacity: 0.9; }
.flow-gate::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 247, 224, 0.9);
  box-shadow: 0 0 12px 3px rgba(236, 211, 160, 0.55);
  opacity: 0;
  pointer-events: none;
}
.flow-gate.is-firing { animation: flowGateFire 0.55s ease-out; }
.flow-gate.is-firing::before { animation: flowGateRing 0.55s ease-out; }
@keyframes flowGateRing {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(13); }
}
@keyframes flowGateFire {
  0% { opacity: 0.9; transform: scaleY(1); box-shadow: 0 0 16px 3px rgba(236, 211, 160, 0.32); }
  30% { opacity: 1; transform: scaleY(1.3); box-shadow: 0 0 36px 11px rgba(255, 247, 224, 0.72); }
  100% { opacity: 0.9; transform: scaleY(1); box-shadow: 0 0 16px 3px rgba(236, 211, 160, 0.32); }
}

/* A document copy, lifted out of the stack and carried to the gate */
.flow-ghost {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  pointer-events: none;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #27362c;
  background: linear-gradient(180deg, rgba(248, 241, 226, 0.95), rgba(238, 227, 205, 0.88));
  border: 1px solid rgba(236, 211, 160, 0.65);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(236, 211, 160, 0.18),
    0 10px 24px -14px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(236, 211, 160, 0.3);
  will-change: transform, opacity;
}
.flow-ghost::after {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 26px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(236, 211, 160, 0), rgba(236, 211, 160, 0.9));
}

/* Gold data motes: the document dissolves into this and rides the rail */
.flow-mote {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle,
    #fff8e2 0% 30%,
    #e8cb92 62%,
    rgba(232, 203, 146, 0) 100%
  );
  box-shadow: 0 0 10px 2px rgba(236, 211, 160, 0.6);
}

/* The authorization frame draws around the material at act two */
.flow-scope {
  position: absolute;
  inset: -6px -16px -16px -14px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(236, 211, 160, 0.26);
  background-image:
    linear-gradient(rgba(236, 211, 160, 0.85), rgba(236, 211, 160, 0.85)),
    linear-gradient(rgba(236, 211, 160, 0.85), rgba(236, 211, 160, 0.85)),
    linear-gradient(rgba(236, 211, 160, 0.85), rgba(236, 211, 160, 0.85)),
    linear-gradient(rgba(236, 211, 160, 0.85), rgba(236, 211, 160, 0.85)),
    linear-gradient(rgba(236, 211, 160, 0.85), rgba(236, 211, 160, 0.85)),
    linear-gradient(rgba(236, 211, 160, 0.85), rgba(236, 211, 160, 0.85)),
    linear-gradient(rgba(236, 211, 160, 0.85), rgba(236, 211, 160, 0.85)),
    linear-gradient(rgba(236, 211, 160, 0.85), rgba(236, 211, 160, 0.85));
  background-repeat: no-repeat;
  background-size: 13px 1px, 1px 13px, 13px 1px, 1px 13px, 13px 1px, 1px 13px, 13px 1px, 1px 13px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  transition: opacity 0.6s var(--ease);
}
.flow[data-phase="1"] .flow-scope { opacity: 1; }
.flow-scope::after {
  content: "AUTHORIZED · SCOPE";
  position: absolute;
  top: -7px;
  right: 10px;
  left: auto;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  line-height: 13px;
  color: rgba(236, 211, 160, 0.82);
  background: #10271e;
}

/* The manifest reports how many documents have been read */
.flow-out-tally {
  position: absolute;
  top: 11px;
  right: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(138, 101, 40, 0.9);
}
.flow-out-tally b {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.flow-out-tally i {
  font-style: normal;
  opacity: 0.55;
}

/* Each read row lights briefly as its document lands */
.flow-out-rows li.is-hit { animation: flowRowHit 0.72s var(--ease); }
@keyframes flowRowHit {
  0% { background-color: rgba(236, 211, 160, 0); }
  26% { background-color: rgba(236, 211, 160, 0.26); }
  100% { background-color: rgba(236, 211, 160, 0); }
}

/* The large ghost step number re-enters at every act */
.flow[data-phase="0"] .flow-panels::after,
.flow[data-phase="1"] .flow-panels::after,
.flow[data-phase="2"] .flow-panels::after,
.flow[data-phase="3"] .flow-panels::after {
  animation: flowChapterIn 0.9s var(--ease) both;
}
@keyframes flowChapterIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.94); }
  100% { opacity: 1; transform: none; }
}

/* The confirmed manifest lands on the desk */
.flow[data-phase="3"] .flow-out-card {
  animation: flowManifestLand 0.9s cubic-bezier(0.18, 1.1, 0.36, 1) both;
}
@keyframes flowManifestLand {
  0% { transform: rotate(-0.6deg) translateY(5px) scale(0.985); }
  55% { transform: rotate(0.3deg) translateY(-2px) scale(1.012); }
  100% { transform: none; }
}

@media (min-width: 921px) {
  /* The scattered sheets fall into an ordered stack as registration closes */
  .flow-file {
    transition:
      top 0.78s var(--ease),
      left 0.78s var(--ease),
      transform 0.78s var(--ease),
      box-shadow 0.4s var(--ease);
    transition-delay: calc(var(--i, 0) * 45ms);
  }
  .flow-file:nth-child(1) { --i: 0; }
  .flow-file:nth-child(2) { --i: 1; }
  .flow-file:nth-child(3) { --i: 2; }
  .flow-file:nth-child(4) { --i: 3; }
  .flow-file:nth-child(5) { --i: 4; }
  .flow-file:nth-child(6) { --i: 5; }
  .flow:is([data-phase="1"], [data-phase="2"], [data-phase="3"]) .flow-file { --r: 0deg; }
  .flow:is([data-phase="1"], [data-phase="2"], [data-phase="3"]) .flow-file:nth-child(1) { top: 2px; left: 12px; }
  .flow:is([data-phase="1"], [data-phase="2"], [data-phase="3"]) .flow-file:nth-child(2) { top: 32px; left: 12px; }
  .flow:is([data-phase="1"], [data-phase="2"], [data-phase="3"]) .flow-file:nth-child(3) { top: 62px; left: 12px; }
  .flow:is([data-phase="1"], [data-phase="2"], [data-phase="3"]) .flow-file:nth-child(4) { top: 92px; left: 12px; }
  .flow:is([data-phase="1"], [data-phase="2"], [data-phase="3"]) .flow-file:nth-child(5) { top: 122px; left: 12px; }
  .flow:is([data-phase="1"], [data-phase="2"], [data-phase="3"]) .flow-file:nth-child(6) { top: 152px; left: 12px; }

  /* While the agent reads, the originals glow but never move: read-only */
  .flow[data-phase="2"] .flow-file { animation: flowDocPeel 2.4s ease-in-out infinite; }
  @keyframes flowDocPeel {
    0%, 100% {
      box-shadow: 0 16px 28px -18px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    }
    50% {
      box-shadow: 0 16px 28px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(236, 211, 160, 0.28),
        0 0 14px rgba(236, 211, 160, 0.12), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    }
  }
}

@media (max-width: 920px) {
  /* On the stacked layout the path runs downward, so the gate lies across it */
  .flow-gate {
    left: 6px;
    right: auto;
    top: auto;
    bottom: 6px;
    width: 64px;
    height: 2px;
    margin: 0 0 0 -32px;
    background: linear-gradient(
      90deg,
      rgba(236, 211, 160, 0) 0%,
      rgba(255, 247, 224, 0.9) 46%,
      rgba(236, 211, 160, 0) 100%
    );
  }
  .flow-gate.is-firing { animation: flowGateFireY 0.55s ease-out; }
  .flow-gate.is-firing::before { display: none; }
  @keyframes flowGateFireY {
    0% { opacity: 0.9; transform: scaleX(1); }
    30% { opacity: 1; transform: scaleX(1.3); box-shadow: 0 0 32px 10px rgba(255, 247, 224, 0.65); }
    100% { opacity: 0.9; transform: scaleX(1); }
  }
  .flow-scope { inset: -6px -9px -12px -10px; }
  .flow-ghost { font-size: 9px; padding: 4px 7px; }
  .flow-out-tally { top: 9px; right: 12px; }
  .flow-out-tally b { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-aura,
  .flow-gate,
  .flow-ghost,
  .flow-mote { display: none; }
  .flow[data-phase="2"] .flow-file { animation: none; }
  .flow[data-phase="3"] .flow-out-card { animation: none; }
  .flow[data-phase="0"] .flow-panels::after,
  .flow[data-phase="1"] .flow-panels::after,
  .flow[data-phase="2"] .flow-panels::after,
  .flow[data-phase="3"] .flow-panels::after { animation: none; }
  .flow-out-rows li.is-hit { animation: none; }
  .flow-file { transition: none; }
}


/* ============================================================
   How it works — the intake film, round 7 (2026-11 review)
   live field · frame light · act cut · dynamic manifest
   Techniques adapted from React Bits (MIT + Commons Clause):
   Particles / Animated List / Count Up / animated borders.
   Re-implemented as plain CSS + canvas + WAAPI, no dependencies.
   ============================================================ */

@property --flow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* --- 1. living data field (canvas) --- */
.flow-board-body > .flow-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
}

/* --- 2. travelling frame light --- */
.flow > .flow-frame-light {
  position: absolute;
  inset: -1px;
  z-index: 6;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--flow-angle),
    transparent 0deg,
    transparent 292deg,
    rgba(240, 214, 160, 0.35) 312deg,
    rgba(255, 244, 214, 0.9) 332deg,
    rgba(240, 214, 160, 0.55) 346deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.6;
  animation: flowFrameSpin 15s linear infinite;
}

@keyframes flowFrameSpin {
  to {
    --flow-angle: 360deg;
  }
}

/* --- 3. act cut: a full-panel light blade between scenes --- */
.flow > .flow-cut {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(236, 211, 160, 0) 0%,
    rgba(236, 211, 160, 0.06) 38%,
    rgba(255, 248, 230, 0.2) 50%,
    rgba(236, 211, 160, 0.06) 62%,
    rgba(236, 211, 160, 0) 100%
  );
  mix-blend-mode: screen;
}

.flow.is-cutting > .flow-cut {
  animation: flowCutBlade 0.72s cubic-bezier(0.3, 0.7, 0.3, 1);
}

@keyframes flowCutBlade {
  0% {
    opacity: 0;
    transform: translateY(-18%);
  }
  16% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateY(6%);
  }
}

/* --- 4. dynamic manifest --- */
.flow-out-card {
  min-height: 244px;
}

.flow-out-doc {
  position: relative;
  display: grid;
  margin-top: 2px;
  min-height: 138px;
}

.flow-out-doc > .flow-out-skel,
.flow-out-doc > .flow-out-log,
.flow-out-doc > .flow-out-rows {
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
}

/* blank letterhead before the scan */
.flow-out-skel {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
}

.flow-out-skel li {
  width: 100%;
  height: 1px;
  margin-bottom: 30px;
  background: repeating-linear-gradient(
    90deg,
    rgba(28, 42, 34, 0.26) 0 9px,
    transparent 9px 16px
  );
}

.flow-out-skel li:nth-child(2) {
  width: 88%;
}

.flow-out-skel li:nth-child(3) {
  width: 62%;
}

/* incoming rows, written one file at a time */
.flow-out-log,
.flow-out-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-out-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(28, 42, 34, 0.13);
  opacity: 0;
  transform: translateX(-9px);
}

.flow-out-log-row.is-in {
  animation: flowLogIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes flowLogIn {
  0% {
    opacity: 0;
    transform: translateX(-10px);
    filter: blur(2px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.flow-out-log-name {
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-out-log-read {
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  flex: 0 0 auto;
}

/* the finished document */
.flow-out-rows {
  padding-top: 12px;
}

.flow-out-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(28, 42, 34, 0.16);
  opacity: 0;
  transform: translateY(9px);
}

.flow-out-rows li span:first-child {
  font-size: 12px;
  color: var(--ink-2);
}

.flow-out-val {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.flow-out-val b {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: #8a6528;
}

[data-build="empty"] .flow-out-log,
[data-build="empty"] .flow-out-rows,
[data-build="log"] .flow-out-rows {
  display: none;
}

[data-build="log"] .flow-out-skel,
[data-build="doc"] .flow-out-skel,
[data-build="doc"] .flow-out-log {
  display: none;
}

[data-build="doc"] .flow-out-rows li {
  animation: flowDocRowIn 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

[data-build="doc"] .flow-out-rows li:nth-child(1) {
  animation-delay: 0.02s;
}

[data-build="doc"] .flow-out-rows li:nth-child(2) {
  animation-delay: 0.12s;
}

[data-build="doc"] .flow-out-rows li:nth-child(3) {
  animation-delay: 0.22s;
}

@keyframes flowDocRowIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow[data-phase="3"] .flow-out-rows li span:first-child::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold-dark);
  vertical-align: 2px;
  box-shadow: 0 0 8px rgba(138, 101, 40, 0.5);
  animation: flowDocCheckIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.flow[data-phase="3"] .flow-out-rows li:nth-child(1) span:first-child::before {
  animation-delay: 0.15s;
}

.flow[data-phase="3"] .flow-out-rows li:nth-child(2) span:first-child::before {
  animation-delay: 0.31s;
}

.flow[data-phase="3"] .flow-out-rows li:nth-child(3) span:first-child::before {
  animation-delay: 0.47s;
}

@keyframes flowDocCheckIn {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  70% {
    transform: scale(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* act 3: focus pull — the document comes forward, the stage recedes */
.flow[data-phase="3"] .flow-source,
.flow[data-phase="3"] .flow-track {
  opacity: 0.45;
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.flow[data-phase="3"] .flow-out {
  position: relative;
  z-index: 6;
}

.flow[data-phase="3"] .flow-out-card {
  box-shadow:
    0 44px 84px -46px rgba(4, 16, 11, 0.9),
    0 0 0 1px rgba(127, 92, 36, 0.5),
    0 0 36px -18px rgba(196, 168, 115, 0.28);
}

/* phone */
@media (max-width: 920px) {
  .flow > .flow-frame-light {
    opacity: 0.28;
    animation-duration: 20s;
  }

  .flow-out-card {
    min-height: 236px;
  }

  .flow-out-doc {
    min-height: 132px;
  }

  .flow-out-log-name {
    font-size: 9px;
  }
}

@media (max-width: 640px) {
  .flow-out-card {
    min-height: 232px;
  }

  .flow-out-val b {
    font-size: 14px;
  }
}

/* motion off: the field freezes, the document is simply finished */
@media (prefers-reduced-motion: reduce) {
  .flow-board-body > .flow-field,
  .flow > .flow-frame-light,
  .flow > .flow-cut {
    display: none !important;
  }

  .flow-out-rows li,
  .flow-out-log-row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .flow[data-phase="3"] .flow-source,
  .flow[data-phase="3"] .flow-track {
    transition: none;
  }
}

/* --- 7b. ambient life: travelling frame light, drifting scan, live document cues --- */
.flow > .flow-frame-light {
  inset: -1px;
  padding: 1px;
  opacity: 0.34;
  background: conic-gradient(
    from var(--flow-angle),
    transparent 0deg,
    transparent 296deg,
    rgba(240, 214, 160, 0.22) 316deg,
    rgba(255, 246, 222, 0.55) 333deg,
    rgba(240, 214, 160, 0.3) 347deg,
    transparent 360deg
  );
  animation: flowFrameSpin 17s linear infinite;
}

/* the blank letterhead breathes while it waits */
.flow-out-skel li {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(28, 42, 34, 0.34) 0 10px,
    transparent 10px 18px
  );
  animation: flowSkelPulse 2.6s ease-in-out infinite;
}

.flow-out-skel li:nth-child(2) {
  animation-delay: 0.25s;
}

.flow-out-skel li:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes flowSkelPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* while rows are being written, the document shows it is still reading */
.flow-out-card[data-build="log"] .flow-out-log::after {
  content: "READING · IN PROGRESS";
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: rgba(138, 101, 40, 0.85);
  animation: flowReadBlink 1.5s steps(1, end) infinite;
}

@keyframes flowReadBlink {
  0%,
  55% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0.3;
  }
}

/* the tally pops every time a file lands */
.flow-out-tally.is-bumped {
  animation: flowTallyPop 0.42s cubic-bezier(0.3, 0.7, 0.3, 1);
  transform-origin: 100% 0;
}

@keyframes flowTallyPop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 920px) {
  .flow > .flow-frame-light {
    inset: -1px;
    padding: 1px;
    opacity: 0.28;
    animation-duration: 20s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow > .flow-frame-light {
    animation: none !important;
    opacity: 0.34;
  }

  .flow-out-skel li {
    animation: none !important;
    opacity: 1;
  }

  .flow-out-card[data-build="log"] .flow-out-log::after {
    animation: none !important;
  }

  .flow-out-tally.is-bumped {
    animation: none !important;
  }
}

/* ==========================================================================
   Round 8 (2026-11 review)
   material you can move · a cursor grid over the paper · quieter light
   ========================================================================== */

/* --- draggable supplier material (kept inside the dashed read-only frame) --- */
.flow-file.is-dragging {
  cursor: grabbing;
  z-index: 4;
  transition: none !important;
  animation: none !important;
  box-shadow:
    0 26px 40px -24px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(236, 211, 160, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.flow-file.is-returning {
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) !important,
    box-shadow 0.4s var(--ease) !important;
}

/* --- cursor grid (technique adapted from React Bits CursorGrid; MIT + Commons Clause,
       re-implemented as a single plain canvas: no React, no dependencies) --- */
.cursor-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.cursor-grid.is-ready {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor-grid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-grid { display: none; }
}

/* ==========================================================================
   Round 9 (2026-11 review)
   1) opaque surfaces, so the cursor grid never shows through key components
   2) the stage light effects are gone — the four acts carry the motion
   3) read-only & compliance: staggered permission cards and rows
   4) the footer is a solid band
   ========================================================================== */

/* --- 1. opaque components over the grid --- */

.glance-list {
  border: 1px solid var(--line);
  border-top-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 30px 64px -56px rgba(22, 36, 29, 0.55);
}
.glance-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.glance-item:nth-child(2n) { border-right: 0; }
.glance-item:nth-last-child(-n + 2) { border-bottom: 0; }
.glance-item:hover { background: var(--surface-2); }

.page-index {
  border: 1px solid var(--line);
  border-top-color: var(--line-strong);
  background: var(--surface);
  padding: 0 18px 2px;
  box-shadow: 0 24px 52px -46px rgba(22, 36, 29, 0.5);
}
.page-index-head { padding-top: 14px; }
.page-index a:last-child { border-bottom: 0; }

.site-footer {
  position: relative;
  z-index: 0;
  background: var(--paper-2);
}

@media (max-width: 760px) {
  .glance-item {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .glance-item:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .glance-item:last-child { border-bottom: 0; }
  .page-index { padding: 0 16px 2px; }
}

/* --- 2. flow: no stage lights, only the narration --- */

.flow > .flow-sheen,
.flow > .flow-cut,
.flow > .flow-frame-light,
.flow > .flow-beam,
.flow > .flow-aura { display: none !important; }

.flow .flow-gate,
.flow[data-phase="2"] .flow-gate,
.flow .flow-gate.is-firing {
  opacity: 0 !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
}
.flow .flow-gate::before,
.flow .flow-gate::after { display: none !important; }

.flow .flow-scan::after,
.flow .flow-out-card::after,
.flow .flow-rail-fill::before { display: none !important; }

.flow .flow-state-dot,
.flow .flow-status::before,
.flow .flow-stop.is-active .flow-stop-dot,
.flow .flow-out-card.is-live,
.flow .flow-trace-guard::before,
.flow .flow-out-tally.is-bumped,
.flow .flow-out-skel li,
.flow .flow-out-card[data-build="log"] .flow-out-log::after,
.flow .flow-panel.is-active .flow-facts::after,
.flow .flow-out-rows li.is-hit,
.flow .flow-track::before,
.flow .flow-track::after { animation: none !important; }

.flow .flow-rail {
  background-image: none !important;
  background-color: rgba(242, 236, 221, 0.16) !important;
  box-shadow: none !important;
}
.flow .flow-rail-fill { box-shadow: none !important; }
.flow .flow-board-body::before { opacity: 0.45; }
.flow .flow-source::before { opacity: 0.55; }
.flow .flow-field { opacity: 0.45; }
.flow[data-phase="3"] {
  border-color: rgba(201, 168, 106, 0.32);
  box-shadow:
    0 48px 96px -58px rgba(5, 17, 12, 0.95),
    inset 0 1px 0 rgba(242, 236, 221, 0.09);
}
.flow[data-phase="3"]::before { opacity: 0.6; }

/* --- 3. read-only & compliance: permission cards and rows --- */

.readonly-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0;
  border-top-color: var(--line-strong);
}
.readonly-item {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  background: var(--surface);
  transition:
    opacity 0.62s var(--ease),
    transform 0.62s var(--ease),
    background-color 0.3s ease;
}
.readonly-strip.is-visible .readonly-item { opacity: 1; transform: none; }
.readonly-strip.is-visible .readonly-item:nth-child(2) { transition-delay: 0.09s; }
.readonly-strip.is-visible .readonly-item:nth-child(3) { transition-delay: 0.18s; }
.readonly-strip.is-visible .readonly-item:hover { transform: translateY(-3px); }
.readonly-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), rgba(157, 122, 56, 0));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease) 0.12s;
}
.readonly-strip.is-visible .readonly-item::before { transform: scaleX(1); }
.readonly-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(92% 92% at 12% 0%, rgba(255, 255, 255, 0.6), transparent 62%);
  transition: opacity 0.4s ease;
}
.readonly-item:hover { background: var(--surface-2); }
.readonly-item:hover::after { opacity: 1; }
.readonly-item > * { position: relative; z-index: 1; }

.perm-drawer summary .mono {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.perm-allowed summary .mono { color: var(--gold-dark); border-color: rgba(157, 122, 56, 0.35); }
.perm-excluded summary .mono { color: var(--muted); }
.perm-drawer summary { transition: background-color 0.25s ease; }
.perm-drawer summary:hover { background: rgba(22, 36, 29, 0.028); }
.perm-drawer summary:hover strong { color: var(--forest); }

.perm-drawer li {
  opacity: 0;
  transform: translateY(9px);
  border-radius: 2px;
  transition: color 0.22s ease, background-color 0.22s ease;
}
.perm-drawers.is-visible .perm-drawer[open] li {
  animation: permRowIn 0.62s var(--ease) forwards;
}
.perm-drawers.is-visible .perm-drawer[open] li:nth-child(1) { animation-delay: 0.05s; }
.perm-drawers.is-visible .perm-drawer[open] li:nth-child(2) { animation-delay: 0.11s; }
.perm-drawers.is-visible .perm-drawer[open] li:nth-child(3) { animation-delay: 0.17s; }
.perm-drawers.is-visible .perm-drawer[open] li:nth-child(4) { animation-delay: 0.23s; }
@keyframes permRowIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
.perm-drawer li::before {
  font-family: var(--mono);
  font-size: 10.5px;
  top: 1px;
  transition: transform 0.22s var(--ease), color 0.22s ease;
}
.perm-allowed li::before { content: "\2713"; color: var(--gold-dark); }
.perm-excluded li::before { content: "\00D7"; color: var(--muted); }
.perm-drawer li:hover { color: var(--ink); background: rgba(157, 122, 56, 0.07); }
.perm-allowed li:hover::before { transform: translateX(2px); color: var(--forest); }
.perm-excluded li:hover::before { transform: translateX(2px); color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .readonly-item,
  .readonly-strip.is-visible .readonly-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .readonly-item::before { transform: none; transition: none; }
  .perm-drawer li { opacity: 1; transform: none; animation: none !important; }
  .flow .flow-out-skel li { opacity: 1; }
}

/* --- 4. round 9 fixes: no per-step light ring; mobile permission cards --- */

/* The ring that fired at every active node read as a flash; keep the node static. */
.flow .flow-stop.is-active .flow-stop-dot::after { display: none !important; }

@media (max-width: 980px) {
  .readonly-item {
    border-left: 1px solid var(--line);
    padding: 22px 20px;
  }
}




/* ==========================================================================
   Round 11 — the six facts become drawers (2026-11-19)
   Collapsed by default: number + title only; the line opens in place.
   ========================================================================== */

.glance-list {
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-top-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 30px 64px -56px rgba(22, 36, 29, 0.55);
}

.glance-item,
.glance-item:nth-child(2n),
.glance-item:nth-last-child(-n + 2) {
  display: block;
  padding: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.glance-item:last-child { border-bottom: 0; }

.glance-item .glance-h { margin: 0; font: inherit; }

.glance-trigger {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  column-gap: 18px;
  width: 100%;
  padding: 22px 26px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}
.glance-trigger:hover { background: var(--surface-2); }
.glance-trigger:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: -4px;
}
.glance-trigger .glance-no {
  padding-top: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
}
.glance-title {
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.glance-trigger:hover .glance-title { color: var(--gold-ink); }

.glance-sign {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: end;
  color: var(--gold-dark);
}
.glance-sign::before,
.glance-sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.glance-sign::before { left: 0; top: 6.5px; width: 14px; height: 1px; }
.glance-sign::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.glance-trigger[aria-expanded="true"] .glance-sign::after { transform: scaleY(0); opacity: 0; }
.glance-trigger[aria-expanded="true"] .glance-sign::before { background: var(--gold-ink); }

.glance-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.46s var(--ease), visibility 0s linear 0.46s;
}
.glance-panel-inner { min-height: 0; overflow: hidden; }
.glance-panel p {
  max-width: 46em;
  margin: 0;
  padding: 2px 26px 26px 88px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.glance-item.is-open .glance-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.46s var(--ease), visibility 0s linear 0s;
}
.glance-item.is-open .glance-panel p {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.glance-item.is-open .glance-trigger { background: var(--surface-2); }

@media (max-width: 760px) {
  .glance-trigger {
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    column-gap: 13px;
    padding: 19px 18px;
  }
  .glance-trigger .glance-no { font-size: 10px; }
  .glance-panel p { padding: 2px 18px 22px 59px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .glance-trigger,
  .glance-sign::before,
  .glance-sign::after,
  .glance-panel,
  .glance-panel p { transition: none; }
  .glance-panel p { transform: none; }
}

/* narrower desktops: keep stop labels on one line, keep the slab inside the page */
@media (min-width: 921px) and (max-width: 1099px) {
  .flow { --edge: clamp(12px, 1.4vw, 16px); }
  .flow-stops { gap: 4px; }
  .flow-stop { padding-right: 0; }
  .flow-stop-name { font-size: clamp(15px, 1.72vw, 18px); white-space: nowrap; }
}




/* ============================================================
   How it works — authorization, handover, replay, boundary
   (2026-11-23 review · local only)
   ============================================================ */

/* ---------- Hero: the authorization sample ---------- */

.page-hero-auth { padding-bottom: clamp(44px, 4.8vw, 68px); }
.auth-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
.page-hero-auth h1 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.18; }
.auth-hero-copy .lede { max-width: 32em; }
.auth-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 30px;
}
.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.auth-link-arrow { transition: transform 0.18s var(--ease); }
.auth-link:hover { color: var(--forest); border-color: var(--forest); }
.auth-link:hover .auth-link-arrow { transform: translateX(4px); }
.auth-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.auth-hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.auth-hero-chips .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
  flex: none;
}
.auth-hero-doc { position: relative; padding-top: 4px; }
.authdoc {
  position: relative;
  padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.2vw, 30px) clamp(18px, 2vw, 24px);
  background: linear-gradient(178deg, #fdfaf1 0%, #f7efdd 100%);
  border: 1px solid rgba(22, 36, 29, 0.24);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 2px 0 rgba(22, 36, 29, 0.05), 0 36px 66px -42px rgba(22, 36, 29, 0.5);
  transform: rotate(0.35deg);
}
.authdoc::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-soft) 62%, transparent);
}
.authdoc::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(22, 36, 29, 0.016) 0 1px, transparent 1px 4px);
}
.authdoc > * { position: relative; z-index: 1; }
.authdoc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.authdoc-title {
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-top: 14px;
}
.authdoc-parties {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 7px;
  font-size: 10px;
  color: var(--ink-2);
}
.authdoc-parties [aria-hidden="true"] { color: var(--line-strong); }
.authdoc-clauses {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.authdoc-clauses li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.authdoc-no { font-size: 8px; letter-spacing: 0.1em; color: var(--gold-dark); padding-top: 2px; }
.authdoc-clauses strong { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink); }
.authdoc-clauses p span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.authdoc-subhead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
}
.authdoc-fields { width: 100%; border-collapse: collapse; margin-top: 6px; }
.authdoc-fields th,
.authdoc-fields td {
  padding: 4px 5px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 8.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.authdoc-fields thead th {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}
.authdoc-fields tbody th { font-weight: 600; font-size: 8.5px; color: var(--ink); white-space: nowrap; }
.authdoc-sign {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
}
.authdoc-sign div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 72px;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.authdoc-sign i { display: block; width: 100%; height: 1px; border-bottom: 1px solid rgba(22, 36, 29, 0.38); }
.authdoc-stamp {
  position: absolute;
  right: 0;
  bottom: -4px;
  transform: rotate(-7deg);
  padding: 4px 7px;
  border: 1px solid rgba(157, 122, 56, 0.6);
  border-radius: 2px;
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  background: rgba(253, 250, 241, 0.72);
}
.authdoc-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.authdoc-print:hover { color: var(--gold-dark); border-color: var(--gold-dark); }
.authdoc-print:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.authdoc-caption {
  margin-top: 12px;
  text-align: right;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Row page index ---------- */

.page-index-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: clamp(38px, 4.6vw, 60px);
  padding: 0;
  border: 1px solid var(--line);
  border-top-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 26px 56px -50px rgba(22, 36, 29, 0.5);
}
.page-index-row .page-index-head {
  flex: 0 0 100%;
  padding: 13px 18px 11px;
  border-bottom: 1px solid var(--line);
}
.page-index-row a {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 15px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-index-row a:last-child { border-right: 0; }
.page-index-row a strong { font-family: var(--serif); font-size: 14.5px; font-weight: 500; }
.page-index-row .idx-arrow { justify-self: end; }

/* ---------- 01 · Handover ---------- */

.section-handover { padding-top: clamp(58px, 6.4vw, 88px); }
.handover {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 38px 74px -62px rgba(22, 36, 29, 0.62);
}
.handover-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.handover-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--line);
  z-index: 2;
}
.handover-rail-fill {
  display: block;
  width: 0;
  height: 2px;
  background: var(--gold-dark);
  transition: width 0.55s var(--ease);
}
.handover-token {
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold-dark);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(157, 122, 56, 0.1);
  transition: left 0.55s var(--ease);
}
.handover-tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 17px clamp(12px, 1.4vw, 20px) 20px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.handover-tab:last-of-type { border-right: 0; }
.handover-tab:hover { background: var(--surface-2); }
.handover-tab[aria-selected="true"] { background: var(--surface-2); }
.handover-tab[aria-selected="true"] .handover-tab-name { color: var(--ink); }
.handover-tab[aria-selected="true"] .handover-tab-no { color: var(--gold-dark); }
.handover-tab:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: -2px; }
.handover-tab-no {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.handover-tab-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.handover-body { padding: clamp(24px, 2.8vw, 40px); }
.handover-panel {
  display: none;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 4vw, 60px);
}
.handover-panel.is-active { display: grid; }
.handover-step-kicker { font-size: 9px; letter-spacing: 0.14em; color: var(--gold-dark); }
.handover-sheet h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.24;
}
.handover-line {
  margin-top: 12px;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}
.handover-meta { margin: 24px 0 0; border-top: 1px solid var(--line-strong); }
.handover-meta > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.handover-meta dt {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.handover-meta dd { font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.handover-wont { background: linear-gradient(90deg, rgba(157, 122, 56, 0.075), transparent 72%); }
.handover-wont dt { color: var(--gold-dark); }
.handover-wont dd { color: var(--ink); }
.handover-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px clamp(16px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.handover-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dark); flex: none; }

/* artifact document */
.artifact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(180deg, #fdfaf2, #f7efdf);
  border: 1px solid rgba(22, 36, 29, 0.2);
  box-shadow: 0 26px 46px -40px rgba(22, 36, 29, 0.46);
  overflow: hidden;
}
.artifact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-dark), rgba(157, 122, 56, 0));
}
.artifact-tag {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.artifact-sample {
  align-self: flex-start;
  padding: 3px 6px;
  border: 1px solid rgba(157, 122, 56, 0.45);
  border-radius: 2px;
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
}
.artifact-title {
  max-width: 20em;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.artifact-list { margin: 0; border-top: 1px solid var(--line-strong); }
.artifact-list > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.artifact-list dt {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.artifact-list dd { font-size: 10.5px; line-height: 1.6; color: var(--ink-2); }
.artifact-list dd.mono { font-size: 9.5px; letter-spacing: 0.03em; color: var(--ink); }
.artifact-clauses { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.artifact-clauses li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.artifact-clauses li > span { padding-top: 2px; font-family: var(--mono); font-size: 8px; color: var(--gold-dark); }
.artifact-clauses strong { display: block; font-size: 10.5px; color: var(--ink); }
.artifact-clauses p span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--ink-2);
}
.artifact-tally { margin: 0; border-top: 1px solid var(--line-strong); }
.artifact-tally > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.artifact-tally dt { font-size: 10px; color: var(--muted); }
.artifact-tally dd { display: flex; align-items: baseline; gap: 6px; }
.artifact-tally strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.artifact-tally dd span { font-size: 10px; color: var(--ink-2); }
.artifact-sign {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.artifact-sign i { display: block; width: 54px; height: 1px; border-bottom: 1px solid rgba(22, 36, 29, 0.35); }
.artifact-sign-receipt { justify-content: flex-end; }
.artifact-stamp {
  position: absolute;
  right: 2px;
  bottom: 0;
  transform: rotate(-6deg);
  padding: 4px 7px;
  border: 1px solid rgba(138, 101, 40, 0.6);
  border-radius: 2px;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  background: rgba(253, 250, 241, 0.72);
}
.artifact-note { margin-top: auto; font-size: 9.5px; line-height: 1.6; color: var(--muted); }

/* responsibility table */
.resp { margin-top: clamp(46px, 5.6vw, 76px); }
.resp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.resp-head h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.resp-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.resp-table caption {
  caption-side: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.resp-table th,
.resp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.resp-table thead th {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
}
.resp-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  background: rgba(235, 228, 212, 0.35);
}
.resp-table tbody tr:last-child th,
.resp-table tbody tr:last-child td { border-bottom: 0; }
.resp-table tbody tr:hover td { background: rgba(157, 122, 56, 0.05); }

/* ---------- 02 · Evidence room ---------- */

.section-replay { background: var(--paper-2); }
.evidence {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 42px);
  background: linear-gradient(155deg, #17362a 0%, #10271e 48%, #0a1c14 100%);
  border: 1px solid rgba(157, 122, 56, 0.35);
  box-shadow: 0 44px 84px -64px rgba(5, 17, 12, 0.95), inset 0 1px 0 rgba(242, 236, 221, 0.06);
  color: #f1eadb;
}
.evidence::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 320px at 10% -10%, rgba(196, 168, 115, 0.14), transparent 70%);
  pointer-events: none;
}
.evidence::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(241, 234, 219, 0.07);
  pointer-events: none;
}
.evidence > * { position: relative; z-index: 1; }
.evidence-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(241, 234, 219, 0.16);
}
.evidence-kicker { font-size: 8.5px; letter-spacing: 0.16em; color: rgba(241, 234, 219, 0.55); }
.evidence h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  color: #f6efe0;
}
.evidence-badge {
  flex: none;
  padding: 5px 8px;
  border: 1px dashed rgba(216, 192, 138, 0.45);
  border-radius: 2px;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: #d8c08a;
}
.replay-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(22px, 2.6vw, 32px);
}
.replay-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.replay-lede { font-size: 12.5px; line-height: 1.85; color: rgba(241, 234, 219, 0.7); }
.replay-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  background: rgba(241, 234, 219, 0.14);
  border: 1px solid rgba(241, 234, 219, 0.14);
}
.replay-stats > div { padding: 12px 14px; background: #12291f; }
.replay-stats dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 234, 219, 0.5);
}
.replay-stats dd { margin-top: 2px; font-family: var(--serif); font-size: 27px; line-height: 1.1; color: #f6efe0; }
.replay-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(241, 234, 219, 0.28);
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(241, 234, 219, 0.86);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.replay-btn:hover { border-color: rgba(216, 192, 138, 0.7); color: #fff8e8; }
.replay-btn:focus-visible { outline: 2px solid #d8c08a; outline-offset: 2px; }
.replay-btn-primary { background: #d8c08a; border-color: #d8c08a; color: #10271e; }
.replay-btn-primary:hover { background: #e8d4a4; border-color: #e8d4a4; color: #10271e; }
.replay-icon { font-size: 8px; }
.replay-label-pause { display: none; }
.replay-btn-primary.is-playing .replay-label-play { display: none; }
.replay-btn-primary.is-playing .replay-label-pause { display: inline; }
.replay-status { margin-left: auto; font-size: 8px; letter-spacing: 0.12em; color: rgba(241, 234, 219, 0.5); }
.replay-status::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  background: #d8c08a;
  vertical-align: 1px;
}
.replay-progress { height: 2px; overflow: hidden; background: rgba(241, 234, 219, 0.14); }
.replay-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #d8c08a, #f2e4bf);
  transition: width 0.45s linear;
}
.replay-disclaimer { font-size: 9px; line-height: 1.65; color: rgba(241, 234, 219, 0.42); }
.replay-log-wrap { min-width: 0; border: 1px solid rgba(241, 234, 219, 0.12); background: rgba(5, 17, 12, 0.22); }
.replay-log { list-style: none; margin: 0; padding: 0; }
.replay-event {
  position: relative;
  display: grid;
  grid-template-columns: 64px 118px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(241, 234, 219, 0.09);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), background 0.2s var(--ease);
}
.replay-event:last-child { border-bottom: 0; }
.replay-event.is-visible { opacity: 1; transform: none; }
.replay-event.is-current { background: rgba(216, 192, 138, 0.07); }
.replay-event.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d8c08a;
}
.replay-time { font-size: 8.5px; letter-spacing: 0.02em; color: rgba(241, 234, 219, 0.42); }
.replay-code {
  overflow: hidden;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: #d8c08a;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.replay-event-note { font-size: 10.5px; line-height: 1.55; color: rgba(241, 234, 219, 0.78); }
.replay-tag { font-size: 7px; letter-spacing: 0.1em; color: rgba(241, 234, 219, 0.38); white-space: nowrap; }
.replay-event-skip { background: rgba(216, 192, 138, 0.04); }
.replay-event-skip .replay-code { color: #e8cf9e; }
.replay-event-skip .replay-tag {
  padding: 1px 4px;
  border: 1px solid rgba(216, 192, 138, 0.28);
  border-radius: 2px;
  color: #d8c08a;
}

/* ---------- 03 · Boundaries ---------- */

.bounds-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.bounds-table caption {
  caption-side: top;
  padding: 0 0 12px;
  text-align: left;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.bounds-table th,
.bounds-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-2);
}
.bounds-table thead th {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(235, 228, 212, 0.4);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.bounds-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; background: var(--surface); }
.bounds-table tbody tr:hover td { background: rgba(157, 122, 56, 0.05); }
.bounds-table tbody tr:last-child th,
.bounds-table tbody tr:last-child td { border-bottom: 0; }
.bounds-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 9.5px;
  color: var(--muted);
}
.bounds-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bounds-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.bounds-dot-read { background: var(--forest); }
.bounds-dot-meta { background: var(--gold-dark); }
.bounds-dot-no { background: transparent; border: 1px solid var(--muted); }
.bounds-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.6vw, 52px);
  align-items: start;
  margin-top: clamp(36px, 4.4vw, 60px);
}
.bounds-kicker { font-size: 8.5px; letter-spacing: 0.16em; color: var(--gold-dark); }
.bounds-no h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 600;
  line-height: 1.3;
}
.bounds-no ul { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.bounds-no li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.bounds-no li > .mono { padding-top: 3px; font-size: 8px; letter-spacing: 0.1em; color: var(--gold-dark); }
.bounds-no strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.bounds-no p { margin-top: 3px; font-size: 10px; line-height: 1.65; color: var(--muted); }
.bounds-appendix { border: 1px solid var(--line); background: var(--surface); }
.bounds-appendix summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}
.bounds-appendix summary::-webkit-details-marker { display: none; }
.bounds-appendix-title { font-family: var(--serif); font-size: 16.5px; font-weight: 600; }
.bounds-plus { position: relative; width: 12px; height: 12px; flex: none; }
.bounds-plus::before,
.bounds-plus::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  transition: transform 0.2s var(--ease);
}
.bounds-plus::before { left: 0; top: 5.5px; width: 12px; height: 1px; }
.bounds-plus::after { left: 5.5px; top: 0; width: 1px; height: 12px; }
.bounds-appendix[open] .bounds-plus::after { transform: scaleY(0); }
.bounds-layers { border-top: 1px solid var(--line); }
.bounds-layer { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.bounds-layer:last-child { border-bottom: 0; }
.bounds-layer > .mono { font-size: 7.5px; letter-spacing: 0.14em; color: var(--gold-dark); }
.bounds-layer h4 { margin: 6px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.bounds-layer dl { display: grid; gap: 4px; }
.bounds-layer dl > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
.bounds-layer dt {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bounds-layer dd { font-size: 10px; line-height: 1.55; color: var(--ink-2); }

/* ---------- 04 · Proof shelf ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.proof-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2vw, 26px);
  background: var(--surface);
  transition: background 0.2s var(--ease);
}
.proof-card:hover { background: var(--surface-2); }
.proof-label { font-size: 7.5px; letter-spacing: 0.14em; color: var(--gold-dark); }
.proof-card h3,
.proof-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.proof-desc { font-size: 11px; line-height: 1.75; color: var(--ink-2); }
.proof-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--gold-dark);
  background: none;
  font-size: 11px;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.18s var(--ease);
}
.proof-action:hover { color: var(--gold-dark); }
.proof-action:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.proof-note { font-size: 7px; letter-spacing: 0.1em; color: var(--muted); }
.proof-facts { gap: 0; }
.proof-facts summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
  cursor: pointer;
}
.proof-facts summary::-webkit-details-marker { display: none; }
.proof-facts summary .plus { position: relative; align-self: flex-end; width: 12px; height: 12px; margin-top: 2px; }
.proof-facts summary .plus::before,
.proof-facts summary .plus::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  transition: transform 0.2s var(--ease);
}
.proof-facts summary .plus::before { left: 0; top: 5.5px; width: 12px; height: 1px; }
.proof-facts summary .plus::after { left: 5.5px; top: 0; width: 1px; height: 12px; }
.proof-facts[open] summary .plus::after { transform: scaleY(0); }
.proof-facts ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.proof-facts li { position: relative; padding-left: 13px; font-size: 10px; line-height: 1.6; color: var(--ink-2); }
.proof-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-dark);
}
.proof-foot { margin-top: 18px; font-size: 10px; color: var(--muted); }

.section-replay .sec-head h2 { max-width: 19em; text-wrap: balance; }

@media (min-width: 981px) {
  .page-hero-auth .authdoc { margin-right: 4px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .auth-hero-grid { gap: 40px; }
  .handover-panel { gap: 34px; }
  .replay-event { grid-template-columns: 60px 108px minmax(0, 1fr) auto; }
}

@media (max-width: 980px) {
  .auth-hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(34px, 6vw, 50px); }
  .auth-hero-doc { width: 100%; max-width: 580px; }
  .page-hero-auth h1 { font-size: clamp(34px, 6vw, 46px); }
  .handover-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .handover-tab-name { font-size: 14px; }
  .handover-panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .handover-sheet h3 { font-size: 26px; }
  .replay-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .replay-side { gap: 16px; }
  .bounds-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .authdoc { transform: none; }
  .handover-tabs { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .handover-rail { display: none; }
  .handover-tab {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .handover-tab-name { font-size: 15px; }
  .handover-tab[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--gold-dark); }
  .handover-body { border-top: 1px solid var(--line); }
  .page-index-row a { flex-basis: 50%; }
  .page-index-row a:nth-child(2n) { border-right: 0; }
  .replay-event { grid-template-columns: 54px 100px minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; }
  .replay-event-note { font-size: 10px; }
  .replay-tag { font-size: 6.5px; }
}

@media (max-width: 640px) {
  .auth-hero-actions { gap: 14px; }
  .auth-hero-actions .ihb { flex: 1 1 100%; justify-content: center; }
  .authdoc { padding: 18px 16px; }
  .authdoc-clauses p span { font-size: 9.5px; }
  .authdoc-fields tbody th { white-space: normal; }
  .page-index-row a { flex-basis: 100%; border-right: 0; }
  .handover-body { padding: 18px; }
  .handover-meta > div { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
  .artifact { padding: 18px 16px; }
  .artifact-list > div { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
  .replay-controls .replay-btn { min-height: 40px; }
  .replay-status { margin-left: 0; flex: 1 1 100%; }
  .replay-event {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "time code tag"
      "note note note";
    gap: 3px 8px;
    padding: 10px 11px;
  }
  .replay-time { grid-area: time; }
  .replay-code { grid-area: code; justify-self: start; }
  .replay-event-note { grid-area: note; }
  .replay-tag { grid-area: tag; justify-self: end; }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-card { padding: 20px; }
  .bounds-table { min-width: 720px; }
  .resp-table { min-width: 640px; }
}

@media print {
  @page { size: A4; margin: 16mm; }
  html,
  body { background: #fff; }
  body * { visibility: hidden; }
  .print-sheet,
  .print-sheet * { visibility: visible; }
  body > header,
  body > footer,
  .site-header,
  .site-footer,
  main > *:not(.print-sheet) { display: none !important; }
  main {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .print-sheet {
    display: block !important;
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 180mm;
    margin: 0 auto;
  }
  .print-sheet .authdoc {
    transform: none;
    border: 0;
    background: #fff;
    box-shadow: none;
    padding: 0;
  }
  .print-sheet .authdoc::before,
  .print-sheet .authdoc::after { display: none; }
  .print-sheet .authdoc-print,
  .print-sheet .authdoc-caption { display: none; }
  .print-sheet .authdoc-head,
  .print-sheet .authdoc-parties,
  .print-sheet .authdoc-subhead,
  .print-sheet .authdoc-clauses p span,
  .print-sheet .authdoc-fields th,
  .print-sheet .authdoc-fields td,
  .print-sheet .authdoc-sign div,
  .print-sheet .authdoc-stamp { border-color: #999; }
  .print-sheet .authdoc-head { font-size: 10px; }
  .print-sheet .authdoc-title { font-size: 31px; }
  .print-sheet .authdoc-parties { font-size: 12px; }
  .print-sheet .authdoc-no { font-size: 10px; }
  .print-sheet .authdoc-clauses strong { font-size: 13px; }
  .print-sheet .authdoc-clauses p span { font-size: 11.5px; line-height: 1.65; }
  .print-sheet .authdoc-subhead { font-size: 9.5px; }
  .print-sheet .authdoc-fields th,
  .print-sheet .authdoc-fields td { font-size: 10.5px; }
  .print-sheet .authdoc-fields thead th { font-size: 9px; }
  .print-sheet .authdoc-fields tbody th { font-size: 10.5px; }
  .print-sheet .authdoc-sign div { font-size: 9px; }
  .print-sheet .authdoc-stamp { font-size: 8.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-link-arrow,
  .handover-rail-fill,
  .handover-token,
  .handover-tab,
  .replay-progress span,
  .replay-event,
  .replay-btn,
  .proof-card,
  .bounds-plus::before,
  .bounds-plus::after,
  .proof-facts summary .plus::before,
  .proof-facts summary .plus::after,
  .authdoc-print { transition: none; }
}

.print-sheet { display: none; }
/* replay idle hint */
.replay-log-wrap { position: relative; }
.replay-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 28px;
  text-align: center;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: rgba(242, 236, 221, 0.68);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.evidence.has-events .replay-hint { opacity: 0; visibility: hidden; }
@media (max-width: 640px) {
  .replay-hint { font-size: 12px; padding: 22px; }
}

/* mobile boundary table — stacked rows keep all three columns visible */
@media (max-width: 640px) {
  .bounds-table { min-width: 0; width: 100%; }
  .bounds-table thead { display: none; }
  .bounds-table,
  .bounds-table tbody,
  .bounds-table tr,
  .bounds-table tbody th,
  .bounds-table td { display: block; width: 100%; }
  .bounds-table tbody tr {
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--line);
  }
  .bounds-table tbody tr:last-child { border-bottom: 0; }
  .bounds-table tbody th {
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    white-space: normal;
    font-size: 15px;
  }
  .bounds-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
    border: 0;
    font-size: 11.5px;
    line-height: 1.7;
  }
  .bounds-table td::before {
    padding-top: 2px;
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    color: var(--muted);
  }
  .bounds-table td:nth-of-type(1)::before { content: "授权后可读"; }
  .bounds-table td:nth-of-type(2)::before { content: "仅元数据"; }
  .bounds-table td:nth-of-type(3)::before { content: "默认排除"; }
  html[data-lang="en"] .bounds-table td:nth-of-type(1)::before { content: "Readable"; }
  html[data-lang="en"] .bounds-table td:nth-of-type(2)::before { content: "Metadata"; }
  html[data-lang="en"] .bounds-table td:nth-of-type(3)::before { content: "Excluded"; }
}

@media (max-width: 640px) {
  .bounds-table caption {
    display: block;
    width: 100%;
    padding: 0 0 14px;
    font-size: 10.5px;
    line-height: 1.7;
  }
}

/* replay idle stage — a faint ledger waiting for events */
.replay-log-wrap {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(242, 236, 221, 0.05) 0,
    rgba(242, 236, 221, 0.05) 1px,
    transparent 1px,
    transparent 52px
  );
  background-position: 0 28px;
}
.evidence.has-events .replay-log-wrap { background-image: none; }
.replay-hint { font-size: 14px; color: rgba(242, 236, 221, 0.78); }
@media (max-width: 640px) {
  .replay-hint { font-size: 12.5px; }
}


/* ============================================================
   How it works — five-scene handover reel (2026-11-23)
   ============================================================ */
.hw-reel-section {
  padding: clamp(36px, 5vw, 64px) 0 clamp(10px, 2vw, 22px);
}
.hw-reel-head {
  max-width: 960px;
  margin-bottom: clamp(26px, 3.4vw, 42px);
}
.hw-reel-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hw-reel-head .lede {
  max-width: 46em;
  margin-top: 18px;
}
.hw-reel-head-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(20px, 2.4vw, 30px);
}
.hw-reel-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hw-reel-jump:hover { color: var(--ink); border-color: var(--gold-dark); }

/* the reel */
.hw-reel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f2ecdd;
  background:
    radial-gradient(120% 80% at 88% 8%, rgba(169, 131, 63, 0.14), transparent 56%),
    radial-gradient(80% 70% at 0% 100%, rgba(58, 112, 84, 0.28), transparent 60%),
    linear-gradient(180deg, #10291f 0%, #0a1d16 62%, #081711 100%);
  border: 1px solid rgba(201, 168, 106, 0.34);
  box-shadow:
    0 44px 90px -64px rgba(8, 23, 17, 0.9),
    0 0 0 1px rgba(201, 168, 106, 0.06) inset;
}
.hw-reel::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(236, 211, 160, 0.08);
}
.hw-reel > * { position: relative; z-index: 1; }

.hw-reel-chrome {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid rgba(236, 211, 160, 0.14);
  background: rgba(7, 21, 15, 0.2);
}
.hw-reel-tag {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(236, 211, 160, 0.68);
  white-space: nowrap;
}
.hw-reel-line {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  overflow: hidden;
  background: rgba(236, 211, 160, 0.14);
}
.hw-reel-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: linear-gradient(90deg, rgba(236, 211, 160, 0.18), rgba(236, 211, 160, 0.9));
  transition: width 0.7s var(--ease);
}
.hw-reel-now {
  flex: 0 0 auto;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(236, 211, 160, 0.52);
}
.hw-reel-now b { font-weight: 500; color: #ecd3a0; }

.hw-reel-stage {
  position: relative;
  height: clamp(500px, 46vw, 612px);
  overflow: hidden;
}
.hw-reel-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236, 211, 160, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 211, 160, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(120% 90% at 34% 34%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 34% 34%, #000 20%, transparent 78%);
}

.hw-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.6vw, 34px) clamp(18px, 3.2vw, 46px) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease), visibility 0.55s;
}
.hw-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 2;
}
.hw-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.hw-scene-copy {
  position: static;
  flex: 0 0 auto;
  max-width: min(640px, 62%);
  padding-bottom: clamp(18px, 2.2vw, 28px);
}
.hw-scene-no {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  top: 6%;
  font-family: var(--serif);
  font-size: clamp(90px, 10vw, 150px);
  line-height: 0.75;
  letter-spacing: -0.04em;
  color: rgba(236, 211, 160, 0.075);
  pointer-events: none;
  user-select: none;
}
.hw-step {
  margin: 0 0 7px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(236, 211, 160, 0.7);
}
.hw-scene-copy h2 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  color: #f4eee1;
}
.hw-scene-copy p {
  max-width: 36em;
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.85;
  color: rgba(242, 236, 221, 0.72);
}
.hw-micro {
  margin-top: 13px !important;
  font-size: 8.5px !important;
  letter-spacing: 0.15em;
  color: rgba(236, 211, 160, 0.58) !important;
}

/* shared paper objects */
.hw-file,
.hw-scope-sheet,
.hw-auth-doc,
.hw-scan-manifest,
.hw-confirm-card,
.hw-record-card {
  background: linear-gradient(178deg, #fbf5e6 0%, #f2e7d1 100%);
  color: #3c3327;
  border: 1px solid rgba(90, 70, 40, 0.22);
  box-shadow: 0 20px 34px -28px rgba(0, 0, 0, 0.9);
}
.hw-scope-sheet,
.hw-auth-doc,
.hw-confirm-card,
.hw-record-card {
  padding: clamp(16px, 1.9vw, 22px);
}
.hw-scope-sheet header,
.hw-auth-doc header,
.hw-scan-manifest header,
.hw-confirm-card header,
.hw-record-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(90, 70, 40, 0.2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #7c6a4d;
}
.hw-scope-sheet h3,
.hw-auth-doc h3,
.hw-confirm-card h3,
.hw-record-card h3 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.15;
  color: #2e2a20;
}

/* scene 01 — scope */
.hw-visual-scope {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
}
.hw-files {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(100%, 220px);
  justify-self: center;
}
.hw-file {
  display: block;
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(14px) rotate(var(--r, 0deg)) translateX(var(--x, 0));
}
.hw-file:nth-child(1) { --r: -2.4deg; --x: -5px; }
.hw-file:nth-child(2) { --r: 1.6deg; --x: 7px; }
.hw-file:nth-child(3) { --r: -1.2deg; --x: -2px; }
.hw-file:nth-child(4) { --r: 2.2deg; --x: 3px; }
.hw-file:nth-child(5) { --r: -1.8deg; --x: -7px; }
.hw-file:nth-child(6) { --r: 1.2deg; --x: 5px; }
.hw-scope-sheet {
  width: 100%;
  transform: rotate(0.5deg);
  opacity: 0;
}
.hw-scope-sheet dl {
  margin: 0;
}
.hw-scope-sheet dl div {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(90, 70, 40, 0.12);
  opacity: 0;
}
.hw-scope-sheet dl div:last-child { border-bottom: 0; }
.hw-scope-sheet dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: #887455;
}
.hw-scope-sheet dd {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: #3c3327;
}
.hw-sheet-note {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #8a6528;
}

/* scene 02 — authorization */
.hw-visual-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
}
.hw-auth-doc {
  position: relative;
  width: min(100%, 430px);
  justify-self: center;
  transform: rotate(-0.8deg);
  opacity: 0;
}
.hw-auth-doc h3 { margin-top: 12px; }
.hw-auth-parties {
  margin: 0 0 10px;
  font-size: 9px;
  color: #7c6a4d;
}
.hw-auth-doc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hw-auth-doc li {
  display: grid;
  grid-template-columns: 22px 3em minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid rgba(90, 70, 40, 0.14);
}
.hw-auth-doc li b {
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #8a6528;
}
.hw-auth-doc li span {
  font-size: 10px;
  font-weight: 600;
  color: #2e2a20;
}
.hw-auth-doc li em {
  font-style: normal;
  font-size: 9.5px;
  line-height: 1.5;
  color: #5f5544;
}
.hw-auth-sign {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(90, 70, 40, 0.18);
  font-family: var(--mono);
  font-size: 8px;
  color: #887455;
}
.hw-auth-sign i {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(90, 70, 40, 0.32);
}
.hw-stamp {
  position: absolute;
  right: 16px;
  bottom: 30px;
  padding: 6px 9px;
  border: 2px solid rgba(138, 101, 40, 0.75);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #8a6528;
  background: rgba(249, 243, 230, 0.62);
  transform: rotate(-8deg) scale(1.15);
  opacity: 0;
}
.hw-auth-side {
  align-self: center;
  font-family: var(--mono);
  color: rgba(242, 236, 221, 0.66);
}
.hw-auth-side > p:first-child {
  margin: 0 0 10px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: rgba(236, 211, 160, 0.62);
}
.hw-auth-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hw-auth-side li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(236, 211, 160, 0.13);
}
.hw-auth-side li span {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(236, 211, 160, 0.52);
}
.hw-auth-side li b {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(242, 236, 221, 0.86);
}
.hw-pill {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 9px;
  border: 1px solid rgba(236, 211, 160, 0.3);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(236, 211, 160, 0.72);
}

/* scene 03 — read-only scan */
.hw-visual-scan {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
}
.hw-scan-files {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 4px;
}
.hw-scan-file {
  display: block;
  padding: 6px 9px;
  background: rgba(248, 241, 226, 0.96);
  border: 1px solid rgba(90, 70, 40, 0.2);
  font-family: var(--mono);
  font-size: 8.5px;
  color: #433629;
  box-shadow: 0 10px 18px -16px rgba(0, 0, 0, 0.85);
}
.hw-scan-beam {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(236, 211, 160, 0.08) 36%, rgba(255, 246, 220, 0.34) 50%, rgba(236, 211, 160, 0.08) 64%, transparent 100%);
  background-size: 42% 100%;
  background-repeat: no-repeat;
  background-position: -42% 0;
  opacity: 0;
}
.hw-scan-manifest {
  position: relative;
  width: 100%;
  opacity: 0;
  transform: rotate(0.4deg);
}
.hw-scan-manifest header { padding-bottom: 8px; }
.hw-scan-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hw-scan-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(90, 70, 40, 0.13);
  font-family: var(--mono);
  font-size: 8.5px;
  color: #4c4233;
  opacity: 0;
  transform: translateY(5px);
}
.hw-scan-rows li i {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #8a6528;
}
.hw-scan-zero {
  display: flex;
  gap: 18px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #8a6528;
}
.hw-skip {
  position: absolute;
  right: 0;
  bottom: -4px;
  padding: 7px 9px;
  border: 1px solid rgba(192, 138, 74, 0.7);
  background: rgba(31, 22, 13, 0.94);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  color: #f0c98a;
  opacity: 0;
  transform: translateY(6px);
  white-space: nowrap;
}
.hw-skip small {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  color: rgba(240, 201, 138, 0.66);
}

/* scene 04 — confirmation */
.hw-visual-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
}
.hw-confirm-card {
  position: relative;
  width: min(100%, 440px);
  justify-self: center;
  opacity: 0;
  transform: rotate(0.7deg) translateY(12px);
}
.hw-confirm-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hw-confirm-card li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(90, 70, 40, 0.14);
}
.hw-confirm-card li span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #887455;
}
.hw-confirm-card li b {
  font-size: 10px;
  font-weight: 600;
  color: #3c3327;
}
.hw-confirm-foot {
  margin: 11px 0 0;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #8a6528;
}
.hw-seal {
  position: absolute;
  right: -10px;
  bottom: -9px;
  padding: 6px 8px;
  border: 1px solid rgba(138, 101, 40, 0.65);
  border-radius: 2px;
  background: rgba(249, 243, 230, 0.94);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  color: #8a6528;
  transform: rotate(-7deg);
  opacity: 0;
}
.hw-confirm-side {
  align-self: center;
  font-family: var(--mono);
}
.hw-confirm-side > p {
  margin: 0 0 10px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: rgba(236, 211, 160, 0.62);
}
.hw-confirm-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hw-confirm-side li {
  padding: 10px 0;
  border-top: 1px solid rgba(236, 211, 160, 0.13);
  font-size: 10px;
  color: rgba(242, 236, 221, 0.82);
}
.hw-confirm-side li::before {
  content: "✓";
  margin-right: 8px;
  color: #c8a86a;
}

/* scene 05 — archive */
.hw-visual-archive {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
}
.hw-record-card {
  position: relative;
  width: min(100%, 460px);
  justify-self: center;
  opacity: 0;
  transform: translateX(30px) rotate(1.2deg);
}
.hw-record-card h3 {
  margin: 10px 0 6px;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: 0.02em;
}
.hw-record-stats {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #8a6528;
}
.hw-record-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
  color: #5f5544;
}
.hw-record-seal {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 6px 8px;
  border: 2px solid rgba(138, 101, 40, 0.65);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #8a6528;
  transform: rotate(-8deg);
  opacity: 0;
}
.hw-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 4px;
  height: clamp(148px, 18vw, 196px);
  padding: 30px 12px 12px;
  border: 1px dashed rgba(236, 211, 160, 0.3);
  background: rgba(4, 16, 11, 0.26);
  font-family: var(--mono);
  overflow: hidden;
}
.hw-drawer::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 47%;
  height: 1px;
  background: rgba(236, 211, 160, 0.18);
  pointer-events: none;
}
.hw-drawer-label {
  position: absolute;
  top: 11px;
  left: 13px;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(236, 211, 160, 0.5);
}
.hw-drawer-slip {
  display: block;
  padding: 6px 8px;
  border: 1px solid rgba(90, 70, 40, 0.22);
  background: linear-gradient(178deg, #fbf5e6, #f2e7d1);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: #4c4233;
  opacity: 0;
  transform: translateY(12px);
  box-shadow: 0 10px 18px -16px rgba(0, 0, 0, 0.85);
}

/* reel animations */
@keyframes hwFileIn {
  to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)) translateX(var(--x, 0)); }
}
@keyframes hwSheetIn {
  from { opacity: 0; transform: translateY(18px) rotate(1.4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0.5deg); }
}
@keyframes hwRowIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hwDocIn {
  from { opacity: 0; transform: translateY(22px) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(-0.8deg); }
}
@keyframes hwStamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.6); }
  55% { opacity: 1; transform: rotate(-8deg) scale(0.96); }
  100% { opacity: 0.94; transform: rotate(-8deg) scale(1); }
}
@keyframes hwBeam {
  0% { background-position: -42% 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { background-position: 142% 0; opacity: 0; }
}
@keyframes hwCardIn {
  from { opacity: 0; transform: translateY(12px) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0.4deg); }
}
@keyframes hwSealIn {
  to { opacity: 1; transform: rotate(-7deg) scale(1); }
}
@keyframes hwRecordIn {
  from { opacity: 0; transform: translateX(38px) rotate(2.2deg); }
  to { opacity: 1; transform: translateX(0) rotate(-0.6deg); }
}
@keyframes hwSkipIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hwSlipIn {
  to { opacity: 1; transform: translateY(0); }
}

.hw-scene.is-active .hw-file { animation: hwFileIn 0.55s var(--ease) forwards; }
.hw-scene.is-active .hw-file:nth-child(1) { animation-delay: 0.06s; }
.hw-scene.is-active .hw-file:nth-child(2) { animation-delay: 0.12s; }
.hw-scene.is-active .hw-file:nth-child(3) { animation-delay: 0.18s; }
.hw-scene.is-active .hw-file:nth-child(4) { animation-delay: 0.24s; }
.hw-scene.is-active .hw-file:nth-child(5) { animation-delay: 0.3s; }
.hw-scene.is-active .hw-file:nth-child(6) { animation-delay: 0.36s; }
.hw-scene.is-active .hw-scope-sheet { animation: hwSheetIn 0.75s 0.18s var(--ease) forwards; }
.hw-scene.is-active .hw-scope-sheet dl div { animation: hwRowIn 0.4s var(--ease) forwards; }
.hw-scene.is-active .hw-scope-sheet dl div:nth-child(1) { animation-delay: 0.55s; }
.hw-scene.is-active .hw-scope-sheet dl div:nth-child(2) { animation-delay: 0.66s; }
.hw-scene.is-active .hw-scope-sheet dl div:nth-child(3) { animation-delay: 0.77s; }
.hw-scene.is-active .hw-scope-sheet dl div:nth-child(4) { animation-delay: 0.88s; }
.hw-scene.is-active .hw-auth-doc { animation: hwDocIn 0.8s 0.12s var(--ease) forwards; }
.hw-scene.is-active .hw-stamp { animation: hwStamp 0.55s 1.15s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-beams { }
.hw-scene.is-active .hw-scan-beam { animation: hwBeam 2.6s 0.9s var(--ease) 2; }
.hw-scene.is-active .hw-scan-manifest { animation: hwSheetIn 0.65s 0.2s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-rows li { animation: hwRowIn 0.4s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-rows li:nth-child(1) { animation-delay: 0.75s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(2) { animation-delay: 0.92s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(3) { animation-delay: 1.09s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(4) { animation-delay: 1.26s; }
.hw-scene.is-active .hw-skip { animation: hwSkipIn 0.45s 2.05s var(--ease) forwards; }
.hw-scene.is-active .hw-confirm-card { animation: hwCardIn 0.7s 0.12s var(--ease) forwards; }
.hw-scene.is-active .hw-seal { animation: hwSealIn 0.4s 1.15s var(--ease) forwards; }
.hw-scene.is-active .hw-record-card { animation: hwRecordIn 0.8s 0.12s var(--ease) forwards; }
.hw-scene.is-active .hw-record-seal { animation: hwSealIn 0.4s 1.25s var(--ease) forwards; }
.hw-scene.is-active .hw-drawer-slip { animation: hwSlipIn 0.5s var(--ease) forwards; }
.hw-scene.is-active .hw-drawer-slip:nth-of-type(1) { animation-delay: 1.05s; }
.hw-scene.is-active .hw-drawer-slip:nth-of-type(2) { animation-delay: 1.2s; }
.hw-scene.is-active .hw-drawer-slip:nth-of-type(3) { animation-delay: 1.35s; }

/* controls */
.hw-reel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px clamp(18px, 3vw, 32px);
  border-top: 1px solid rgba(236, 211, 160, 0.14);
  background: rgba(7, 21, 15, 0.32);
}
.hw-reel-play {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 7px 11px;
  border: 1px solid rgba(236, 211, 160, 0.38);
  background: rgba(236, 211, 160, 0.08);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #ecd3a0;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hw-reel-play:hover { background: rgba(236, 211, 160, 0.16); border-color: rgba(236, 211, 160, 0.6); }
.hw-reel-play-on { display: none; }
.hw-reel-play-off { display: inline; }
.hw-reel.is-playing .hw-reel-play-on { display: inline; }
.hw-reel.is-playing .hw-reel-play-off { display: none; }
.hw-reel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hw-reel-dot {
  width: 26px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(236, 211, 160, 0.22);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.hw-reel-dot:hover { background: rgba(236, 211, 160, 0.5); }
.hw-reel-dot.is-current { background: #ecd3a0; transform: scaleY(2); }
.hw-reel-nav {
  display: flex;
  gap: 5px;
}
.hw-reel-nav button {
  width: 26px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(236, 211, 160, 0.24);
  background: transparent;
  font-size: 11px;
  color: rgba(242, 236, 221, 0.7);
  cursor: pointer;
}
.hw-reel-nav button:hover { border-color: rgba(236, 211, 160, 0.6); color: #ecd3a0; }
.hw-reel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(236, 211, 160, 0.52);
}
.hw-reel-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ecd3a0;
  box-shadow: 0 0 8px rgba(236, 211, 160, 0.6);
}

/* artifacts and guards */
.hw-docbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 20px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}
.hw-docbar-label {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.hw-docbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hw-docbar-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 10.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.hw-docbar-actions button:hover {
  border-color: var(--gold-dark);
  color: var(--ink);
  background: var(--surface);
}
.hw-docbar-note {
  flex: 1 1 100%;
  margin: 1px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.hw-guards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-top: 18px;
}
.hw-guards > p {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.hw-guards ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hw-guards li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--ink-2);
}
.hw-guards .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-dark);
}

/* FAQ spacing */
.hw-faq { padding-top: clamp(48px, 6vw, 84px); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hw-scene,
  .hw-scene * { animation: none !important; transition: none !important; }
  .hw-file,
  .hw-scope-sheet,
  .hw-scope-sheet dl div,
  .hw-scan-manifest,
  .hw-scan-rows li,
  .hw-auth-doc,
  .hw-stamp,
  .hw-skip,
  .hw-confirm-card,
  .hw-seal,
  .hw-record-card,
  .hw-record-seal,
  .hw-drawer-slip { opacity: 1 !important; transform: none !important; }
  .hw-scan-beam { display: none; }
  .hw-file:nth-child(odd) { transform: rotate(-1deg) !important; }
}

/* tablet */
@media (max-width: 1120px) {
  .hw-reel-stage { height: clamp(500px, 52vw, 600px); }
  .hw-scene-copy { max-width: 72%; }
  .hw-scene-no { opacity: 0.7; }
}

/* mobile */
@media (max-width: 920px) {
  .hw-reel-head h1 { font-size: clamp(38px, 8.4vw, 56px); }
  .hw-reel-head .lede { font-size: 14px; }
  .hw-reel-stage { height: 650px; }
  .hw-scene { padding: 16px 16px 0; }
  .hw-scene-copy { max-width: 100%; padding-bottom: 16px; }
  .hw-scene-copy h2 { font-size: clamp(25px, 6vw, 32px); }
  .hw-scene-copy p { font-size: 12.5px; line-height: 1.8; }
  .hw-micro { font-size: 7.5px !important; letter-spacing: 0.1em; }
  .hw-scene-no { top: 4%; right: 14px; font-size: 88px; opacity: 0.62; }
  .hw-visual-scope,
  .hw-visual-auth,
  .hw-visual-scan,
  .hw-visual-confirm,
  .hw-visual-archive {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
  .hw-files {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 5px;
  }
  .hw-file {
    width: calc(50% - 3px);
    padding: 5px 7px;
    font-size: 7.5px;
  }
  .hw-scope-sheet { width: 100%; padding: 13px; }
  .hw-scope-sheet h3 { margin: 8px 0 6px; font-size: 15px; }
  .hw-scope-sheet dl div { grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; padding: 4px 0; }
  .hw-scope-sheet dt { font-size: 7px; }
  .hw-scope-sheet dd { font-size: 9px; }
  .hw-sheet-note { font-size: 7px; margin-top: 7px; }
  .hw-auth-side,
  .hw-confirm-side { display: none; }
  .hw-auth-doc { width: 100%; max-width: 100%; padding: 14px; }
  .hw-auth-doc h3 { margin: 8px 0 5px; font-size: 18px; }
  .hw-auth-parties { font-size: 7.5px; margin-bottom: 6px; }
  .hw-auth-doc li { grid-template-columns: 18px 2.6em minmax(0, 1fr); gap: 6px; padding: 5px 0; }
  .hw-auth-doc li span { font-size: 8.5px; }
  .hw-auth-doc li em { font-size: 8px; }
  .hw-auth-sign { margin-top: 8px; padding-top: 7px; font-size: 7px; }
  .hw-stamp { right: 8px; bottom: 18px; font-size: 6.5px; padding: 4px 6px; }
  .hw-scan-files { grid-template-columns: 1fr 1fr; display: grid; width: 100%; gap: 4px; padding: 2px; }
  .hw-scan-file { font-size: 7px; padding: 4px 5px; }
  .hw-scan-manifest { padding: 11px; }
  .hw-scan-manifest header { font-size: 7px; padding-bottom: 6px; }
  .hw-scan-rows li { font-size: 7px; padding: 4px 0; }
  .hw-scan-rows li i { font-size: 6.5px; }
  .hw-scan-zero { font-size: 6.5px; gap: 12px; margin-top: 6px; }
  .hw-skip { position: static; align-self: flex-end; margin-top: 2px; font-size: 6.5px; padding: 5px 6px; }
  .hw-skip small { font-size: 6px; }
  .hw-confirm-card,
  .hw-record-card { width: 100%; padding: 14px; }
  .hw-confirm-card h3 { margin: 8px 0 5px; font-size: 17px; }
  .hw-confirm-card li { padding: 6px 0; }
  .hw-confirm-card li span { font-size: 7px; }
  .hw-confirm-card li b { font-size: 9px; }
  .hw-confirm-foot { margin-top: 8px; font-size: 6.5px; }
  .hw-seal { right: -4px; bottom: -7px; font-size: 6.5px; padding: 4px 6px; }
  .hw-record-card h3 { font-size: 25px; margin: 8px 0 4px; }
  .hw-record-stats { font-size: 7px; }
  .hw-record-note { font-size: 8.5px; }
  .hw-record-seal { right: 8px; bottom: 9px; font-size: 6.5px; padding: 4px 6px; }
  .hw-drawer { height: 86px; padding: 26px 9px 9px; gap: 3px; }
  .hw-drawer-label { top: 8px; left: 9px; font-size: 6.5px; }
  .hw-drawer-slip { padding: 4px 5px; font-size: 6px; }
  .hw-reel-chrome { gap: 10px; padding: 10px 14px; }
  .hw-reel-tag { font-size: 7.5px; letter-spacing: 0.1em; }
  .hw-reel-now { font-size: 8px; }
  .hw-reel-controls { flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; }
  .hw-reel-play { min-width: 62px; padding: 6px 9px; font-size: 8px; }
  .hw-reel-dots { order: 5; flex: 1 1 100%; justify-content: space-between; gap: 5px; }
  .hw-reel-dot { flex: 1 1 auto; width: auto; }
  .hw-reel-status { margin-left: 0; }
  .hw-docbar { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; }
  .hw-docbar-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 6px; }
  .hw-docbar-actions button { width: 100%; justify-content: space-between; }
  .hw-docbar-note { font-size: 7px; }
  .hw-guards { gap: 8px 16px; }
  .hw-guards ul { gap: 7px 14px; }
  .hw-guards li { font-size: 9.5px; }
  .hw-reel-head-actions { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .hw-reel-head-actions .ihb { width: 100%; }
}

/* Evidence breathing — authorization, read-only scan, confirmation (2026-11-23) */
@keyframes hwClauseIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hwClauseGlow {
  0% { opacity: 0; background-position: -60% 0; }
  24% { opacity: .9; }
  100% { opacity: 0; background-position: 160% 0; }
}
@keyframes hwSideIn {
  from { opacity: 0; transform: translateX(9px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hwDocGlow {
  0%, 100% { box-shadow: 0 30px 58px -38px rgba(0,0,0,.9), 0 0 0 1px rgba(236,211,160,.10); }
  50% { box-shadow: 0 30px 62px -36px rgba(0,0,0,.92), 0 0 0 1px rgba(236,211,160,.60), 0 0 42px -14px rgba(236,211,160,.50); }
}
@keyframes hwPaperBreathe {
  0%, 100% { box-shadow: 0 26px 48px -34px rgba(0,0,0,.86), 0 0 0 1px rgba(236,211,160,.08); }
  50% { box-shadow: 0 28px 54px -32px rgba(0,0,0,.9), 0 0 0 1px rgba(236,211,160,.42), 0 0 30px -12px rgba(236,211,160,.34); }
}
@keyframes hwSealRing {
  0% { opacity: .55; transform: scale(.88); }
  70% { opacity: 0; transform: scale(1.42); }
  100% { opacity: 0; transform: scale(1.42); }
}
@keyframes hwPillBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236,211,160,0); }
  50% { box-shadow: 0 0 0 3px rgba(236,211,160,.06), 0 0 18px -10px rgba(236,211,160,.4); }
}
@keyframes hwLedBlink {
  0%, 100% { opacity: .38; box-shadow: 0 0 0 0 rgba(236,211,160,0); }
  50% { opacity: 1; box-shadow: 0 0 0 3px rgba(236,211,160,.07); }
}
@keyframes hwScanFileIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hwFileRead {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes hwRowFlash {
  0% { opacity: 0; transform: scaleX(.4); }
  28% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}
@keyframes hwReadTag {
  from { opacity: 0; transform: translateX(4px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hwZeroIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hwZeroBreathe {
  0%, 100% { text-shadow: 0 0 0 rgba(236,211,160,0); }
  50% { text-shadow: 0 0 10px rgba(236,211,160,.45); }
}
@keyframes hwSkipBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,201,138,0); }
  50% { box-shadow: 0 0 0 3px rgba(240,201,138,.08), 0 0 20px -10px rgba(240,201,138,.45); }
}
@keyframes hwSkipRing {
  0% { opacity: .5; transform: scale(.94); }
  70% { opacity: 0; transform: scale(1.24); }
  100% { opacity: 0; transform: scale(1.24); }
}
@keyframes hwConfirmRowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hwCheckIn {
  from { opacity: 0; transform: scale(.55); }
  to { opacity: 1; transform: scale(1); }
}

/* scene 02 — clauses breathe in one by one, then the paper keeps a slow glow */
.hw-auth-doc li {
  position: relative;
  opacity: 0;
  transform: translateY(7px);
}
.hw-auth-doc li::before {
  content: "";
  position: absolute;
  inset: 0 -3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,106,.26) 48%, transparent 100%);
  background-size: 55% 100%;
  background-repeat: no-repeat;
  background-position: -60% 0;
  opacity: 0;
}
.hw-scene.is-active .hw-auth-doc li { animation: hwClauseIn .5s var(--ease) forwards; }
.hw-scene.is-active .hw-auth-doc li:nth-child(1) { animation-delay: .42s; }
.hw-scene.is-active .hw-auth-doc li:nth-child(2) { animation-delay: .56s; }
.hw-scene.is-active .hw-auth-doc li:nth-child(3) { animation-delay: .70s; }
.hw-scene.is-active .hw-auth-doc li:nth-child(4) { animation-delay: .84s; }
.hw-scene.is-active .hw-auth-doc li::before { animation: hwClauseGlow 1.15s var(--ease) forwards; }
.hw-scene.is-active .hw-auth-doc li:nth-child(1)::before { animation-delay: .40s; }
.hw-scene.is-active .hw-auth-doc li:nth-child(2)::before { animation-delay: .54s; }
.hw-scene.is-active .hw-auth-doc li:nth-child(3)::before { animation-delay: .68s; }
.hw-scene.is-active .hw-auth-doc li:nth-child(4)::before { animation-delay: .82s; }
.hw-scene.is-active .hw-auth-doc {
  animation: hwDocIn .8s .12s var(--ease) forwards, hwDocGlow 4.6s 1.2s ease-in-out infinite;
}
.hw-scene.is-active .hw-auth-side > p:first-child { animation: hwSideIn .45s .46s var(--ease) forwards; }
.hw-scene.is-active .hw-auth-side li:nth-child(1) { animation: hwSideIn .45s .62s var(--ease) forwards; }
.hw-scene.is-active .hw-auth-side li:nth-child(2) { animation: hwSideIn .45s .78s var(--ease) forwards; }
.hw-scene.is-active .hw-pill {
  animation: hwSideIn .45s 1.02s var(--ease) forwards, hwPillBreathe 3.4s 1.5s ease-in-out infinite;
}
.hw-auth-side > p:first-child,
.hw-auth-side li,
.hw-pill {
  opacity: 0;
  transform: translateX(9px);
}
.hw-auth-side > p:first-child::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ecd3a0;
  vertical-align: 2px;
  animation: hwLedBlink 2.6s 1.1s ease-in-out infinite;
}
.hw-stamp::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(201,169,106,.62);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
}
.hw-scene.is-active .hw-stamp::after { animation: hwSealRing 2.8s 1.48s ease-out infinite; }

/* scene 03 — files light up as the manifest records them; the skipped read keeps a pulse */
.hw-scan-file {
  position: relative;
  opacity: 0;
  transform: translateY(8px);
}
.hw-scan-file::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(236,211,160,.10), rgba(236,211,160,.55));
  box-shadow: inset 0 0 0 1px rgba(201,169,106,.45);
  opacity: 0;
}
.hw-scene.is-active .hw-scan-file { animation: hwScanFileIn .42s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-file:nth-child(1) { animation-delay: .14s; }
.hw-scene.is-active .hw-scan-file:nth-child(2) { animation-delay: .20s; }
.hw-scene.is-active .hw-scan-file:nth-child(3) { animation-delay: .26s; }
.hw-scene.is-active .hw-scan-file:nth-child(4) { animation-delay: .32s; }
.hw-scene.is-active .hw-scan-file:nth-child(5) { animation-delay: .38s; }
.hw-scene.is-active .hw-scan-file:nth-child(6) { animation-delay: .44s; }
.hw-scene.is-active .hw-scan-file:nth-child(1)::after { animation: hwFileRead 1.05s .70s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-file:nth-child(2)::after { animation: hwFileRead 1.05s .87s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-file:nth-child(3)::after { animation: hwFileRead 1.05s 1.04s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-file:nth-child(4)::after { animation: hwFileRead 1.05s 1.21s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-manifest {
  animation: hwSheetIn .65s .2s var(--ease) forwards, hwPaperBreathe 4.4s 1.4s ease-in-out infinite;
}
.hw-scan-rows li { position: relative; }
.hw-scan-rows li::before {
  content: "";
  position: absolute;
  inset: 0 -4px;
  transform-origin: 0 50%;
  background: rgba(201,169,106,.14);
  opacity: 0;
  pointer-events: none;
}
.hw-scene.is-active .hw-scan-rows li::before { animation: hwRowFlash 1s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-rows li:nth-child(1)::before { animation-delay: .76s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(2)::before { animation-delay: .93s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(3)::before { animation-delay: 1.10s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(4)::before { animation-delay: 1.27s; }
.hw-scan-rows li i { opacity: 0; }
.hw-scene.is-active .hw-scan-rows li i { animation: hwReadTag .32s var(--ease) forwards; }
.hw-scene.is-active .hw-scan-rows li:nth-child(1) i { animation-delay: .84s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(2) i { animation-delay: 1.01s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(3) i { animation-delay: 1.18s; }
.hw-scene.is-active .hw-scan-rows li:nth-child(4) i { animation-delay: 1.35s; }
.hw-scan-zero { opacity: 0; }
.hw-scene.is-active .hw-scan-zero {
  animation: hwZeroIn .45s 1.78s var(--ease) forwards, hwZeroBreathe 3.6s 2.3s ease-in-out infinite;
}
.hw-skip {
  box-shadow: 0 0 0 0 rgba(240,201,138,0);
}
.hw-skip::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  background: #f0c98a;
  vertical-align: 2px;
  animation: hwLedBlink 2.2s 2.5s ease-in-out infinite;
}
.hw-skip::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(240,201,138,.48);
  pointer-events: none;
  opacity: 0;
}
.hw-scene.is-active .hw-skip {
  animation: hwSkipIn .45s 2.05s var(--ease) forwards, hwSkipBreathe 3.2s 2.55s ease-in-out infinite;
}
.hw-scene.is-active .hw-skip::after { animation: hwSkipRing 3.2s 2.55s ease-out infinite; }

/* scene 04 — rows land, then every check gets its own quiet beat */
.hw-confirm-card li { opacity: 0; transform: translateY(6px); }
.hw-scene.is-active .hw-confirm-card li { animation: hwConfirmRowIn .45s var(--ease) forwards; }
.hw-scene.is-active .hw-confirm-card li:nth-child(1) { animation-delay: .42s; }
.hw-scene.is-active .hw-confirm-card li:nth-child(2) { animation-delay: .56s; }
.hw-scene.is-active .hw-confirm-card li:nth-child(3) { animation-delay: .70s; }
.hw-confirm-side li { opacity: 0; transform: translateX(8px); }
.hw-confirm-side li::before {
  display: inline-block;
  opacity: 0;
  transform: scale(.55);
}
.hw-scene.is-active .hw-confirm-side li { animation: hwSideIn .45s var(--ease) forwards; }
.hw-scene.is-active .hw-confirm-side li:nth-child(1) { animation-delay: .72s; }
.hw-scene.is-active .hw-confirm-side li:nth-child(2) { animation-delay: .86s; }
.hw-scene.is-active .hw-confirm-side li:nth-child(3) { animation-delay: 1.00s; }
.hw-scene.is-active .hw-confirm-side li::before { animation: hwCheckIn .38s var(--ease) forwards; }
.hw-scene.is-active .hw-confirm-side li:nth-child(1)::before { animation-delay: .82s; }
.hw-scene.is-active .hw-confirm-side li:nth-child(2)::before { animation-delay: .96s; }
.hw-scene.is-active .hw-confirm-side li:nth-child(3)::before { animation-delay: 1.10s; }
.hw-confirm-foot { opacity: 0; }
.hw-scene.is-active .hw-confirm-foot { animation: hwZeroIn .45s .94s var(--ease) forwards; }
.hw-scene.is-active .hw-confirm-card {
  animation: hwCardIn .7s .12s var(--ease) forwards, hwPaperBreathe 4.4s 1.4s ease-in-out infinite;
}
.hw-seal::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(201,169,106,.55);
  pointer-events: none;
  opacity: 0;
}
.hw-scene.is-active .hw-seal::after { animation: hwSealRing 2.8s 1.42s ease-out infinite; }

/* scene 05 — the record settles, then breathes */
.hw-scene.is-active .hw-record-card {
  animation: hwRecordIn .8s .12s var(--ease) forwards, hwPaperBreathe 4.6s 1.5s ease-in-out infinite;
}
.hw-record-seal::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(201,169,106,.55);
  pointer-events: none;
  opacity: 0;
}
.hw-scene.is-active .hw-record-seal::after { animation: hwSealRing 2.8s 1.5s ease-out infinite; }
.hw-drawer::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(236,211,160,.18);
  pointer-events: none;
  opacity: 0;
}
.hw-scene.is-active .hw-drawer::after { animation: hwPaperBreathe 4.8s 1.6s ease-in-out infinite; }

/* reduced motion — keep every piece of evidence visible and still */
@media (prefers-reduced-motion: reduce) {
  .hw-auth-doc li,
  .hw-auth-side > p:first-child,
  .hw-auth-side li,
  .hw-pill,
  .hw-scan-file,
  .hw-scan-rows li i,
  .hw-scan-zero,
  .hw-confirm-card li,
  .hw-confirm-side li,
  .hw-confirm-side li::before,
  .hw-confirm-foot {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hw-auth-doc li::before,
  .hw-scan-file::after,
  .hw-scan-rows li::before,
  .hw-skip::before,
  .hw-skip::after,
  .hw-stamp::after,
  .hw-seal::after,
  .hw-record-seal::after,
  .hw-drawer::after {
    display: none !important;
    animation: none !important;
  }
}


/* Evidence breathing — continuous read heads and clause beats (2026-11-23, round 2) */
@keyframes hwClauseBeat {
  0%, 70%, 100% { opacity: .14; transform: scale(1); box-shadow: 0 0 0 0 rgba(169, 131, 63, 0); }
  7% { opacity: .95; transform: scale(1.4); box-shadow: 0 0 0 4px rgba(169, 131, 63, .10); }
  16% { opacity: .22; transform: scale(1); box-shadow: 0 0 0 0 rgba(169, 131, 63, 0); }
}
@keyframes hwAuthSweep {
  0%, 100% { top: 10%; opacity: 0; }
  7% { opacity: .96; }
  48% { top: 87%; opacity: .66; }
  58% { opacity: 0; }
}
@keyframes hwStackSweep {
  0%, 100% { top: 2%; opacity: 0; }
  8% { opacity: 1; }
  50% { top: 93%; opacity: .60; }
  60% { opacity: 0; }
}
@keyframes hwManifestSweep {
  0%, 100% { top: 30%; opacity: 0; }
  8% { opacity: .92; }
  52% { top: 86%; opacity: .55; }
  62% { opacity: 0; }
}
.hw-auth-doc li::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #a9833f;
  opacity: .14;
  pointer-events: none;
  animation: hwClauseBeat 4.6s 1.2s ease-in-out infinite;
}
.hw-scene.is-active .hw-auth-doc li:nth-child(2)::after { animation-delay: 1.75s; }
.hw-scene.is-active .hw-auth-doc li:nth-child(3)::after { animation-delay: 2.3s; }
.hw-scene.is-active .hw-auth-doc li:nth-child(4)::after { animation-delay: 2.85s; }
.hw-auth-doc::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 10%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 106, .88) 44%, rgba(255, 246, 220, 1) 50%, rgba(201, 169, 106, .88) 56%, transparent 100%);
  box-shadow: 0 0 18px rgba(236, 211, 160, .55), 0 0 34px 6px rgba(201, 169, 106, .16);
  opacity: 0;
  animation: hwAuthSweep 4.8s 1.4s ease-in-out infinite;
}
.hw-scene.is-active .hw-auth-doc::after { animation-play-state: running; }
.hw-scan-files::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 2%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(236, 211, 160, .9) 44%, rgba(255, 246, 220, 1) 50%, rgba(236, 211, 160, .9) 56%, transparent 100%);
  box-shadow: 0 0 20px rgba(236, 211, 160, .6), 0 0 38px 8px rgba(236, 211, 160, .18);
  opacity: 0;
  animation: hwStackSweep 3.6s 1.05s ease-in-out infinite;
}
.hw-scan-manifest::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 30%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 106, .8) 45%, rgba(255, 246, 220, 1) 50%, rgba(201, 169, 106, .8) 55%, transparent 100%);
  box-shadow: 0 0 16px rgba(236, 211, 160, .5);
  opacity: 0;
  animation: hwManifestSweep 4.2s 1.7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hw-auth-doc li::after,
  .hw-auth-doc::after,
  .hw-scan-files::after,
  .hw-scan-manifest::after {
    display: none !important;
    animation: none !important;
  }
}

@media (max-width: 920px) {
  .hw-skip { position: static; align-self: flex-end; margin-top: 2px; }
}


/* the whole stage breathes with the evidence */
@keyframes hwStageBreathe {
  0%, 100% { opacity: .34; transform: scale(1); }
  50% { opacity: .62; transform: scale(1.045); }
}
.hw-reel::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(46% 42% at 31% 36%, rgba(236, 211, 160, .15), transparent 70%);
  opacity: .4;
  animation: hwStageBreathe 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hw-reel::before { display: none !important; animation: none !important; }
}

/* keep the evidence copy balanced, never a one-character orphan */
.hw-scene-copy > p { text-wrap: pretty; }


/* ---------- Stripe-style handover console (2026-11-23) ---------- */
.hw-hero {
  position: relative;
  padding: clamp(34px, 4.8vw, 62px) 0 clamp(48px, 7vw, 92px);
  overflow: clip;
}
.hw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 64% at 80% 34%, rgba(39, 82, 63, .14), transparent 72%),
    radial-gradient(38% 52% at 94% 72%, rgba(157, 122, 56, .12), transparent 74%);
}
.hw-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(30px, 5vw, 68px);
}
.hw-hero-copy h1 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.1vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
  word-break: keep-all;
  line-break: strict;
  text-wrap: balance;
}
.hw-hero-copy .lede { max-width: 31em; margin: 0; }
.hw-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 26px;
}
.hw-hero-note { font-size: 9px; letter-spacing: .13em; color: var(--muted); }
.hw-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 30px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 12px;
  color: var(--ink-2);
}
.hw-hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hw-hero-points .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
}

.hw-demo {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  color: var(--ink);
  background: #fcf8ef;
  border: 1px solid rgba(22, 36, 29, .17);
  border-radius: 11px;
  box-shadow:
    0 60px 100px -58px rgba(9, 24, 17, .55),
    0 18px 40px -30px rgba(9, 24, 17, .3),
    0 1px 0 rgba(255, 255, 255, .75) inset;
  overflow: hidden;
  isolation: isolate;
}
.hw-demo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  z-index: 2;
  pointer-events: none;
}
.hw-demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 54px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .38);
  border-bottom: 1px solid rgba(22, 36, 29, .1);
}
.hw-demo-brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.hw-demo-brand img { border-radius: 50%; }
.hw-demo-brand > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hw-demo-brand b { font-family: var(--serif); font-size: 15px; line-height: 1.1; letter-spacing: -.01em; }
.hw-demo-brand em { font-style: normal; font-size: 7.5px; letter-spacing: .17em; color: var(--muted); }
.hw-demo-status { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font-size: 8.5px; letter-spacing: .12em; color: var(--ink-2); }
.hw-demo-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(157, 122, 56, .12);
  animation: hwConsoleBlink 2.6s ease-in-out infinite;
}
.hw-demo-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fbf6ea;
  border-bottom: 1px solid rgba(22, 36, 29, .11);
}
.hw-demo-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px 9px;
  border: 0;
  border-right: 1px solid rgba(22, 36, 29, .09);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.hw-demo-tab:last-child { border-right: 0; }
.hw-demo-tab:hover { background: rgba(255, 255, 255, .45); color: var(--ink-2); }
.hw-demo-tab-no { font-size: 8px; letter-spacing: .1em; }
.hw-demo-tab-label { font-size: 11.5px; line-height: 1.2; white-space: nowrap; }
.hw-demo-tab.is-current { color: var(--ink); background: rgba(255, 255, 255, .72); }
.hw-demo-tab.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--gold-dark);
}
.hw-demo-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.hw-demo-viewport {
  position: relative;
  height: clamp(386px, 28.6vw, 412px);
  transition: height .42s var(--ease);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 32%),
    #fcf8ef;
}
.hw-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 18px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity .48s var(--ease), transform .48s var(--ease), visibility .48s;
}
.hw-screen.is-active { opacity: 1; visibility: visible; transform: none; }
.hw-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(22, 36, 29, .13);
  font-size: 8px;
  letter-spacing: .11em;
  color: var(--muted);
}
.hw-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(22, 36, 29, .16);
  border-radius: 2px;
  color: var(--ink-2);
  font-size: 8px;
  letter-spacing: .1em;
}
.hw-chip.is-live { color: var(--gold-dark); border-color: rgba(157, 122, 56, .45); }
.hw-screen-body {
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 12px;
}
.hw-screen-body-scope { grid-template-columns: 1.02fr .98fr; }
.hw-screen-body-auth { grid-template-columns: 1.04fr .96fr; }
.hw-screen-body-scan { grid-template-columns: 1.04fr .96fr; }
.hw-screen-body-confirm { grid-template-columns: .9fr 1.1fr; }
.hw-screen-body-archive { grid-template-columns: 1fr 1fr; }

.hw-form { display: flex; flex-direction: column; min-height: 0; }
.hw-form-label { margin: 0 0 5px; font-size: 9.5px; color: var(--muted); letter-spacing: .02em; }
.hw-form-label + .hw-chiprow { margin-bottom: 11px; }
.hw-chiprow { display: flex; flex-wrap: wrap; gap: 4px; }
.hw-chiprow span {
  padding: 4px 7px;
  border: 1px solid rgba(22, 36, 29, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  color: var(--muted);
}
.hw-chiprow span.is-on { color: var(--forest); border-color: rgba(39, 82, 63, .28); background: rgba(39, 82, 63, .07); }
.hw-input {
  margin-bottom: 10px;
  padding: 7px 8px;
  border: 1px solid rgba(22, 36, 29, .14);
  border-radius: 3px;
  background: rgba(255, 255, 255, .58);
  font-size: 10px;
  color: var(--ink-2);
}
.hw-zeros {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(22, 36, 29, .1);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  color: var(--gold-dark);
}

.hw-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 13px 14px;
  border: 1px solid rgba(22, 36, 29, .15);
  border-radius: 5px;
  background: rgba(255, 253, 247, .82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
  overflow: hidden;
}
.hw-kicker { margin: 0 0 7px; font-size: 7.5px; letter-spacing: .16em; color: var(--gold-dark); }
.hw-panel h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.015em;
}
.hw-kv { display: flex; flex-direction: column; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.hw-kv li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(22, 36, 29, .1);
  font-size: 9.5px;
  line-height: 1.35;
}
.hw-kv li:last-child { border-bottom: 0; }
.hw-kv span { flex: 0 0 auto; color: var(--muted); }
.hw-kv b { font-weight: 500; text-align: right; }
.hw-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(22, 36, 29, .12);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .08em;
  color: var(--gold-dark);
}

.hw-authmini {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 14px 14px;
  border: 1px solid rgba(22, 36, 29, .16);
  border-radius: 3px;
  background: #fffaf0;
  box-shadow: 0 12px 22px -20px rgba(9, 24, 17, .4);
}
.hw-authmini-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(22, 36, 29, .12);
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .1em;
}
.hw-authmini h3 { margin: 9px 0 4px; font-family: var(--serif); font-size: 21px; line-height: 1.12; font-weight: 600; }
.hw-authmini-parties { margin: 0 0 7px; font-size: 8px; color: var(--muted); }
.hw-authmini-parties span + span::before { content: " / "; opacity: .5; }
.hw-clauses { margin: 0; padding: 0; list-style: none; }
.hw-clauses li {
  display: grid;
  grid-template-columns: 15px 30px minmax(0, 1fr);
  gap: 5px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(22, 36, 29, .14);
  font-size: 8.5px;
  line-height: 1.35;
}
.hw-clauses li:last-child { border-bottom: 0; }
.hw-clauses b { font-size: 7px; color: var(--gold-dark); font-weight: 500; }
.hw-clauses span { color: var(--muted); }
.hw-clauses em { font-style: normal; color: var(--ink-2); }
.hw-signline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 8px;
  font-size: 7.5px;
  color: var(--muted);
}
.hw-signline i { display: block; flex: 1 1 auto; height: 1px; margin-bottom: 3px; background: rgba(22, 36, 29, .3); }
.hw-stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(138, 101, 40, .55);
  border-radius: 2px;
  background: rgba(249, 243, 230, .94);
  color: var(--gold-dark);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: .12em;
  opacity: 0;
  transform: rotate(-6deg) scale(1.1);
  pointer-events: none;
}
.hw-pill {
  margin-top: auto;
  padding: 6px 8px;
  border: 1px solid rgba(157, 122, 56, .28);
  border-radius: 2px;
  background: rgba(157, 122, 56, .05);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .05em;
  color: var(--gold-dark);
}

.hw-filelist {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 7px 10px 8px;
  border: 1px solid rgba(22, 36, 29, .15);
  border-radius: 5px;
  background: rgba(255, 253, 247, .86);
  overflow: hidden;
}
.hw-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 1px;
  border-bottom: 1px solid rgba(22, 36, 29, .1);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-2);
}
.hw-file-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-file-row i { flex: 0 0 auto; font-style: normal; font-size: 7px; letter-spacing: .1em; color: var(--gold-dark); opacity: 0; }
.hw-filelist-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(22, 36, 29, .12);
  font-size: 7px;
  letter-spacing: .08em;
  color: var(--muted);
}
.hw-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(157, 122, 56, .55), transparent);
  box-shadow: 0 0 12px rgba(157, 122, 56, .3);
  pointer-events: none;
  opacity: 0;
}
.hw-skipbadge {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 7px 8px;
  border: 1px solid rgba(138, 101, 40, .38);
  border-radius: 2px;
  background: rgba(138, 101, 40, .06);
  font-size: 8px;
  color: var(--gold-dark);
}
.hw-skipbadge b { font-size: 7px; letter-spacing: .12em; }
.hw-skipbadge span { font-family: var(--mono); color: var(--ink-2); }
.hw-skipbadge small { font-size: 7px; color: var(--muted); }

.hw-checklist { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.hw-checkrow {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(22, 36, 29, .13);
  border-radius: 3px;
  background: rgba(255, 253, 247, .7);
  font-size: 10px;
}
.hw-checkrow em { font-style: normal; font-family: var(--mono); font-size: 7px; letter-spacing: .07em; color: var(--muted); }
.hw-checkmark {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(39, 82, 63, .32);
  border-radius: 50%;
  background: rgba(39, 82, 63, .04);
}
.hw-checkmark::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--forest);
  font-size: 9px;
  opacity: 0;
  transform: scale(.5);
}
.hw-checknote { margin: 1px 0 0; font-size: 7.5px; letter-spacing: .08em; color: var(--muted); }
.hw-result-panel { justify-content: flex-start; }
.hw-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 7.5px; }
.hw-result-head .hw-kicker { margin: 0; }

.hw-record-panel { justify-content: flex-start; padding-bottom: 40px; }
.hw-record-kv { margin-top: 8px; }
.hw-record-kv li { font-size: 8.5px; padding: 5px 0; }
.hw-record-panel h3 { font-size: 27px; letter-spacing: .01em; }
.hw-record-stats { margin: 8px 0 0; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; color: var(--gold-dark); }
.hw-record-note { margin: 8px 0 0; max-width: 23em; font-size: 9px; line-height: 1.5; color: var(--muted); }
.hw-drawer-mini {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  min-height: 0;
  padding: 12px;
  border: 1px dashed rgba(22, 36, 29, .22);
  border-radius: 5px;
  background: rgba(255, 253, 247, .35);
}
.hw-drawer-mini .hw-kicker { margin-bottom: auto; }
.hw-slip {
  display: block;
  padding: 7px 8px;
  border: 1px solid rgba(22, 36, 29, .12);
  border-radius: 2px;
  background: rgba(255, 250, 240, .9);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: .03em;
  color: var(--ink-2);
}

.hw-demo-caption {
  position: relative;
  min-height: 46px;
  padding: 10px 18px 0;
  border-top: 1px solid rgba(22, 36, 29, .1);
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.hw-demo-caption > span { display: none; }
.hw-demo-caption > span.is-current { display: block; }
.hw-demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 18px 12px; }
.hw-demo-progress { position: relative; flex: 1 1 auto; height: 2px; background: rgba(22, 36, 29, .1); overflow: hidden; }
.hw-demo-progress > span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--gold-dark);
  transition: width .55s var(--ease);
}
.hw-demo-controls { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.hw-demo-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(22, 36, 29, .17);
  border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.hw-demo-controls button:hover { background: #fff; border-color: rgba(22, 36, 29, .3); }
.hw-demo-controls button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hw-demo-play { min-width: 42px !important; }
.hw-demo-play-off { display: none; }
.hw-demo.is-playing .hw-demo-play-on { display: none; }
.hw-demo.is-playing .hw-demo-play-off { display: inline; }
.hw-demo-count { font-size: 8px; letter-spacing: .09em; color: var(--muted); }
.hw-demo-count b { color: var(--ink-2); font-weight: 500; }

@keyframes hwConsoleIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
@keyframes hwConsoleBlink {
  0%, 100% { opacity: .45; box-shadow: 0 0 0 3px rgba(157, 122, 56, .08); }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(157, 122, 56, .18); }
}
@keyframes hwStampIn {
  from { opacity: 0; transform: rotate(-10deg) scale(1.25); }
  to { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@keyframes hwReadIn {
  from { opacity: 0; transform: translateX(-3px); }
  to { opacity: 1; transform: none; }
}
@keyframes hwScanLine {
  0% { top: 8px; opacity: 0; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 10px); opacity: 0; }
}
@keyframes hwCheckIn {
  from { opacity: 0; transform: scale(.5); }
  to { opacity: 1; transform: scale(1); }
}
.hw-screen.is-active .hw-form > *,
.hw-screen.is-active .hw-authmini,
.hw-screen.is-active .hw-panel,
.hw-screen.is-active .hw-filelist,
.hw-screen.is-active .hw-checkrow,
.hw-screen.is-active .hw-drawer-mini { animation: hwConsoleIn .52s var(--ease) both; }
.hw-screen.is-active .hw-form > *:nth-child(2n) { animation-delay: .05s; }
.hw-screen.is-active .hw-form > *:nth-child(3n) { animation-delay: .1s; }
.hw-screen.is-active .hw-authmini { animation-delay: .04s; }
.hw-screen.is-active .hw-panel { animation-delay: .1s; }
.hw-screen.is-active .hw-filelist { animation-delay: .04s; }
.hw-screen.is-active .hw-checkrow:nth-child(2) { animation-delay: .08s; }
.hw-screen.is-active .hw-checkrow:nth-child(3) { animation-delay: .16s; }
.hw-screen.is-active .hw-drawer-mini { animation-delay: .1s; }
.hw-screen.is-active .hw-file-row i { animation: hwReadIn .3s var(--ease) both; }
.hw-screen.is-active .hw-file-row:nth-child(1) i { animation-delay: .18s; }
.hw-screen.is-active .hw-file-row:nth-child(2) i { animation-delay: .3s; }
.hw-screen.is-active .hw-file-row:nth-child(3) i { animation-delay: .42s; }
.hw-screen.is-active .hw-file-row:nth-child(4) i { animation-delay: .54s; }
.hw-screen.is-active .hw-file-row:nth-child(5) i { animation-delay: .66s; }
.hw-screen.is-active .hw-file-row:nth-child(6) i { animation-delay: .78s; }
.hw-screen.is-active .hw-scanline { animation: hwScanLine 2.8s .2s var(--ease) infinite; }
.hw-screen.is-active .hw-stamp { animation: hwStampIn .5s .62s var(--ease) both; }
.hw-screen.is-active .hw-checkmark::after { animation: hwCheckIn .32s .3s var(--ease) both; }
.hw-screen.is-active .hw-checkrow:nth-child(2) .hw-checkmark::after { animation-delay: .44s; }
.hw-screen.is-active .hw-checkrow:nth-child(3) .hw-checkmark::after { animation-delay: .58s; }

@media (max-width: 1120px) {
  .hw-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hw-hero-copy { max-width: 640px; }
  .hw-hero-copy h1 { font-size: clamp(42px, 6vw, 64px); }
  .hw-demo { max-width: 760px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .hw-hero { padding-top: 26px; }
  .hw-hero-copy h1 { font-size: clamp(34px, 9.6vw, 44px); margin-top: 15px; line-height: 1.1; }
  .hw-hero-actions { margin-top: 20px; }
  .hw-hero-points { margin-top: 22px; }
  .hw-demo { border-radius: 9px; }
  .hw-demo-top { height: 48px; padding: 0 13px; }
  .hw-demo-brand b { font-size: 14px; }
  .hw-demo-status { font-size: 7px; }
  .hw-demo-tab { padding: 9px 7px 8px; }
  .hw-demo-tab-label { font-size: 10px; }
  .hw-demo-tab.is-current::after { left: 7px; right: 7px; }
  .hw-demo-viewport { height: auto; min-height: 0; }
  .hw-screen {
    position: relative;
    display: none;
    padding: 12px 13px 0;
    transform: none;
    transition: none;
  }
  .hw-screen.is-active { display: block; }
  .hw-screen-body { grid-template-columns: minmax(0, 1fr); gap: 10px; height: auto; padding-top: 10px; }
  .hw-screen-body-auth { grid-template-columns: minmax(0, 1fr); }
  .hw-panel, .hw-authmini, .hw-filelist { min-height: 0; }
  .hw-form-label + .hw-chiprow { margin-bottom: 9px; }
  .hw-zeros { margin-top: 4px; }
  .hw-drawer-mini { min-height: 150px; }
  .hw-demo-caption { min-height: 54px; padding: 9px 13px 0; font-size: 9.5px; }
  .hw-demo-bar { padding: 9px 13px 11px; gap: 8px; }
  .hw-demo-controls button { min-width: 23px; height: 22px; padding: 0 6px; }
  .hw-demo-count { font-size: 7px; }
  .hw-support { margin-top: 30px; }
}
@media (max-width: 430px) {
  .hw-demo-brand em { display: none; }
  .hw-demo-tab-no { font-size: 7px; }
  .hw-demo-tab-label { font-size: 9.5px; }
  .hw-hero-points { gap: 8px 14px; font-size: 11px; }
  .hw-demo-caption { min-height: 68px; }
  .hw-demo-bar { flex-wrap: wrap; }
  .hw-demo-progress { flex-basis: 100%; }
  .hw-demo-controls { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-demo-status i,
  .hw-screen.is-active .hw-form > *,
  .hw-screen.is-active .hw-authmini,
  .hw-screen.is-active .hw-panel,
  .hw-screen.is-active .hw-filelist,
  .hw-screen.is-active .hw-checkrow,
  .hw-screen.is-active .hw-drawer-mini,
  .hw-screen.is-active .hw-file-row i,
  .hw-screen.is-active .hw-scanline,
  .hw-screen.is-active .hw-stamp,
  .hw-screen.is-active .hw-checkmark::after { animation: none !important; }
  .hw-screen.is-active .hw-file-row i,
  .hw-screen.is-active .hw-stamp,
  .hw-screen.is-active .hw-checkmark::after { opacity: 1; transform: none; }
  .hw-screen.is-active .hw-scanline { opacity: 0; }
  .hw-screen { transition: none; }
  .hw-demo-progress > span { transition: none; }
}

/* How it works — quiet safety band (2026-11-23, round 7) */
.hw-demo-bar { justify-content: space-between; }
.hw-demo-count { flex: 0 0 auto; }
.hw-safety {
  margin-top: clamp(42px, 5vw, 72px);
  padding-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
}
.hw-safety-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4.4vw, 72px);
  align-items: start;
}
.hw-safety-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(12px, 1.6vw, 18px);
  font-size: 8.5px;
  letter-spacing: .18em;
  color: var(--gold-dark);
}
.hw-safety-rule { width: 26px; height: 1px; background: var(--gold-dark); }
.hw-safety h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 37px);
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
.hw-safety-copy > p {
  max-width: 58ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.92;
  color: var(--ink-2);
}
.hw-safety-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: clamp(16px, 2vw, 22px) 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hw-safety-facts li {
  padding: 0 18px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.hw-safety-facts li:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 880px) {
  .hw-safety-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hw-safety h2 { font-size: clamp(26px, 6vw, 32px); }
}
@media (max-width: 520px) {
  .hw-safety { margin-top: 36px; padding-top: 24px; }
  .hw-safety-facts { gap: 8px 0; }
  .hw-safety-facts li { padding: 0 11px; font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-demo-progress > span { transition: none; }
}


/* ==========================================================================
   How it works — scroll-driven intake story (2026-11-23)
   Eight files converge into a read-only agent, then settle into a range.
   ========================================================================== */

.intake-story {
  position: relative;
  margin-top: clamp(34px, 5vw, 68px);
  scroll-margin-top: 92px;
}

.intake-intro {
  max-width: 880px;
  padding-bottom: clamp(24px, 3.2vw, 44px);
}
.intake-intro h2 {
  margin-top: 12px;
  max-width: 16em;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.intake-lede {
  max-width: 57ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.9;
  text-wrap: pretty;
}
.intake-scroll {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--gold-dark);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.intake-scroll > span:first-child {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  animation: intakeCue 2.2s var(--ease) infinite;
}
@keyframes intakeCue {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(4px); opacity: 1; }
}

.intake-viewport {
  position: relative;
  height: 320vh;
}

.intake-stage {
  position: sticky;
  top: 76px;
  width: min(1320px, calc(100vw - 48px));
  height: calc(100svh - 76px);
  min-height: 620px;
  max-height: 980px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(22, 36, 29, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 252, 244, 0.9), rgba(246, 238, 221, 0.72) 46%, rgba(237, 226, 205, 0.9) 100%),
    linear-gradient(180deg, #fbf6eb 0%, #f3ead9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 48px 90px -58px rgba(22, 36, 29, 0.55);
  isolation: isolate;
}
.intake-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 36, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 36, 29, 0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 78%);
  opacity: 0.55;
}
.intake-stage::after {
  position: absolute;
  inset: 10px;
  z-index: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(157, 122, 56, 0.12);
  border-radius: 18px;
}

.intake-stage-head {
  position: absolute;
  top: 20px;
  right: 26px;
  left: 26px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(22, 36, 29, 0.12);
}
.intake-stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.intake-stage-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(157, 122, 56, 0.1);
}
.intake-stage-state {
  position: relative;
  height: 12px;
  min-width: 120px;
  text-align: right;
  color: var(--gold-dark);
  font-size: 8px;
  letter-spacing: 0.16em;
}
.intake-stage-state > span {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.intake-stage[data-phase="0"] .intake-stage-state .is-0,
.intake-stage[data-phase="1"] .intake-stage-state .is-1,
.intake-stage[data-phase="2"] .intake-stage-state .is-2 {
  opacity: 1;
  transform: none;
}

.intake-canvas {
  position: absolute;
  inset: 58px 24px 54px;
  z-index: 1;
}

.intake-files {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.intake-file {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--i, 1);
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 148px;
  height: 196px;
  margin: -98px 0 0 -74px;
  padding: 7px 7px 9px;
  border: 1px solid rgba(22, 36, 29, 0.18);
  border-radius: 9px;
  background: #fffdf8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 30px -24px rgba(22, 36, 29, 0.62);
  transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--sr, 0deg));
  transform-origin: 50% 55%;
  will-change: transform, opacity;
}
.intake-file::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 9px 9px 0 0;
  background: linear-gradient(90deg, rgba(157, 122, 56, 0.2), rgba(157, 122, 56, 0.7) 50%, rgba(157, 122, 56, 0.2));
  opacity: 0.6;
}
.intake-file[data-x="-470"] { --sx: -470px; --sy: -250px; --sr: -7deg; }
.intake-file[data-x="-260"] { --sx: -260px; --sy: -190px; --sr: 4deg; }
.intake-file[data-x="-440"] { --sx: -440px; --sy: 16px; --sr: 5deg; }
.intake-file[data-x="-210"] { --sx: -210px; --sy: 146px; --sr: -4deg; }
.intake-file[data-x="390"] { --sx: 390px; --sy: -250px; --sr: 6deg; }
.intake-file[data-x="470"] { --sx: 470px; --sy: -18px; --sr: -5deg; }
.intake-file[data-x="240"] { --sx: 240px; --sy: 150px; --sr: 3deg; }
.intake-file[data-x="430"] { --sx: 430px; --sy: 244px; --sr: -7deg; }

.intake-file-preview {
  position: relative;
  flex: 1;
  overflow: hidden;
  border: 1px solid rgba(22, 36, 29, 0.1);
  border-radius: 5px;
  background: #f7f1e4;
}
.intake-file-preview i {
  position: absolute;
  display: block;
  border-radius: 1px;
}

.intake-file-preview.is-contract { background: linear-gradient(145deg, #fbf7ee, #efe4ce); }
.intake-file-preview.is-contract .if-h { top: 13px; left: 12px; width: 38px; height: 3px; background: var(--gold-dark); opacity: 0.9; }
.intake-file-preview.is-contract i:nth-child(2) { top: 28px; left: 12px; width: 76%; height: 2px; background: rgba(22, 36, 29, 0.22); }
.intake-file-preview.is-contract i:nth-child(3) { top: 38px; left: 12px; width: 88%; height: 2px; background: rgba(22, 36, 29, 0.16); }
.intake-file-preview.is-contract i:nth-child(4) { top: 48px; left: 12px; width: 63%; height: 2px; background: rgba(22, 36, 29, 0.16); }
.intake-file-preview.is-contract .if-sig { bottom: 20px; left: 12px; width: 64%; height: 2px; background: rgba(22, 36, 29, 0.48); transform: rotate(-5deg); transform-origin: left; }
.intake-file-preview.is-contract .if-seal { right: 10px; bottom: 9px; width: 24px; height: 24px; border: 1px solid rgba(157, 122, 56, 0.72); border-radius: 50%; background: transparent; }
.intake-file-preview.is-contract .if-seal::after { position: absolute; inset: 4px; content: ""; border: 1px solid rgba(157, 122, 56, 0.36); border-radius: 50%; }

.intake-file-preview.is-litigation { background: linear-gradient(145deg, #f9f3e7, #eee2cc); }
.intake-file-preview.is-litigation .if-h { top: 12px; left: 11px; width: 45px; height: 3px; background: var(--gold-dark); }
.intake-file-preview.is-litigation .if-row { right: 10px; left: 10px; height: 13px; border-bottom: 1px solid rgba(22, 36, 29, 0.16); background: linear-gradient(90deg, rgba(22, 36, 29, 0.07) 0 48%, transparent 48% 52%, rgba(22, 36, 29, 0.07) 52% 100%); }
.intake-file-preview.is-litigation .if-row:nth-of-type(2) { top: 26px; }
.intake-file-preview.is-litigation .if-row:nth-of-type(3) { top: 39px; }
.intake-file-preview.is-litigation .if-row:nth-of-type(4) { top: 52px; }
.intake-file-preview.is-litigation .if-row:nth-of-type(5) { top: 65px; }
.intake-file-preview.is-litigation .if-seal { right: 10px; bottom: 9px; width: 18px; height: 18px; border: 1px solid rgba(157, 122, 56, 0.55); border-radius: 50%; }

.intake-file-preview.is-vehicle { background: #1c3027; }
.intake-file-preview.is-vehicle .if-screen { inset: 6px; border: 1px solid rgba(196, 168, 115, 0.2); border-radius: 3px; background: linear-gradient(160deg, #1e382c, #12251c); }
.intake-file-preview.is-vehicle .if-wave { right: 12px; bottom: 22px; left: 12px; height: 26px; background: repeating-linear-gradient(90deg, rgba(196, 168, 115, 0.55) 0 2px, transparent 2px 6px); -webkit-mask-image: linear-gradient(0deg, transparent 0 16%, #000 16% 56%, transparent 56% 68%, #000 68% 86%, transparent 86%); mask-image: linear-gradient(0deg, transparent 0 16%, #000 16% 56%, transparent 56% 68%, #000 68% 86%, transparent 86%); }
.intake-file-preview.is-vehicle .if-dot { top: 16px; left: 16px; width: 5px; height: 5px; border-radius: 50%; background: #c4a873; box-shadow: 0 0 0 4px rgba(196, 168, 115, 0.12); }

.intake-file-preview.is-hmi { background: linear-gradient(145deg, #f6efe1, #e9ddc7); }
.intake-file-preview.is-hmi .if-layer { border: 1px solid rgba(22, 36, 29, 0.2); border-radius: 3px; background: rgba(39, 82, 63, 0.12); }
.intake-file-preview.is-hmi .if-layer.a { top: 16px; left: 13px; width: 82px; height: 45px; }
.intake-file-preview.is-hmi .if-layer.b { top: 30px; left: 27px; width: 82px; height: 45px; background: rgba(157, 122, 56, 0.13); }
.intake-file-preview.is-hmi .if-layer.c { top: 44px; left: 41px; width: 82px; height: 45px; background: rgba(22, 36, 29, 0.06); }

.intake-file-preview.is-pcb { background: #1b4433; }
.intake-file-preview.is-pcb .if-board { inset: 7px; border: 1px solid rgba(196, 168, 115, 0.45); border-radius: 4px; background: repeating-linear-gradient(45deg, transparent 0 15px, rgba(196, 168, 115, 0.12) 15px 16px), repeating-linear-gradient(-45deg, transparent 0 19px, rgba(196, 168, 115, 0.1) 19px 20px); }
.intake-file-preview.is-pcb .if-pad { width: 8px; height: 8px; border-radius: 50%; background: #c4a873; box-shadow: 0 0 0 2px rgba(20, 44, 34, 0.8); }
.intake-file-preview.is-pcb .if-pad.a { top: 18px; left: 20px; }
.intake-file-preview.is-pcb .if-pad.b { right: 20px; bottom: 22px; }
.intake-file-preview.is-pcb .if-trace { top: 25px; left: 28px; width: 54px; height: 1px; background: rgba(196, 168, 115, 0.65); transform: rotate(38deg); transform-origin: left; }

.intake-file-preview.is-bom { background: linear-gradient(145deg, #fbf7ee, #eee3cf); }
.intake-file-preview.is-bom .if-h { top: 12px; left: 10px; width: 50px; height: 3px; background: var(--gold-dark); }
.intake-file-preview.is-bom .if-row { right: 9px; left: 9px; height: 14px; border-bottom: 1px solid rgba(22, 36, 29, 0.14); background: repeating-linear-gradient(90deg, rgba(22, 36, 29, 0.09) 0 22%, transparent 22% 26%, rgba(22, 36, 29, 0.09) 26% 52%, transparent 52% 56%, rgba(22, 36, 29, 0.09) 56% 78%, transparent 78% 82%); }
.intake-file-preview.is-bom .if-row:nth-of-type(2) { top: 27px; }
.intake-file-preview.is-bom .if-row:nth-of-type(3) { top: 41px; }
.intake-file-preview.is-bom .if-row:nth-of-type(4) { top: 55px; }
.intake-file-preview.is-bom .if-row:nth-of-type(5) { top: 69px; }

.intake-file-preview.is-code { background: #18261f; padding: 12px; }
.intake-file-preview.is-code .if-code { position: relative; display: block; width: 82%; height: 3px; margin-bottom: 7px; background: rgba(196, 168, 115, 0.56); }
.intake-file-preview.is-code .if-code.short { width: 53%; background: rgba(196, 168, 115, 0.3); }
.intake-file-preview.is-code .if-code:nth-of-type(2) { margin-left: 14px; }
.intake-file-preview.is-code .if-code:nth-of-type(4) { margin-left: 14px; }

.intake-file-preview.is-flow { background: linear-gradient(145deg, #fbf6ea, #eee2cc); }
.intake-file-preview.is-flow .if-node { width: 42px; height: 22px; border: 1px solid rgba(22, 36, 29, 0.22); border-radius: 3px; background: rgba(255, 252, 244, 0.8); }
.intake-file-preview.is-flow .if-node.a { top: 16px; left: 14px; border-color: rgba(157, 122, 56, 0.5); }
.intake-file-preview.is-flow .if-node.b { top: 48px; left: 48px; border-color: rgba(157, 122, 56, 0.5); }
.intake-file-preview.is-flow .if-node.c { top: 80px; left: 22px; }
.intake-file-preview.is-flow .if-line { height: 1px; background: rgba(22, 36, 29, 0.25); transform-origin: left; }
.intake-file-preview.is-flow .if-line.a { top: 38px; left: 52px; width: 38px; transform: rotate(42deg); }
.intake-file-preview.is-flow .if-line.b { top: 70px; left: 34px; width: 50px; transform: rotate(-32deg); }

.intake-file-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.intake-file-meta .mono { color: var(--gold-dark); font-size: 7px; letter-spacing: 0.12em; }
.intake-file-meta b { overflow: hidden; color: var(--ink); font-size: 10.5px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.intake-file-meta em { overflow: hidden; color: var(--muted); font-size: 7.5px; font-style: normal; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }

.intake-agent {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 244px;
  height: 244px;
  margin: -122px 0 0 -122px;
  opacity: 0;
  transform: scale(0.84);
  will-change: opacity, transform;
}
.intake-agent-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, rgba(157, 122, 56, 0.9) var(--agent-progress, 0%), rgba(157, 122, 56, 0.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0);
}
.intake-agent-ring.is-outer {
  inset: -24px;
  background: transparent;
  border: 1px dashed rgba(157, 122, 56, 0.38);
  -webkit-mask: none;
  mask: none;
  animation: intakeOrbit 26s linear infinite;
}
@keyframes intakeOrbit { to { transform: rotate(360deg); } }
.intake-agent-core {
  display: grid;
  place-items: center;
  width: 172px;
  height: 172px;
  border: 1px solid rgba(196, 168, 115, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 26%, #2e5d47, #17352a 60%, #10251c);
  box-shadow:
    0 0 0 9px rgba(255, 252, 244, 0.35),
    0 24px 46px -26px rgba(20, 44, 34, 0.7);
}
.intake-agent-core img { width: 32px; height: 32px; border-radius: 50%; }
.intake-agent-core b { margin-top: 2px; color: var(--paper-on-dark); font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.intake-agent-core em { color: rgba(196, 168, 115, 0.9); font-size: 7px; font-style: normal; letter-spacing: 0.18em; }
.intake-agent-readout {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  color: rgba(22, 36, 29, 0.5);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.intake-agent-readout b { color: var(--gold-dark); font-weight: 600; }

.intake-manifest {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: min(368px, calc(100% - 48px));
  padding: 22px 24px 18px;
  border: 1px solid rgba(22, 36, 29, 0.22);
  border-radius: 10px;
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 26px 46px -34px rgba(22, 36, 29, 0.7);
  opacity: 0;
  transform: translate(-50%, -50%) translateY(18px);
  will-change: opacity, transform;
}
.intake-manifest-head { display: flex; justify-content: space-between; color: var(--gold-dark); font-size: 7.5px; letter-spacing: 0.12em; }
.intake-manifest h3 { margin-top: 8px; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.2; }
.intake-manifest ul { margin-top: 14px; border-top: 1px solid var(--line); }
.intake-manifest li { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 11px; }
.intake-manifest li b { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 500; }
.intake-manifest li i { font-style: normal; }
.intake-manifest > p { margin-top: 12px; color: var(--gold-dark); font-size: 7px; letter-spacing: 0.13em; }

.intake-value {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  width: min(640px, calc(100% - 48px));
  padding: clamp(24px, 2.8vw, 36px) clamp(24px, 3vw, 40px) 26px;
  overflow: hidden;
  border: 1px solid rgba(196, 168, 115, 0.36);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 0%, rgba(61, 100, 79, 0.38), transparent 48%),
    #142c22;
  box-shadow: 0 34px 64px -38px rgba(22, 36, 29, 0.85);
  color: var(--paper-on-dark);
  opacity: 0;
  transform: translate(-50%, -50%) translateY(22px);
  will-change: opacity, transform;
}
.intake-value::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; content: ""; background: linear-gradient(90deg, transparent, var(--gold-soft) 32%, var(--gold-soft) 68%, transparent); opacity: 0.7; }
.intake-value-head { display: flex; justify-content: space-between; color: rgba(196, 168, 115, 0.92); font-size: 7.5px; letter-spacing: 0.15em; }
.intake-value-label { margin-top: 9px; color: rgba(241, 234, 219, 0.72); font-size: 12px; }
.intake-value-num { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; font-family: var(--serif); font-size: clamp(52px, 6.8vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.intake-value-num span { color: var(--paper-on-dark); }
.intake-value-num em { color: var(--gold-soft); font-size: 0.56em; font-style: normal; }
.intake-value-note { max-width: 48ch; margin-top: 12px; color: rgba(241, 234, 219, 0.56); font-size: 10.5px; line-height: 1.7; }
.intake-value-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-top: 1px solid rgba(241, 234, 219, 0.16); }
.intake-value-stats li { padding: 13px 10px 0 0; }
.intake-value-stats b { display: block; color: var(--gold-soft); font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.1; }
.intake-value-stats span { display: block; margin-top: 2px; color: rgba(241, 234, 219, 0.5); font-size: 8px; letter-spacing: 0.04em; }

.intake-phases { position: absolute; bottom: 24px; left: 26px; z-index: 9; height: 58px; width: min(420px, calc(100% - 52px)); }
.intake-phase { position: absolute; bottom: 0; left: 0; display: grid; grid-template-columns: 24px 1fr; column-gap: 9px; align-items: baseline; opacity: 0; transform: translateY(7px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.intake-phase > span { grid-row: span 2; color: var(--gold-dark); font-size: 8px; letter-spacing: 0.1em; }
.intake-phase strong { color: var(--ink); font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.2; }
.intake-phase em { margin-top: 2px; color: var(--muted); font-size: 9.5px; font-style: normal; line-height: 1.4; }
.intake-stage[data-phase="0"] .intake-phase.is-0,
.intake-stage[data-phase="1"] .intake-phase.is-1,
.intake-stage[data-phase="2"] .intake-phase.is-2 { opacity: 1; transform: none; }

.intake-progress { position: absolute; right: 26px; bottom: 14px; left: 26px; z-index: 9; height: 1px; background: rgba(22, 36, 29, 0.14); }
.intake-progress span { display: block; width: 0; height: 100%; background: var(--gold-dark); }
.intake-progress::after { position: absolute; top: -2px; right: 0; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--gold-soft); opacity: 0.5; }

@media (max-width: 1100px) {
  .intake-stage { width: calc(100vw - 32px); }
  .intake-canvas { inset-inline: 18px; }
  .intake-file { width: 132px; height: 178px; margin: -89px 0 0 -66px; }
  .intake-value { width: min(580px, calc(100% - 40px)); }
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .intake-story { margin-top: 26px; scroll-margin-top: 72px; }
  .intake-intro { padding-bottom: 24px; }
  .intake-intro h2 { font-size: clamp(32px, 9.2vw, 44px); }
  .intake-lede { font-size: 13.5px; }
  .intake-scroll { display: none; }
  .intake-viewport { height: auto; }
  .intake-stage {
    position: relative;
    top: auto;
    width: calc(100vw - 24px);
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 18px 12px 22px;
    border-radius: 18px;
    overflow: visible;
  }
  .intake-stage::before { opacity: 0.32; }
  .intake-stage::after { inset: 7px; border-radius: 13px; }
  .intake-stage-head { position: relative; top: auto; right: auto; left: auto; padding: 0 4px 13px; }
  .intake-stage-state { min-width: 88px; }
  .intake-stage-state > span { font-size: 7px; }
  .intake-canvas { position: relative; inset: auto; display: flex; flex-direction: column; gap: 22px; padding-top: 18px; }
  .intake-files { position: relative; inset: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .intake-file { position: relative; top: auto; left: auto; width: auto; height: 158px; margin: 0; padding: 5px 5px 7px; transform: none !important; opacity: 1 !important; }
  .intake-file-preview { min-height: 88px; }
  .intake-file-meta b { font-size: 9.5px; }
  .intake-file-meta em { font-size: 7px; }
  .intake-agent { position: relative; top: auto; left: auto; width: 174px; height: 174px; margin: 0 auto; transform: none !important; opacity: 1 !important; }
  .intake-agent-core { width: 126px; height: 126px; }
  .intake-agent-core img { width: 26px; height: 26px; }
  .intake-agent-core b { font-size: 13px; }
  .intake-agent-ring.is-outer { inset: -14px; animation: none; }
  .intake-agent-readout { display: none; }
  .intake-manifest { display: none; }
  .intake-value { position: relative; top: auto; left: auto; width: 100%; transform: none !important; opacity: 1 !important; padding: 22px 18px 20px; }
  .intake-value-num { font-size: clamp(46px, 14vw, 66px); }
  .intake-value-stats { grid-template-columns: repeat(2, 1fr); }
  .intake-value-stats li:nth-child(n + 3) { padding-top: 10px; }
  .intake-phases { position: relative; bottom: auto; left: auto; width: 100%; height: auto; display: grid; gap: 12px; }
  .intake-phase { position: relative; bottom: auto; left: auto; opacity: 1 !important; transform: none !important; }
  .intake-progress { display: none; }
  .intake-stage[data-phase="0"] .intake-phase.is-0,
  .intake-stage[data-phase="1"] .intake-phase.is-1,
  .intake-stage[data-phase="2"] .intake-phase.is-2 { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .intake-scroll > span:first-child,
  .intake-agent-ring.is-outer { animation: none; }
}


/* intake story — composition refinements */

.intake-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.intake-lines path {
  fill: none;
  stroke: rgba(157, 122, 56, 0.34);
  stroke-width: 1;
  stroke-dasharray: 3 8;
  vector-effect: non-scaling-stroke;
}
.intake-agent { z-index: 6; }
.intake-manifest { z-index: 7; }
.intake-value { z-index: 8; }
.intake-stage-meta {
  position: absolute;
  right: 26px;
  bottom: 28px;
  z-index: 9;
  color: rgba(22, 36, 29, 0.38);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  text-align: right;
  pointer-events: none;
}
.intake-file {
  width: 164px;
  height: 216px;
  margin: -108px 0 0 -82px;
}

@media (max-width: 1100px) {
  .intake-file { width: 144px; height: 196px; margin: -98px 0 0 -72px; }
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .intake-file { width: auto; height: 158px; margin: 0; }
  .intake-lines, .intake-stage-meta { display: none; }
  .intake-file-preview { min-height: 88px; }
}


/* intake story — opening caption and card weight */

.intake-stage-lead {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: min(440px, 54%);
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: opacity, transform;
}
.intake-stage-lead .mono {
  color: var(--gold-dark);
  font-size: 7px;
  letter-spacing: 0.18em;
}
.intake-stage-lead h2 {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.intake-stage-lead > p:last-child {
  max-width: 36ch;
  margin: 11px auto 0;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.75;
}
.intake-agent { z-index: 4; }
.intake-file { width: 176px; height: 232px; margin: -116px 0 0 -88px; }

@media (max-width: 1100px) {
  .intake-file { width: 150px; height: 204px; margin: -102px 0 0 -75px; }
}
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .intake-stage-lead { display: none; }
  .intake-file { width: auto; height: 158px; margin: 0; }
}


/* intake story — clean handoff from ring to panels */

.intake-agent-readout { display: none; }
.intake-manifest {
  background: #fcf7ea;
  box-shadow: 0 30px 54px -34px rgba(22, 36, 29, 0.62);
}


/* intake story — reduced-motion desktop composition */
@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  .intake-stage {
    width: min(1120px, calc(100vw - 48px));
    margin-inline: auto;
    padding: 20px 22px 24px;
  }
  .intake-canvas { gap: 24px; }
  .intake-files {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  .intake-file { height: 186px; }
  .intake-value { max-width: 640px; margin-inline: auto; }
  .intake-phases { max-width: 360px; }
}


/* ==========================================================================
   How it works — page-level scroll story (2026-11-23, round 9)
   Eight files → one column → one read-only session → one estimated range.
   Full-section scroll; no framed console, no scroll-jacking.
   ========================================================================== */

.story-page { --story-head: 76px; }
.story-act { position: relative; scroll-margin-top: calc(var(--story-head) + 18px); }
.story-act-head,
.story-agent-head,
.story-value-head {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: end;
}
.story-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.story-index::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}
.story-index b { color: var(--gold-dark); font-weight: 500; letter-spacing: 0.1em; }
.story-act h2,
.story-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
}
.story-act h2 {
  font-size: clamp(36px, 4.05vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.story-h2-line { display: block; }
.story-act-copy {
  max-width: 50ch;
  margin: 0 0 0.2em;
  color: var(--ink-2);
  font-size: clamp(14px, 1.18vw, 16px);
  line-height: 1.9;
  text-wrap: pretty;
}

/* --- Hero: one full page of type ---------------------------------------- */

.story-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(124px, 15vh, 190px) 0 clamp(64px, 8vh, 110px);
}
.story-hero-inner { width: 100%; }
.story-hero h1 {
  max-width: 12.5em;
  margin: 26px 0 0;
  font-size: clamp(58px, 8.6vw, 124px);
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.story-hero-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: storyLineIn 1.05s var(--ease) 0.08s forwards;
}
.story-hero-line:nth-child(2) { animation-delay: 0.2s; }
@keyframes storyLineIn {
  to { opacity: 1; transform: translateY(0); }
}
.story-hero-lede {
  max-width: 58ch;
  margin: clamp(28px, 3.4vh, 40px) 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.42vw, 19px);
  line-height: 1.85;
  text-wrap: pretty;
}
.story-hero-foot {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(34px, 4.3vh, 52px);
}
.story-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.story-scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.story-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-dark);
  animation: storyScrollCue 2.4s var(--ease) infinite;
}
@keyframes storyScrollCue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}
.story-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(48px, 7vh, 86px) 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.story-hero-meta li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-right: clamp(22px, 3vw, 44px);
  margin-right: clamp(22px, 3vw, 44px);
  border-right: 1px solid var(--line);
}
.story-hero-meta li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.story-hero-meta b {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.story-hero-meta span { color: var(--muted); font-size: 12px; }

/* --- Act 01: semicircle of eight covers --------------------------------- */

.story-arc {
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(84px, 11vh, 128px) 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.story-arc .story-act-head { z-index: 3; position: relative; }
.story-arc-stage {
  --arc-r: min(36vw, 50vh);
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(470px, 56vh, 610px);
  margin-top: clamp(6px, 1.6vh, 20px);
}
.story-arc-ring {
  position: absolute;
  left: 50%;
  top: 108%;
  width: calc(var(--arc-r) * 2);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(157, 122, 56, 0.24);
  border-radius: 50%;
  pointer-events: none;
}
.story-arc-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(157, 122, 56, 0.16);
  border-radius: inherit;
}
.story-fan { position: absolute; inset: 0; }
.story-cover {
  position: absolute;
  left: 50%;
  top: 108%;
  width: clamp(118px, 9.2vw, 136px);
  margin: 0;
  padding: 6px 6px 0;
  background: #fbf6ea;
  border: 1px solid rgba(22, 36, 29, 0.15);
  box-shadow: 0 18px 36px -22px rgba(20, 35, 28, 0.55), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transform:
    translate(
      calc(-50% + var(--x) * var(--arc-r)),
      calc(-50% + var(--y) * var(--arc-r) + 30px)
    )
    rotate(calc(var(--rot) * 0.6))
    scale(0.94);
  opacity: 0;
  transition:
    transform 1.2s var(--ease),
    opacity 0.8s var(--ease);
  transition-delay: calc(var(--i) * 64ms + 80ms);
}
.story-cover:nth-child(3n + 1) { z-index: 2; }
.story-cover:nth-child(3n + 2) { z-index: 3; }
.story-cover:nth-child(3n) { z-index: 4; }
.story-cover-img {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
}
.story-cover-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.12) contrast(1.04) brightness(0.98);
  transform: scale(1.02);
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.story-cover figcaption {
  padding: 9px 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.story-cover figcaption .mono {
  color: var(--gold-dark);
  font-size: 7px;
  letter-spacing: 0.14em;
}
.story-cover figcaption b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.story-cover figcaption em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
}
@media (hover: hover) and (pointer: fine) {
  .story-cover:hover { z-index: 8; }
  .story-cover:hover img { transform: scale(1.055); filter: grayscale(0.25) sepia(0.04) contrast(1.02); }
}
.story-arc.is-in .story-cover {
  opacity: 1;
  transform:
    translate(
      calc(-50% + var(--x) * var(--arc-r)),
      calc(-50% + var(--y) * var(--arc-r))
    )
    rotate(var(--rot))
    scale(1);
}
.story-arc-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.2em;
}

/* --- Act 02: the single column ----------------------------------------- */

.story-column {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 13vh, 150px) 0;
  border-top: 1px solid var(--line);
}
.story-column-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 6.4vw, 100px);
  align-items: center;
}
.story-column-copy .story-act-copy { margin-top: clamp(22px, 3vh, 34px); }
.story-filelist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.story-filelist li {
  display: grid;
  grid-template-columns: 30px 52px minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vw, 22px);
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease),
    background-color 0.35s var(--ease);
  transition-delay: calc(var(--i) * 58ms + 90ms);
}
.story-filelist li:hover { background: rgba(251, 247, 238, 0.66); }
.story-file-no { color: var(--gold-dark); font-size: 8.5px; letter-spacing: 0.1em; }
.story-file-thumb {
  display: block;
  width: 52px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.story-file-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.1) contrast(1.04);
  transition: filter 0.6s var(--ease), transform 0.7s var(--ease);
}
.story-filelist li:hover .story-file-thumb img { filter: grayscale(0.2) sepia(0.03); transform: scale(1.05); }
.story-file-name { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.story-file-name b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(14px, 1.12vw, 16px);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.story-file-name em { color: var(--muted); font-size: 10.5px; font-style: normal; line-height: 1.4; }
.story-file-state {
  color: var(--gold-dark);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.story-column.is-in .story-filelist li { opacity: 1; transform: none; }

/* --- Act 03: read-only agent ------------------------------------------- */

.story-agent {
  --orbit-r: min(14.5vw, 20vh);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(86px, 11vh, 128px) 0;
  background:
    radial-gradient(ellipse 60% 48% at 50% 54%, rgba(196, 168, 115, 0.14), transparent 70%),
    radial-gradient(ellipse 48% 40% at 16% 8%, rgba(157, 122, 56, 0.12), transparent 68%),
    #0e241b;
  color: var(--paper-on-dark);
}
.story-agent .story-index { color: rgba(241, 234, 219, 0.58); }
.story-agent .story-index::before { background: var(--gold-soft); }
.story-agent .story-index b { color: var(--gold-soft); }
.story-agent h2 { color: var(--paper-on-dark); }
.story-agent .story-act-copy { color: rgba(241, 234, 219, 0.66); }
.story-agent-head { margin-bottom: clamp(8px, 1.8vh, 20px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.story-value-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.story-agent-stage {
  position: relative;
  height: clamp(340px, 43vh, 470px);
  margin-top: clamp(20px, 3.2vh, 38px);
}
.story-agent-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--orbit-r) * 2);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(236, 211, 160, 0.2);
  border-radius: 50%;
}
.story-agent-ring::before {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px dashed rgba(236, 211, 160, 0.13);
  border-radius: inherit;
}
.story-agent-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(190px, 18vw, 256px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, #2f5b46, #173b2c 54%, #0d2a1f 100%);
  border: 1px solid rgba(236, 211, 160, 0.56);
  box-shadow:
    0 0 0 8px rgba(236, 211, 160, 0.04),
    0 0 64px rgba(196, 168, 115, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  z-index: 3;
}
.story-agent-core::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(236, 211, 160, 0.8), transparent);
  opacity: 0;
  top: 12%;
}
.story-agent.is-in .story-agent-core::after { animation: storyAgentScan 4.8s var(--ease) 0.6s infinite; }
@keyframes storyAgentScan {
  0% { top: 12%; opacity: 0; }
  12% { opacity: 0.9; }
  55% { top: 86%; opacity: 0.7; }
  70%, 100% { top: 86%; opacity: 0; }
}
.story-agent-core img { width: 34px; height: 34px; opacity: 0.92; }
.story-agent-core b {
  color: var(--paper-on-dark);
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.story-agent-core em {
  color: var(--gold-soft);
  font-size: 7.5px;
  font-style: normal;
  letter-spacing: 0.22em;
}
.story-agent-orbit { position: absolute; inset: 0; }
.story-orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(46px, 3.9vw, 58px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(241, 234, 219, 0.48);
  background: #173b2c;
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
  transition:
    transform 1.1s var(--ease),
    opacity 0.7s var(--ease);
  transition-delay: calc(var(--i) * 62ms + 120ms);
}
.story-orbit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.14) brightness(0.86);
}
.story-agent.is-in .story-orbit-card {
  opacity: 1;
  transform:
    translate(
      calc(-50% + var(--x) * var(--orbit-r)),
      calc(-50% + var(--y) * var(--orbit-r))
    )
    rotate(var(--rot))
    scale(1);
}
.story-agent-strip { display: none; }
.story-agent-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(12px, 2.2vh, 26px) 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(241, 234, 219, 0.18);
  list-style: none;
}
.story-agent-stats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid rgba(241, 234, 219, 0.13);
}
.story-agent-stats li:last-child { border-right: 0; }
.story-agent-stats b { color: var(--gold-soft); font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; letter-spacing: 0.02em; }
.story-agent-stats span { color: rgba(241, 234, 219, 0.6); font-size: 10.5px; }

/* --- Act 04: estimated range ------------------------------------------- */

.story-value {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 13vh, 150px) 0;
  border-top: 1px solid var(--line);
}
.story-value-head { align-items: end; }
.story-value-range {
  display: flex;
  align-items: baseline;
  gap: 0.015em;
  margin: clamp(54px, 9vh, 104px) 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(84px, 15.2vw, 214px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.story-value-range em {
  color: var(--gold);
  font-size: 0.42em;
  font-style: normal;
  font-weight: 400;
  transform: translateY(-0.35em);
  margin: 0 0.06em;
}
.story-value-mask { display: inline-block; overflow: hidden; padding-bottom: 0.06em; }
.story-value-mask > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.15s var(--ease);
}
.story-value.is-in .story-value-mask > span { transform: translateY(0); }
.story-value.is-in .story-value-mask:nth-of-type(2) > span { transition-delay: 0.12s; }
.story-value-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(52px, 8vh, 92px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.story-value-sample { margin: 0; color: var(--gold-dark); font-size: 8px; letter-spacing: 0.2em; }
.story-value-foot ul {
  display: flex;
  gap: clamp(24px, 4vw, 58px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-value-foot li { display: flex; align-items: baseline; gap: 8px; }
.story-value-foot b { color: var(--ink); font-size: 13px; font-weight: 500; }
.story-value-foot span { color: var(--muted); font-size: 10.5px; }

html[lang="en"] .story-hero h1 {
  max-width: 13.5em;
  font-size: clamp(52px, 7.05vw, 102px);
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  .story-cover { width: clamp(108px, 11.6vw, 126px); }
  .story-filelist li { grid-template-columns: 26px 46px minmax(0, 1fr) auto; gap: 12px; }
  .story-file-thumb { width: 46px; }
}

@media (max-width: 980px) {
  .story-act-head,
  .story-agent-head,
  .story-value-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .story-act-copy { max-width: 58ch; }
  .story-arc { min-height: 0; padding-bottom: 54px; }
  .story-arc-stage { min-height: 0; margin-top: 40px; }
  .story-arc-ring { display: none; }
  .story-fan {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 26px);
  }
  .story-cover {
    position: static;
    width: auto;
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    padding: 7px 7px 0;
    box-shadow: 0 16px 30px -22px rgba(20, 35, 28, 0.5);
  }
  .story-arc.is-in .story-cover { transform: none; }
  .story-cover:nth-child(n) { z-index: auto; }
  .story-arc-note { position: static; margin-top: 34px; text-align: left; }
  .story-column { min-height: 0; padding-block: clamp(82px, 11vh, 120px); }
  .story-column-grid { grid-template-columns: 1fr; gap: 42px; }
  .story-column-copy .story-act-copy { margin-top: 22px; }
  .story-agent { min-height: 0; padding-block: clamp(82px, 11vh, 120px); }
  .story-agent-stage { height: auto; min-height: 0; margin-top: 34px; }
  .story-agent-ring { display: none; }
  .story-agent-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    width: clamp(168px, 27vw, 210px);
  }
  .story-agent-orbit { display: none; }
  .story-agent-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 350px);
    margin: 26px auto 0;
  }
  .story-agent-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: grayscale(1) sepia(0.12) brightness(0.9);
    border: 1px solid rgba(241, 234, 219, 0.32);
  }
  .story-agent-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .story-agent-stats li:nth-child(2) { border-right: 0; }
  .story-agent-stats li:nth-child(3),
  .story-agent-stats li:nth-child(4) { padding-top: 12px; border-top: 1px solid rgba(241, 234, 219, 0.12); }
  .story-value { min-height: 0; padding-block: clamp(84px, 12vh, 130px); }
  .story-value-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .story-value-foot ul { flex-wrap: wrap; gap: 18px 30px; }
}

@media (max-width: 760px) {
  .story-hero { min-height: 100svh; padding-top: 112px; }
  .story-hero h1 { font-size: clamp(46px, 13.2vw, 64px); line-height: 1.04; letter-spacing: -0.028em; }
  .story-hero-lede { font-size: 15.5px; line-height: 1.85; }
  .story-hero-foot { flex-direction: column; align-items: flex-start; gap: 26px; }
  .story-hero-foot .ihb { width: 100%; justify-content: center; }
  .story-scroll { flex-direction: row-reverse; }
  .story-scroll i { height: 1px; width: 38px; background: linear-gradient(90deg, transparent, var(--gold)); }
  .story-scroll i::after { display: none; }
  .story-hero-meta { gap: 10px 0; margin-top: 46px; }
  .story-hero-meta li { padding-right: 14px; margin-right: 14px; }
  .story-hero-meta span { font-size: 11px; }
  .story-act h2 { font-size: clamp(34px, 9.4vw, 46px); line-height: 1.16; }
  .story-index { margin-bottom: 18px; }
  .story-act-copy { font-size: 14.5px; line-height: 1.85; }
  .story-arc { padding-top: 76px; }
  .story-arc-stage { margin-top: 30px; }
  .story-cover { padding: 6px 6px 0; }
  .story-cover figcaption { padding: 7px 5px 8px; }
  .story-cover figcaption b { font-size: 10.5px; }
  .story-cover figcaption em { font-size: 8.5px; }
  .story-column { padding-block: 78px; }
  .story-filelist li { grid-template-columns: 22px 44px minmax(0, 1fr) auto; gap: 10px; padding: 9px 2px; }
  .story-file-thumb { width: 44px; }
  .story-file-name b { font-size: 13.5px; }
  .story-file-name em { font-size: 9.5px; }
  .story-file-state { font-size: 7px; }
  .story-agent-stats b { font-size: 17px; }
  .story-agent-stats span { font-size: 9.5px; }
  .story-agent-stats li { padding-right: 12px; margin-right: 12px; }
  .story-value-range { font-size: clamp(52px, 15.8vw, 72px); margin-top: 44px; }
  .story-value-range em { transform: translateY(-0.3em); }
  .story-value-foot ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .story-hero-line { opacity: 1; transform: none; animation: none; }
  .story-scroll i::after { display: none; }
  .story-cover,
  .story-column .story-filelist li,
  .story-orbit-card,
  .story-value-mask > span { transition: none; }
  .story-cover { opacity: 1; }
  .story-arc.is-in .story-cover,
  .story-arc .story-cover {
    transform:
      translate(
        calc(-50% + var(--x) * var(--arc-r)),
        calc(-50% + var(--y) * var(--arc-r))
      )
      rotate(var(--rot))
      scale(1);
  }
  .story-column .story-filelist li { opacity: 1; transform: none; }
  .story-orbit-card { opacity: 1; }
  .story-agent.is-in .story-orbit-card,
  .story-agent .story-orbit-card {
    transform:
      translate(
        calc(-50% + var(--x) * var(--orbit-r)),
        calc(-50% + var(--y) * var(--orbit-r))
      )
      rotate(var(--rot))
      scale(1);
  }
  .story-value-mask > span { transform: none; }
  .story-agent-core::after { display: none; }
}

/* --- story arc: readable grid below the wide fan (2026-11-23) --- */
@media (max-width: 1180px) and (min-width: 901px) {
  .story-arc { min-height: 0; padding-bottom: 54px; }
  .story-arc-stage { min-height: 0; margin-top: 40px; }
  .story-arc-ring { display: none; }
  .story-fan {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
  }
  .story-cover {
    position: static;
    width: auto;
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    padding: 7px 7px 0;
    box-shadow: 0 16px 30px -22px rgba(20, 35, 28, 0.5);
  }
  .story-arc.is-in .story-cover { transform: none; }
  .story-cover:nth-child(n) { z-index: auto; }
  .story-arc-note { position: static; margin-top: 30px; text-align: left; }
}

html[lang="en"] .story-agent h2 {
  font-size: clamp(36px, 3.6vw, 48px);
  max-width: 13em;
}


/* ==========================================================================
   How it works — two-scene scroll story (2026-11-23)
   Scene 01: image wall → four safety entries
   Scene 02: fan → grid → workspace → value
   Base styles are the static / reduced-motion layout. html.flow-ready
   turns each section into a sticky, scroll-driven stage.
   ========================================================================== */

.story-page { overflow: clip; }

/* ---------- static base: scene 01 ---------- */

.entry-scene, .file-scene { position: relative; }

.entry-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(104px, 13vh, 156px) clamp(20px, 4vw, 48px) clamp(44px, 6vh, 64px);
  text-align: center;
}
.entry-hero .eyebrow { justify-content: center; }
.entry-hero h1 {
  margin: 22px auto 0;
  max-width: 15.5em;
  font-size: clamp(46px, 6.1vw, 94px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.story-hero-line { display: block; }
.entry-lede {
  max-width: 42em;
  margin: 26px auto 0;
  color: var(--ink-2);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.9;
  text-wrap: pretty;
}
.entry-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.entry-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line-strong);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.entry-jump i {
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.entry-jump:hover { color: var(--gold-dark); border-color: var(--gold-dark); }
.entry-hint {
  margin: 48px 0 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.entry-final { position: relative; padding: clamp(58px, 8vh, 92px) 0 clamp(72px, 9vh, 112px); }
.entry-final-head {
  max-width: 900px;
  margin: 0 auto clamp(28px, 4vh, 44px);
  padding: 0 clamp(20px, 4vw, 48px);
  text-align: center;
}
.entry-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-dark);
  font-size: 8.5px;
  letter-spacing: 0.2em;
}
.entry-kicker-rule { width: 26px; height: 1px; background: var(--gold); }
.entry-final-head h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.16;
  text-wrap: balance;
}
.entry-final-copy {
  max-width: 48em;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
  text-wrap: pretty;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.entry-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(22, 36, 29, 0.18);
  border-radius: 2px;
  background: var(--ink);
  color: #f8f1e2;
  box-shadow: 0 18px 40px -30px rgba(20, 35, 28, 0.65);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.entry-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.12) brightness(0.82) contrast(1.03);
  transform: scale(1.015);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.entry-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 24, 17, 0.08) 0%, rgba(9, 24, 17, 0.36) 48%, rgba(9, 24, 17, 0.92) 100%),
    linear-gradient(90deg, rgba(9, 24, 17, 0.34), rgba(9, 24, 17, 0) 56%);
}
.entry-card-body {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 24px);
}
.entry-card-no { color: var(--gold-soft); font-size: 8px; letter-spacing: 0.1em; opacity: .8; }
.entry-card-body strong { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; line-height: 1.2; }
.entry-card-copy { max-width: 26em; color: rgba(248, 241, 226, 0.74); font-size: 11.5px; line-height: 1.72; }
.entry-card-arrow {
  position: absolute;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  font-size: 16px;
  color: var(--gold-soft);
  transition: transform .3s var(--ease);
}
.entry-card:hover, .entry-card:focus-visible { transform: translateY(-6px); border-color: rgba(236, 211, 160, 0.6); box-shadow: 0 30px 58px -34px rgba(20, 35, 28, 0.82); }
.entry-card:hover .entry-card-img, .entry-card:focus-visible .entry-card-img { filter: grayscale(0.2) sepia(0.04) brightness(0.92) contrast(1.02); transform: scale(1.045); }
.entry-card:hover .entry-card-arrow, .entry-card:focus-visible .entry-card-arrow { transform: translateX(4px); }
.entry-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- static base: scene 02 ---------- */

.file-head {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(88px, 12vh, 138px) clamp(20px, 4vw, 48px) clamp(24px, 4vh, 40px);
}
.file-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: 16px;
}
.file-head h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.file-head-copy {
  max-width: 54em;
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.95;
  text-wrap: pretty;
}
.file-hint { margin: 24px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .16em; }

.file-stage { position: relative; padding: 0 0 clamp(64px, 8vh, 96px); }
.file-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.file-card { position: relative; }
.file-card-inner {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(22, 36, 29, 0.16);
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 16px 34px -26px rgba(20, 35, 28, 0.6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.file-card-media { position: absolute; inset: 0; }
.file-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.12) brightness(0.8) contrast(1.04);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.file-card-body {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(9, 24, 17, 0), rgba(9, 24, 17, 0.88));
  color: #f8f1e2;
}
.file-card-no { color: var(--gold-soft); font-size: 8px; letter-spacing: .1em; }
.file-card-body b { font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.file-card-body em { color: rgba(248, 241, 226, 0.65); font-size: 9.5px; font-style: normal; letter-spacing: .02em; }
.file-card:hover .file-card-inner { transform: translateY(-5px); border-color: rgba(236, 211, 160, 0.55); box-shadow: 0 26px 48px -30px rgba(20, 35, 28, 0.78); }
.file-card:hover .file-card-media img { filter: grayscale(.2) sepia(.04) brightness(.92); transform: scale(1.04); }

/* workspace: static (reduced / no-js) layout */
.workspace {
  width: min(1120px, calc(100% - 2 * clamp(20px, 4vw, 48px)));
  margin: clamp(36px, 5vh, 56px) auto 0;
  border: 1px solid rgba(22, 36, 29, 0.2);
  border-radius: 3px;
  background: #fcf7ea;
  box-shadow: 0 36px 80px -56px rgba(20, 35, 28, 0.6);
  overflow: hidden;
}
.ws-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f6efe0;
}
.ws-dots { display: inline-flex; gap: 5px; }
.ws-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(22, 36, 29, 0.18); }
.ws-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.ws-brand img { border-radius: 50%; }
.ws-brand b { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.ws-brand em { color: var(--muted); font-size: 7.5px; font-style: normal; letter-spacing: .14em; }
.ws-status { margin-left: auto; color: var(--gold-dark); font-size: 8px; letter-spacing: .1em; }
.ws-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 420px; }
.ws-rail { padding: 22px 18px; border-right: 1px solid var(--line); background: rgba(243, 237, 225, 0.44); }
.ws-rail-head { margin: 0 0 18px; color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.ws-rail ol { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; }
.ws-rail li { display: flex; align-items: baseline; gap: 9px; padding: 7px 9px; border-radius: 2px; color: var(--muted); font-size: 10.5px; }
.ws-rail li .mono { font-size: 8px; color: var(--gold-dark); opacity: .65; }
.ws-rail li.is-done { color: var(--ink-2); }
.ws-rail li.is-live { background: rgba(169, 131, 63, 0.1); color: var(--ink); box-shadow: inset 2px 0 0 var(--gold-dark); }
.ws-rail-foot { margin: 28px 0 0; color: var(--muted); font-size: 8px; line-height: 1.9; letter-spacing: .08em; }
.ws-main { padding: 22px 24px 20px; }
.ws-main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ws-main-head p { margin: 0 0 4px; color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.ws-main-head h3 { margin: 0; font-size: 25px; font-weight: 500; line-height: 1.2; }
.ws-count { color: var(--gold-dark); font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.ws-files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.ws-files li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px; border: 1px solid transparent; border-radius: 2px; }
.ws-thumb { position: relative; flex: 0 0 46px; width: 46px; height: 46px; overflow: hidden; border: 1px solid var(--line); border-radius: 1px; background: var(--paper-2); }
.ws-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.12) brightness(.82); }
.ws-name { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.ws-name b { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 500; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.ws-name em { overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ws-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ws-foot p { margin: 0; color: var(--muted); font-size: 8px; letter-spacing: .1em; }

/* value slab: static layout */
.value-slab {
  width: min(980px, calc(100% - 2 * clamp(20px, 4vw, 48px)));
  margin: clamp(30px, 4vh, 44px) auto 0;
  border-radius: 3px;
  background:
    radial-gradient(120% 130% at 82% 8%, rgba(201, 169, 106, 0.12), transparent 48%),
    linear-gradient(145deg, #173a2c 0%, #0e241b 68%, #091a13 100%);
  color: #f5eddb;
  box-shadow: 0 40px 90px -54px rgba(20, 35, 28, 0.9);
}
.value-slab-inner { padding: clamp(26px, 3.4vw, 42px); }
.value-kicker { margin: 0; color: var(--gold-soft); font-size: 8px; letter-spacing: .16em; }
.value-amount { display: flex; align-items: baseline; gap: clamp(10px, 1.4vw, 18px); margin: 14px 0 0; font-family: var(--serif); font-size: clamp(58px, 8.6vw, 118px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.value-amount em { color: var(--gold); font-size: .42em; font-style: normal; letter-spacing: 0; transform: translateY(-.35em); }
.value-copy { max-width: 40em; margin: 20px 0 0; color: rgba(245, 237, 219, 0.7); font-size: 12.5px; line-height: 1.85; }
.value-stats { display: flex; flex-wrap: wrap; gap: 18px 38px; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(236, 211, 160, 0.22); list-style: none; }
.value-stats li { display: flex; align-items: baseline; gap: 7px; }
.value-stats b { color: var(--gold-soft); font-size: 13px; font-weight: 500; }
.value-stats span { color: rgba(245, 237, 219, 0.58); font-size: 9.5px; }
.value-slab .ihb { margin-top: 26px; }

/* ---------- guardrails ---------- */
.guardrails { padding: clamp(70px, 10vh, 110px) 0 clamp(56px, 7vh, 84px); border-top: 1px solid var(--line); background: var(--paper-2); }
.guardrails-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(26px, 5vw, 76px); align-items: end; }
.guardrails-head h2 { margin: 16px 0 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.guardrails-copy { max-width: 52em; margin: 0 0 4px; color: var(--ink-2); font-size: 13.5px; line-height: 1.95; }
.guardrails-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(34px, 4.6vh, 50px); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.guardrail { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 210px; padding: 26px clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.guardrail:first-child { border-left: 0; }
.guardrail-no { margin: 0; color: var(--gold-dark); font-size: 9px; letter-spacing: .1em; }
.guardrail h3 { margin: 2px 0 0; font-size: clamp(22px, 2vw, 27px); font-weight: 500; line-height: 1.2; }
.guardrail p:not(.guardrail-no):not(.guardrail-foot) { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.85; }
.guardrail-foot { margin: auto 0 0; padding-top: 18px; color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.guardrail:target { background: rgba(252, 247, 234, 0.9); box-shadow: inset 0 2px 0 var(--gold); }
.guardrail:target h3 { color: var(--gold-dark); }
.guardrail-negatives { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 26px 0 0; padding: 0; list-style: none; }
.guardrail-negatives li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10.5px; }
.guardrail-negatives .mono { color: var(--gold-dark); font-size: 9px; }

/* ---------- flow-ready: scene 01 stage ---------- */

html.flow-ready .entry-scene { height: 300vh; }
html.flow-ready .entry-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: block;
  isolation: isolate;
}
html.flow-ready .entry-hero {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 92px;
  padding-bottom: 120px;
  will-change: opacity, transform;
}
html.flow-ready .entry-wall { position: absolute; inset: 0; z-index: 2; display: block; pointer-events: none; }
html.flow-ready .entry-final {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 78px;
  padding-bottom: 42px;
  opacity: 0;
  visibility: hidden;
}
html.flow-ready .entry-final-head { flex: 0 0 auto; margin-bottom: clamp(20px, 3vh, 34px); }
html.flow-ready .entry-flexible { flex: 1 1 auto; }
html.flow-ready .entry-grid { flex: 0 0 auto; }

.entry-decor, .entry-morph {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 36, 29, 0.16);
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 24px 48px -36px rgba(20, 35, 28, 0.72);
  will-change: transform, opacity;
}
.entry-decor img, .entry-morph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.12) brightness(.82) contrast(1.03); }
.entry-decor { opacity: .78; }
.entry-morph { z-index: 4; }
.entry-morph-label {
  position: absolute;
  left: 10px;
  bottom: 9px;
  padding: 3px 6px;
  background: rgba(9, 24, 17, 0.72);
  color: var(--gold-soft);
  font-size: 6.5px;
  letter-spacing: .12em;
}

/* ---------- flow-ready: scene 02 stage ---------- */

html.flow-ready .file-scene { height: 440vh; }
html.flow-ready .file-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 76px;
  isolation: isolate;
}
html.flow-ready .file-head { flex: 0 0 auto; padding-top: clamp(18px, 2.8vh, 32px); padding-bottom: 8px; }
html.flow-ready .file-head-row { margin-top: 10px; }
html.flow-ready .file-head h2 { font-size: clamp(30px, 3.2vw, 46px); }
html.flow-ready .file-head-copy { max-width: 46em; font-size: 12px; line-height: 1.8; }
html.flow-ready .file-hint { margin-top: 12px; }
html.flow-ready .file-stage { position: relative; flex: 1 1 auto; min-height: 0; padding: 0; }

html.flow-ready .file-cards { position: absolute; inset: 0; display: block; width: 100%; max-width: none; margin: 0; padding: 0; z-index: 4; }
html.flow-ready .file-card {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fc-w, 180px);
  height: var(--fc-h, 236px);
  margin: 0;
  will-change: transform, width, height;
  z-index: 4;
}
html.flow-ready .file-card-inner { width: 100%; height: 100%; aspect-ratio: auto; }
html.flow-ready .file-card.is-docked .file-card-body { opacity: 0; }
html.flow-ready .file-card-body { transition: opacity .25s var(--ease); }

html.flow-ready .workspace {
  position: absolute;
  left: 50%;
  top: 2%;
  width: min(1040px, calc(100% - 64px));
  height: 82%;
  margin: 0;
  transform: translateX(-50%) translateY(18px) scale(.985);
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  will-change: opacity, transform;
}
html.flow-ready .workspace.is-on { visibility: visible; }
html.flow-ready .workspace.is-pricing { opacity: .28 !important; transform: translateX(-50%) scale(.985); }

html.flow-ready .value-slab {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, calc(100% - 72px));
  margin: 0;
  transform: translate(-50%, -46%) translateY(26px);
  opacity: 0;
  visibility: hidden;
  z-index: 12;
  will-change: opacity, transform;
}
html.flow-ready .value-slab.is-on { visibility: visible; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .entry-card-body strong { font-size: 24px; }
  .entry-card-copy { font-size: 10.5px; }
  .ws-files { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 8px; }
  .ws-thumb { flex-basis: 40px; width: 40px; height: 40px; }
  .ws-name b { font-size: 10px; }
  .guardrails-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guardrail:nth-child(3) { border-left: 0; }
  .guardrail:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .guardrail { min-height: 190px; }
}

@media (max-width: 980px) {
  .entry-hero h1 { font-size: clamp(42px, 8.2vw, 68px); }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .entry-card { aspect-ratio: 4 / 5; }
  .entry-card-body strong { font-size: 24px; }
  .entry-final-head h2 { font-size: clamp(30px, 5vw, 42px); }
  .file-head-row { grid-template-columns: 1fr; gap: 16px; }
  .file-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guardrails-head { grid-template-columns: 1fr; gap: 18px; }
  .guardrails-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-body { grid-template-columns: 1fr; min-height: 0; }
  .ws-rail { display: none; }
  .ws-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-main { padding: 18px; }
  .ws-main-head h3 { font-size: 22px; }
  .ws-foot { align-items: flex-start; flex-direction: column; }
  .value-amount { font-size: clamp(48px, 10vw, 82px); }
}

@media (max-width: 760px) {
  .entry-hero { padding-top: 88px; padding-bottom: 28px; }
  .entry-hero h1 { font-size: clamp(40px, 11.6vw, 58px); letter-spacing: -.05em; }
  .entry-lede { margin-top: 20px; font-size: 13px; line-height: 1.85; }
  .entry-actions { gap: 16px; margin-top: 24px; }
  .entry-hint { margin-top: 34px; font-size: 8px; letter-spacing: .13em; }
  .entry-final { padding-top: 44px; padding-bottom: 54px; }
  .entry-final-head { padding-inline: 20px; margin-bottom: 22px; }
  .entry-final-head h2 { font-size: 29px; }
  .entry-final-copy { font-size: 12.5px; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 20px; gap: 10px; }
  .entry-card { aspect-ratio: 3 / 4; }
  .entry-card-body { padding: 14px; gap: 6px; }
  .entry-card-body strong { font-size: 21px; }
  .entry-card-copy { font-size: 10px; line-height: 1.65; }
  .entry-card-arrow { font-size: 14px; bottom: 14px; right: 14px; }

  .file-head { padding-top: 62px; padding-bottom: 20px; }
  .file-head h2 { font-size: clamp(32px, 8vw, 44px); }
  .file-cards { gap: 10px; padding-inline: 20px; }
  .file-card-body { padding: 9px; gap: 2px; }
  .file-card-body b { font-size: 10.5px; overflow-wrap: break-word; }
  .file-card-body em { font-size: 8px; }
  .file-card-no { font-size: 7px; }
  .workspace { width: calc(100% - 40px); margin-top: 28px; }
  .ws-main-head h3 { font-size: 20px; }
  .ws-files { gap: 4px 8px; }
  .ws-thumb { flex-basis: 34px; width: 34px; height: 34px; }
  .ws-name b { font-size: 9.5px; }
  .ws-name em { font-size: 7.5px; }
  .guardrails { padding-top: 54px; }
  .guardrails-grid { grid-template-columns: 1fr; }
  .guardrail { min-height: 0; border-left: 0; border-top: 1px solid var(--line); padding: 22px 20px; }
  .guardrail:first-child { border-top: 0; }
  .guardrail h3 { font-size: 23px; }
  .guardrail-foot { padding-top: 12px; }
  .value-slab-inner { padding: 24px 20px; }
  .value-amount { font-size: clamp(44px, 12vw, 64px); gap: 10px; }
  .value-copy { font-size: 12px; }
  .value-stats { gap: 12px 20px; }
}

/* mobile fold for the sticky scenes */
@media (max-width: 760px) {
  html.flow-ready .entry-scene { height: 236vh; }
  html.flow-ready .entry-sticky { min-height: 560px; }
  html.flow-ready .entry-hero { justify-content: flex-start; padding-top: 108px; padding-bottom: 40px; }
  html.flow-ready .entry-hero h1 { font-size: clamp(40px, 11.8vw, 54px); }
  html.flow-ready .entry-hero .eyebrow { margin-bottom: 0; }
  html.flow-ready .entry-final { justify-content: flex-start; padding-top: 100px; padding-bottom: 24px; }
  html.flow-ready .entry-final-head { margin-bottom: 18px; }
  html.flow-ready .entry-final-head h2 { font-size: 27px; }
  html.flow-ready .entry-final-copy { display: none; }
  html.flow-ready .entry-card { aspect-ratio: 3 / 4; }

  html.flow-ready .file-scene { height: 390vh; }
  html.flow-ready .file-sticky { min-height: 620px; padding-top: 68px; }
  html.flow-ready .file-head { padding-top: 16px; }
  html.flow-ready .file-head h2 { font-size: 29px; }
  html.flow-ready .file-head-copy { display: none; }
  html.flow-ready .file-hint { display: none; }
  html.flow-ready .workspace { top: 3%; width: calc(100% - 28px); height: 78%; }
  html.flow-ready .ws-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 6px; }
  html.flow-ready .ws-main { padding: 13px; }
  html.flow-ready .ws-main-head h3 { font-size: 18px; }
  html.flow-ready .ws-foot p { display: none; }
  html.flow-ready .ws-foot { margin-top: 8px; padding-top: 8px; }
  html.flow-ready .ws-bar { min-height: 34px; padding-inline: 10px; gap: 8px; }
  html.flow-ready .ws-brand em { display: none; }
  html.flow-ready .ws-status { font-size: 7px; }
  html.flow-ready .value-slab { width: calc(100% - 32px); }
  html.flow-ready .value-amount { font-size: clamp(38px, 10.5vw, 54px); }
  html.flow-ready .value-slab-inner { padding: 20px 16px; }
  html.flow-ready .value-copy { font-size: 11px; }
  html.flow-ready .value-stats { gap: 8px 16px; margin-top: 16px; padding-top: 12px; }
  html.flow-ready .value-stats b { font-size: 11px; }
  html.flow-ready .value-stats span { font-size: 8px; }
  html.flow-ready .value-slab .ihb { margin-top: 16px; }
}

/* reduced motion: keep the static base; no transitions */
@media (prefers-reduced-motion: reduce) {
  .entry-card, .entry-card-img, .entry-jump, .file-card-inner, .file-card-media img,
  .guardrail, .value-slab, .ihb, .ihb-fill, .ihb-text, .ihb-hover { transition: none !important; }
  html.flow-ready .entry-scene, html.flow-ready .file-scene { height: auto !important; }
  html.flow-ready .entry-sticky, html.flow-ready .file-sticky { position: static; height: auto; min-height: 0; overflow: visible; }
  html.flow-ready .entry-hero { position: relative; inset: auto; opacity: 1 !important; transform: none !important; }
  html.flow-ready .entry-wall, html.flow-ready .entry-morph, html.flow-ready .entry-decor { display: none !important; }
  html.flow-ready .entry-final { position: relative; inset: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; padding-top: 0; }
  html.flow-ready .entry-grid { display: grid; }
  html.flow-ready .file-cards, html.flow-ready .file-card { position: static; width: auto; height: auto; transform: none !important; }
  html.flow-ready .file-cards { display: grid; }
  html.flow-ready .file-sticky { display: block; }
  html.flow-ready .file-stage { display: block; }
  html.flow-ready .workspace, html.flow-ready .value-slab { position: static; width: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  html.flow-ready .file-card.is-docked .file-card-body { opacity: 1; }
}

/* target flash from entry cards */
#guardrail-authorization, #guardrail-confidentiality, #guardrail-readonly, #guardrail-withdraw { scroll-margin-top: 96px; }

/* primary CTA on the dark value slab */
.value-slab .ihb { color: #f5eddb; border-color: rgba(236, 211, 160, 0.55); }
.value-slab .ihb .ihb-fill { background: #f5eddb; }
.value-slab .ihb .ihb-hover { color: #10271e; }
.value-slab .ihb:hover,
.value-slab .ihb:focus-visible { border-color: #f5eddb; color: #10271e; }
html.flow-ready .file-head { position: relative; z-index: 6; }

/* no-JS / reduced-motion: keep the wall out of the static reading layout */
html:not(.flow-ready) .entry-wall { display: none; }
html:not(.flow-ready) .file-stage { display: flex; flex-direction: column; }
html:not(.flow-ready) .file-cards { order: 1; }
html:not(.flow-ready) .workspace { order: 2; }
html:not(.flow-ready) .value-slab { order: 3; }

/* let pointer clicks reach the workspace CTA; docked cards stay hoverable */
html.flow-ready .file-cards { pointer-events: none; }
html.flow-ready .file-card { pointer-events: auto; }

/* ==========================================================================
   How it works — bolder pass (2026-11-23, round 10)
   Wider stages, more documents, hover colour, right-edge arc entry,
   two-row grid, and the workspace exits upward instead of fading behind.
   ========================================================================== */

/* Scene 01 — a larger, interactive wall */
html.flow-ready .entry-scene { height: 320vh; }
html.flow-ready .entry-hero { pointer-events: none; }
html.flow-ready .entry-hero .eyebrow,
html.flow-ready .entry-hero h1,
html.flow-ready .entry-hero .entry-lede,
html.flow-ready .entry-hero .entry-actions,
html.flow-ready .entry-hero .entry-hint { pointer-events: auto; }
html.flow-ready .entry-wall { pointer-events: none; }
html.flow-ready .entry-decor,
html.flow-ready .entry-morph {
  pointer-events: auto;
  transform-origin: 0 0;
  contain: layout paint style;
  backface-visibility: hidden;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
html.flow-ready .entry-decor img,
html.flow-ready .entry-morph img {
  transition: filter .45s var(--ease), transform .6s var(--ease);
}
html.flow-ready .entry-decor:hover,
html.flow-ready .entry-morph:hover {
  z-index: 6;
  border-color: rgba(236, 211, 160, .62);
  box-shadow: 0 30px 58px -30px rgba(20, 35, 28, .82);
}
html.flow-ready .entry-decor:hover img,
html.flow-ready .entry-morph:hover img {
  filter: grayscale(0) sepia(.02) saturate(1.08) brightness(.98) contrast(1.02);
  transform: scale(1.025);
}

/* Scene 02 — no full fan; cards enter from the right, then lie in two rows */
html.flow-ready .file-scene { height: 400vh; }
html.flow-ready .file-head { padding-bottom: 2px; }
html.flow-ready .file-head-row { display: block; margin-top: 8px; }
html.flow-ready .file-head h2 {
  max-width: 14em;
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.08;
}
html.flow-ready .file-head-copy { display: none; }
html.flow-ready .file-hint { margin-top: 10px; }
html.flow-ready .file-stage { width: 100%; }
html.flow-ready .file-cards {
  pointer-events: none;
  will-change: transform;
}
html.flow-ready .file-card {
  pointer-events: auto;
  transform-origin: 0 0;
  contain: layout paint style;
  backface-visibility: hidden;
}
html.flow-ready .file-card-inner {
  border-color: rgba(22, 36, 29, .22);
  box-shadow: 0 22px 44px -32px rgba(20, 35, 28, .72);
}
html.flow-ready .file-card:hover .file-card-inner {
  border-color: rgba(236, 211, 160, .62);
  box-shadow: 0 34px 62px -34px rgba(20, 35, 28, .86);
}
html.flow-ready .file-card:hover .file-card-media img {
  filter: grayscale(0) sepia(.02) saturate(1.06) brightness(.97);
  transform: scale(1.035);
}
html.flow-ready .workspace {
  width: min(1320px, calc(100% - 7vw));
  height: 84%;
}
html.flow-ready .workspace.is-pricing {
  opacity: 1 !important;
  pointer-events: none;
}
html.flow-ready .value-slab {
  width: min(1160px, calc(100% - 8vw));
}
html.flow-ready .value-slab .value-amount { font-size: clamp(64px, 10vw, 150px); }

/* mobile: keep the wall readable and the two-row grid fitting */
@media (max-width: 760px) {
  html.flow-ready .entry-scene { height: 270vh; }
  html.flow-ready .file-scene { height: 360vh; }
  html.flow-ready .file-head { padding-top: 16px; }
  html.flow-ready .file-head h2 { font-size: clamp(32px, 9.4vw, 44px); }
  html.flow-ready .workspace { width: calc(100% - 24px); height: 78%; }
  html.flow-ready .value-slab { width: calc(100% - 24px); }
  html.flow-ready .value-slab .value-amount { font-size: clamp(40px, 11vw, 58px); }
  html.flow-ready .entry-decor { opacity: .56; }
}

/* soft paper scrim keeps the hero copy legible over the scattered wall */
html.flow-ready .entry-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1120px, 96vw);
  height: clamp(430px, 62vh, 640px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(243, 237, 225, 0.97) 0%, rgba(243, 237, 225, 0.9) 38%, rgba(243, 237, 225, 0.45) 62%, rgba(243, 237, 225, 0) 78%);
  z-index: -1;
  pointer-events: none;
}
/* the console slides up over the standing headline instead of mixing with it */
html.flow-ready .file-head { position: relative; z-index: 7; will-change: opacity; }
html.flow-ready .workspace { z-index: 8; }

@media (max-width: 760px) {
  html.flow-ready .entry-hero::before {
    width: 100vw;
    height: clamp(440px, 64vh, 560px);
    background: radial-gradient(ellipse at center, rgba(243, 237, 225, 0.98) 0%, rgba(243, 237, 225, 0.94) 40%, rgba(243, 237, 225, 0.5) 66%, rgba(243, 237, 225, 0) 82%);
  }
}

/* ==========================================================================
   How it works — estimate sheet & scene-title motion (2026-11-23, round 11)
   The range is rendered as a paper quote sheet so it speaks the same language
   as the workspace; the second scene headline fades in and lifts out on scroll.
   ========================================================================== */

html.flow-ready #files-title {
  opacity: 0;
  will-change: opacity, transform;
}
html.flow-ready .file-card {
  opacity: 0;
  will-change: opacity, transform;
}

/* -- paper quote sheet (static layout and animated overlay share this base) -- */
.value-slab {
  position: relative;
  width: min(1060px, calc(100% - 8vw));
  margin: clamp(30px, 4vh, 44px) auto 0;
  padding: 0;
  border: 1px solid rgba(70, 86, 75, 0.3);
  border-top: 2px solid var(--gold);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 34%),
    linear-gradient(164deg, #fdf9ef 0%, #f8f1e2 60%, #f2e9d6 100%);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 0 rgba(28, 42, 34, 0.06),
    0 40px 78px -44px rgba(28, 42, 34, 0.58);
}
html.flow-ready .value-slab {
  width: min(1060px, calc(100% - 8vw));
}
.value-slab::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(169, 131, 63, 0.16);
  pointer-events: none;
}
.value-slab-inner {
  position: relative;
  padding: clamp(30px, 3.5vw, 44px);
}

.value-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(28, 42, 34, 0.16);
}
.value-slab .value-kicker {
  margin: 0;
  color: var(--gold-dark);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}
.value-ref {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.value-slab .value-title {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.value-slab .value-amount {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(64px, 10.4vw, 148px);
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.value-slab .value-amount em {
  color: var(--gold-dark);
  font-size: 0.36em;
  transform: translateY(-0.26em);
}

.value-slab .value-copy {
  max-width: 46em;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.9;
}

.value-slab .value-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid rgba(28, 42, 34, 0.2);
  border-bottom: 1px solid rgba(28, 42, 34, 0.2);
  list-style: none;
}
.value-slab .value-stats li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 16px;
  border-left: 1px solid rgba(28, 42, 34, 0.12);
}
.value-slab .value-stats li:first-child {
  padding-left: 0;
  border-left: 0;
}
.value-slab .value-stats b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.value-slab .value-stats span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.value-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}
.value-note {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.value-slab .ihb {
  margin-top: 0;
  color: var(--ink);
  border-color: rgba(28, 42, 34, 0.4);
}
.value-slab .ihb .ihb-fill {
  background: var(--ink);
}
.value-slab .ihb .ihb-hover {
  color: var(--paper);
}
.value-slab .ihb:hover,
.value-slab .ihb:focus-visible {
  color: var(--paper);
  border-color: var(--ink);
}

@media (max-width: 760px) {
  html.flow-ready .value-slab {
    width: calc(100% - 24px);
  }
  html.flow-ready .value-slab .value-amount {
    font-size: clamp(42px, 12.4vw, 64px);
  }
  html.flow-ready .value-slab-inner {
    padding: 22px 18px;
  }
  .value-slab .value-title {
    margin-top: 14px;
    font-size: clamp(22px, 7vw, 30px);
  }
  .value-slab .value-copy {
    margin-top: 12px;
    font-size: 11px;
  }
  .value-slab .value-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }
  .value-slab .value-stats li {
    padding: 10px 12px;
  }
  .value-slab .value-stats li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(28, 42, 34, 0.12);
  }
  .value-slab .value-stats li:nth-child(4) {
    border-top: 1px solid rgba(28, 42, 34, 0.12);
  }
  .value-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 16px;
  }
  .value-slab .ihb {
    width: 100%;
  }
}

/* the scene headline sits directly on the paper — no soft panel behind it */
html.flow-ready .file-head { background: transparent; }
html.flow-ready .file-head::before { display: none; }

/* keep the guardrail headline on one line at desktop widths */
@media (min-width: 981px) {
  .guardrails-head { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }
}

/* ==========================================================================
   How it works — arc first, then sort; the phoenix scans the file wall
   (2026-11-24, round 12)
   ========================================================================== */

html.flow-ready .file-scene { height: 460vh; }

/* a quiet opening state so the stage is never an empty panel */
html.flow-ready .file-intro {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: 6;
  margin: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .2em;
  pointer-events: none;
  will-change: opacity, transform;
}
html.flow-ready .file-intro::before,
html.flow-ready .file-intro::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(34px, 5vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 131, 63, .5));
}
html.flow-ready .file-intro::before { right: calc(100% + 18px); }
html.flow-ready .file-intro::after { left: calc(100% + 18px); transform: scaleX(-1); }
html:not(.flow-ready) .file-intro { display: none; }

/* -- the Bennu agent as a scanning phoenix -- */
.file-scan { display: none; }
html.flow-ready .file-scan {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
}
html.flow-ready .file-scan-unit {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  will-change: transform;
}
html.flow-ready .file-scan-bird {
  position: absolute;
  left: -32px;
  top: -32px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(236, 211, 160, .7);
  border-radius: 50%;
  background: #143326;
  box-shadow:
    0 0 0 5px rgba(236, 211, 160, .07),
    0 0 28px -4px rgba(201, 169, 106, .55),
    0 16px 28px -18px rgba(9, 24, 17, .9);
  transform: rotate(var(--scan-tilt, 0deg));
}
html.flow-ready .file-scan-bird::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(236, 211, 160, .24);
  border-radius: 50%;
  animation: fileScanRing 2.8s linear infinite;
}
html.flow-ready .file-scan-bird img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
html.flow-ready .file-scan-beam {
  position: absolute;
  left: -1px;
  top: 28px;
  width: 2px;
  height: min(46vh, 400px);
  background: linear-gradient(180deg, rgba(236, 211, 160, 1) 0%, rgba(236, 211, 160, .62) 42%, rgba(236, 211, 160, 0) 100%);
  box-shadow: 0 0 18px rgba(201, 169, 106, .7);
}
html.flow-ready .file-scan-cone {
  position: absolute;
  left: -116px;
  top: 26px;
  width: 232px;
  height: min(46vh, 400px);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(201, 169, 106, .36) 0%, rgba(201, 169, 106, .12) 55%, rgba(201, 169, 106, 0) 100%);
  filter: blur(4px);
  opacity: .85;
}
html.flow-ready .file-scan-label {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vh, 28px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 7px;
  border: 1px solid rgba(236, 211, 160, .28);
  border-radius: 2px;
  background: rgba(20, 35, 28, .82);
  box-shadow: 0 8px 18px -12px rgba(9, 24, 17, .9);
  color: rgba(248, 241, 226, .92);
  font-size: 8px;
  letter-spacing: .2em;
}

@keyframes fileScanRing {
  0% { transform: scale(.9); opacity: .55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* the card being read lifts its contrast and gets a gold rim */
html.flow-ready .file-card-inner { position: relative; }
html.flow-ready .file-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(236, 211, 160, .24) 0%, rgba(236, 211, 160, .04) 44%, rgba(236, 211, 160, 0) 100%);
  transition: opacity .3s var(--ease);
}
html.flow-ready .file-card.is-scanned .file-card-inner {
  border-color: rgba(248, 235, 206, .96);
  box-shadow:
    0 0 0 2px rgba(236, 211, 160, .42),
    0 0 38px -6px rgba(201, 169, 106, .82),
    0 0 0 5px rgba(201, 169, 106, .1),
    0 30px 54px -32px rgba(20, 35, 28, .86);
}
html.flow-ready .file-card.is-scanned .file-card-inner::after { opacity: 1; }
html.flow-ready .file-card.is-scanned:not(:hover) .file-card-media img {
  filter: grayscale(.08) sepia(.03) saturate(1.06) brightness(1.02);
}

/* -- workspace rows light up under the scan -- */
html.flow-ready .workspace { z-index: 8; }
html.flow-ready .ws-files li {
  transition: background-color .32s var(--ease), box-shadow .32s var(--ease);
}
html.flow-ready .ws-files li.is-scanned {
  background: rgba(169, 131, 63, .12);
  box-shadow: inset 2px 0 0 var(--gold);
}
html.flow-ready .ws-files li.is-scanned .ws-thumb img {
  filter: grayscale(0) sepia(.02) saturate(1.06) brightness(1.02);
}
html.flow-ready .ws-files li.is-scanned .ws-name b { color: var(--gold-dark); }
html.flow-ready .value-slab { z-index: 6; }

/* -- footer + giant BENNU wordmark reveal (Adobe-style) -- */
.site-footer {
  position: relative;
  z-index: 0;
  padding-block: 0;
  border-top: 1px solid rgba(236, 211, 160, .18);
  background: #0e241b;
  color: #f3ede1;
}
.footer-foreground {
  position: relative;
  z-index: 2;
  padding-bottom: 2px;
  background: #0e241b;
}
.site-footer .footer-grid { padding-top: clamp(52px, 6.5vw, 82px); }
.site-footer .footer-brand .brand-text strong { color: #f3ede1; }
.site-footer .footer-head { color: rgba(236, 211, 160, .72); }
.site-footer .footer-tagline { color: rgba(248, 241, 226, .62); }
.site-footer .footer-copy,
.site-footer .footer-note { color: rgba(248, 241, 226, .4); }
.site-footer .footer-col a,
.site-footer .footer-link { color: rgba(248, 241, 226, .86); }
.site-footer .footer-col a:hover,
.site-footer .footer-link:hover { color: #f3ede1; }
.site-footer .footer-col a::after { background: rgba(236, 211, 160, .5); }
.site-footer .footer-base {
  border-top-color: rgba(236, 211, 160, .18);
  color: rgba(248, 241, 226, .42);
}
.footer-wordmark {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #0e241b;
  line-height: 0;
}
.footer-wordmark-img {
  display: block;
  width: calc(100% + 24px);
  max-width: none;
  height: auto;
  margin-inline: -12px;
  transform: translate3d(0, 50%, 0);
  will-change: transform;
}

@media (max-width: 760px) {
  html.flow-ready .file-scene { height: 400vh; }
  .footer-wordmark-img { width: calc(100% + 10px); margin-inline: -5px; }
  html.flow-ready .file-scan-bird { left: -24px; top: -24px; width: 48px; height: 48px; }
  html.flow-ready .file-scan-label { display: none; }
  html.flow-ready .file-intro { top: 40%; font-size: 8.5px; letter-spacing: .16em; }
  html.flow-ready .file-scan-beam { height: min(42vh, 320px); }
  html.flow-ready .file-scan-cone { left: -80px; width: 160px; height: min(42vh, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-wordmark-img { transform: none !important; }
  html.flow-ready .file-scan-bird::before { animation: none; }
}



/* clean entrance: no intro copy, no section label before the first cover */
html.flow-ready .file-intro { display: none; }
html.flow-ready .file-head { opacity: 0; }


/* reduced motion: one clean static workspace, no file-card wall */
@media (prefers-reduced-motion: reduce) {
  .file-scene { height: auto !important; }
  .file-sticky {
    position: static !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .file-head {
    position: static !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding-top: clamp(28px, 6vh, 52px) !important;
    padding-inline: clamp(20px, 4vw, 48px) !important;
    transform: none !important;
  }
  .file-head h2,
  .file-head .story-h2-line { display: block !important; }
  .file-stage {
    position: static !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 clamp(40px, 8vh, 72px) !important;
    background: var(--paper) !important;
  }
  .file-intro,
  .file-scan,
  .file-cards { display: none !important; }
  .workspace {
    position: static !important;
    display: block !important;
    width: min(1180px, calc(100% - 40px)) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .workspace .ws-body { min-height: 520px; }
  .value-slab { display: none !important; }
}

/* -- scanning phoenix rides the workspace top bar, looping left to right -- */
html.flow-ready .file-scan-unit {
  opacity: 0;
  will-change: transform, opacity;
}
html.flow-ready .file-scan-bird {
  left: -13px;
  top: -13px;
  width: 26px;
  height: 26px;
  border-color: rgba(236, 211, 160, .72);
  background: #143326;
  box-shadow:
    0 0 0 3px rgba(236, 211, 160, .08),
    0 0 18px -4px rgba(201, 169, 106, .62),
    0 8px 14px -10px rgba(9, 24, 17, .9);
}
html.flow-ready .file-scan-bird::before {
  inset: -5px;
}
html.flow-ready .file-scan-bird img {
  transform: rotate(var(--scan-roll, 0deg));
  will-change: transform;
}
html.flow-ready .file-scan-beam {
  left: -1px;
  top: 12px;
  height: min(58vh, 520px);
}
html.flow-ready .file-scan-cone {
  left: -78px;
  top: 11px;
  width: 156px;
  height: min(58vh, 520px);
  opacity: .72;
}
html.flow-ready .file-scan-label { display: none; }

@media (max-width: 760px) {
  html.flow-ready .file-scan-bird {
    left: -11px;
    top: -11px;
    width: 22px;
    height: 22px;
  }
  html.flow-ready .file-scan-beam { height: min(46vh, 330px); }
  html.flow-ready .file-scan-cone {
    left: -66px;
    width: 132px;
    height: min(46vh, 330px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.flow-ready .file-scan-unit { opacity: 0 !important; }
  html.flow-ready .file-scan-bird img { transform: none !important; }
}

/* ---------- Workspace scale + closing hold (2026-11-24) ---------- */

html.flow-ready .workspace { display: flex; flex-direction: column; width: min(1360px, calc(100% - 4vw)); height: 87%; }
html.flow-ready .ws-body { flex: 1 1 auto; grid-template-columns: 166px minmax(0, 1fr); min-height: 0; }
html.flow-ready .ws-rail { padding: 26px 20px; }
html.flow-ready .ws-rail-head { margin-bottom: 20px; font-size: 8.5px; }
html.flow-ready .ws-rail li { padding: 8px 10px; font-size: 11.5px; }
html.flow-ready .ws-rail-foot { margin-top: 30px; font-size: 8.5px; }
html.flow-ready .ws-main { display: flex; flex-direction: column; padding: 26px 30px 22px; }
html.flow-ready .ws-main-head h3 { font-size: clamp(28px, 2.45vw, 36px); }
html.flow-ready .ws-files { flex: 1 1 auto; align-content: center; gap: clamp(14px, 1.6vw, 22px) clamp(16px, 2.1vw, 30px); margin-top: 8px; }
html.flow-ready .ws-files li { min-height: clamp(88px, 8vw, 112px); gap: 14px; padding: 12px 14px; }
html.flow-ready .ws-thumb { flex-basis: clamp(68px, 6.4vw, 88px); width: clamp(68px, 6.4vw, 88px); height: clamp(68px, 6.4vw, 88px); }
html.flow-ready .ws-thumb img { filter: grayscale(1) sepia(.12) brightness(.86); }
html.flow-ready .ws-name b { overflow: visible; font-size: clamp(12.5px, .98vw, 14px); line-height: 1.25; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
html.flow-ready .ws-name em { margin-top: 5px; font-size: clamp(9px, .74vw, 10.5px); }
html.flow-ready .ws-foot { margin-top: auto; padding-top: 18px; }
html.flow-ready .ws-foot p { font-size: 8.5px; }
html.flow-ready .ws-foot-note { color: var(--muted); opacity: .72; }

@media (max-width: 1180px) {
  html.flow-ready .ws-files { gap: 8px 12px; }
  html.flow-ready .ws-files li { min-height: 76px; gap: 10px; padding: 8px 10px; }
  html.flow-ready .ws-thumb { flex-basis: 52px; width: 52px; height: 52px; }
  html.flow-ready .ws-name b { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
  html.flow-ready .ws-name em { font-size: 8.5px; }
}

@media (max-width: 980px) {
  html.flow-ready .workspace { width: calc(100% - 3vw); }
  html.flow-ready .ws-main { padding: 22px 24px 18px; }
  html.flow-ready .ws-files { gap: 10px 14px; }
  html.flow-ready .ws-thumb { flex-basis: 52px; width: 52px; height: 52px; }
  html.flow-ready .ws-name b { font-size: 12px; }
}

@media (max-width: 760px) {
  html.flow-ready .workspace { width: calc(100% - 20px); height: 82%; }
  html.flow-ready .ws-body { grid-template-columns: 1fr; min-height: 0; }
  html.flow-ready .ws-main { padding: 16px 15px 14px; }
  html.flow-ready .ws-main-head h3 { font-size: 21px; }
  html.flow-ready .ws-files { gap: 4px 8px; }
  html.flow-ready .ws-files li { gap: 8px; padding: 6px; }
  html.flow-ready .ws-thumb { flex-basis: 42px; width: 42px; height: 42px; }
  html.flow-ready .ws-name b { font-size: 10px; }
  html.flow-ready .ws-name em { font-size: 8px; }
  html.flow-ready .ws-foot-note { display: none; }
}

/* Closing CTA hold removed: the BENNU wordmark reveal is damped in site.js. */
