:root {
  color-scheme: dark;
  --soot: #120d0a;
  --soot-2: #19120d;
  --umber: #261b13;
  --umber-2: #33251a;
  --line: rgba(243, 230, 200, 0.12);
  --line-hi: rgba(230, 194, 122, 0.5);
  --cream: #f3e6c8;
  --cream-soft: #dccbab;
  --muted: #a8977b;
  --paper: #ecdcb8;
  --ink: #2a1e14;
  --ink-soft: #5b4733;
  --brass: #c09146;
  --brass-hi: #e6c27a;
  --brass-lo: #6f4f22;
  --oxblood: #8e2a1e;
  --oxblood-hi: #a83a2a;
  --rust: #b0532f;
  --met: #3f9c46;
  --steel: #5b7d9a;
  --amber: #e2972f;
  --heading: "Rubik", "Arial Black", system-ui, sans-serif;
  --grunge: "Rubik Dirt", "Rubik", "Arial Black", system-ui, sans-serif;
  --body: "Podkova", Georgia, "Times New Roman", serif;
  --doc: "Philosopher", Georgia, serif;
  --hand: "Caveat Brush", "Segoe Print", cursive;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--soot); color: var(--cream-soft);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(226, 151, 47, 0.14), transparent 70%),
    radial-gradient(800px 520px at 95% 15%, rgba(142, 42, 30, 0.14), transparent 70%),
    radial-gradient(1200px 900px at 50% 120%, rgba(91, 125, 154, 0.08), transparent 70%);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--cream); line-height: 1.08; text-wrap: balance; }
h1, h2 { font-family: var(--grunge); font-weight: 400; letter-spacing: 0.01em; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
h3, h4 { font-family: var(--heading); font-weight: 900; letter-spacing: 0.01em; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 34px; max-width: 100%;
  font-family: var(--body); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: #2b1c0c;
  text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55);
  border: solid transparent; border-width: 12px 26px; border-image: url("ui/brass-header-plate.webp") 60 90 fill / 12px 26px stretch;
  margin: 0;
}
.eyebrow.small { min-height: 38px; padding: 6px 22px; font-size: 0.74rem; border-width: 10px 20px; }
.lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--cream); }
.muted { color: var(--muted); }
.hand { font-family: var(--hand); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 9px; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-weight: 800; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-enamel {
  color: #fff4e0; background: radial-gradient(120% 140% at 50% 0%, var(--oxblood-hi), var(--oxblood) 55%, #5d1a12);
  border: 3px solid var(--brass); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 210, 160, 0.25), 0 8px 22px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px #3a2510;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.btn-enamel:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.08); }
.btn-brass {
  color: #2b1c0c; background: linear-gradient(180deg, #f1d38f, var(--brass) 55%, #8d6428);
  border: 1px solid #3a2510; box-shadow: inset 0 1px 0 rgba(255, 245, 210, 0.7), 0 8px 22px -10px rgba(0, 0, 0, 0.9);
  text-shadow: 0 1px 0 rgba(255, 236, 190, 0.5);
}
.btn-brass:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.06); }
.btn-ghost { color: var(--cream); border: 1px solid rgba(243, 230, 200, 0.3); background: rgba(18, 13, 10, 0.45); }
.btn-ghost:hover { border-color: var(--brass-hi); color: var(--brass-hi); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top.static { position: relative; background: var(--soot-2); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.brand .word { width: 116px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.nav a { text-decoration: none; color: var(--cream-soft); font-weight: 600; font-size: 0.95rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-hi); }
.nav .pill { color: var(--cream); border: 1px solid rgba(243, 230, 200, 0.3); border-radius: 999px; padding: 7px 15px; background: rgba(18, 13, 10, 0.5); }
.lang { display: inline-flex; border: 1px solid rgba(243, 230, 200, 0.3); border-radius: 999px; overflow: hidden; background: rgba(18, 13, 10, 0.5); }
.lang a { padding: 6px 12px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-shadow: none; }
.lang a[aria-current="true"] { background: var(--oxblood); color: #fff4e0; }

.hero { position: relative; isolation: isolate; min-height: min(100svh, 980px); display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero picture img { object-position: 30% 78%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 13, 10, 0.55) 0%, rgba(18, 13, 10, 0) 22%),
    linear-gradient(0deg, var(--soot) 0%, rgba(18, 13, 10, 0.55) 10%, rgba(18, 13, 10, 0) 30%),
    linear-gradient(270deg, rgba(18, 13, 10, 0.78) 0%, rgba(18, 13, 10, 0.35) 42%, rgba(18, 13, 10, 0) 62%);
}
.hero-body { display: grid; gap: 18px; padding-block: 140px clamp(40px, 6vw, 80px); max-width: 520px; margin-left: auto; }
.hero-logo { width: min(500px, 100%); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)); }
.hero h1 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); }
.hero p { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); color: var(--cream); max-width: 56ch; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream);
  background: rgba(18, 13, 10, 0.66); border: 1px solid rgba(230, 194, 122, 0.35);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.section-head { display: grid; justify-items: start; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { justify-items: center; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
.section-head p { max-width: 64ch; }
.band { background: linear-gradient(180deg, rgba(38, 27, 19, 0.6), rgba(38, 27, 19, 0.25)); border-block: 1px solid var(--line); }
.strip { position: relative; height: clamp(160px, 22vw, 320px); overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--soot) 0%, transparent 30%, transparent 70%, var(--soot) 100%); }

.paper {
  position: relative; color: var(--ink); font-family: var(--doc); font-size: 1.04rem; line-height: 1.62;
  border: solid transparent; border-width: 30px; border-image: url("ui/paper-letter.webp") 70 fill / 30px stretch;
  padding: clamp(10px, 2vw, 28px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}
.paper.ledger { border-image-source: url("ui/paper-ledger.webp"); }
.paper.form { border-image-source: url("ui/paper-form.webp"); }
.paper.news { border-image-source: url("ui/paper-newsprint.webp"); }
.paper.manila { border-image: url("ui/paper-manila.webp") 90 70 70 70 fill / 34px 30px 30px 30px stretch; }
.paper h2, .paper h3, .paper h4 { color: var(--ink); text-shadow: none; }
.paper h3 { font-family: var(--doc); font-weight: 700; font-size: 1.35rem; letter-spacing: 0; }
.paper .rule { height: 2px; background: linear-gradient(90deg, transparent, rgba(142, 42, 30, 0.6), transparent); margin: 14px 0; border: 0; }
.paper strong { color: #1c120a; }
.paper a { color: var(--oxblood); }
.paper .red { color: var(--oxblood); font-family: var(--body); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.86rem; }

.stamp {
  position: absolute; display: inline-grid; place-items: center; padding: 10px 22px; color: var(--oxblood);
  font-family: var(--heading); font-weight: 900; font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  transform: rotate(-8deg); opacity: 0.86; mix-blend-mode: multiply; pointer-events: none;
}
.stamp::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url("ui/orn-stamp-rect.webp") center / 100% 100% no-repeat; mask: url("ui/orn-stamp-rect.webp") center / 100% 100% no-repeat; }
.stamp.oval::before { -webkit-mask-image: url("ui/orn-stamp-oval.webp"); mask-image: url("ui/orn-stamp-oval.webp"); }
.stamp.green { color: var(--met); }

.photo {
  position: relative; background: #efe4cc; padding: 10px 10px 12px; border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 22px 40px -18px rgba(0, 0, 0, 0.85);
}
.photo video, .photo img { width: 100%; border-radius: 1px; background: #000; }
.photo::before, .photo::after {
  content: ""; position: absolute; width: 104px; height: 30px; background: url("ui/rust-tape-masking.webp") center / 100% 100% no-repeat; opacity: 0.92; z-index: 2;
}
.photo::before { top: -12px; left: -22px; transform: rotate(-34deg); }
.photo::after { top: -12px; right: -22px; transform: rotate(32deg); }
.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(1.1deg); }

.features { display: grid; gap: clamp(56px, 8vw, 104px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-copy { display: grid; gap: 14px; justify-items: start; }
.feature-copy h3 { font-family: var(--grunge); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.feature-copy .num { font-family: var(--hand); font-size: 1.5rem; color: var(--brass-hi); line-height: 1; }

.trailer { position: relative; }
.trailer .photo { max-width: 1100px; margin-inline: auto; }
.trailer video { aspect-ratio: 16 / 9; }

.letter { max-width: 900px; margin-inline: auto; position: relative; }
.letter .letterhead { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid rgba(142, 42, 30, 0.45); margin-bottom: 18px; }
.letter .letterhead img { width: 64px; }
.letter .letterhead strong { font-family: var(--heading); font-weight: 900; letter-spacing: 0.16em; font-size: 1.05rem; color: var(--ink); display: block; }
.letter .letterhead span { font-size: 0.86rem; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.letter p + p { margin-top: 12px; }
.letter .sign { margin-top: 20px; display: grid; justify-items: start; gap: 2px; }
.letter .sign img { width: 220px; mix-blend-mode: multiply; }
.letter .sign small { color: var(--ink-soft); font-size: 0.85rem; }
.letter .seal { position: absolute; right: clamp(8px, 4vw, 40px); bottom: clamp(6px, 3vw, 30px); width: clamp(70px, 10vw, 110px); transform: rotate(10deg); }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 184px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.mug { position: relative; display: grid; gap: 8px; text-decoration: none; color: inherit; }
.mug-shot { position: relative; aspect-ratio: 608 / 660; }
.mug-shot .bg { position: absolute; inset: 8% 9% 9% 9%; background: #4f5a62 url("ui/doc-mug-backdrop.webp") center / cover no-repeat; }
.mug-shot .face { position: absolute; inset: 8% 9% 9% 9%; width: 82%; height: 83%; object-fit: cover; object-position: 50% 0%; }
.mug-shot .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mug-shot .roundel { position: absolute; right: -4%; bottom: -4%; width: 34%; aspect-ratio: 1; display: grid; place-items: center; background: url("ui/doc-archetype-roundel.webp") center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); }
.mug-shot .roundel img { width: 58%; }
.mug-name {
  display: grid; place-items: center; text-align: center; min-height: 46px; padding: 6px 12px;
  border: solid transparent; border-width: 8px 16px; border-image: url("ui/doc-field-plate.webp") 40 60 fill / 8px 16px stretch;
  font-family: var(--heading); font-weight: 900; font-size: 0.95rem; color: #2b1c0c; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.5); line-height: 1.1;
}
.mug-name small { display: block; font-family: var(--body); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; color: #4a3417; }
.mug-crime { font-size: 0.86rem; color: var(--muted); line-height: 1.4; text-align: center; padding-inline: 4px; }
.mug:hover .mug-shot { transform: rotate(-1.2deg) scale(1.02); }
.mug-shot { transition: transform .25s ease; }

.archetypes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.arch { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 10px; background: rgba(38, 27, 19, 0.7); border: 1px solid var(--line); }
.arch .medal { width: 56px; height: 56px; display: grid; place-items: center; background: url("ui/doc-archetype-roundel.webp") center / contain no-repeat; }
.arch .medal img { width: 60%; }
.arch strong { display: block; font-family: var(--heading); font-weight: 900; color: var(--cream); font-size: 1.05rem; }
.arch span { font-size: 0.86rem; color: var(--muted); line-height: 1.35; display: block; }

.tiers { display: grid; gap: 22px; }
.tier-line { display: grid; gap: 10px; }
.tier-line h4 { font-family: var(--body); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-hi); }
.tier-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(100px, 1fr); gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--brass-lo) transparent; }
.tier-row figure { margin: 0; display: grid; grid-template-rows: auto 1fr; justify-items: center; align-content: start; gap: 4px; padding: 8px 4px 6px; border-radius: 8px; background: radial-gradient(70% 60% at 50% 45%, rgba(230, 194, 122, 0.12), transparent 70%), rgba(18, 13, 10, 0.55); border: 1px solid var(--line); }
.tier-row img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; }
.tier-row figcaption { font-size: 0.74rem; color: var(--cream-soft); line-height: 1.25; text-align: center; padding-inline: 2px; }
.tier-row figcaption b { display: block; font-family: var(--body); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-hi); }
.tier-row figure:last-child { border-color: rgba(230, 194, 122, 0.45); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.9); transition: transform .2s ease, border-color .2s ease; }
.gallery a:hover { transform: translateY(-2px); border-color: var(--line-hi); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(8, 6, 4, 0.92); }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; width: auto; max-width: 100%; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--brass); background: var(--oxblood); color: #fff4e0; font-size: 1.4rem; cursor: pointer; }

.cta { display: grid; justify-items: center; text-align: center; gap: 22px; }
.cta img.logo { width: min(460px, 86%); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.fact { padding: 14px 16px; border-radius: 10px; background: rgba(38, 27, 19, 0.7); border: 1px solid var(--line); display: grid; gap: 2px; }
.fact dt { font-family: var(--body); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-hi); }
.fact dd { margin: 0; color: var(--cream); font-weight: 600; }
dl { margin: 0; }

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.dl { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 10px; background: rgba(38, 27, 19, 0.7); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.dl:hover { border-color: var(--line-hi); transform: translateY(-1px); }
.dl img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.dl strong { display: block; color: var(--cream); font-weight: 700; }
.dl span { color: var(--muted); font-size: 0.86rem; }

.todo { border: 2px dashed var(--oxblood); background: rgba(142, 42, 30, 0.12); color: var(--cream); padding: 14px 16px; border-radius: 8px; font-family: var(--body); }
.paper .todo { color: var(--oxblood); background: rgba(142, 42, 30, 0.06); }

footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: #0c0907; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); }
footer .brand .mark { width: 32px; height: 32px; border-radius: 8px; }
footer .brand .word { width: 100px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
footer nav a:hover { color: var(--brass-hi); }
footer small { color: #7a6e60; font-size: 0.85rem; }

@media (max-width: 900px) {
  .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-media { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav > a:not(.pill):not(.keep) { display: none; }
  .brand .word { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .paper { border-width: 22px; border-image-width: 22px; padding: 4px; }
  .photo::before, .photo::after { width: 72px; height: 22px; }
  .eyebrow { letter-spacing: 0.12em; padding-inline: 18px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; padding: 7px 12px; border-radius: 6px; font-weight: 700; font-size: 0.88rem; color: var(--cream-soft); background: rgba(38, 27, 19, 0.75); border: 1px solid var(--line); transition: border-color .15s ease, color .15s ease; }
.toc a:hover { color: var(--brass-hi); border-color: var(--line-hi); }
.toc a span { font-family: var(--hand); color: var(--brass-hi); margin-right: 6px; font-size: 1.05rem; }

.cover { position: relative; isolation: isolate; overflow: hidden; padding-block: 120px clamp(48px, 7vw, 90px); }
.cover > picture, .cover > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--soot) 2%, rgba(18, 13, 10, 0.82) 40%, rgba(18, 13, 10, 0.55) 100%); }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cover-title { display: grid; gap: 18px; justify-items: start; }
.cover-title img.logo { width: min(520px, 100%); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)); }
.cover-title h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.cover .paper { transform: rotate(1.2deg); }
.cover .paper dl { display: grid; gap: 8px; }
.cover .paper .row { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; border-bottom: 1px dashed rgba(91, 71, 51, 0.35); padding-bottom: 6px; }
.cover .paper dt { font-family: var(--body); font-weight: 800; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oxblood); padding-top: 3px; }
.cover .paper dd { margin: 0; color: var(--ink); font-weight: 700; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split.middle { align-items: center; }
.prose { display: grid; gap: 14px; }
.prose h3 { font-size: 1.3rem; margin-top: 10px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--brass-hi); }

.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.number { padding: 16px 14px 14px; border-radius: 10px; text-align: center; background: radial-gradient(80% 70% at 50% 0%, rgba(230, 194, 122, 0.12), transparent 70%), rgba(38, 27, 19, 0.75); border: 1px solid var(--line); display: grid; gap: 4px; }
.number b { font-family: var(--heading); font-weight: 900; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); color: var(--brass-hi); line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.number span { font-size: 0.86rem; color: var(--cream-soft); line-height: 1.3; }
.numbers.two { grid-template-columns: repeat(2, minmax(0, 1fr)); position: sticky; top: 20px; }

.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.loop-step { position: relative; display: grid; gap: 10px; align-content: start; padding: 18px 16px; border-radius: 12px; background: rgba(38, 27, 19, 0.8); border: 1px solid var(--line); }
.loop-step::after { content: ""; position: absolute; top: 50%; right: -15px; width: 16px; height: 16px; background: var(--brass); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); z-index: 2; }
.loop-step:last-child::after { display: none; }
.loop-step .scale { font-family: var(--hand); font-size: 1.35rem; color: var(--brass-hi); line-height: 1; }
.loop-step h3 { font-size: 1.15rem; }
.loop-step p { font-size: 0.93rem; }
.loop-step img { width: 52px; height: 52px; }

.day { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.day > div { padding: 16px 14px; display: grid; gap: 8px; align-content: start; background: rgba(38, 27, 19, 0.8); border-right: 1px solid var(--line); }
.day > div:last-child { border-right: 0; }
.day > div:nth-child(2) { background: rgba(176, 83, 47, 0.18); }
.day > div:nth-child(5) { background: rgba(43, 52, 74, 0.45); }
.day img { width: 44px; height: 44px; }
.day b { font-family: var(--heading); font-weight: 900; color: var(--cream); font-size: 1rem; }
.day time { font-family: var(--body); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--brass-hi); }
.day p { font-size: 0.9rem; line-height: 1.45; }

.systems { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.system { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 16px; border-radius: 12px; background: rgba(38, 27, 19, 0.75); border: 1px solid var(--line); }
.system img { width: 54px; height: 54px; object-fit: contain; }
.system h3 { font-size: 1.05rem; margin-bottom: 4px; }
.system p { font-size: 0.92rem; line-height: 1.5; }
.system .key { display: inline-block; margin-top: 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; color: var(--brass-hi); }

.dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.dossier { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0; scroll-margin-top: 20px; }
.dossier .left { display: grid; gap: 8px; align-content: start; padding-top: 12px; position: relative; z-index: 2; margin-right: -14px; }
.dossier .paper { border-width: 24px; border-image-width: 24px; padding: 6px 6px 6px 18px; font-size: 0.95rem; line-height: 1.5; }
.dossier header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.dossier header h3 { font-family: var(--heading); font-weight: 900; font-size: 1.35rem; color: var(--ink); }
.dossier header .no { font-family: var(--body); font-weight: 800; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--ink-soft); }
.dossier .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.dossier .tag { font-family: var(--body); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 4px; background: rgba(91, 71, 51, 0.14); color: var(--ink); border: 1px solid rgba(91, 71, 51, 0.25); }
.dossier .tag.ox { background: var(--oxblood); color: #fff4e0; border-color: transparent; }
.dossier .crime { font-style: italic; color: var(--ink-soft); margin-bottom: 8px; }
.dossier .crime b { font-style: normal; color: var(--oxblood); font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 6px; }
.stats { display: grid; gap: 4px; margin: 4px 0 10px; }
.stat { display: grid; grid-template-columns: 7.2em 1fr; gap: 8px; align-items: center; font-family: var(--body); font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.pips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; max-width: 170px; }
.pips i { height: 9px; border-radius: 2px; background: rgba(91, 71, 51, 0.18); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15); }
.pips i.on { background: linear-gradient(180deg, #d9a54c, #9b6a22); }
.stat.bad .pips i.on { background: linear-gradient(180deg, #c0503c, #7d241a); }
.trait { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; background: rgba(91, 71, 51, 0.1); border: 1px dashed rgba(91, 71, 51, 0.35); margin-bottom: 10px; }
.trait img { width: 40px; height: 40px; }
.trait strong { display: block; font-size: 0.92rem; }
.trait span { font-family: var(--body); font-weight: 700; font-size: 0.8rem; color: var(--oxblood); }
.dossier .note { font-size: 0.9rem; }
.dossier .note b { display: block; font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--oxblood); margin-bottom: 2px; }
.dossier .item { margin-top: 8px; font-size: 0.84rem; color: var(--ink-soft); }
.dossier .item b { color: var(--ink); }
.dossier .price { font-family: var(--body); font-weight: 800; font-size: 0.74rem; line-height: 1.2; color: #2b1c0c; text-align: center; padding: 4px 4px 4px 8px; border: solid transparent; border-width: 6px 10px 6px 24px; border-image: url("ui/brass-tag.webp") 40 50 40 110 fill / 6px 10px 6px 24px stretch; }

.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px 18px; }
.perk { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.perk b { color: var(--cream); font-weight: 700; }
.perk small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.perk em { font-style: normal; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-hi); margin-left: 6px; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr)); gap: 10px; }
.items figure { margin: 0; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 10px 6px; border-radius: 10px; background: rgba(38, 27, 19, 0.75); border: 1px solid var(--line); }
.items img { width: 64px; height: 64px; }
.items figcaption { font-size: 0.78rem; line-height: 1.25; color: var(--cream-soft); }

.strata { display: grid; gap: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.stratum { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; background-size: cover; background-position: center; position: relative; isolation: isolate; }
.stratum::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 13, 10, 0.86), rgba(18, 13, 10, 0.55)); }
.stratum img { width: 44px; height: 44px; }
.stratum b { color: var(--cream); }
.stratum span { color: var(--cream-soft); font-size: 0.88rem; }
.stratum em { font-style: normal; font-family: var(--body); font-weight: 800; color: var(--brass-hi); }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 10px; }
.swatch { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: rgba(38, 27, 19, 0.75); }
.swatch i { display: block; height: 56px; }
.swatch span { display: block; padding: 6px 8px; font-size: 0.78rem; color: var(--cream-soft); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.checklist li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; background: url("ui/orn-tick-ink.webp") center / contain no-repeat; filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(1.1); }
.checklist.open li::before { background-image: url("ui/rust-charcoal-circle.webp"); filter: invert(0.8) sepia(1) brightness(1.2); }
.paper .checklist li::before { filter: none; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--brass-lo); display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px var(--soot), 0 0 0 4px var(--brass-lo); }
.timeline time { display: block; font-family: var(--body); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--brass-hi); text-transform: uppercase; }

.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
table.data th, table.data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--body); font-weight: 800; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-hi); background: rgba(38, 27, 19, 0.9); }
table.data td { color: var(--cream-soft); }
table.data td:first-child { color: var(--cream); font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }
.src { font-size: 0.78rem; color: var(--muted); }
.src a { color: var(--muted); }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.member { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; background: rgba(38, 27, 19, 0.75); border: 1px solid var(--line); }
.member .mono { width: 56px; height: 56px; display: grid; place-items: center; background: url("ui/doc-archetype-roundel.webp") center / contain no-repeat; font-family: var(--heading); font-weight: 900; font-size: 1rem; color: var(--brass-hi); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
.member strong { display: block; color: var(--cream); font-weight: 700; }
.member span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 960px) {
  .cover-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero::after { background: linear-gradient(180deg, rgba(18, 13, 10, 0.55) 0%, rgba(18, 13, 10, 0) 22%), linear-gradient(0deg, var(--soot) 0%, rgba(18, 13, 10, 0.86) 30%, rgba(18, 13, 10, 0) 70%); }
  .hero-body { margin-left: 0; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-step::after { display: none; }
  .day { grid-template-columns: minmax(0, 1fr); }
  .day > div { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .loop { grid-template-columns: minmax(0, 1fr); }
  .dossier { grid-template-columns: minmax(0, 1fr); }
  .dossier .left { grid-template-columns: 140px 1fr; align-items: center; margin-right: 0; margin-bottom: -10px; }
  .cover .paper .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
