html, body { background: #F3EEE3; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F3EEE3;
  --paper-2: #EAE2D2;
  --card: #FBF8F2;
  --ink: #1E2B23;
  --ink-80: rgba(30, 43, 35, .82);
  --ink-60: rgba(30, 43, 35, .64);
  --line: rgba(30, 43, 35, .14);
  --line-strong: rgba(30, 43, 35, .28);
  --cedar: #B4532A;
  --cedar-text: #9E4520;
  --cedar-soft: #F1DCCB;
  --pine: #1E2B23;
  --pine-2: #27372D;
  --cream: #EFE6D3;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1240px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
::selection { background: rgba(180, 83, 42, .25); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em; }
h3 { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.2; letter-spacing: -.015em; }
em.accent, h1 em, h2 em { font-style: italic; color: var(--cedar-text); font-variation-settings: "SOFT" 100, "WONK" 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-60);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--cedar); }
.lede { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.55; color: var(--ink-80); max-width: 34rem; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px 6px 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .arrow {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--cedar); color: #fff; box-shadow: 0 1px 2px rgba(80, 30, 10, .18), 0 6px 18px rgba(180, 83, 42, .22); }
.btn-primary .arrow { background: rgba(255, 255, 255, .18); }
.btn-primary:hover { background: #A2481F; }
.btn-ghost { background: transparent; color: var(--ink); padding: 6px 22px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(30, 43, 35, .05); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark .arrow { background: rgba(255, 255, 255, .12); }
.btn-dark:hover { background: #2D3E33; }
.link-arrow { color: var(--cedar-text); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 238, 227, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 23px; letter-spacing: -.025em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 500; }
.brand span { font-style: italic; color: var(--cedar-text); font-variation-settings: "SOFT" 100, "WONK" 1; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: inline-block; padding: 10px 14px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-80); border-radius: 999px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav-links a:not(.btn):hover { background: rgba(30, 43, 35, .06); color: var(--ink); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--ink); background: rgba(30, 43, 35, .07); }
.nav-links .btn { min-height: 42px; padding: 4px 6px 4px 18px; font-size: 14px; margin-left: 8px; }
.nav-links .btn .arrow { width: 30px; height: 30px; }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .nav { height: 64px; }
  .brand { font-size: 21px; }
  .menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(30, 43, 35, .08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s; }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; transition: opacity .28s var(--ease), transform .28s var(--ease); }
  .nav-links a:not(.btn) { padding: 14px 6px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin: 14px 0 0; justify-content: space-between; min-height: 52px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 9vw, 136px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head p { max-width: 30rem; color: var(--ink-60); margin: 0; }
.section-head h2 { margin-top: 14px; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(28px, 4vw, 64px) 0 clamp(56px, 6vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.hero h1 { margin: 20px 0 24px; }
.hero h1 .line { display: block; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--ink-60); display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: none; }

/* annotated photo: the signature */
.plate { position: relative; margin: 0; }
.plate-stage { position: relative; }
.plate-frame { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: 0 4px 16px rgba(30, 43, 35, .10), 0 30px 60px -30px rgba(30, 43, 35, .35); }
.plate-frame img { width: 100%; height: 100%; object-fit: cover; }
.plate-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 22, 0) 55%, rgba(20, 28, 22, .18)); pointer-events: none; }
.plate svg.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.ink path, .ink line, .ink circle { fill: none; stroke: #FFF8EC; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ink circle.dot { fill: #FFF8EC; stroke: var(--cedar); stroke-width: 2; }
.ink .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tag {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
  background: var(--card); color: var(--ink); border-radius: 12px; padding: 9px 13px 10px; width: max-content; max-width: 200px;
  font-size: 13px; line-height: 1.3; box-shadow: 0 10px 26px rgba(20, 28, 22, .22);
  opacity: 0; translate: 0 8px; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out);
}
.tag b { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; letter-spacing: -.01em; margin-bottom: 2px; }
.tag .num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cedar); color: #fff; font: 600 11px/1 var(--sans); margin-right: 6px; vertical-align: 2px; }
.plate.is-in .tag { opacity: 1; translate: 0 0; }
.plate figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-60); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* question chips under hero */
.questions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.questions .label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); margin-right: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 15px; transition: box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); cursor: pointer; border: 0; font-family: var(--sans); color: var(--ink); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--cedar); color: var(--cedar-text); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip .count { font-size: 12px; opacity: .6; }

/* topics */
.topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.topic {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 260px; padding: 24px;
  background: var(--card); border-radius: var(--radius); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease-out), box-shadow .3s var(--ease);
}
.topic:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 34px -18px rgba(30, 43, 35, .35); }
.topic .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--cedar-soft); color: var(--cedar-text); }
.topic .ico svg { width: 26px; height: 26px; }
.topic .idx { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink-60); }
.topic p { margin: 8px 0 0; font-size: 15px; color: var(--ink-60); line-height: 1.5; }

/* article cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: transform .35s var(--ease-out), box-shadow .3s var(--ease); }
a.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 34px -18px rgba(30, 43, 35, .35); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-60); flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--cedar-soft); color: var(--cedar-text); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pill.muted { background: rgba(30, 43, 35, .07); color: var(--ink-60); }
.card p { margin: 0; color: var(--ink-60); font-size: 15.5px; line-height: 1.55; }
.card .foot { margin-top: auto; padding-top: 10px; font-size: 14px; }
.soon { color: var(--ink-60); font-style: italic; font-family: var(--serif); }

/* signup band */
.band { background: var(--pine); color: var(--cream); border-radius: clamp(24px, 3vw, 40px); padding: clamp(36px, 5.5vw, 80px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px circle at 85% 0%, rgba(239, 230, 211, .08), transparent 70%); pointer-events: none; }
.band h2 { color: var(--cream); }
.band h2 em { color: #E89A6B; }
.band .eyebrow { color: rgba(239, 230, 211, .7); }
.band p { color: rgba(239, 230, 211, .78); }
.band ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.band li { display: flex; gap: 12px; align-items: baseline; color: rgba(239, 230, 211, .9); }
.band li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E89A6B; flex: none; transform: translateY(-2px); }

/* forms */
.form { display: grid; gap: 14px; position: relative; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.field input { height: 54px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); padding: 0 18px; font: 400 16px var(--sans); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%; }
.field input:focus { outline: none; border-color: var(--cedar); box-shadow: 0 0 0 4px rgba(180, 83, 42, .16); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field .err { font-size: 13px; color: #B3261E; min-height: 0; }
.dark-form .field label { color: rgba(239, 230, 211, .85); }
.dark-form .field input { background: rgba(239, 230, 211, .07); border-color: rgba(239, 230, 211, .22); color: var(--cream); }
.dark-form .field input::placeholder { color: rgba(239, 230, 211, .45); }
.dark-form .field input:focus { border-color: #E89A6B; box-shadow: 0 0 0 4px rgba(232, 154, 107, .18); }
.dark-form .field .err { color: #FFB4A8; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cedar); flex: none; }
.form .btn { justify-content: space-between; width: 100%; min-height: 56px; font-size: 16px; }
.form-small { font-size: 13px; opacity: .75; margin: 0; }
.form-success { display: none; padding: 22px; border-radius: 16px; background: rgba(239, 230, 211, .08); border: 1px solid rgba(239, 230, 211, .2); }
.form-success h3 { margin-bottom: 6px; }
.light .form-success { background: var(--cedar-soft); border-color: transparent; }
.form.done > :not(.form-success) { display: none; }
.form.done .form-success { display: block; }

/* footer */
.site-footer { margin-top: clamp(72px, 9vw, 136px); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14.5px; color: var(--ink-80); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.disclosure { margin-top: 40px; padding: 18px 20px; border-radius: 14px; background: var(--paper-2); font-size: 13.5px; line-height: 1.55; color: var(--ink-80); }
.disclosure b { color: var(--ink); }
.credits { margin-top: 22px; font-size: 12px; color: var(--ink-60); line-height: 1.6; }
.credits a { color: inherit; }

/* ---------- Articles page ---------- */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { margin: 18px 0 20px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; top: 76px; z-index: 20; padding: 14px 0; background: rgba(243, 238, 227, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--card); border-radius: clamp(22px, 2.5vw, 32px); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; margin: 24px 0 72px; transition: box-shadow .3s var(--ease); }
.feature:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 40px -24px rgba(30, 43, 35, .4); }
.feature .card-media { aspect-ratio: auto; min-height: 380px; }
.feature:hover .card-media img { transform: scale(1.03); }
.feature-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feature-body p { color: var(--ink-60); margin: 0; }
.topic-group { padding: 40px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.topic-group[hidden] { display: none; }
.topic-group > header { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; margin-bottom: 28px; }
.topic-group > header p { color: var(--ink-60); margin: 0; max-width: 36rem; }
.rows { display: grid; gap: 0; margin-bottom: 40px; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px dashed var(--line-strong); text-decoration: none; }
.row .n { font-family: var(--serif); font-size: 15px; color: var(--ink-60); font-style: italic; }
.row h3 { font-size: clamp(19px, 1.6vw, 22px); }
.row p { margin: 4px 0 0; color: var(--ink-60); font-size: 15.5px; }
.row .meta { font-size: 13px; color: var(--ink-60); white-space: nowrap; text-align: right; }
a.row:hover h3 { color: var(--cedar-text); }
a.row .meta { color: var(--cedar-text); font-weight: 600; }

/* ---------- Article page ---------- */
.article-hero { padding: clamp(32px, 5vw, 72px) 0 0; }
.crumbs { font-size: 13.5px; color: var(--ink-60); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-hero h1 { margin: 22px 0 22px; max-width: 20ch; }
.byline { display: flex; gap: 18px 28px; flex-wrap: wrap; font-size: 14px; color: var(--ink-60); margin-top: 26px; }
.byline span { display: inline-flex; gap: 8px; align-items: center; }
.article-cover { margin: clamp(32px, 4vw, 56px) 0 0; border-radius: clamp(22px, 2.5vw, 32px); overflow: hidden; aspect-ratio: 16 / 5; position: relative; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: #fff; background: rgba(20, 28, 22, .55); padding: 4px 10px; border-radius: 999px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 700px); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 72px); justify-content: center; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14.5px; }
.toc h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-60); transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--cedar); font-weight: 500; }
.toc .mini-cta { margin-top: 28px; padding: 18px; border-radius: 16px; background: var(--pine); color: var(--cream); }
.toc .mini-cta p { font-size: 13.5px; color: rgba(239, 230, 211, .78); margin: 6px 0 14px; }
.toc .mini-cta b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.toc .mini-cta a { color: #F2B48D; font-weight: 600; }

.prose { font-size: 18px; line-height: 1.7; }
.prose > * + h2 { margin-top: 72px; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; scroll-margin-top: 100px; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-80); }
.prose strong { color: var(--ink); }
.answer { padding: 26px 28px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-left: 4px solid var(--cedar); }
.answer .eyebrow { margin-bottom: 10px; }
.answer p { margin: 0; font-size: 18px; color: var(--ink); }

/* cross-section diagram */
.section-diagram { margin: 32px 0 8px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.section-diagram svg { width: 100%; height: auto; display: block; }
.diagram-key { display: none; }
.section-diagram figcaption { font-size: 13.5px; color: var(--ink-60); margin-top: 12px; }
.layer { opacity: 0; transform: translateY(-14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.section-diagram.is-in .layer { opacity: 1; transform: none; }
.section-diagram.is-in .layer:nth-of-type(2) { transition-delay: .12s; }
.section-diagram.is-in .layer:nth-of-type(3) { transition-delay: .24s; }
.section-diagram.is-in .layer:nth-of-type(4) { transition-delay: .36s; }
.section-diagram.is-in .layer:nth-of-type(5) { transition-delay: .48s; }
.section-diagram.is-in .layer:nth-of-type(6) { transition-delay: .6s; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 36px 72px; counter-increment: step; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 500 16px/1 var(--serif); }
.steps > li::after { content: ""; position: absolute; left: 23.5px; top: 54px; bottom: 6px; width: 1px; background: var(--line-strong); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 8px; }
.steps p { margin: 0 0 .6em; }
.tip { font-size: 15.5px; padding: 12px 16px; border-radius: 12px; background: var(--cedar-soft); color: var(--ink); margin-top: 10px; }
.tip b { color: var(--cedar-text); }

.materials { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.materials li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); font-size: 16px; }
.materials li span:last-child { color: var(--ink-60); text-align: right; white-space: nowrap; }

.table-wrap { overflow-x: auto; margin: 22px 0 10px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); font-weight: 600; background: var(--paper-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 600; color: var(--ink); border-bottom: 0; background: var(--paper-2); }
.table-note { font-size: 14px; color: var(--ink-60); }

.calc { margin: 28px 0; padding: 26px; border-radius: 18px; background: var(--pine); color: var(--cream); }
.calc h3 { color: var(--cream); margin: 0 0 4px; }
.calc > p { color: rgba(239, 230, 211, .72); font-size: 15px; margin: 0 0 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(239, 230, 211, .72); }
.calc input { height: 50px; width: 100%; border-radius: 12px; border: 1px solid rgba(239, 230, 211, .22); background: rgba(239, 230, 211, .07); color: var(--cream); font: 500 18px var(--sans); padding: 0 14px; font-variant-numeric: tabular-nums; }
.calc input:focus { outline: none; border-color: #E89A6B; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(239, 230, 211, .16); }
.calc-out div { font-size: 12.5px; color: rgba(239, 230, 211, .65); }
.calc-out output { display: block; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); color: var(--cream); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }

.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.pick { padding: 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pick h4 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.pick p { margin: 0; color: var(--ink-60); font-size: 14.5px; line-height: 1.5; }
.pick .btn { white-space: nowrap; margin-top: auto; min-height: 42px; padding: 4px 6px 4px 16px; font-size: 14px; justify-content: space-between; }
.pick .btn .arrow { width: 30px; height: 30px; }

.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--cedar); border-bottom: 2px solid var(--cedar); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 22px; }

.end-cta { margin-top: 72px; }

/* ---------- Guide page ---------- */
.guide-hero { padding: clamp(36px, 5vw, 80px) 0 clamp(56px, 7vw, 104px); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.guide-grid h1 { margin: 18px 0 22px; }
.guide-grid .signup-card { margin-top: 36px; max-width: 560px; }
.signup-card { background: var(--card); border-radius: clamp(22px, 2.5vw, 30px); padding: clamp(24px, 3vw, 40px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -36px rgba(30, 43, 35, .45); }
.signup-card h2 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 8px; }
.signup-card > p { color: var(--ink-60); font-size: 15.5px; }
.booklet-stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.booklet { width: min(440px, 82%); aspect-ratio: 3 / 4; position: relative; transform: rotate(-4deg); transition: transform .6s var(--ease-out); }
.booklet:hover { transform: rotate(-2deg) translateY(-6px); }
.booklet .page { position: absolute; inset: 0; border-radius: 6px 14px 14px 6px; background: #E4DAC5; transform: translate(14px, 10px) rotate(4deg); box-shadow: 0 10px 30px rgba(30, 43, 35, .18); }
.booklet .cover { position: absolute; inset: 0; border-radius: 6px 14px 14px 6px; background: var(--pine); color: var(--cream); padding: 9% 10%; display: flex; flex-direction: column; box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 30px 50px -10px rgba(30, 43, 35, .45), inset 6px 0 0 rgba(0, 0, 0, .18); overflow: hidden; }
.cover .c-top { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 230, 211, .65); display: flex; justify-content: space-between; }
.cover .c-title { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: .95; letter-spacing: -.035em; margin-top: auto; }
.cover .c-title em { color: #E89A6B; font-style: italic; }
.cover .c-sub { font-size: 13px; color: rgba(239, 230, 211, .7); margin-top: 14px; line-height: 1.45; }
.cover svg { position: absolute; right: -12%; top: 16%; width: 78%; opacity: .9; }
.chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; counter-reset: ch; }
.chapter { padding: 28px 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
.chapter .n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--cedar-text); }
.chapter p { margin: 6px 0 0; color: var(--ink-60); font-size: 15.5px; }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.who div { padding: 24px; border-radius: var(--radius); background: var(--paper-2); }
.who b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; margin-bottom: 6px; letter-spacing: -.01em; }
.who p { margin: 0; color: var(--ink-80); font-size: 15.5px; }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(24px); }
.loaded .rise { animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .rise, .no-js .reveal, .no-js .tag, .no-js .layer { opacity: 1 !important; transform: none !important; translate: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal, .layer, .tag { opacity: 1 !important; transform: none !important; translate: none !important; animation: none !important; transition: none !important; }
  .ink .draw { stroke-dashoffset: 0 !important; transition: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .guide-grid, .band, .feature { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature .card-media { min-height: 0; aspect-ratio: 16 / 10; }
  .topic-group > header { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .picks, .who { grid-template-columns: minmax(0, 1fr); }
  .chapters { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .topics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .topic { min-height: 200px; padding: 18px; gap: 24px; }
  .topic:last-child { grid-column: 1 / -1; min-height: 0; }
  .topic .idx { top: 18px; right: 18px; }
  .topic p { font-size: 14px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero-actions .btn-ghost { justify-content: center; }
  .tag { font-size: 11.5px; padding: 6px 9px 7px; border-radius: 9px; max-width: 132px; }
  .tag b { font-size: 13px; }
  .tag .hide-sm, .tag.hide-sm { display: none; }
  .tag .num { width: 16px; height: 16px; font-size: 10px; margin-right: 4px; }
  .questions .label { width: 100%; }
  .chip { font-size: 14px; min-height: 44px; padding: 0 14px; }
  .filters { top: 64px; overflow-x: auto; flex-wrap: nowrap; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .filters .chip { flex: none; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .row .n { display: none; }
  .row .meta { text-align: left; }
  .article-cover { aspect-ratio: 4 / 3; }
  .prose { font-size: 17px; }
  .steps > li { padding-left: 60px; }
  .steps > li::before { width: 42px; height: 42px; font-size: 14px; }
  .steps > li::after { left: 20.5px; top: 48px; }
  .materials { grid-template-columns: minmax(0, 1fr); }
  .calc-grid, .calc-out { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .calc-grid label:last-child { grid-column: 1 / -1; }
  .calc-out div:last-child { grid-column: 1 / -1; }
  th, td { padding: 12px 12px; font-size: 14.5px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section-diagram { padding: 14px; }
  .section-diagram .labels, .section-diagram .leaders { display: none; }
  .section-diagram { overflow: hidden; }
  .section-diagram svg { width: 136%; max-width: none; }
  .diagram-key { display: grid; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
  .diagram-key li { display: flex; gap: 10px; align-items: center; }
  .diagram-key i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
}
