:root {
  --desk: #25221d;
  --room: #e7ddcd;
  --room-soft: #f2eadf;
  --paper: #fffaf1;
  --paper-aged: #f5ead7;
  --card: #efe0c8;
  --ink: #171512;
  --muted: #665d52;
  --faint: #958978;
  --line: rgba(42, 34, 26, 0.18);
  --line-dark: rgba(42, 34, 26, 0.34);
  --accent: #8a241f;
  --accent-deep: #681714;
  --accent-soft: rgba(138, 36, 31, 0.13);
  --paper-fibre:
    radial-gradient(circle at 18% 22%, rgba(90, 72, 49, 0.055), transparent 0.9px),
    radial-gradient(circle at 76% 64%, rgba(255, 250, 241, 0.22), transparent 1.2px),
    linear-gradient(0deg, rgba(42, 34, 26, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 34, 26, 0.006) 1px, transparent 1px);
  --paper-fibre-size: 13px 13px, 17px 17px, 100% 11px, 13px 100%;
  --shadow: 0 24px 58px rgba(39, 31, 24, 0.18), 0 2px 9px rgba(39, 31, 24, 0.08);
  --ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier Final Draft", "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 241, 0.42), transparent 18rem),
    radial-gradient(circle at 80% 3%, rgba(255, 250, 241, 0.5), transparent 18rem),
    linear-gradient(0deg, rgba(42, 34, 26, 0.035) 1px, transparent 1px) 0 0 / 100% 9px,
    linear-gradient(90deg, rgba(42, 34, 26, 0.025) 1px, transparent 1px) 0 0 / 11px 100%,
    linear-gradient(90deg, rgba(22, 20, 17, 0.18) 0, transparent 9rem),
    var(--room);
  color: var(--ink);
  font-family: var(--ui);
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(232, 221, 205, 0.86);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  min-height: 70px;
  padding: 0 clamp(22px, 6vw, 96px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.brand strong {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 46px);
  justify-content: flex-end;
}

.site-nav a,
.nav-action,
.hero-beta,
.hero-login,
.site-footer a {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a {
  color: #28231e;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-action {
  align-items: center;
  background: var(--accent);
  color: #fff5e7;
  display: inline-flex;
  min-height: 70px;
  padding: 0 32px;
}

.nav-short {
  display: none;
}

.guide-main {
  background:
    var(--paper-fibre),
    radial-gradient(circle at 78% 8%, rgba(255, 250, 241, 0.4), transparent 17rem),
    linear-gradient(180deg, rgba(255, 250, 241, 0.18), transparent 420px),
    linear-gradient(90deg, rgba(22, 20, 17, 0.12) 0, transparent 8rem),
    var(--room);
  background-size: var(--paper-fibre-size), auto, auto, auto, auto;
}

.legal-main {
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 250, 241, 0.42), transparent 17rem),
    linear-gradient(90deg, rgba(22, 20, 17, 0.12) 0, transparent 8rem),
    var(--room);
  min-height: calc(100vh - 70px);
}

.legal-hero {
  padding: clamp(62px, 8vw, 112px) clamp(24px, 7vw, 104px) clamp(36px, 5vw, 72px);
}

.legal-hero h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(70px, 10vw, 150px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  margin: 0 0 30px;
  text-transform: uppercase;
}

.legal-hero > p:not(.chapter-label) {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.22;
  margin: 0;
  max-width: 720px;
}

.legal-content {
  display: grid;
  gap: 0;
  max-width: 900px;
  padding: 0 clamp(24px, 7vw, 104px) clamp(76px, 10vw, 132px);
}

.legal-content section {
  border-top: 1px solid var(--line-dark);
  padding: clamp(28px, 4vw, 44px) 0;
}

.legal-content h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(32px, 3.8vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.legal-content p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.cookie-notice {
  align-items: center;
  background: rgba(255, 250, 241, 0.96);
  border: 1px solid var(--line-dark);
  box-shadow: 0 16px 38px rgba(39, 31, 24, 0.16);
  display: flex;
  gap: 18px;
  inset: auto clamp(16px, 4vw, 36px) clamp(16px, 4vw, 28px) auto;
  max-width: min(520px, calc(100vw - 32px));
  padding: 16px;
  position: fixed;
  z-index: 80;
}

.cookie-notice p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.cookie-notice-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.cookie-notice a,
.cookie-notice button {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cookie-notice a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-notice button {
  background: var(--accent);
  border: 0;
  color: #fff5e7;
  cursor: pointer;
  min-height: 40px;
  padding: 0 18px;
}

.updates-main {
  background:
    var(--paper-fibre),
    radial-gradient(circle at 82% 8%, rgba(255, 250, 241, 0.45), transparent 18rem),
    linear-gradient(90deg, rgba(22, 20, 17, 0.14) 0, transparent 8rem),
    var(--room);
  background-size: var(--paper-fibre-size), auto, auto, auto;
  min-height: calc(100vh - 70px);
}

.updates-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 0.72fr);
  padding: clamp(58px, 8vw, 116px) clamp(24px, 7vw, 104px) clamp(34px, 5vw, 70px);
}

.updates-hero-copy {
  max-width: 760px;
  min-width: 0;
}

.updates-hero h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.updates-hero-copy > p:not(.chapter-label) {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 34px);
  line-height: 1.24;
  margin: 0;
}

.updates-hero-art {
  background: #201d18;
  border: 1px solid rgba(42, 34, 26, 0.22);
  box-shadow: var(--shadow);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transform: rotate(1deg);
}

.updates-hero-art img {
  display: block;
  filter: saturate(0.86) contrast(0.94);
  height: min(48vw, 480px);
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  width: 100%;
}

.updates-hero-art figcaption {
  background: rgba(255, 250, 241, 0.94);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  padding: 22px;
}

.updates-hero-art span {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.updates-ledger {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  padding: 0 clamp(24px, 7vw, 104px) clamp(80px, 10vw, 138px);
}

.updates-note {
  align-self: start;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(245, 234, 215, 0.94)),
    var(--paper-fibre);
  background-size: auto, var(--paper-fibre-size);
  border: 1px solid var(--line-dark);
  padding: 26px;
  position: sticky;
  top: 96px;
}

.updates-note img {
  display: block;
  height: 56px;
  margin-bottom: 24px;
  width: 56px;
}

.updates-note h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.updates-note p,
.update-entry p,
.update-entry li {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

.updates-note a {
  color: var(--accent);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-top: 12px;
  text-transform: uppercase;
}

.updates-build {
  border-top: 1px solid rgba(42, 34, 26, 0.18);
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
}

.updates-build span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.updates-build strong {
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.updates-build p {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.updates-build ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.updates-build li {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

.updates-build a {
  margin-top: 2px;
}

.release-notes-list {
  display: grid;
  gap: 12px;
}

.release-notes-list article {
  border-top: 1px solid rgba(42, 34, 26, 0.14);
  display: grid;
  gap: 7px;
  padding-top: 12px;
}

.release-notes-list time,
.release-notes-list strong {
  font-family: var(--mono);
}

.release-notes-list time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-notes-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.release-notes-list p {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.release-notes-list ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
}

.release-notes-list li {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}

.update-entry {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(248, 239, 225, 0.96)),
    var(--paper-fibre);
  background-size: auto, var(--paper-fibre-size);
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 44px rgba(39, 31, 24, 0.11);
  display: grid;
  grid-column: 2;
  gap: 14px;
  padding: clamp(26px, 4vw, 46px);
}

.update-entry.is-featured {
  border-color: rgba(138, 36, 31, 0.38);
}

.update-entry time,
.update-type {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.update-entry h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  text-transform: uppercase;
}

.update-entry p,
.update-entry ul {
  margin: 0;
  max-width: 820px;
}

.update-entry ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.updates-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  margin: -56px clamp(24px, 7vw, 104px) 56px;
}

.guide-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.68fr) minmax(320px, 0.82fr);
  min-height: auto;
  padding: clamp(48px, 6vw, 78px) clamp(24px, 7vw, 104px) clamp(30px, 4vw, 48px);
}

.guide-hero-copy {
  max-width: 650px;
  min-width: 0;
}

.guide-hero h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(56px, 6.7vw, 94px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0 0 26px;
  text-transform: uppercase;
}

.guide-hero-copy > p:not(.chapter-label) {
  font-family: var(--serif);
  font-size: clamp(21px, 1.85vw, 28px);
  line-height: 1.24;
  margin: 0;
}

.guide-hero-image {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(47, 36, 25, 0.18);
  box-shadow: var(--shadow);
  margin: 0;
  max-height: 390px;
  min-width: 0;
  overflow: hidden;
  transform: rotate(-1deg);
  width: 100%;
}

.guide-hero-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  width: 100%;
}

.guide-finder {
  align-items: end;
  border-bottom: 1px solid var(--line-dark);
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 7vw, 104px);
}

.guide-finder h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 430px;
  text-transform: uppercase;
}

.guide-finder nav {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.guide-finder a {
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.28;
  min-height: 92px;
  padding-top: 16px;
  transition: color 180ms ease, border-color 180ms ease;
}

.guide-finder a span {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.guide-finder a:hover,
.guide-finder a:focus-visible,
.guide-finder a.is-active {
  border-color: var(--accent);
  color: var(--ink);
}

.guide-layout {
  align-items: start;
  display: grid;
  gap: clamp(34px, 5vw, 76px);
  grid-template-columns: minmax(200px, 250px) minmax(0, 900px);
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(28px, 4vw, 54px) clamp(24px, 7vw, 104px) clamp(72px, 10vw, 132px);
}

.guide-toc {
  align-self: start;
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 13px;
  padding: 18px 0 18px 22px;
  position: sticky;
  top: 100px;
}

.guide-toc-title {
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.guide-toc a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.guide-toc a:hover,
.guide-toc a:focus-visible,
.guide-toc a.is-active {
  color: var(--accent);
}

.guide-content {
  display: grid;
  gap: 0;
}

.guide-section {
  background: transparent;
  border-top: 1px solid var(--line-dark);
  padding: clamp(38px, 5vw, 64px) 0;
  scroll-margin-top: 92px;
}

.guide-section h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(34px, 4vw, 60px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.guide-section h3 {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.guide-section p,
.guide-section li {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
}

.guide-section code {
  background: rgba(138, 36, 31, 0.08);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.08em 0.28em;
}

.guide-section p {
  margin: 0 0 18px;
  max-width: 780px;
}

.guide-callout {
  background:
    linear-gradient(135deg, rgba(255, 244, 227, 0.06), transparent 42%),
    #1b1916;
  color: #fff4e3;
  margin: clamp(8px, 1vw, 14px) 0;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 42px);
}

.guide-callout .guide-checklist li,
.guide-callout p {
  color: rgba(255, 244, 227, 0.86);
}

.guide-checklist {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-checklist li::before {
  color: var(--accent);
  content: "/";
  font-family: var(--ui);
  font-weight: 900;
  margin-right: 10px;
}

.guide-grid,
.guide-reference {
  display: grid;
  gap: 16px;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-reference {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid article,
.guide-reference article {
  background: rgba(255, 250, 241, 0.32);
  border-top: 1px solid var(--line-dark);
  min-width: 0;
  padding: 26px 32px 24px;
}

.guide-grid p,
.guide-reference p,
.guide-feature-list p {
  font-size: 16px;
}

.guide-feature-list {
  display: grid;
  gap: 10px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(560px, 1.28fr);
  min-height: max(820px, calc(100vh - 70px));
  overflow: hidden;
  padding: clamp(78px, 8vw, 124px) clamp(28px, 7vw, 104px) clamp(78px, 8vw, 124px);
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(21, 19, 17, 0.16), rgba(231, 221, 205, 0.28) 36%, rgba(231, 221, 205, 0) 64%),
    radial-gradient(circle at 18% 28%, rgba(255, 250, 241, 0.44), transparent 16rem);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(231, 221, 205, 0), var(--room) 84%),
    linear-gradient(90deg, rgba(21, 19, 17, 0.22), transparent 12rem);
  bottom: 0;
  content: "";
  height: clamp(80px, 12vh, 140px);
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 2;
}

.hero-copy {
  align-self: start;
  grid-column: 1;
  margin-left: clamp(10px, 2.1vw, 42px);
  max-width: 600px;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(92px, 12vw, 190px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.83;
  margin: 0 0 56px;
}

.hero h1 span,
.hero h1 strong {
  font: inherit;
}

.hero h1 strong {
  color: var(--accent);
}

.hero-copy p {
  font-family: var(--serif);
  font-size: clamp(25px, 2.6vw, 42px);
  line-height: 1.14;
  margin: 0;
  max-width: 480px;
}

.hero-copy p::after,
.chapter h2::after {
  background: var(--accent);
  content: "";
  display: block;
  height: 3px;
  margin: 30px 0;
  width: 72px;
}

.hero-actions {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 10px;
}

.hero-beta {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hero-login {
  color: var(--muted);
  letter-spacing: 0.12em;
}

.hero-beta:hover,
.hero-beta:focus-visible,
.hero-login:hover,
.hero-login:focus-visible {
  color: var(--accent-deep);
}

.scroll-cue {
  color: #665d52;
  display: block;
  font-size: 10px;
  font-weight: 800;
  left: 50%;
  letter-spacing: 0.22em;
  margin-top: 68px;
  position: static;
  text-transform: uppercase;
  transform: none;
  width: max-content;
}

.scroll-cue::after {
  content: "";
  display: block;
  height: 34px;
  margin: 12px auto 0;
  width: 1px;
  background: var(--muted);
}

.desk-scene {
  align-self: stretch;
  min-height: 640px;
  position: relative;
}

.hero-asset {
  inset: 0;
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.hero-asset::before {
  background:
    linear-gradient(90deg, rgba(231, 221, 205, 0.34) 0, rgba(231, 221, 205, 0.14) 34%, rgba(231, 221, 205, 0) 58%),
    linear-gradient(0deg, rgba(231, 221, 205, 0.2), rgba(231, 221, 205, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-asset img,
.asset-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-asset img {
  filter: contrast(1.04) saturate(0.92);
  object-position: center right;
}

.hero-caption-card {
  display: none;
}

.hero-caption-card p {
  color: #2d2822;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.hero-page,
.large-script-page {
  background:
    linear-gradient(90deg, rgba(31, 26, 21, 0.05) 1px, transparent 1px) 0 0 / 0.5in 100%,
    var(--paper);
  border: 1px solid rgba(39, 31, 24, 0.12);
  box-shadow: var(--shadow);
  color: #111;
  font-family: var(--mono);
}

.hero-page {
  min-height: 560px;
  padding: 78px 92px;
  position: absolute;
  right: 18%;
  top: 58px;
  transform: rotate(-6deg);
  width: 430px;
  z-index: 2;
}

.hero-page span,
.page-number {
  float: right;
}

.hero-page p,
.large-script-page p {
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.scene-heading {
  font-weight: 700;
  text-transform: uppercase;
}

.character {
  margin-left: 42% !important;
  text-transform: uppercase;
}

.dialogue {
  margin-left: 24% !important;
  max-width: 230px;
}

.transition {
  margin-left: auto !important;
  text-align: right;
  text-transform: uppercase;
}

.coffee-cup {
  background: radial-gradient(circle, #070604 0 39%, #f3eadc 40% 56%, #231f1a 57% 68%, transparent 69%);
  border-radius: 50%;
  height: 160px;
  position: absolute;
  right: 0;
  top: 10px;
  width: 160px;
}

.coffee-cup::after {
  border: 18px solid #231f1a;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  height: 58px;
  position: absolute;
  right: -38px;
  top: 48px;
  width: 58px;
}

.index-stack {
  display: grid;
  gap: 10px;
  position: absolute;
  right: 0;
  top: 280px;
  transform: rotate(7deg);
  width: 230px;
  z-index: 3;
}

.index-stack article,
.margin-card,
.file-card,
.receipt-card,
.vault-card,
.recovered-scenes,
.note-card,
.beta-card {
  background: var(--card);
  border: 1px solid rgba(72, 57, 40, 0.2);
  box-shadow: 0 18px 42px rgba(47, 36, 25, 0.16), 0 1px 4px rgba(47, 36, 25, 0.08);
}

.index-stack article {
  min-height: 106px;
  padding: 22px 24px;
}

.index-stack h2,
.index-stack p {
  font-family: var(--mono);
  font-size: 14px;
  margin: 0 0 10px;
}

.journey-shell {
  background:
    var(--paper-fibre),
    linear-gradient(180deg, rgba(255, 250, 241, 0.22), transparent 180px),
    var(--room);
  background-size: var(--paper-fibre-size), auto, auto;
  display: block;
  margin-top: 0;
  padding-left: 112px;
  position: relative;
  z-index: 4;
}

.journey-shell::before {
  display: none;
}

.chapter-rail {
  --rail-progress: 0%;
  background: #1c1a17;
  color: #fff2df;
  display: grid;
  float: left;
  gap: 0;
  height: calc(100vh - 70px);
  margin-left: -112px;
  padding: 28px 0;
  position: sticky;
  top: 70px;
  grid-template-rows: repeat(5, minmax(104px, 1fr));
  width: 112px;
  z-index: 5;
}

.chapter-rail::before {
  background: rgba(255, 242, 223, 0.26);
  bottom: 92px;
  content: "";
  left: 50%;
  position: absolute;
  top: 92px;
  transform: translateX(-50%);
  width: 1px;
}

.chapter-rail::after {
  background: linear-gradient(180deg, rgba(138, 36, 31, 0.15), var(--accent));
  content: "";
  height: var(--rail-progress);
  left: 50%;
  max-height: calc(100% - 184px);
  position: absolute;
  top: 92px;
  transform: translateX(-50%);
  transition: height 360ms ease;
  width: 2px;
}

.chapter-rail a {
  align-content: center;
  border-left: 3px solid transparent;
  display: grid;
  font-size: 10px;
  font-weight: 800;
  gap: 8px;
  justify-items: center;
  letter-spacing: 0.12em;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  transition: background 260ms ease, border-color 260ms ease, color 260ms ease;
}

.chapter-rail a::after {
  background: #1c1a17;
  border: 1px solid rgba(255, 242, 223, 0.54);
  border-radius: 50%;
  bottom: 12px;
  content: "";
  height: 9px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 9px;
}

.chapter-rail a:hover,
.chapter-rail a:focus-visible,
.chapter-rail a.is-active {
  background:
    linear-gradient(90deg, rgba(138, 36, 31, 0.22), transparent),
    radial-gradient(circle at 50% 78%, rgba(138, 36, 31, 0.32), transparent 2.6rem);
  border-left-color: var(--accent);
  color: #fff;
}

.chapter-rail a.is-active::after {
  background: var(--accent);
  border-color: #fff2df;
  box-shadow: 0 0 0 5px rgba(138, 36, 31, 0.22);
}

.chapter-rail span {
  color: #b45a50;
  font-size: 30px;
  letter-spacing: 0;
}

.chapter-rail a.is-active span {
  color: #df8177;
}

.chapter {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: clamp(22px, 4vw, 52px);
  grid-template-columns: minmax(245px, 0.3fr) minmax(640px, 1fr);
  min-height: clamp(540px, 64vh, 660px);
  overflow: hidden;
  padding: clamp(44px, 4.8vw, 66px) clamp(28px, 7vw, 96px);
  position: relative;
  scroll-margin-top: 70px;
}

.chapter::before {
  background:
    var(--paper-fibre),
    linear-gradient(180deg, rgba(22, 20, 17, 0.06), transparent 112px),
    radial-gradient(ellipse at 78% 4%, rgba(255, 250, 241, 0.42), transparent 28rem),
    radial-gradient(ellipse at 18% 78%, rgba(137, 111, 70, 0.08), transparent 22rem);
  background-size: var(--paper-fibre-size), auto, auto, auto;
  content: "";
  inset: 0;
  height: auto;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.chapter::after {
  display: none;
}

.chapter-copy,
.chapter-art {
  position: relative;
  z-index: 1;
}

.chapter:nth-child(odd) {
  background: rgba(255, 250, 241, 0.2);
}

.chapter.chapter-ownership,
.chapter.chapter-memory {
  background:
    linear-gradient(90deg, rgba(245, 234, 215, 0.46), rgba(255, 250, 241, 0.22)),
    rgba(255, 250, 241, 0.18);
  color: var(--ink);
}

.chapter.chapter-ownership::before,
.chapter.chapter-memory::before {
  background:
    var(--paper-fibre),
    linear-gradient(180deg, rgba(22, 20, 17, 0.045), transparent 120px),
    radial-gradient(ellipse at 72% 10%, rgba(255, 250, 241, 0.38), transparent 26rem),
    radial-gradient(ellipse at 12% 84%, rgba(122, 96, 58, 0.07), transparent 20rem);
  background-size: var(--paper-fibre-size), auto, auto, auto;
}

.chapter-ownership .chapter-copy > p:not(.chapter-label),
.chapter-ownership .chapter li,
.chapter-memory .chapter-copy > p:not(.chapter-label),
.chapter-memory .chapter li {
  color: var(--muted);
}

.chapter-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.chapter h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: clamp(42px, 5vw, 78px);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.chapter-copy > p:not(.chapter-label) {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 28px;
  max-width: 360px;
}

.chapter ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter li {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
}

.chapter li::before {
  color: var(--accent);
  content: "\2713";
  font-family: var(--ui);
  font-weight: 900;
  margin-right: 10px;
}

.chapter-art {
  min-height: auto;
  position: relative;
}

.asset-frame {
  aspect-ratio: 16 / 9;
  border: 0;
  box-shadow: none;
  margin: 0;
  min-height: min(44vh, 480px);
  overflow: visible;
  position: relative;
  width: 100%;
}

.asset-frame::after {
  display: none;
}

.chapter.chapter-page,
.chapter.chapter-rewrite,
.chapter.chapter-beta {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.3), rgba(245, 234, 215, 0.2)),
    var(--room);
}

.asset-frame img {
  filter: brightness(1.05) contrast(1.06) saturate(0.82);
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: contain;
  opacity: 0.91;
  transform: scale(1.12);
  transform-origin: center;
  -webkit-mask-image: radial-gradient(ellipse at 54% 50%, #000 0 46%, rgba(0, 0, 0, 0.76) 62%, transparent 88%);
  mask-image: radial-gradient(ellipse at 54% 50%, #000 0 46%, rgba(0, 0, 0, 0.76) 62%, transparent 88%);
}

.page-art,
.ownership-art,
.memory-art {
  display: block;
}

.page-frame,
.online-frame,
.rewrite-frame,
.memory-frame,
.beta-frame {
  transform: none;
}

.page-frame {
  transform: translateY(14px);
}

.page-frame {
  box-shadow: none;
}

.page-frame::after,
.beta-frame::after {
  background:
    linear-gradient(90deg, rgba(231, 221, 205, 0.04), transparent 38%),
    radial-gradient(circle at 12% 8%, rgba(255, 250, 241, 0.22), transparent 18rem);
}

.page-frame img {
  object-position: center right;
}

.online-frame img {
  object-position: center right;
}

.rewrite-frame img {
  filter: brightness(1.02) contrast(1.1) saturate(0.9);
  opacity: 0.98;
  object-position: center right;
  transform: scale(1.06);
  -webkit-mask-image: radial-gradient(ellipse at 54% 50%, #000 0 58%, rgba(0, 0, 0, 0.82) 72%, transparent 92%);
  mask-image: radial-gradient(ellipse at 54% 50%, #000 0 58%, rgba(0, 0, 0, 0.82) 72%, transparent 92%);
}

.memory-frame img {
  object-position: center right;
}

.beta-art {
  display: grid;
  min-height: min(52vh, 500px);
  position: relative;
}

.beta-frame {
  grid-area: 1 / 1;
  min-height: min(52vh, 500px);
}

.beta-frame img {
  object-position: center right;
}

.beta-card {
  align-self: center;
  grid-area: 1 / 1;
  justify-self: start;
  margin-left: clamp(24px, 4vw, 58px);
  position: relative;
  z-index: 2;
}

.large-script-page {
  margin: 0 auto;
  min-height: 470px;
  padding: 78px 96px;
  transform: rotate(-2deg);
  width: min(620px, 78%);
}

.margin-card {
  min-height: 260px;
  padding: 34px 28px;
  position: absolute;
  right: 0;
  top: 58px;
  transform: rotate(3deg);
  width: 230px;
}

.margin-card h3,
.file-card h3,
.receipt-card h3,
.vault-card h3,
.recovered-scenes h3,
.case-folder h3 {
  font-size: 14px;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.margin-card p,
.file-card p,
.receipt-card p,
.vault-card p,
.note-card p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}

.ownership-art {
  align-items: center;
  display: block;
  gap: 28px;
  grid-template-columns: 1fr 0.8fr 1fr;
}

.file-card,
.receipt-card,
.vault-card {
  min-height: 310px;
  padding: 34px;
}

.file-card {
  transform: rotate(-2deg);
}

.receipt-card {
  background: #f8efe1;
  transform: rotate(4deg);
}

.vault-card {
  transform: rotate(-4deg);
}

.file-icon {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  color: var(--accent);
  display: flex;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  height: 118px;
  justify-content: center;
  margin: 30px auto;
  width: 92px;
}

.receipt-card dl {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.receipt-card div {
  display: flex;
  justify-content: space-between;
}

.receipt-card dt,
.receipt-card dd {
  font-family: var(--mono);
  margin: 0;
}

.receipt-card strong {
  color: var(--accent);
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  text-align: right;
}

.rewrite-art {
  align-items: center;
  display: block;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 260px);
}

.rewrite-frame {
  min-height: min(45vh, 500px);
  transform: none;
}

.draft-stack {
  height: 390px;
  position: relative;
}

.draft-stack article {
  background: var(--paper);
  border: 1px solid rgba(54, 43, 32, 0.14);
  box-shadow: var(--shadow);
  height: 350px;
  padding: 46px 34px;
  position: absolute;
  top: 20px;
  width: 230px;
}

.draft-stack article:nth-child(1) {
  left: 0;
  transform: rotate(-5deg);
}

.draft-stack article:nth-child(2) {
  left: 118px;
  transform: rotate(-3deg);
}

.draft-stack article:nth-child(3) {
  left: 236px;
  transform: rotate(-1deg);
}

.draft-stack article:nth-child(4) {
  left: 354px;
  transform: rotate(1deg);
  width: 280px;
}

.draft-stack span,
.draft-stack strong {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
}

.draft-stack strong {
  font-size: 15px;
  margin-top: 110px;
  text-align: center;
}

.recovered-scenes {
  background: #d6bf97;
  max-width: 100%;
  padding: 34px 24px;
}

.recovered-scenes article {
  background: var(--paper-aged);
  border: 1px solid rgba(54, 43, 32, 0.17);
  margin-top: 16px;
  min-height: 104px;
  padding: 20px;
}

.recovered-scenes p {
  font-family: var(--mono);
  font-size: 13px;
  margin: 0 0 18px;
}

.recovered-scenes span {
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.memory-art {
  display: block;
  gap: 28px;
  grid-template-columns: minmax(520px, 1fr) 260px;
}

.memory-frame {
  min-height: min(45vh, 500px);
}

.memory-ledger {
  align-self: center;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(47, 36, 25, 0.2);
  box-shadow: 0 24px 60px rgba(7, 6, 5, 0.34);
  color: var(--ink);
  padding: 30px 26px;
  transform: rotate(2deg);
}

.memory-ledger h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.memory-ledger p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 22px;
}

.memory-ledger dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.memory-ledger div {
  border-top: 1px solid rgba(47, 36, 25, 0.16);
  padding-top: 12px;
}

.memory-ledger dt {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.memory-ledger dd {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.case-folder {
  background: #c7aa76;
  border-radius: 8px 8px 4px 4px;
  box-shadow: var(--shadow);
  min-height: 420px;
  padding: 46px 34px 34px;
  position: relative;
}

.case-folder::before {
  background: #c7aa76;
  border-radius: 8px 8px 0 0;
  content: "";
  height: 38px;
  left: 34px;
  position: absolute;
  top: -22px;
  width: 220px;
}

.evidence-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.evidence-grid section {
  background: var(--paper-aged);
  border: 1px solid rgba(54, 43, 32, 0.16);
  min-height: 130px;
  padding: 22px;
}

.evidence-grid section:nth-child(4) {
  grid-column: span 2;
}

.evidence-grid h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.evidence-grid p {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.note-card {
  align-self: end;
  min-height: 250px;
  padding: 34px 28px;
  transform: rotate(6deg);
}

.chapter-beta {
  background:
    linear-gradient(120deg, rgba(232, 221, 205, 0.8), rgba(245, 234, 215, 0.94)),
    var(--room);
}

.beta-card {
  background: var(--paper);
  margin: 0 auto;
  max-width: 540px;
  padding: 42px 42px 34px;
  text-align: center;
  width: 100%;
}

.beta-card h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 12px;
}

.beta-card p {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 28px;
}

.beta-card form {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.beta-card label {
  display: grid;
  gap: 6px;
}

.beta-card label:nth-of-type(4),
.beta-card label:nth-of-type(5),
.beta-card .beta-checkbox,
.beta-card button {
  grid-column: 1 / -1;
}

.beta-card label:not(.beta-checkbox) span {
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.beta-card input,
.beta-card textarea,
.beta-card select,
.beta-intake-card input,
.beta-intake-card textarea,
.beta-intake-card select {
  background: #fffdf8;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  font: 500 13px/1.4 var(--ui);
  min-height: 54px;
  padding: 0 18px;
  width: 100%;
}

.beta-card textarea,
.beta-intake-card textarea {
  min-height: 104px;
  padding: 16px 18px;
  resize: vertical;
}

.beta-card input:focus,
.beta-card textarea:focus,
.beta-card select:focus,
.beta-intake-card input:focus,
.beta-intake-card textarea:focus,
.beta-intake-card select:focus {
  outline: 2px solid rgba(101, 55, 31, 0.22);
  outline-offset: 2px;
}

.beta-card .beta-checkbox {
  align-items: start;
  color: var(--muted);
  display: grid;
  font-family: var(--mono);
  font-size: 12px;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  line-height: 1.45;
}

.beta-card .beta-checkbox input {
  min-height: 18px;
  padding: 0;
}

.beta-card button {
  background: var(--accent);
  border: 0;
  color: #fff5e7;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  min-height: 54px;
  padding: 0 30px;
  text-transform: uppercase;
}

.beta-card small {
  color: var(--muted);
  display: block;
  margin-top: 24px;
}

.beta-card small.is-success {
  color: #315f45;
}

.beta-card small.is-error {
  color: #7a3328;
}

.beta-card-link {
  color: var(--accent);
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-top: 18px;
  text-transform: uppercase;
}

.beta-art .beta-card {
  align-self: center;
  grid-area: 1 / 1;
  justify-self: start;
  margin: 0 0 0 clamp(18px, 3vw, 42px);
  position: relative;
  z-index: 2;
}

.beta-intake-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(220, 112, 85, 0.16), transparent 26rem),
    radial-gradient(circle at 85% 0%, rgba(89, 95, 86, 0.14), transparent 24rem),
    var(--paper);
  color: var(--ink);
}

.beta-intake-shell {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  min-height: calc(100vh - 84px);
  padding: clamp(104px, 13vw, 154px) clamp(22px, 7vw, 96px) 72px;
}

.beta-intake-copy h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0 0 26px;
  max-width: 820px;
}

.beta-intake-copy p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.28;
  max-width: 680px;
}

.beta-expectations {
  border-left: 1px solid var(--line-dark);
  display: grid;
  gap: 13px;
  list-style: none;
  margin: 34px 0 0;
  max-width: 640px;
  padding: 0 0 0 20px;
}

.beta-expectations li {
  color: var(--muted);
  font: 700 12px/1.45 var(--mono);
}

.beta-intake-card {
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line-dark);
  box-shadow: 12px 12px 0 rgba(59, 43, 32, 0.12);
  padding: clamp(24px, 4vw, 42px);
}

.beta-intake-card h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 12px;
}

.beta-intake-card > p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 26px;
}

.beta-intake-card form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beta-intake-card label {
  display: grid;
  gap: 7px;
}

.beta-intake-card label span {
  color: var(--muted);
  font: 900 10px/1.2 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.beta-intake-card .beta-wide,
.beta-intake-card button {
  grid-column: 1 / -1;
}

.beta-intake-card .beta-checkbox {
  align-items: start;
  color: var(--muted);
  font: 700 12px/1.45 var(--mono);
  gap: 10px;
  grid-template-columns: 18px 1fr;
}

.beta-intake-card .beta-checkbox input {
  min-height: 18px;
  padding: 0;
}

.beta-intake-card button {
  background: var(--accent);
  border: 0;
  color: #fff5e7;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  min-height: 56px;
  text-transform: uppercase;
}

.beta-intake-card small {
  color: var(--muted);
  display: block;
  margin-top: 20px;
}

.beta-intake-card small.is-success {
  color: #315f45;
}

.beta-intake-card small.is-error {
  color: #7a3328;
}

.site-footer {
  align-items: start;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 250, 241, 0.08), transparent 22rem),
    linear-gradient(0deg, rgba(255, 243, 227, 0.025) 1px, transparent 1px) 0 0 / 100% 9px,
    #171512;
  border-top: 1px solid rgba(255, 243, 227, 0.13);
  color: #fff3e3;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.42fr) minmax(120px, 0.42fr) minmax(260px, 0.9fr);
  padding: 58px clamp(24px, 7vw, 96px) 54px;
}

.site-footer .brand {
  color: #fff3e3;
}

.site-footer .brand strong {
  color: #c0675e;
}

.footer-brand {
  max-width: 310px;
}

.site-footer p {
  color: rgba(255, 243, 227, 0.72);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.footer-group span {
  color: rgba(255, 243, 227, 0.46);
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.footer-group nav {
  display: grid;
  gap: 12px;
}

.site-footer a {
  width: fit-content;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #f1b6aa;
}

.footer-note {
  border-left: 1px solid rgba(255, 243, 227, 0.16);
  padding-left: clamp(22px, 3vw, 34px);
}

.footer-note p {
  margin-top: 0;
}

.site-footer .footer-copyright {
  color: rgba(255, 243, 227, 0.5);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 820ms ease, transform 820ms cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .hero,
  .chapter,
  .guide-hero,
  .updates-hero,
  .updates-ledger {
    grid-template-columns: 1fr;
  }

  .updates-note,
  .update-entry {
    grid-column: auto;
  }

  .updates-note {
    position: static;
  }

  .desk-scene {
    min-height: 620px;
  }

  .journey-shell {
    margin-top: clamp(-104px, -7vw, -72px);
    padding-left: 76px;
  }

  .chapter-rail {
    margin-left: -76px;
    width: 76px;
  }

  .chapter-rail span {
    font-size: 24px;
  }

  .ownership-art,
  .rewrite-art,
  .memory-art {
    grid-template-columns: 1fr;
  }

  .draft-stack article:nth-child(4) {
    left: 300px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .guide-toc {
    border-left: 0;
    border-top: 3px solid var(--accent);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 8px;
    padding: 18px 0 20px;
    position: static;
    top: auto;
  }

  .guide-toc-title {
    grid-column: 1 / -1;
  }

  .guide-finder {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .guide-finder nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .site-header {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    left: 0;
    padding: 0 18px;
    right: 0;
    width: 100vw;
  }

  .brand {
    font-size: 21px;
  }

  .site-nav {
    display: none;
  }

  .cookie-notice {
    align-items: stretch;
    flex-direction: column;
    inset: auto 14px 14px;
  }

  .cookie-notice-actions {
    justify-content: space-between;
  }

  .nav-action {
    flex: 0 0 auto;
    font-size: 8px;
    letter-spacing: 0.08em;
    min-height: 34px;
    padding: 0 10px;
    position: absolute;
    right: 16px;
    top: 18px;
  }

  .nav-full {
    display: none;
  }

  .nav-short {
    display: inline;
  }

  .hero {
    display: block;
    min-height: 720px;
    padding: 52px 18px 48px;
    width: 100%;
  }

  .hero::after {
    height: 90px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(231, 221, 205, 0.86) 0, rgba(231, 221, 205, 0.74) 48%, rgba(231, 221, 205, 0.18) 100%),
      linear-gradient(180deg, rgba(231, 221, 205, 0.18), rgba(231, 221, 205, 0.62) 100%);
  }

  .hero-copy {
    margin-left: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(62px, 18vw, 82px);
    margin-bottom: 36px;
    max-width: 100%;
  }

  .hero-copy p {
    font-size: 23px;
    max-width: 340px;
    width: 100%;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-login {
    font-size: 10px;
  }

  .scroll-cue {
    display: none;
  }

  .desk-scene {
    min-height: auto;
    overflow: visible;
    width: 100%;
  }

  .hero-asset {
    inset: 0;
    margin: 0;
    min-height: 100%;
    overflow: hidden;
    position: absolute;
    width: 100%;
  }

  .hero-asset::before {
    background:
      linear-gradient(180deg, rgba(231, 221, 205, 0) 56%, var(--room) 100%),
      linear-gradient(90deg, rgba(231, 221, 205, 0.35), rgba(231, 221, 205, 0));
  }

  .hero-asset img {
    filter: contrast(0.96) saturate(0.86);
    object-position: 70% center;
  }

  .hero-caption-card {
    display: none;
  }

  .hero-page {
    left: 0;
    padding: 58px 44px;
    right: auto;
    top: 32px;
    width: min(360px, 86vw);
  }

  .coffee-cup,
  .index-stack {
    display: none;
  }

  .journey-shell {
    display: block;
    margin-top: 0;
    padding-left: 0;
  }

  .journey-shell::before {
    display: none;
  }

  .chapter-rail {
    display: none;
  }

  .chapter {
    grid-template-columns: 1fr;
    max-width: 100vw;
    min-height: auto;
    overflow: hidden;
    padding: 46px 18px 50px;
    width: 100%;
  }

  .chapter::after {
    display: none;
  }

  .chapter-copy,
  .chapter-art {
    min-width: 0;
    width: 100%;
  }

  .chapter-label {
    border-left: 3px solid var(--accent);
    color: var(--accent-deep);
    display: inline-flex;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    padding-left: 12px;
  }

  .chapter h2 {
    font-size: clamp(38px, 12.5vw, 54px);
  }

  .chapter-copy > p:not(.chapter-label) {
    font-size: 19px;
    margin-bottom: 22px;
    max-width: 100%;
  }

  .chapter-art {
    min-height: auto;
  }

  .asset-frame {
    aspect-ratio: 16 / 10;
    min-height: 260px;
    width: 100%;
  }

  .rewrite-frame,
  .memory-frame,
  .memory-ledger {
    transform: none;
  }

  .large-script-page {
    padding: 58px 36px;
    width: 100%;
  }

  .margin-card {
    margin-top: 20px;
    position: static;
    transform: rotate(1deg);
    width: 100%;
  }

  .ownership-art {
    gap: 18px;
  }

  .file-card,
  .receipt-card,
  .vault-card {
    min-height: auto;
    transform: none;
  }

  .rewrite-art {
    display: block;
  }

  .draft-stack {
    height: 320px;
    overflow: hidden;
  }

  .draft-stack article {
    height: 280px;
    width: 170px;
  }

  .draft-stack article:nth-child(2) {
    left: 74px;
  }

  .draft-stack article:nth-child(3) {
    left: 148px;
  }

  .draft-stack article:nth-child(4) {
    left: 222px;
    width: 190px;
  }

  .recovered-scenes {
    margin-top: 22px;
  }

  .memory-ledger {
    margin-top: 20px;
  }

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

  .evidence-grid section:nth-child(4) {
    grid-column: auto;
  }

  .beta-art {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: auto;
  }

  .beta-frame {
    aspect-ratio: 16 / 9;
    min-height: 180px;
    width: 100%;
  }

  .beta-art .beta-card {
    align-self: center;
    grid-area: auto;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding: 26px 14px 22px;
    width: min(286px, calc(100vw - 56px));
  }

  .beta-card h2 {
    font-size: 27px;
    line-height: 1.05;
  }

  .beta-card p {
    font-size: 17px;
    margin-bottom: 20px;
  }

  .beta-card form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .beta-card form {
    gap: 8px;
  }

  .beta-card input,
  .beta-card textarea,
  .beta-card button {
    min-height: 44px;
  }

  .beta-card input,
  .beta-card textarea {
    font-size: 12px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .beta-card textarea {
    min-height: 76px;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .beta-card button {
    font-size: 10px;
  }

  .beta-card small {
    font-size: 12px;
    line-height: 1.35;
    margin-top: 16px;
  }

  .footer-note {
    border-left: 0;
    border-top: 1px solid rgba(255, 243, 227, 0.14);
    padding: 22px 0 0;
  }

  .guide-hero {
    min-height: auto;
    padding: 52px 18px 30px;
  }

  .updates-hero {
    padding: 52px 18px 30px;
  }

  .updates-hero h1 {
    font-size: clamp(54px, 15vw, 76px);
  }

  .updates-hero-copy > p:not(.chapter-label) {
    font-size: 20px;
  }

  .updates-hero-art {
    transform: none;
  }

  .updates-hero-art img {
    height: 260px;
  }

  .updates-ledger {
    padding: 0 18px 66px;
  }

  .updates-note,
  .update-entry {
    padding: 22px 18px;
  }

  .update-entry h2 {
    font-size: clamp(31px, 10vw, 46px);
  }

  .updates-note p,
  .update-entry p,
  .update-entry li {
    font-size: 17px;
  }

  .updates-status {
    margin: -42px 18px 42px;
  }

  .guide-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
    line-height: 0.95;
  }

  .guide-hero-copy > p:not(.chapter-label) {
    font-size: 21px;
    line-height: 1.3;
  }

  .guide-hero-image {
    aspect-ratio: 16 / 10;
    transform: rotate(0);
  }

  .guide-finder {
    padding: 34px 18px;
  }

  .guide-finder h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .guide-finder nav,
  .guide-toc {
    grid-template-columns: 1fr;
  }

  .guide-finder a {
    min-height: auto;
    padding-bottom: 8px;
  }

  .guide-layout {
    padding: 28px 18px 68px;
  }

  .guide-section {
    padding: 38px 0;
  }

  .guide-section h2,
  .legal-content h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .legal-hero h1 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.95;
  }

  .legal-hero > p:not(.chapter-label) {
    font-size: 21px;
    line-height: 1.3;
  }

  .guide-callout {
    margin-left: 0;
    padding: 34px 20px;
  }

  .guide-reference {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .beta-intake-shell {
    grid-template-columns: 1fr;
    padding: 96px 18px 58px;
  }

  .beta-intake-copy h1 {
    font-size: clamp(42px, 13vw, 66px);
  }

  .beta-intake-copy p {
    font-size: 20px;
  }

  .beta-intake-card {
    box-shadow: 7px 7px 0 rgba(59, 43, 32, 0.12);
    padding: 24px 16px;
  }

  .beta-intake-card form {
    grid-template-columns: 1fr;
  }

  .beta-intake-card input,
  .beta-intake-card textarea,
  .beta-intake-card select,
  .beta-intake-card button {
    min-height: 46px;
  }

  .beta-intake-card textarea {
    min-height: 88px;
  }
}
