:root {
  --paper: #f1ede4;
  --paper-bright: #faf8f2;
  --ink: #111213;
  --muted: #706c64;
  --coral: #e86443;
  --acid: #e8d642;
  --blue: #b8c9c8;
  --line: rgba(17, 18, 19, 0.2);
  --header: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: .18;
  background:
    radial-gradient(circle at 18% 22%, rgba(17,18,19,.28) 0 .55px, transparent .7px),
    radial-gradient(circle at 72% 68%, rgba(17,18,19,.2) 0 .45px, transparent .65px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: multiply;
}
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 18px; font: 700 11px/1 "Space Mono", monospace; letter-spacing: .12em; }
[id] { scroll-margin-top: calc(var(--header) + 22px); }

.guide-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.24);
  color: #fff;
  background: rgba(15, 16, 17, .2);
  backdrop-filter: blur(16px) saturate(.8);
  transition: color .3s ease, background .3s ease, border-color .3s ease;
}
.guide-header.is-paper {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(241, 237, 228, .88);
}
.guide-brand { display: inline-flex; align-items: center; gap: 10px; font: 900 12px/1 "DM Sans", sans-serif; letter-spacing: .08em; }
.guide-brand img { width: 28px; height: 28px; }
.guide-edition { font: 700 10px/1 "Space Mono", monospace; letter-spacing: .12em; }
.guide-header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-text-link { font-size: 12px; font-weight: 700; }
.header-buy {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border: 1px solid currentColor;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--coral);
  font-size: 12px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.header-buy:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--coral); }
.header-buy strong { font-family: "Space Mono", monospace; }

.guide-cover {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: calc(var(--header) + 42px) clamp(22px, 6vw, 92px) 42px;
  isolation: isolate;
  color: #f7f1e5;
  background: #1a1b1c;
}
.cover-media, .cover-media img, .cover-shade, .cover-print { position: absolute; inset: 0; }
.cover-media { z-index: -2; overflow: hidden; }
.cover-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; filter: saturate(.84) contrast(1.12) brightness(.72); transform: scale(1.03); }
.cover-shade {
  background:
    linear-gradient(90deg, rgba(13,14,15,.88) 0%, rgba(13,14,15,.54) 45%, rgba(13,14,15,.12) 75%),
    linear-gradient(0deg, rgba(13,14,15,.82) 0%, transparent 55%, rgba(13,14,15,.32) 100%);
}
.cover-print {
  opacity: .35;
  background:
    radial-gradient(circle at 1px 1px, rgba(247,241,229,.6) 1px, transparent 1.2px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
  animation: print-drift 9s steps(8, end) infinite;
}
@keyframes print-drift { 50% { background-position: 2px 1px; } }
.cover-index {
  position: absolute;
  top: calc(var(--header) + 26px);
  right: clamp(22px, 6vw, 92px);
  left: clamp(22px, 6vw, 92px);
  display: flex;
  justify-content: space-between;
  font: 700 10px/1 "Space Mono", monospace;
  letter-spacing: .12em;
}
.cover-copy { width: min(980px, 82vw); }
.cover-kicker { margin: 0 0 22px; color: var(--acid); font: 700 12px/1 "Space Mono", monospace; letter-spacing: .14em; }
.cover-copy h1 { max-width: 960px; margin: 0; font-size: clamp(4.3rem, 9.5vw, 10rem); line-height: .76; letter-spacing: 0; }
.cover-copy h1 span { display: block; font-weight: 900; }
.cover-copy h1 em { display: block; color: #ffd6bf; font-family: "Bodoni Moda", Georgia, serif; font-weight: 500; }
.cover-dek { max-width: 580px; margin: 34px 0 0; color: rgba(247,241,229,.78); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.45; }
.cover-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.cover-buy {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 0 24px;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 8px 8px 0 var(--coral);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cover-buy:hover { transform: translate(4px, 4px); box-shadow: 4px 4px 0 var(--coral); }
.cover-buy strong { font-family: "Space Mono", monospace; font-size: 12px; }
.cover-preview { border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 700; }
.cover-foot {
  display: flex;
  gap: 26px;
  margin-top: 52px;
  padding-top: 17px;
  border-top: 1px solid rgba(247,241,229,.28);
  font: 700 9px/1 "Space Mono", monospace;
  letter-spacing: .12em;
}

.guide-intro {
  min-height: 78svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: 8vw;
  padding: 11vw clamp(22px, 9vw, 150px);
  background: var(--paper-bright);
}
.guide-intro h2, .guide-contents h2, .guide-offer h2, .guide-vault h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.4rem, 7.8vw, 8.2rem);
  line-height: .84;
  letter-spacing: 0;
}
.intro-copy { max-width: 500px; padding-top: 80px; }
.intro-copy p { margin: 0 0 24px; font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.55; }

.guide-proof {
  padding: 9vw clamp(22px, 7vw, 120px) 10vw;
  color: #f5efe5;
  background: #111213;
}
.proof-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 4vw;
  margin-bottom: clamp(48px, 7vw, 100px);
}
.proof-heading .eyebrow { grid-column: 1 / -1; color: var(--acid); }
.proof-heading h2 {
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 8.6rem);
  line-height: .79;
}
.proof-heading > p:last-child {
  max-width: 420px;
  margin: 0 0 8px;
  color: rgba(245,239,229,.65);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.15;
}
.proof-reel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.proof-card { min-width: 0; }
.proof-media {
  position: relative;
  aspect-ratio: 9 / 14;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(245,239,229,.28);
  background: #090a0a;
}
.proof-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.88), transparent 42%);
}
.proof-poster, .proof-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.proof-poster { opacity: .76; }
.proof-media video {
  opacity: 0;
  transition: opacity .45s ease, transform .6s ease;
}
.proof-media video.is-ready { opacity: .82; }
.proof-media:hover video { transform: scale(1.025); }
.proof-index {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  font: 700 9px/1 "Space Mono", monospace;
}
.proof-media strong {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 29px;
  left: 14px;
  font-size: clamp(2.5rem, 4vw, 5rem);
  line-height: .8;
}
.proof-media small {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 11px;
  left: 14px;
  color: rgba(245,239,229,.6);
  font: 700 8px/1 "Space Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.proof-card h3 { margin: 18px 0 7px; font-size: 17px; }
.proof-card > p { margin: 0; color: rgba(245,239,229,.58); font-size: 12px; line-height: 1.5; }

.guide-contents {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 8vw;
  padding: 10vw clamp(22px, 9vw, 150px);
  color: #f4efe6;
  background: var(--ink);
}
.contents-heading { position: sticky; top: calc(var(--header) + 32px); align-self: start; }
.contents-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(244,239,230,.22); }
.contents-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid rgba(244,239,230,.18); }
.contents-list b, .contents-list span { font: 400 10px/1 "Space Mono", monospace; }
.contents-list strong { font-size: clamp(1rem, 1.55vw, 1.35rem); }
.contents-list span { color: rgba(244,239,230,.52); }

.guide-lab {
  padding: 10vw clamp(22px, 7vw, 120px);
  color: var(--ink);
  background: #d9c7b9;
}
.lab-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, .48fr);
  align-items: end;
  gap: 7vw;
  margin-bottom: clamp(44px, 6vw, 86px);
}
.lab-heading h2, .guide-reference-pack h2 {
  margin: 0;
  font-size: clamp(3.5rem, 7.6vw, 8rem);
  line-height: .81;
}
.lab-heading > p {
  max-width: 470px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}
.lab-shell {
  border: 2px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 14px 14px 0 var(--coral);
}
.lab-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--ink);
}
.lab-tabs button {
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  font: 700 10px/1 "Space Mono", monospace;
  letter-spacing: .06em;
}
.lab-tabs button:last-child { border-right: 0; }
.lab-tabs button[aria-selected="true"] { color: var(--paper-bright); background: var(--ink); }
.lab-stage { min-height: min(70vw, 760px); }
.frame-lab, .motion-lab {
  min-height: min(70vw, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
}
.frame-lab figure, .motion-media {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  background: #0d0e0f;
}
.frame-lab figure > img, .motion-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.frame-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(248,241,229,.34) 33.3% 33.5%, transparent 33.6% 66.4%, rgba(248,241,229,.34) 66.5% 66.7%, transparent 66.8%),
    linear-gradient(0deg, transparent 33.2%, rgba(248,241,229,.34) 33.3% 33.5%, transparent 33.6% 66.4%, rgba(248,241,229,.34) 66.5% 66.7%, transparent 66.8%);
}
.frame-note {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 7px 9px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff;
  color: #fff;
  background: rgba(17,18,19,.7);
  backdrop-filter: blur(8px);
  font: 700 8px/1 "Space Mono", monospace;
  letter-spacing: .06em;
  white-space: nowrap;
}
.frame-note::after {
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  width: 1px;
  height: clamp(24px, 5vw, 70px);
  content: "";
  background: #fff;
}
.lab-copy {
  align-self: center;
  padding: clamp(30px, 5vw, 74px);
}
.lab-copy h3, .workflow-lab h3, .prompt-index h3 {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  line-height: .82;
}
.lab-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.lab-copy ol { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lab-copy li { padding: 13px 0; border-bottom: 1px solid var(--line); font: 700 10px/1.35 "Space Mono", monospace; }
.prompt-lab {
  min-height: min(70vw, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr);
}
.prompt-compose {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(36px, 6vw, 96px);
  border-right: 2px solid var(--ink);
  color: rgba(17,18,19,.24);
  background: #f4efe6;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.35rem, 2.15vw, 2.65rem);
  line-height: 1.05;
}
.prompt-compose mark {
  width: fit-content;
  padding: 4px 7px;
  color: inherit;
  background: transparent;
  transition: color .3s ease, background .3s ease;
}
.prompt-compose mark.is-active { color: var(--ink); background: var(--acid); }
.prompt-index { align-self: center; padding: clamp(30px, 5vw, 72px); }
.prompt-index > div { display: grid; border-top: 1px solid var(--line); }
.prompt-index button {
  min-height: 48px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  font: 700 10px/1 "Space Mono", monospace;
}
.prompt-index button b { color: var(--muted); }
.prompt-index button.is-active { color: var(--coral); }
.motion-media video { opacity: 0; transition: opacity .45s ease; }
.motion-media video.is-ready { opacity: .84; }
.motion-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(17,18,19,.5), transparent 30%, transparent 70%, rgba(17,18,19,.5));
}
.motion-vector, .motion-anchor {
  position: absolute;
  z-index: 2;
  color: #fff;
  font: 700 9px/1 "Space Mono", monospace;
  letter-spacing: .08em;
}
.motion-vector { left: 12%; }
.motion-vector::after {
  display: inline-block;
  width: clamp(80px, 14vw, 220px);
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  content: "";
  background: currentColor;
  animation: vector-pulse 1.8s ease-in-out infinite;
}
.motion-vector-camera { top: 24%; }
.motion-vector-world { bottom: 19%; color: var(--acid); }
.motion-anchor {
  left: 50%;
  top: 49%;
  padding: 7px 9px;
  transform: translate(-50%, -50%);
  border: 1px solid currentColor;
}
@keyframes vector-pulse { 50% { transform: scaleX(.65); transform-origin: left; opacity: .55; } }
.workflow-lab { min-height: min(70vw, 760px); display: grid; grid-template-columns: .7fr 1.3fr; }
.workflow-lab header { padding: clamp(34px, 5vw, 72px); border-right: 2px solid var(--ink); background: var(--acid); }
.workflow-lab header a { display: inline-flex; gap: 28px; margin-top: 28px; padding: 14px 16px; border: 1px solid var(--ink); background: var(--paper-bright); font-size: 12px; font-weight: 900; }
.workflow-lab > ol { margin: 0; padding: 0; list-style: none; }
.workflow-lab > ol li { display: grid; grid-template-columns: 130px 1fr; gap: 26px; padding: 23px clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); }
.workflow-lab > ol b { font: 700 9px/1.4 "Space Mono", monospace; letter-spacing: .08em; }
.workflow-lab > ol p { margin: 0; font-size: 14px; line-height: 1.45; }
.workflow-lab footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 22px; padding: 16px 24px; border-top: 2px solid var(--ink); font: 700 9px/1 "Space Mono", monospace; }
.workflow-lab footer a { border-bottom: 1px solid currentColor; }

.guide-reference-pack { padding: 10vw clamp(22px, 7vw, 120px); background: var(--paper-bright); }
.guide-reference-pack > header {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 6vw;
  margin-bottom: clamp(44px, 7vw, 96px);
}
.guide-reference-pack > header .eyebrow { grid-column: 1 / -1; }
.guide-reference-pack > header > p:last-child { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reference-card { margin: 0; border: 1px solid var(--ink); background: var(--paper); }
.reference-card img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.reference-card figcaption { display: grid; gap: 9px; padding: 16px; border-top: 1px solid var(--ink); }
.reference-card figcaption b { color: var(--muted); font: 700 9px/1 "Space Mono", monospace; letter-spacing: .08em; }
.reference-card figcaption strong { font-size: 17px; }

.reader-status {
  position: sticky;
  top: var(--header);
  z-index: 12;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(241,237,228,.92);
  backdrop-filter: blur(14px);
  font: 700 10px/1 "Space Mono", monospace;
  letter-spacing: .08em;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.reader-status.is-open .status-dot { background: #2b9b52; box-shadow: 0 0 0 4px rgba(43,155,82,.13); }

.guide-reader { background: var(--paper); }
.guide-chapter {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(360px, 1.14fr);
  grid-template-rows: 1fr auto;
  gap: clamp(24px, 5vw, 80px);
  overflow: hidden;
  padding: calc(var(--header) + 76px) clamp(22px, 8vw, 130px) clamp(52px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.guide-chapter::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: .12;
  background: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 1.2px);
  background-size: 5px 5px;
}
.guide-chapter[data-tone="paper"] { background: var(--paper-bright); }
.guide-chapter[data-tone="coral"] { background: #e77857; }
.guide-chapter[data-tone="acid"] { background: #e7da5b; }
.guide-chapter[data-tone="blue"] { background: var(--blue); }
.guide-chapter[data-tone="ink"] { color: #f2ede4; background: var(--ink); }
.chapter-no { position: absolute; right: 3.2vw; top: calc(var(--header) + 24px); font: 700 clamp(3.5rem, 8vw, 8rem)/1 "Bodoni Moda", serif; opacity: .18; }
.chapter-media {
  position: relative;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  background: #161718;
  background-image: url("/guide-cover.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: 18px 18px 0 rgba(17,18,19,.14);
}
.chapter-media video, .chapter-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.chapter-media video { opacity: 0; transition: opacity .45s ease; }
.chapter-media video.is-ready { opacity: 1; }
.chapter-media img { object-position: center; }
.chapter-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .28;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.55) 1px, transparent 1.2px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}
.chapter-copy { align-self: center; max-width: 780px; }
.chapter-label { margin: 0 0 20px; font: 700 10px/1 "Space Mono", monospace; letter-spacing: .14em; }
.chapter-copy h2 { max-width: 760px; margin: 0; font-size: clamp(3.3rem, 7.2vw, 8rem); line-height: .79; letter-spacing: 0; }
.chapter-dek { max-width: 640px; margin: 28px 0 34px; font-family: "Bodoni Moda", Georgia, serif; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.08; }
.chapter-body { max-width: 620px; columns: 2; column-gap: 32px; }
.chapter-body p { margin: 0 0 16px; break-inside: avoid; font-size: 14px; line-height: 1.55; }
.chapter-recipe {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 140px minmax(220px, .8fr) minmax(300px, 1.2fr) auto;
  gap: 24px;
  align-items: start;
  padding-top: 22px;
  border-top: 2px solid currentColor;
}
.recipe-label { font: 700 10px/1 "Space Mono", monospace; letter-spacing: .12em; }
.recipe-formula { font-size: 16px; line-height: 1.2; }
.recipe-example { margin: 0; font: 400 12px/1.55 "Space Mono", monospace; }
.copy-recipe {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.copy-recipe:hover { color: var(--paper); background: var(--ink); }
.guide-chapter[data-tone="ink"] .copy-recipe:hover { color: var(--ink); background: var(--paper); }
.guide-chapter blockquote {
  position: absolute;
  left: 18px;
  bottom: 84px;
  width: 250px;
  margin: 0;
  transform: rotate(-90deg) translateY(100%);
  transform-origin: left bottom;
  font: 700 9px/1 "Space Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chapter-lock {
  min-height: 88svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8vw;
  padding: 9vw clamp(22px, 9vw, 150px);
  color: #f4efe6;
  background: #191a1b;
}
.lock-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-3deg); }
.lock-page {
  min-height: 360px;
  display: flex;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.32);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 10px 12px 0 rgba(232,100,67,.7);
}
.lock-page:nth-child(2) { transform: translateY(40px); background: var(--acid); }
.lock-page:nth-child(3) { transform: translateY(-22px); background: var(--blue); }
.lock-page b { font: 700 11px/1.2 "Space Mono", monospace; }
.lock-copy h2 { margin: 0 0 24px; font-size: clamp(3.5rem, 7vw, 7rem); line-height: .83; }
.lock-copy p { max-width: 520px; color: rgba(244,239,230,.7); font-size: 18px; line-height: 1.5; }
.lock-copy a { min-height: 60px; display: inline-flex; align-items: center; gap: 42px; margin-top: 20px; padding: 0 22px; color: var(--ink); background: var(--acid); box-shadow: 7px 7px 0 var(--coral); font-weight: 900; }

.guide-offer {
  position: relative;
  min-height: 82svh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 32px 10vw;
  overflow: hidden;
  padding: 10vw clamp(22px, 9vw, 150px);
  color: var(--ink);
  background: var(--acid);
  isolation: isolate;
}
.offer-print { position: absolute; inset: -20%; z-index: -1; opacity: .25; background: repeating-linear-gradient(125deg, transparent 0 9px, rgba(232,100,67,.7) 9px 11px); transform: rotate(-8deg); }
.offer-copy p:not(.eyebrow) { max-width: 600px; font-size: 18px; line-height: 1.5; }
.offer-price { align-self: end; display: grid; text-align: right; }
.offer-price strong { font: 900 clamp(5rem, 12vw, 12rem)/.8 "Bodoni Moda", serif; }
.offer-price > span:last-child { font: 700 11px/1 "Space Mono", monospace; }
.offer-value { justify-self: end; width: fit-content; margin-bottom: 8px; text-decoration: line-through; font-weight: 800; }
.offer-buy {
  grid-column: 1 / -1;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 2px solid var(--ink);
  color: #fff;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--coral);
  font-size: 18px;
  font-weight: 900;
}
.offer-note { grid-column: 1 / -1; margin: 0; font: 400 10px/1.5 "Space Mono", monospace; }
.guide-offer.is-owned .offer-price, .guide-offer.is-owned .offer-note { display: none; }

.guide-vault { padding: 10vw clamp(22px, 9vw, 150px); background: var(--paper-bright); }
.guide-vault header { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 5vw; margin-bottom: 80px; }
.guide-vault header p:last-child { max-width: 360px; font-family: "Bodoni Moda", serif; font-size: 28px; }
.guide-vault .coastal-vault-heading { margin-top: clamp(90px, 12vw, 180px); }
#vault-list { border-top: 2px solid var(--ink); }
.vault-item { display: grid; grid-template-columns: 58px .62fr 1.38fr auto; gap: 24px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.vault-item > b { font: 700 10px/1 "Space Mono", monospace; }
.vault-item h3 { margin: 0; font-size: 18px; }
.coastal-vault-item h3 span { display: block; margin-top: 8px; color: var(--coral); font: 700 8px/1 "Space Mono", monospace; letter-spacing: .1em; }
.vault-item p { margin: 0; font: 400 12px/1.55 "Space Mono", monospace; }
.vault-item button { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; font-size: 11px; font-weight: 800; }
.vault-item button:hover { color: var(--paper); background: var(--ink); }

.reader-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 25;
  width: 38px;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 10px 6px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background: rgba(250,248,242,.82);
  backdrop-filter: blur(12px);
}
.reader-rail button { width: 28px; height: 28px; border: 0; background: transparent; }
.rail-progress { width: 2px; height: 90px; overflow: hidden; background: rgba(17,18,19,.15); }
.rail-progress i { display: block; width: 100%; height: 6.25%; background: var(--coral); transition: height .3s ease; }
.reader-rail span { writing-mode: vertical-rl; font: 700 9px/1 "Space Mono", monospace; }

.guide-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 32px;
  padding: 70px clamp(22px, 6vw, 92px);
  color: #f4efe6;
  background: var(--ink);
}
.guide-footer p { margin: 0; text-align: center; font-family: "Bodoni Moda", serif; font-size: 20px; }
.guide-footer nav { justify-self: end; display: flex; gap: 20px; font-size: 12px; }

@media (max-width: 900px) {
  :root { --header: 58px; }
  .guide-header { grid-template-columns: 1fr auto; padding: 0 14px; }
  .guide-edition, .header-text-link { display: none; }
  .header-buy span { display: none; }
  .guide-cover { padding-right: 20px; padding-left: 20px; }
  .cover-copy { width: 100%; }
  .cover-copy h1 { font-size: clamp(4rem, 19vw, 6.8rem); }
  .cover-dek { max-width: 90%; }
  .cover-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .cover-buy { width: min(100%, 420px); justify-content: space-between; }
  .cover-foot { overflow-x: auto; gap: 22px; padding-bottom: 5px; white-space: nowrap; }
  .guide-intro, .guide-contents { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .proof-heading, .lab-heading, .guide-reference-pack > header { grid-template-columns: 1fr; }
  .proof-heading .eyebrow, .guide-reference-pack > header .eyebrow { grid-column: auto; }
  .proof-reel {
    grid-template-columns: repeat(4, minmax(230px, 70vw));
    overflow-x: auto;
    margin-right: -22px;
    padding-right: 22px;
    padding-bottom: 16px;
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y;
  }
  .proof-card { scroll-snap-align: start; }
  .proof-media { aspect-ratio: 9 / 13; }
  .contents-heading { position: static; }
  .lab-stage, .frame-lab, .motion-lab, .prompt-lab, .workflow-lab { min-height: auto; }
  .frame-lab, .motion-lab, .prompt-lab, .workflow-lab { grid-template-columns: 1fr; }
  .frame-lab figure, .motion-media, .prompt-compose, .workflow-lab header { min-height: min(72svh, 640px); border-right: 0; border-bottom: 2px solid var(--ink); }
  .prompt-compose { min-height: 500px; }
  .workflow-lab header { min-height: auto; }
  .workflow-lab footer { grid-column: auto; }
  .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-chapter {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 34px;
    padding: calc(var(--header) + 58px) 22px 66px;
  }
  .chapter-media { height: min(62svh, 620px); grid-row: auto; box-shadow: 10px 10px 0 rgba(17,18,19,.14); }
  .chapter-copy h2 { font-size: clamp(3.8rem, 16vw, 7rem); }
  .chapter-body { columns: 1; }
  .chapter-recipe { grid-column: auto; grid-template-columns: 1fr; gap: 12px; }
  .chapter-no { right: 18px; }
  .guide-chapter blockquote { display: none; }
  .chapter-lock { grid-template-columns: 1fr; }
  .lock-pages { order: 2; }
  .lock-page { min-height: 230px; }
  .guide-offer { grid-template-columns: 1fr; }
  .offer-price { justify-self: start; text-align: left; }
  .offer-value { justify-self: start; }
  .guide-vault header { grid-template-columns: 1fr; }
  .vault-item { grid-template-columns: 36px 1fr; }
  .vault-item p, .vault-item button { grid-column: 2; }
  .reader-rail { display: none !important; }
  .guide-footer { grid-template-columns: 1fr; align-items: start; }
  .guide-footer p { text-align: left; }
  .guide-footer nav { justify-self: start; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .guide-header .guide-brand span { font-size: 10px; }
  .header-buy { min-height: 38px; }
  .cover-index span:last-child { display: none; }
  .cover-media img { object-position: 50% 48%; }
  .cover-copy h1 { font-size: clamp(3.75rem, 19vw, 5.7rem); }
  .cover-dek { font-size: 15px; }
  .guide-intro, .guide-contents, .guide-offer, .guide-vault { padding-right: 20px; padding-left: 20px; }
  .guide-proof, .guide-lab, .guide-reference-pack { padding-right: 20px; padding-left: 20px; }
  .guide-intro h2, .guide-contents h2, .guide-offer h2, .guide-vault h2 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .proof-heading h2, .lab-heading h2, .guide-reference-pack h2 { font-size: clamp(3.2rem, 15vw, 5.2rem); }
  .contents-list li { grid-template-columns: 34px 1fr; }
  .contents-list span { display: none; }
  .lab-shell { box-shadow: 7px 7px 0 var(--coral); }
  .lab-tabs { grid-template-columns: repeat(2, 1fr); }
  .lab-tabs button:nth-child(2) { border-right: 0; }
  .lab-tabs button:nth-child(-n + 2) { border-bottom: 1px solid var(--ink); }
  .frame-lab figure, .motion-media { min-height: 54svh; }
  .lab-copy, .prompt-index { padding: 28px 20px 34px; }
  .prompt-compose { min-height: 68svh; padding: 32px 20px; font-size: clamp(1.35rem, 6vw, 2rem); }
  .workflow-lab > ol li { grid-template-columns: 1fr; gap: 8px; padding: 19px 20px; }
  .reference-grid { grid-template-columns: 1fr; }
  .reader-status { justify-content: flex-start; }
  .chapter-media { height: 58svh; }
  .chapter-copy h2 { font-size: clamp(3.4rem, 17vw, 5.4rem); }
  .chapter-dek { font-size: 24px; }
  .lock-pages { gap: 6px; }
  .lock-page { min-height: 180px; padding: 9px; }
  .lock-copy p { font-size: 16px; }
  .offer-buy { min-height: 68px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
