/* ============================================================
   PROMPTFORM — prompt design archive
   Paper, ink, a little vermilion. Built to be read, not scrolled past.
   ============================================================ */

:root {
  --paper: #f2ede3;
  --paper-2: #e9e1d2;
  --paper-3: #ded3c0;
  --ink: #171512;
  --ink-2: #2a2721;
  --muted: #736b5e;
  --muted-2: #9b9284;
  --line: rgba(23, 21, 18, .15);
  --line-strong: rgba(23, 21, 18, .32);
  --red: #a63a2b;
  --red-bright: #c44a37;
  --gold: #c39a54;
  --gold-pale: #d9bd86;
  --dark: #15130f;
  --dark-2: #1e1b16;
  --white: #f7f2e8;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --kai: "STXingkai", "STKaiti", "KaiTi", "Kaiti SC", "Noto Serif SC", serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 3.6vw, 54px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--red); color: var(--white); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.paper-grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-line { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 120; background: var(--red); transition: width .08s linear; }

/* ---------- shared type ---------- */
.eyebrow { font-family: var(--mono); font-size: 8px; letter-spacing: .18em; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.eyebrow span { color: var(--red); }
.eyebrow.light { color: rgba(247, 242, 232, .52); }
.eyebrow.light span { color: var(--gold-pale); }
.section-label { font-family: var(--mono); font-size: 8px; letter-spacing: .15em; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; white-space: nowrap; }
.section-label span { color: var(--red); }
.section-label.light { color: rgba(247, 242, 232, .46); }
.section-label.light span { color: var(--gold-pale); }
.section-head { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: start; }
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; flex-wrap: wrap; }
.section-title-row h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.5vw, 82px); line-height: 1.08; letter-spacing: -.045em; }
.section-title-row h2 em { font-style: italic; color: var(--red); }
.section-title-row p { margin: 0 0 6px; max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.section-head--paper .section-label { color: var(--muted); }
.section-head--paper .section-label span { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font-size: 11.5px; letter-spacing: .03em;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  white-space: nowrap;
}
.btn i { font-style: normal; font-size: 14px; transition: transform .3s var(--ease-out); }
.btn:hover i { transform: translate(2px, -2px); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark i { color: var(--gold-pale); }
.btn-dark:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--gold-pale); border-color: var(--gold-pale); }
.btn-ghost-light { color: var(--white); border-color: rgba(247, 242, 232, .24); }
.btn-ghost-light:hover { background: rgba(247, 242, 232, .1); border-color: var(--white); }
.btn-ghost-light i, .btn-paper i { color: var(--red); }

.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; animation-delay: var(--delay, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: 76px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  border-bottom: 1px solid transparent;
  transition: height .3s, background .3s, border-color .3s, backdrop-filter .3s;
}
.site-head.is-scrolled {
  height: 64px; background: rgba(242, 237, 227, .86);
  border-color: var(--line); backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--serif); font-size: 12px; letter-spacing: -.06em;
  transition: background .3s, color .3s, transform .5s var(--ease-out);
}
.brand-mark span { color: var(--gold-pale); padding: 0 .3px; }
.brand:hover .brand-mark { background: var(--red); transform: rotate(10deg); }
.brand:hover .brand-mark span { color: var(--white); }
.brand-name { font-size: 11px; font-weight: 650; letter-spacing: .2em; }
.brand-sub { font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; color: var(--muted-2); border-left: 1px solid var(--line); padding-left: 11px; }
.site-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 32px; }
.site-nav a { position: relative; display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; padding: 3px 0; }
.site-nav a span { font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: var(--muted-2); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.site-nav a:hover::after { transform: scaleX(1); }
.head-link { font-size: 11px; letter-spacing: .03em; border-bottom: 1px solid var(--ink); padding-bottom: 3px; white-space: nowrap; }
.head-link span { color: var(--red); margin-left: 6px; }

/* ---------- home hero ---------- */
.hero {
  max-width: 1620px; margin: 0 auto; padding: 142px var(--pad) 58px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr) 18px;
  gap: clamp(30px, 4.5vw, 70px); align-items: center;
  min-height: 100svh;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-title {
  margin: 25px 0 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(72px, 8.7vw, 138px); line-height: .98; letter-spacing: -.075em;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-title > span { display: block; white-space: nowrap; }
.hero-title .hero-line-2 { padding-left: clamp(16px, 3vw, 48px); color: var(--muted); }
.hero-title em { font-style: italic; color: var(--red); }
.hero-dot { color: var(--red); }
.hero-intro { margin: 28px 0 0; font-family: var(--serif); font-size: clamp(15px, 1.35vw, 19px); line-height: 1.9; color: var(--muted); letter-spacing: .01em; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: flex; gap: 44px; margin-top: 58px; padding-top: 15px; border-top: 1px solid var(--line); max-width: 430px; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats b { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1; }
.hero-stats b::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: .22em; }
.hero-stats span { font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: var(--muted-2); }

.hero-visual { position: relative; margin: 0; min-width: 0; display: flex; flex-direction: column; }
.cover-stack { position: relative; padding: 9px 12px 0 0; }
.cover-back { position: absolute; z-index: 0; inset: -7px 2px 13px 12px; background: var(--paper-2); border: 1px solid var(--line); transform: rotate(1.2deg); }
.cover-frame { position: relative; z-index: 1; overflow: hidden; border: 1px solid var(--line-strong); background: var(--dark); box-shadow: 0 30px 70px rgba(50, 38, 22, .17); }
.cover-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-spec { position: relative; z-index: 2; margin-top: 22px; padding-top: 13px; border-top: 1px solid var(--line-strong); }
.hero-spec-title { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; }
.hero-spec-title span { font-family: var(--mono); font-size: 7px; letter-spacing: .09em; color: var(--red); white-space: nowrap; }
.hero-spec-title b { font-family: var(--serif); font-size: 14px; font-weight: 400; }
.hero-spec-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hero-spec-row span { font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: var(--muted-2); }
.hero-spec-row p { margin: 0; font-size: 10.5px; color: var(--muted); }
.hero-spec-link { display: inline-flex; gap: 10px; margin-top: 12px; font-size: 10.5px; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.hero-spec-link i { font-style: normal; color: var(--red); }
.cover-top { position: absolute; z-index: 3; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; color: rgba(247, 242, 232, .74); font-family: var(--mono); font-size: 7px; letter-spacing: .13em; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.cover-index { position: absolute; z-index: 3; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em; color: rgba(247, 242, 232, .72); }
.cover-crop { position: absolute; z-index: 3; width: 18px; height: 18px; border-color: rgba(247, 242, 232, .55); }
.cover-crop-tl { top: 36px; left: 12px; border-left: 1px solid; border-top: 1px solid; }
.cover-crop-br { bottom: 12px; right: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.cover-caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: var(--muted); }
.cover-caption span:last-child { color: var(--muted-2); }
.hero-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: 7px; padding: 5px 8px; background: rgba(242,237,227,.92); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 7px; letter-spacing: .06em; box-shadow: 0 6px 18px rgba(40,30,15,.08); white-space: nowrap; }
.hero-note i { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.note-a { top: 22%; right: -18px; }
.note-b { left: -24px; bottom: 34%; }
.note-c { right: 8%; bottom: 30%; }
.hero-rail { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 0 55px; font-family: var(--mono); font-size: 7px; letter-spacing: .22em; color: var(--muted-2); }
.hero-rail span { writing-mode: vertical-rl; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 56px; display: flex; align-items: center; }
.ticker-track { display: flex; align-items: center; gap: 42px; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: 19px; color: var(--muted); }
.ticker-track i { font-style: normal; color: var(--red); font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */
.statement { background: var(--dark); color: var(--white); padding: clamp(80px, 10vw, 150px) var(--pad); }
.statement-inner { max-width: 1180px; margin: 0 auto; }
.statement p { margin: 34px 0 0; font-family: var(--serif); font-size: clamp(34px, 4.2vw, 64px); line-height: 1.4; letter-spacing: -.03em; }
.statement p em { color: var(--gold-pale); font-style: italic; }
.statement-foot { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 52px; padding-top: 16px; border-top: 1px solid rgba(247,242,232,.16); font-family: var(--mono); font-size: 8px; letter-spacing: .11em; color: rgba(247,242,232,.45); }

/* ---------- archive ---------- */
.archive { max-width: 1560px; margin: 0 auto; padding: clamp(84px, 9vw, 140px) var(--pad); }
.archive .section-head { margin-bottom: 48px; }
.feature-card { display: grid; grid-template-columns: 1.32fr .68fr; border: 1px solid var(--line-strong); background: #f7f2e8; transition: box-shadow .4s, transform .4s var(--ease-out); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(50, 38, 22, .12); }
.feature-media { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: var(--dark); }
.feature-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; transition: transform .8s var(--ease-out); }
.feature-card:hover .feature-media img { transform: scale(1.025); }
.feature-media-top { position: absolute; z-index: 2; top: 14px; left: 15px; right: 15px; display: flex; justify-content: space-between; color: rgba(247,242,232,.78); font-family: var(--mono); font-size: 7px; letter-spacing: .11em; }
.feature-open { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid rgba(247,242,232,.38); background: rgba(20,18,14,.5); color: var(--white); font-size: 10px; backdrop-filter: blur(6px); }
.feature-open i { font-style: normal; color: var(--gold-pale); }
.feature-copy { padding: clamp(26px, 3vw, 48px); display: flex; flex-direction: column; }
.feature-index { font-family: var(--serif); font-size: 42px; line-height: 1; color: var(--paper-3); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.feature-tags span { border: 1px solid var(--line); padding: 3px 7px; font-family: var(--mono); font-size: 7px; letter-spacing: .04em; color: var(--muted); }
.feature-copy h3 { margin: 24px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.7vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.feature-copy h3 em { color: var(--red); font-style: italic; }
.feature-copy > p { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.85; max-width: 340px; }
.feature-vars { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature-vars div { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feature-vars dt { font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em; color: var(--red); }
.feature-vars dd { margin: 0; font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.feature-bottom { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 26px; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: var(--muted-2); }
.archive-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 26px; padding-top: 15px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 7.5px; letter-spacing: .09em; color: var(--muted); }
.archive-foot a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.archive-foot i { font-style: normal; color: var(--red); }

/* ---------- compare ---------- */
.compare { background: var(--paper-2); padding: clamp(80px, 9vw, 130px) var(--pad); }
.compare > .section-head, .compare-grid, .compare-note { max-width: 1560px; margin-left: auto; margin-right: auto; }
.compare .section-head { margin-bottom: 46px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 38px); }
.compare-item { margin: 0; }
.compare-label { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-strong); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: var(--muted); }
.compare-label span { color: var(--red); }
.compare-label b { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.compare-label i { margin-left: auto; font-style: normal; color: var(--muted-2); }
.compare-frame { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.compare-before .compare-frame { box-shadow: 0 12px 30px rgba(50,38,22,.06); }
.compare-after .compare-frame { border-color: var(--line-strong); box-shadow: 0 22px 50px rgba(50,38,22,.14); }
.compare-item figcaption { margin-top: 10px; font-size: 10.5px; color: var(--muted); line-height: 1.7; max-width: 420px; }
.compare-note { display: flex; gap: 14px; align-items: baseline; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
.compare-note-mark { color: var(--red); font-size: 17px; }
.compare-note p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); color: var(--ink); }

/* ---------- method ---------- */
.method { max-width: 1560px; margin: 0 auto; padding: clamp(84px, 9vw, 140px) var(--pad); }
.method .section-head { margin-bottom: 46px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.method-card { padding: 24px 28px 30px 0; min-height: 255px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.method-card:last-child { border-right: 0; }
.method-no { font-family: var(--mono); font-size: 8px; color: var(--muted-2); }
.method-icon { height: 72px; margin: 18px 0 10px; display: flex; align-items: center; }
.icon-frame { gap: 4px; position: relative; width: 94px; height: 60px; border: 1px solid var(--ink); }
.icon-frame::before { content: ""; position: absolute; left: 16px; top: 12px; width: 34px; height: 1px; background: var(--red); box-shadow: 0 18px 0 var(--ink), 0 29px 0 var(--ink); }
.icon-frame i { position: absolute; right: 20px; top: 12px; width: 22px; height: 34px; border: 1px solid var(--line-strong); }
.icon-frame i:nth-child(2) { width: 12px; height: 12px; right: 7px; top: 40px; background: var(--gold); border-color: var(--gold); }
.icon-frame i:nth-child(3) { display: none; }
.icon-slots { gap: 5px; flex-wrap: wrap; width: 130px; }
.icon-slots i { display: grid; place-items: center; width: 56px; height: 28px; border: 1px dashed var(--line-strong); font-family: var(--serif); font-style: normal; font-size: 11px; color: var(--muted); }
.icon-slots i:last-child { width: 88px; border-color: var(--red); color: var(--red); }
.icon-zone { position: relative; width: 120px; height: 68px; border: 1px solid var(--ink); }
.icon-zone::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: rgba(166,58,43,.13); border-right: 1px dashed var(--red); }
.icon-zone::after { content: ""; position: absolute; right: 15px; top: 15px; width: 42px; height: 38px; border: 1px solid var(--line-strong); }
.icon-zone i { position: absolute; left: 9px; top: 14px; width: 22px; height: 1px; background: var(--red); box-shadow: 0 10px 0 var(--red), 0 20px 0 var(--red); }
.icon-zone i:nth-child(2) { left: 9px; top: 52px; width: 13px; }
.icon-zone i:nth-child(3) { display: none; }
.method-card h3 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -.02em; }
.method-card p { margin: 10px 0 0; max-width: 285px; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.method-tag { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: var(--muted-2); }

/* ---------- prompt feature ---------- */
.prompt-feature { background: var(--dark); color: var(--white); padding: clamp(74px, 9vw, 130px) var(--pad); }
.prompt-inner { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(38px, 6vw, 100px); align-items: center; }
.prompt-copy h2 { margin: 28px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.05em; }
.prompt-copy h2 em { color: var(--gold-pale); font-style: italic; }
.prompt-copy > p { margin: 24px 0 0; max-width: 390px; color: rgba(247,242,232,.58); font-size: 12px; line-height: 1.9; }
.prompt-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 32px; }
.prompt-window { border: 1px solid rgba(247,242,232,.18); background: #0e0d0b; min-width: 0; }
.window-bar { display: flex; justify-content: space-between; gap: 20px; padding: 11px 14px; border-bottom: 1px solid rgba(247,242,232,.13); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: rgba(247,242,232,.42); }
.window-bar span:last-child { color: var(--gold-pale); }
.prompt-window pre { margin: 0; padding: 22px 22px 28px; overflow: auto; font-family: var(--mono); font-size: 10px; line-height: 1.9; color: #cec7bb; max-height: 460px; scrollbar-width: thin; }
.window-foot { display: flex; justify-content: space-between; gap: 20px; padding: 10px 14px; border-top: 1px solid rgba(247,242,232,.13); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: rgba(247,242,232,.38); }

/* ---------- about ---------- */
.about { max-width: 1560px; margin: 0 auto; padding: clamp(84px, 9vw, 140px) var(--pad); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 120px); }
.about-lead h2 { margin: 34px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5vw, 74px); line-height: 1.18; letter-spacing: -.045em; }
.about-lead h2 em { font-style: italic; color: var(--red); }
.about-big { margin: 8px 0 26px; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.55; }
.about-big em { color: var(--red); }
.about-copy > p:not(.about-big) { max-width: 570px; margin: 0; font-size: 12.5px; line-height: 2; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line-strong); }
.principles div { padding: 16px 16px 0 0; }
.principles span { font-family: var(--mono); font-size: 7.5px; color: var(--red); }
.principles b { display: block; margin: 7px 0 5px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.principles p { margin: 0; font-size: 10.5px; line-height: 1.7; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { background: var(--dark); color: var(--white); padding: 46px var(--pad) 22px; }
.foot-inner { max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.1fr .5fr; gap: 34px; align-items: start; padding-bottom: 42px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.brand-mark--dark { background: var(--paper); color: var(--ink); }
.brand-mark--dark span { color: var(--red); }
.foot-brand b { display: block; font-size: 11px; letter-spacing: .17em; }
.foot-brand span:not(.brand-mark) { display: block; margin-top: 5px; font-family: var(--serif); font-size: 14px; color: rgba(247,242,232,.55); }
.foot-meta { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: rgba(247,242,232,.4); }
.foot-meta span:first-child { color: var(--gold-pale); }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 10.5px; color: rgba(247,242,232,.65); }
.foot-links a:hover { color: var(--gold-pale); }
.foot-bottom { max-width: 1560px; margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; padding-top: 17px; border-top: 1px solid rgba(247,242,232,.14); font-family: var(--mono); font-size: 7px; letter-spacing: .09em; color: rgba(247,242,232,.35); }
.foot-mid { color: rgba(247,242,232,.25); }

/* ============================================================
   TEMPLATE PAGE
   ============================================================ */
.template-hero { max-width: 1560px; margin: 0 auto; padding: 138px var(--pad) 50px; }
.template-hero-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.template-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 7px; letter-spacing: .09em; color: var(--muted); }
.template-hero-meta span:first-child { color: var(--red); }
.template-title-row { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: end; margin-top: 34px; }
.template-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7vw, 108px); line-height: 1.02; letter-spacing: -.06em; }
.template-title em { display: inline-block; color: var(--red); font-style: italic; }
.template-intro { margin: 0 0 6px; max-width: 320px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.template-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 28px; }
.template-tags span { border: 1px solid var(--line); padding: 4px 8px; font-family: var(--mono); font-size: 7px; letter-spacing: .05em; color: var(--muted); }

/* ---------- lab ---------- */
.lab { padding: 0 var(--pad) 80px; }
.lab-head { max-width: 1560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.lab-head-left { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--muted); }
.lab-head-left b { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--ink); margin-left: 4px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(166,58,43,.1); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .32; } }
.lab-head-right { display: flex; gap: 22px; align-items: center; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: var(--muted-2); }
.lab-head-right button { border: 0; background: transparent; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding: 0 0 2px; }
.lab-grid { max-width: 1560px; margin: 22px auto 0; display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(340px, .52fr); gap: clamp(22px, 3vw, 42px); align-items: start; }
.lab-preview { min-width: 0; }
.slide-shell { position: relative; background: var(--dark); box-shadow: 0 24px 60px rgba(50,38,22,.16); border: 1px solid var(--line-strong); }
.slide-shell:fullscreen { display: flex; align-items: center; justify-content: center; background: #000; border: 0; }
.slide-shell:fullscreen .slide { width: min(100vw, 177.78vh); }
.preview-caption { display: flex; justify-content: space-between; gap: 14px; padding-top: 9px; font-family: var(--mono); font-size: 7px; letter-spacing: .07em; color: var(--muted); }

/* the slide itself */
.slide { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; container-type: inline-size; color: #f4ead8; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .8s var(--ease-out); }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,10,7,.86) 0%, rgba(9,10,7,.64) 29%, rgba(9,10,7,.22) 54%, rgba(9,10,7,.02) 72%, transparent 100%), linear-gradient(0deg, rgba(0,0,0,.46) 0%, transparent 38%); }
.slide-grain { position: absolute; inset: 0; opacity: .08; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.slide-content { position: absolute; inset: 0; padding: 5.1cqw 5.8cqw 4.1cqw; }
.slide-eyebrow { display: flex; justify-content: space-between; max-width: 40%; font-family: var(--mono); font-size: .7cqw; letter-spacing: .18em; color: rgba(247,242,232,.58); }
.slide-eyebrow span:last-child { color: rgba(217,189,134,.75); }
.slide-title-wrap { display: flex; align-items: flex-start; gap: 1.8cqw; margin-top: 7.7cqw; }
.slide-title { margin: 0; font-family: var(--kai); font-weight: 400; font-size: 9.2cqw; line-height: .9; letter-spacing: -.03em; color: #d8b16b; text-shadow: 0 2px 30px rgba(0,0,0,.32); }
.slide.is-long .slide-title { font-size: 7.5cqw; }
.slide-seal { flex: 0 0 auto; width: 3.4cqw; aspect-ratio: 1; margin-top: 1.2cqw; border: 1px solid rgba(204,115,94,.85); background: rgba(129,35,24,.28); color: #d9bd86; font-family: var(--kai); font-size: 1.02cqw; line-height: 1.1; letter-spacing: .1em; writing-mode: vertical-rl; display: grid; place-items: center; }
.slide-en { margin: 1.25cqw 0 0; font-family: var(--sans); font-size: 1.05cqw; letter-spacing: .38em; color: #d7c7a3; }
.slide-rule { position: absolute; left: 5.8cqw; bottom: 13.8cqw; width: 7.1cqw; height: 1px; margin: 0; background: linear-gradient(90deg, #d8b16b, rgba(216,177,107,0)); }
.slide-body { position: absolute; left: 5.8cqw; bottom: 7.35cqw; list-style: none; padding: 0; margin: 0; max-width: 38%; }
.slide-body li { position: relative; padding-left: 1.35cqw; margin-bottom: .55cqw; font-family: var(--serif); font-size: .96cqw; line-height: 1.8; color: rgba(247,242,232,.9); text-shadow: 0 1px 9px rgba(0,0,0,.62); }
.slide-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: .42cqw; height: .42cqw; background: #d8b16b; clip-path: polygon(0 0,100% 50%,0 100%); }
.slide-foot { position: absolute; left: 5.8cqw; right: 5.8cqw; bottom: 3.2cqw; display: flex; justify-content: space-between; gap: 20px; padding-top: .8cqw; border-top: 1px solid rgba(247,242,232,.18); font-family: var(--mono); font-size: .58cqw; letter-spacing: .12em; color: rgba(247,242,232,.44); }

/* capture mode for generating the cover */
body.capture-mode .site-head, body.capture-mode .template-hero, body.capture-mode .lab-head, body.capture-mode .lab-controls, body.capture-mode .preview-caption, body.capture-mode .prompt-section, body.capture-mode .anatomy, body.capture-mode .safezone, body.capture-mode .rules, body.capture-mode .download, body.capture-mode .credits, body.capture-mode .site-foot, body.capture-mode .paper-grain, body.capture-mode .scroll-line { display: none !important; }
body.capture-mode .lab { padding: 0; }
body.capture-mode .lab-grid { display: block; margin: 0; max-width: none; }
body.capture-mode .slide-shell { position: fixed; inset: 0; width: 100vw; height: 100vh; border: 0; box-shadow: none; }
body.capture-mode .slide { width: 100vw; height: 100vh; aspect-ratio: auto; }

/* ---------- controls ---------- */
.lab-controls { border-top: 1px solid var(--line-strong); }
.control-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.control-head div { display: flex; flex-direction: column; gap: 3px; }
.control-head span { font-family: var(--mono); font-size: 7px; letter-spacing: .12em; color: var(--red); }
.control-head b { font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -.02em; }
.mini-btn { border: 0; background: transparent; padding: 2px 0; font-family: var(--mono); font-size: 7px; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.mini-btn:hover { color: var(--red); }
.preset-row { display: flex; gap: 4px; padding: 10px 0 12px; }
.preset { border: 1px solid var(--line); background: transparent; padding: 5px 8px; font-size: 10px; color: var(--muted); }
.preset:hover { border-color: var(--line-strong); color: var(--ink); }
.preset.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.field { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
.field > span { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-family: var(--mono); font-size: 7px; letter-spacing: .09em; color: var(--muted); }
.field > span i { font-style: normal; color: var(--red); }
.field > span b { margin-left: auto; font-weight: 400; color: var(--muted-2); }
.field > span b em { font-style: normal; }
.field input, .field textarea { width: 100%; border: 1px solid transparent; border-bottom-color: var(--line-strong); background: transparent; outline: 0; padding: 6px 2px 7px; font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--ink); resize: vertical; border-radius: 0; }
.field textarea { min-height: 58px; font-size: 12px; line-height: 1.65; }
.field input:focus, .field textarea:focus { border-color: var(--red); background: rgba(166,58,43,.035); }
.field-bg { border-bottom: 1px solid var(--line); }
.bg-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.bg-option { position: relative; border: 1px solid var(--line); background: transparent; padding: 0; overflow: hidden; text-align: left; }
.bg-option img { width: 100%; aspect-ratio: 16/10; object-fit: cover; opacity: .74; transition: opacity .25s, transform .4s; }
.bg-option span { display: block; padding: 4px 5px; font-size: 8px; color: var(--muted); }
.bg-option:hover img { opacity: 1; transform: scale(1.03); }
.bg-option.is-active { border-color: var(--red); }
.bg-option.is-active img { opacity: 1; }
.bg-option.is-active span { color: var(--red); }
.control-actions { display: grid; gap: 6px; margin-top: 14px; }
.control-actions .btn { width: 100%; min-height: 43px; }
.control-note { margin: 10px 0 0; font-family: var(--mono); font-size: 6.8px; line-height: 1.7; letter-spacing: .03em; color: var(--muted-2); }

/* ---------- prompt section ---------- */
.prompt-section { background: var(--dark); color: var(--white); padding: clamp(64px, 8vw, 110px) var(--pad); }
.prompt-section-head { max-width: 1560px; margin: 0 auto 30px; display: grid; grid-template-columns: 160px 1fr auto; gap: 28px; align-items: end; }
.prompt-section-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.8vw, 70px); line-height: 1.1; letter-spacing: -.045em; }
.prompt-section-head h2 em { color: var(--gold-pale); font-style: italic; }
.prompt-section-head p { max-width: 430px; margin: 14px 0 0; color: rgba(247,242,232,.52); font-size: 11px; line-height: 1.8; }
.copy-prompt { border: 1px solid rgba(247,242,232,.25); background: transparent; color: var(--white); display: flex; align-items: center; gap: 14px; padding: 9px 12px; font-size: 10px; white-space: nowrap; }
.copy-prompt i { font-style: normal; color: var(--gold-pale); }
.copy-prompt:hover { border-color: var(--gold-pale); }
.prompt-window--large { max-width: 1560px; margin: 0 auto; }
.prompt-window--large pre { max-height: 560px; font-size: 10.5px; line-height: 1.9; }

/* ---------- anatomy ---------- */
.anatomy { padding: clamp(80px, 9vw, 130px) var(--pad); background: var(--paper-2); }
.anatomy > .section-head, .anatomy-grid { max-width: 1560px; margin-left: auto; margin-right: auto; }
.anatomy .section-head { margin-bottom: 42px; }
.anatomy-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.anatomy-card { padding: 18px 24px 26px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.anatomy-card:nth-child(3n) { border-right: 0; padding-right: 0; }
.anatomy-card > span { font-family: var(--mono); font-size: 7.5px; color: var(--red); }
.anatomy-visual { height: 96px; margin: 14px 0 14px; display: flex; align-items: center; }
.av-full { background: linear-gradient(90deg, rgba(15,14,11,.75), rgba(15,14,11,.1)), url("../img/summer-palace.webp") center/cover; border: 1px solid var(--line); }
.av-layout { position: relative; width: 140px; height: 78px; border: 1px solid var(--line-strong); }
.av-layout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: rgba(166,58,43,.08); border-right: 1px dashed var(--red); }
.av-layout i { position: absolute; left: 12px; top: 20px; width: 24px; height: 1px; background: var(--ink); box-shadow: 0 11px 0 var(--ink), 0 22px 0 var(--ink); }
.av-layout i:nth-child(2) { left: auto; right: 22px; top: 18px; width: 28px; height: 34px; background: transparent; box-shadow: none; border: 1px solid var(--line-strong); }
.av-title { font-family: var(--kai); font-size: 55px; color: var(--gold); line-height: 1; }
.av-en { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; color: var(--muted); border-top: 1px solid var(--line-strong); padding-top: 12px; }
.av-rule { width: 140px; height: 1px; background: var(--gold); position: relative; }
.av-rule::before, .av-rule::after { content: ""; position: absolute; width: 26px; height: 1px; background: var(--line-strong); top: 0; }
.av-rule::before { left: -36px; } .av-rule::after { right: -36px; }
.av-body { flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; }
.av-body i { display: block; width: 80%; height: 1px; background: var(--line-strong); position: relative; }
.av-body i::before { content: ""; position: absolute; left: 0; top: -3px; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--gold); }
.av-body i:nth-child(2) { width: 58%; }
.anatomy-card h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.anatomy-card p { margin: 8px 0 0; max-width: 310px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.anatomy-card b { display: block; margin-top: 20px; font-family: var(--mono); font-size: 7px; font-weight: 400; letter-spacing: .09em; color: var(--muted-2); }

/* ---------- safe zone ---------- */
.safezone { padding: clamp(80px, 9vw, 130px) var(--pad); }
.safezone > .section-head, .safe-grid { max-width: 1560px; margin-left: auto; margin-right: auto; }
.safe-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(35px, 6vw, 90px); align-items: center; margin-top: 42px; }
.safe-canvas { position: relative; aspect-ratio: 16/9; border: 1px solid var(--line-strong); background: linear-gradient(90deg, rgba(20,18,14,.9), rgba(20,18,14,.55)), url("../img/summer-palace.webp") center/cover; color: rgba(247,242,232,.5); overflow: hidden; }
.safe-canvas::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(166,58,43,.38) 0 38%, transparent 38%), linear-gradient(90deg, transparent 0 38%, rgba(216,177,107,.55) 38%, transparent 38.2%); }
.safe-label { position: absolute; z-index: 2; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; line-height: 1.6; }
.safe-label-text { left: 13px; top: 15px; color: #e6d6b6; }
.safe-label-subject { right: 14px; top: 15px; color: #dfc48e; }
.safe-margin { position: absolute; left: 50%; z-index: 2; transform: translateX(-50%); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: rgba(247,242,232,.42); }
.safe-margin.top { top: 8px; } .safe-margin.bottom { bottom: 8px; }
.safe-line { position: absolute; z-index: 2; left: 13px; top: 40%; width: 74px; height: 1px; background: #d8b16b; box-shadow: 0 18px 0 rgba(247,242,232,.55), 0 31px 0 rgba(247,242,232,.55); }
.safe-title { position: absolute; z-index: 2; left: 13px; bottom: 20%; font-family: var(--kai); font-size: 40px; line-height: 1; color: #d8b16b; }
.safe-diagram > p { max-width: 510px; margin: 14px 0 0; font-size: 11px; line-height: 1.85; color: var(--muted); }
.safe-rules { border-top: 1px solid var(--line-strong); }
.safe-rules article { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.safe-rules article > span { font-family: var(--mono); font-size: 8px; color: var(--red); padding-top: 2px; }
.safe-rules h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.safe-rules p { margin: 4px 0 0; font-size: 10.5px; line-height: 1.75; color: var(--muted); }

/* ---------- rules ---------- */
.rules { background: var(--paper-2); padding: clamp(80px, 9vw, 120px) var(--pad); }
.rules > .section-head, .rules-grid { max-width: 1560px; margin-left: auto; margin-right: auto; }
.rules .section-head { margin-bottom: 38px; }
.rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.rules-grid article { padding: 18px 24px 0 0; border-right: 1px solid var(--line); }
.rules-grid article:last-child { border-right: 0; }
.rules-grid b { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.rules-grid b::before { content: "—"; color: var(--red); margin-right: 8px; }
.rules-grid p { margin: 10px 0 0; font-size: 10.5px; line-height: 1.8; color: var(--muted); }

/* ---------- download ---------- */
.download { background: var(--dark); color: var(--white); padding: clamp(70px, 8vw, 120px) var(--pad); display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.download > * { max-width: 720px; }
.download-left h2 { margin: 26px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.5vw, 82px); line-height: 1.05; letter-spacing: -.05em; }
.download-left h2 em { color: var(--gold-pale); font-style: italic; }
.download-left > p { max-width: 470px; margin: 20px 0 0; color: rgba(247,242,232,.55); font-size: 12px; line-height: 1.9; }
.download-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 28px; }
.download-meta { border-top: 1px solid rgba(247,242,232,.2); }
.download-meta div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(247,242,232,.14); font-family: var(--mono); font-size: 7.5px; letter-spacing: .06em; color: rgba(247,242,232,.4); }
.download-meta b { font-weight: 400; color: var(--gold-pale); }

/* ---------- credits ---------- */
.credits { max-width: 1560px; margin: 0 auto; padding: 50px var(--pad) 66px; display: grid; grid-template-columns: 180px 1fr; gap: 26px; }
.credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.credits-grid > p { margin: 0; max-width: 420px; font-size: 10.5px; line-height: 1.85; color: var(--muted); }
.credits ul { list-style: none; padding: 0; margin: 0; }
.credits li { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.credits li span { font-family: var(--mono); font-size: 7px; letter-spacing: .06em; color: var(--red); }
.credits a:hover { color: var(--ink); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 200; left: 50%; bottom: 26px; transform: translate(-50%, 16px); background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; pointer-events: none; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hero { grid-template-columns: 1fr .92fr; gap: 34px; }
  .hero-rail { display: none; }
  .note-a, .note-b { display: none; }
  .brand-sub { display: none; }
  .feature-card { grid-template-columns: 1.16fr .84fr; }
  .lab-grid { grid-template-columns: 1fr 380px; }
  .template-title-row { grid-template-columns: 1.15fr .85fr; gap: 30px; }
}
@media (max-width: 1040px) {
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .hero-copy { max-width: 760px; }
  .hero-title { font-size: clamp(76px, 12vw, 130px); }
  .hero-visual { max-width: 760px; }
  .hero-note { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-title-row { gap: 22px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-media img { min-height: 0; }
  .prompt-inner { grid-template-columns: 1fr; }
  .prompt-copy h2 br { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-controls { max-width: 620px; }
  .section-title-row p { max-width: 420px; }
  .prompt-section-head { grid-template-columns: 1fr auto; }
  .prompt-section-head > .section-label { grid-column: span 2; }
  .safe-grid { grid-template-columns: 1fr; }
  .safe-canvas { max-width: 720px; }
  .download { grid-template-columns: 1fr; gap: 38px; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .rules-grid article:nth-child(2) { border-right: 0; }
  .rules-grid article { padding-bottom: 20px; }
  .credits { grid-template-columns: 1fr; gap: 16px; }
  .credits-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 66px; }
  .site-head { height: 64px; }
  .site-head.is-scrolled { height: 58px; }
  .brand-name { font-size: 10px; letter-spacing: .15em; }
  .brand-mark { width: 30px; height: 30px; font-size: 10px; }
  .head-link { font-size: 10px; }
  .hero { padding-top: 92px; gap: 28px; padding-bottom: 35px; }
  .hero-title { font-size: clamp(58px, 17vw, 92px); line-height: 1; }
  .hero-title .hero-line-2 { padding-left: 18px; }
  .hero-intro { font-size: 14px; }
  .hero-actions { margin-top: 26px; }
  .hero-stats { margin-top: 36px; gap: 28px; }
  .hero-stats b { font-size: 20px; }
  .cover-caption { display: block; line-height: 1.9; }
  .cover-caption span:last-child { display: block; }
  .hero-spec { margin-top: 18px; }
  .hero-spec-title { display: block; }
  .hero-spec-title b { display: block; margin-top: 4px; }
  .hero-spec-row { grid-template-columns: 66px 1fr; }
  .ticker { height: 48px; }
  .ticker-track span { font-size: 16px; }
  .statement p { font-size: 32px; line-height: 1.5; }
  .statement-foot { gap: 13px; font-size: 7px; margin-top: 34px; }
  .archive, .method, .about { padding-top: 66px; padding-bottom: 66px; }
  .compare, .anatomy, .rules, .safezone { padding-top: 64px; padding-bottom: 64px; }
  .section-title-row h2 { font-size: 44px; }
  .section-title-row p { font-size: 11.5px; }
  .feature-copy { padding: 24px 20px 28px; }
  .feature-copy h3 { font-size: 38px; }
  .feature-media img { aspect-ratio: 16/9; }
  .feature-open { display: none; }
  .compare-grid { grid-template-columns: 1fr; gap: 30px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0 24px; }
  .method-card:last-child { border-bottom: 0; }
  .method-icon { height: 60px; margin: 12px 0 6px; }
  .prompt-copy h2 { font-size: 45px; }
  .prompt-actions .btn { width: 100%; }
  .prompt-window pre { font-size: 9px; padding: 18px 15px 22px; max-height: 380px; }
  .about-lead h2 { font-size: 43px; }
  .principles { grid-template-columns: 1fr; }
  .principles div { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .foot-inner { grid-template-columns: 1fr; gap: 24px; }
  .foot-links { flex-direction: row; gap: 18px; }
  .foot-bottom { flex-wrap: wrap; gap: 8px 16px; }
  .foot-mid { order: 3; width: 100%; }
  .template-hero { padding-top: 94px; padding-bottom: 32px; }
  .template-hero-top { align-items: flex-start; }
  .template-hero-meta { gap: 9px; font-size: 6.5px; max-width: 58%; justify-content: flex-end; flex-wrap: wrap; }
  .template-hero-meta span:nth-child(3), .template-hero-meta span:nth-child(4) { display: none; }
  .template-title-row { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; }
  .template-title { font-size: clamp(42px, 12.5vw, 60px); line-height: 1.06; }
  .template-title em { display: block; font-size: .92em; }
  .template-intro { max-width: 100%; }
  .lab-head-right span { display: none; }
  .lab-head { padding: 10px 0; }
  .lab-grid { margin-top: 13px; gap: 20px; }
  .preview-caption { font-size: 6.5px; }
  .slide-content { padding: 5.1cqw 5.8cqw 4.1cqw; }
  .slide-body li { font-size: max(.96cqw, 5px); }
  .slide-en { font-size: max(1.05cqw, 5px); }
  .slide-eyebrow { font-size: max(.7cqw, 4px); }
  .lab-controls { max-width: none; }
  .control-head b { font-size: 21px; }
  .field input { font-size: 14px; }
  .prompt-section-head { grid-template-columns: 1fr; gap: 16px; }
  .prompt-section-head > .section-label { grid-column: auto; }
  .copy-prompt { justify-self: start; }
  .prompt-section-head h2 { font-size: 41px; }
  .anatomy-grid { grid-template-columns: 1fr; }
  .anatomy-card, .anatomy-card:nth-child(3n) { border-right: 0; padding: 16px 0 22px; }
  .anatomy-visual { height: 78px; }
  .safe-canvas { max-width: none; }
  .safe-title { font-size: 30px; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid article, .rules-grid article:nth-child(2) { border-right: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .download { padding-top: 64px; padding-bottom: 64px; gap: 30px; }
  .download-left h2 { font-size: 47px; }
  .download-actions .btn { width: 100%; }
  .credits { padding-top: 36px; padding-bottom: 45px; }
  .credits li { display: block; line-height: 1.8; }
  .credits li a { display: block; margin-top: 2px; }
}
@media (max-width: 390px) {
  .hero-title { font-size: 55px; }
  .template-title { font-size: 44px; }
  .section-title-row h2 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
