:root {
  --night: #15101c;
  --crypt: #1b1424;
  --nave: #221a2d;
  --nave-hi: #2b2138;
  --lead: #3a2e44;
  --lead-hi: #54445f;
  --stone: #efe6d6;
  --ash: #b9adc0;
  --gold: #d9a84e;
  --gold-hi: #ecc275;
  --lust: #e65a8a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-head: 'IM Fell English', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 600px at 78% -10%, rgba(155, 107, 224, 0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(224, 70, 58, 0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-hi); text-decoration: underline; text-decoration-color: rgba(217, 168, 78, 0.45); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); text-decoration-color: currentColor; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(217, 168, 78, 0.35); color: #fff; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 16px; border-radius: var(--radius-sm); z-index: 100; font-weight: 700; }
.skip-link:focus { left: 16px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--stone); line-height: 1.2; letter-spacing: -0.005em; }
h1 { font-size: 48px; margin: 0 0 16px; }
h2 { font-size: 36px; margin: 0 0 16px; }
h3 { font-size: 22px; margin: 0 0 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(21, 16, 28, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--lead);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--stone); font-family: var(--font-head); font-size: 22px; line-height: 1.2; }
.brand-link:hover { color: #fff; }
.brand-mark { flex: none; transition: transform .6s var(--ease); }
.brand-link:hover .brand-mark { transform: rotate(51.43deg); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav-link { text-decoration: none; color: var(--ash); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); }
.nav-link:hover { color: var(--stone); background: var(--nave); }
.nav-link:first-child { color: var(--night); background: var(--gold); margin-right: 8px; }
.nav-link:first-child:hover { background: var(--gold-hi); color: var(--night); }

/* ---------- hero ---------- */
.tool-hero { position: relative; padding: 48px 0 32px; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(217, 168, 78, 0.16), rgba(155, 107, 224, 0.08) 55%, transparent); pointer-events: none; }
.hero-rose { position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -120px; color: rgba(217, 168, 78, 0.14); pointer-events: none; animation: rose-in 1.6s var(--ease) both; }
@keyframes rose-in { from { opacity: 0; transform: rotate(-12deg) scale(.94); } to { opacity: 1; transform: none; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.hero-copy { padding-top: 32px; }
.hero-copy h1 { font-size: 48px; margin-bottom: 16px; }
.hero-lead { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: var(--ash); max-width: 46ch; }

.sin-chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sin-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 8px; border: 1px solid var(--lead); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--stone); background: rgba(34, 26, 45, 0.6); }
.sin-chips li::before { content: ""; width: 12px; height: 12px; background: var(--sin); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: 0 0 12px var(--sin); }

.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-facts li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--stone); }
.hero-facts svg { width: 24px; height: 24px; color: var(--gold); flex: none; }

/* when results are showing, let the tool take the full width */
.hero-grid:has([data-sds-results]:not([hidden])) { grid-template-columns: 1fr; }
.hero-grid:has([data-sds-results]:not([hidden])) .hero-copy { display: none; }

/* ---------- engage bar ---------- */
.engage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 12px 16px; border-top: 1px solid var(--lead); border-bottom: 1px solid var(--lead); }
.engage-left, .engage-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.engage-btn, .share-btn { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: transparent; border: 1px solid var(--lead-hi); border-radius: 999px; color: var(--stone); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.engage-btn svg { width: 16px; height: 16px; color: var(--lust); }
.engage-btn:hover, .share-btn:hover { border-color: var(--gold); color: #fff; }
.engage-btn[data-gf-liked], .engage-btn[aria-pressed="true"] { background: rgba(230, 90, 138, 0.16); border-color: var(--lust); }
.engage-btn[data-gf-liked] svg { animation: beat .5s var(--ease); }
@keyframes beat { 40% { transform: scale(1.35); } }
.engage-count { color: var(--ash); }
.engage-stat { font-size: 14px; font-weight: 600; color: var(--ash); text-decoration: none; padding: 0 8px; }
.engage-stat:hover { color: var(--stone); }
.share-label, .share-msg { font-size: 14px; font-weight: 600; color: var(--ash); }
.share-msg { color: var(--gold-hi); }


/* ---------- editorial ---------- */
.ed-section { padding: 64px 0; position: relative; }
.ed-section + .ed-section { border-top: 1px solid var(--lead); }
.ed-alt { background: var(--crypt); }
.ed-head { max-width: 760px; margin-bottom: 32px; }
.ed-head p { color: var(--ash); font-size: 18px; margin: 0; max-width: 68ch; }

.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 0 0 16px; }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose li { max-width: 68ch; font-size: 16px; line-height: 1.7; color: var(--stone); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: #fff; font-weight: 700; }
.prose em { color: var(--ash); }
.prose code, .num { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.95em; color: var(--gold-hi); background: rgba(217, 168, 78, 0.1); padding: 0 4px; border-radius: 4px; }
.prose hr { display: none; }

.ed-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.ed-aside { position: sticky; top: 96px; display: grid; gap: 16px; }

.mode-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 32px; padding: 0; list-style: none; }
.mode-pair li { margin: 0; max-width: none; padding: 16px; border: 1px solid var(--lead); border-radius: var(--radius); background: var(--nave); }
.mode-pair b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 22px; color: #fff; margin-bottom: 4px; }
.mode-pair i { display: block; font-style: normal; color: var(--gold-hi); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.mode-pair span { display: block; font-size: 14px; color: var(--ash); line-height: 1.6; }

.scale-card { background: var(--nave); border: 1px solid var(--lead); border-radius: var(--radius); padding: 24px; }
.scale-card h3 { font-size: 22px; margin: 0 0 4px; }
.scale-card > p { margin: 0 0 16px; color: var(--ash); font-size: 14px; }
.scale-card svg { width: 100%; height: auto; display: block; }
.formula { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--night); border: 1px dashed var(--lead-hi); font-size: 14px; color: var(--ash); text-align: center; }
.formula b { color: var(--gold-hi); }

.sample-figure { margin: 0; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: center; background: var(--nave); border: 1px solid var(--lead); border-radius: var(--radius); padding: 32px; }
.sample-figure img { width: 100%; }
.sample-figure figcaption { color: var(--ash); font-size: 14px; }
.sample-figure figcaption p { color: var(--stone); font-size: 16px; }

.shape-grid { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shape-grid li { margin: 0; max-width: none; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--lead); border-radius: var(--radius); background: rgba(34, 26, 45, 0.5); font-size: 14px; color: var(--ash); line-height: 1.6; }
.shape-grid svg { width: 72px; height: 72px; }
.shape-grid strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }

.tier-scale { display: grid; grid-template-columns: 35fr 20fr 20fr 26fr; gap: 4px; margin: 16px 0 8px; }
.tier-scale span { display: block; padding: 12px; border-radius: 4px; font-size: 14px; font-weight: 700; color: var(--night); background: var(--t, var(--lead-hi)); }
.tier-scale small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }
.tier-scale .tier-low { color: var(--stone); }
.tier-mod { --t: color-mix(in srgb, var(--gold) 70%, var(--lead-hi)); }
.tier-ele { --t: var(--gold); }
.tier-dom { --t: var(--lust); }

.table-wrap { overflow-x: auto; margin: 32px 0 48px; border: 1px solid var(--lead); border-radius: var(--radius); }
.table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; font-size: 14px; border-bottom: 1px solid var(--lead); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--nave-hi); color: var(--gold-hi); font-weight: 700; }
.table-wrap td { color: var(--ash); }
.table-wrap td:first-child { color: #fff; font-weight: 700; white-space: nowrap; }
.table-wrap td:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--sin); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.table-wrap tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.sin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sin-card { position: relative; display: flex; flex-direction: column; background: var(--nave); border: 1px solid var(--lead); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.sin-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--sin); opacity: .9; }
.sin-card:hover { border-color: var(--sin); transform: translateY(-4px); }
.sin-card .sin-art { aspect-ratio: 1 / 1; overflow: hidden; background: var(--night); }
.sin-card .sin-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .6s; filter: saturate(.92); }
.sin-card:hover .sin-art img { transform: scale(1.04); filter: saturate(1.1) brightness(1.06); }
.sin-body { padding: 16px 24px 24px; }
.sin-body h3 { font-size: 28px; margin: 0; color: #fff; }
.sin-latin { margin: 0 0 12px !important; font-family: var(--font-head); font-style: italic; color: var(--sin) !important; font-size: 18px !important; }
.sin-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.sin-tags li { margin: 0; font-size: 12px !important; font-weight: 600; color: var(--ash) !important; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--lead-hi); line-height: 1.4 !important; }
.sin-body p { font-size: 14px; line-height: 1.7; color: var(--ash); margin: 0; }
.sin-card--feature { grid-column: span 2; flex-direction: row; }
.sin-card--feature .sin-art { aspect-ratio: auto; flex: 0 0 42%; }
.sin-card--feature .sin-body { padding: 32px; align-self: center; }
.sin-card--feature .sin-body h3 { font-size: 36px; }
.sin-card--feature .sin-body p { font-size: 16px; color: var(--stone); }
.sin-root { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--night); background: var(--gold); padding: 4px 8px; border-radius: 4px; }

.virtue-banner { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--lead); background: var(--night); }
.virtue-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 55%; }
.virtue-ledger { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.virtue-ledger li { margin: 0; max-width: none; display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "from arrow to" "text text text"; align-items: center; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--lead); }
.v-from { grid-area: from; font-size: 14px; font-weight: 700; color: var(--sin) !important; }
.v-arrow { grid-area: arrow; width: 24px; height: 2px; background: linear-gradient(90deg, var(--sin), var(--gold)); position: relative; }
.v-arrow::after { content: ""; position: absolute; right: -2px; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--gold); }
.v-to { grid-area: to; font-family: var(--font-head); font-weight: 400 !important; font-size: 22px; color: var(--gold-hi) !important; }
.virtue-ledger p { grid-area: text; margin: 0 !important; font-size: 14px !important; color: var(--ash) !important; }
.ed-close { margin-top: 16px; padding: 24px; border-left: 2px solid var(--gold); background: rgba(217, 168, 78, 0.06); border-radius: 0 var(--radius) var(--radius) 0; }
.ed-close p { margin: 0; }


/* ---------- FAQ ---------- */
.faq-section { padding: 64px 0; border-top: 1px solid var(--lead); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq-aside { position: sticky; top: 96px; }
.faq-aside h2 { font-size: 36px; }
.section-sub { margin: 0; font-size: 16px; color: var(--ash); max-width: 60ch; }
.faq-candle { width: 120px; height: 160px; margin-top: 32px; }
.faq-flame { transform-origin: 60px 60px; animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.04, .96) rotate(-2deg); } 60% { transform: scale(.97, 1.04) rotate(1.5deg); } }
.faq-list { border-top: 1px solid var(--lead); }
.faq-item { border-bottom: 1px solid var(--lead); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 22px; transition: color .2s; }
.faq-item summary:hover h3 { color: var(--gold-hi); }
.faq-icon { flex: none; position: relative; width: 32px; height: 32px; border: 1px solid var(--lead-hi); border-radius: 50%; transition: transform .3s var(--ease), border-color .2s, background .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--gold); border-radius: 2px; }
.faq-icon::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { background: var(--gold); border-color: var(--gold); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--night); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { margin: 0 0 24px; padding-right: 48px; color: var(--ash); max-width: 68ch; }
.faq-item[open] p { animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- comments ---------- */
.comments-section { padding: 64px 0; background: var(--crypt); border-top: 1px solid var(--lead); }
.section-header { margin-bottom: 32px; max-width: 760px; }
.section-header h2 { margin: 0 0 8px; }
.comments-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.comment-form { background: var(--nave); border: 1px solid var(--lead); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--stone); }
.form-field input, .form-field textarea { width: 100%; padding: 12px; font-family: var(--font-body); font-size: 16px; color: var(--stone); background: var(--night); border: 1px solid var(--lead-hi); border-radius: var(--radius-sm); transition: border-color .2s; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ash); opacity: .7; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); outline: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.btn-primary { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; background: var(--gold); border: 1px solid var(--gold); border-radius: 999px; color: var(--night); font-family: var(--font-body); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--night); }
.btn-primary:active { transform: translateY(1px); }
.link-btn { appearance: none; background: transparent; border: none; padding: 4px 0; color: var(--gold-hi); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.comments-list { display: flex; flex-direction: column; gap: 16px; }
.comments-empty-note, .comments-off-note, .owner-badge { display: none; }
[data-gf-comments][data-gf-empty] .comments-empty-note { display: block; margin: 0; padding: 32px; border: 1px dashed var(--lead-hi); border-radius: var(--radius); color: var(--ash); text-align: center; }
[data-gf-comments][data-gf-off] .comments-off-note { display: block; margin: 0; color: var(--ash); }
.comment-item { background: var(--nave); border: 1px solid var(--lead); border-radius: var(--radius); padding: 16px 24px; }
[data-gf-owner] { border-color: var(--gold); }
[data-gf-owner] .owner-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; background: var(--gold); color: var(--night); font-size: 12px; font-weight: 700; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.comment-author { color: #fff; }
.comment-time, .reply-to, .comment-msg { font-size: 12px; color: var(--ash); }
.comment-body { margin: 0 0 8px; white-space: pre-wrap; color: var(--stone); }
.comment-replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--lead-hi); display: flex; flex-direction: column; gap: 12px; }
.reply-item { background: var(--night); border: 1px solid var(--lead); border-radius: var(--radius-sm); padding: 12px 16px; }
.reply-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; margin-bottom: 12px; background: var(--night); border-radius: var(--radius-sm); font-size: 14px; }

/* ---------- inner pages ---------- */
.page-section { padding: 48px 0 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ash); margin: 0 auto 24px; max-width: 760px; }
.breadcrumb a { color: var(--ash); }
.legal-folio { position: relative; max-width: 760px; margin: 0 auto; background: var(--crypt); border: 1px solid var(--lead); border-radius: var(--radius); padding: 48px; }
.legal-folio::before { content: ""; position: absolute; top: -12px; left: 48px; width: 24px; height: 24px; background: var(--night); border: 1px solid var(--gold); clip-path: polygon(50% 0, 97% 22%, 100% 66%, 72% 100%, 28% 100%, 0 66%, 3% 22%); }
.page-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--lead); }
.page-head h1 { font-size: 48px; }
.page-lead { margin: 0; font-size: 18px; color: var(--ash); max-width: 62ch; }
.prose-folio p, .prose-folio li { max-width: 68ch; line-height: 1.7; color: var(--stone); }
.prose-folio p { margin: 0 0 16px; }
.prose-folio h2 { font-size: 28px; margin: 48px 0 12px; }
.prose-folio h3 { margin: 32px 0 8px; }
.prose-folio ul, .prose-folio ol { padding-left: 24px; margin: 0 0 24px; }
.prose-folio li::marker { color: var(--gold); }
.prose-folio strong { color: #fff; }
.prose-folio img { border-radius: var(--radius); border: 1px solid var(--lead); margin: 24px 0; }
.prose-folio table { width: 100%; border-collapse: collapse; margin: 24px 0; display: block; overflow-x: auto; }
.prose-folio th, .prose-folio td { padding: 12px; border-bottom: 1px solid var(--lead); text-align: left; font-size: 14px; }
.prose-folio th { color: var(--gold-hi); }
.prose-folio hr { border: 0; height: 1px; background: var(--lead); margin: 32px 0; }
.inline-faq { margin-top: 48px; }
.inline-faq .faq-grid { display: grid; gap: 16px; }
.faq-card { background: var(--nave); border: 1px solid var(--lead); border-radius: var(--radius); padding: 24px; }
.faq-card h3 { margin: 0 0 8px; font-size: 22px; }
.faq-card p { margin: 0; color: var(--ash); }
.back-cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--lead); }
.not-found-box { text-align: center; }
.not-found-box .nf-art { width: 200px; margin: 0 auto 24px; }
.not-found-box .page-lead { margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--crypt); border-top: 1px solid var(--lead); padding: 64px 0 32px; }
.footer-rose { position: absolute; width: 520px; height: 520px; right: -120px; bottom: -200px; color: rgba(217, 168, 78, 0.12); pointer-events: none; }
.footer-inner { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--lead); }
.footer-brand { font-size: 28px; }
.footer-disclaimer { margin: 12px 0 24px; font-size: 14px; color: var(--ash); max-width: 60ch; }
.footer-sins { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; font-size: 14px; color: var(--ash); }
.footer-sins li { display: inline-flex; align-items: center; gap: 8px; }
.footer-sins li::before { content: ""; width: 8px; height: 8px; background: var(--sin); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.footer-heading { margin: 0 0 12px; font-family: var(--font-head); font-size: 22px; color: var(--stone); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ash); }
.footer-links a:hover { color: var(--gold-hi); }
.footer-bottom { position: relative; padding-top: 24px; }
.footer-copy { margin: 0; font-size: 12px; color: var(--ash); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-top: 0; }
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 24px; }
  .ed-split, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .ed-aside, .faq-aside { position: static; }
  .faq-candle { display: none; }
  .sin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-figure { grid-template-columns: 1fr; }
  .shape-grid { grid-template-columns: 1fr; }
  .comments-wrap { grid-template-columns: 1fr; }
  .comment-form { position: static; }
  .hero-rose { width: 520px; height: 520px; right: -200px; top: -80px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 56px; }
  .brand-name { font-size: 18px; }
  .site-nav .nav-link:not(:first-child) { display: none; }
  .nav-link:first-child { margin-right: 0; }
  h1, .hero-copy h1, .page-head h1 { font-size: 36px; }
  h2, .faq-aside h2 { font-size: 28px; }
  .tool-hero { padding: 24px 0; }
  .hero-lead { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; }
  .sin-chips { gap: 4px; }
  .sin-chips li { font-size: 12px; padding: 4px 8px 4px 8px; }
  .ed-section, .faq-section, .comments-section { padding: 48px 0; }
  .mode-pair, .virtue-ledger { grid-template-columns: 1fr; }
  .sin-grid { grid-template-columns: 1fr; }
  .sin-card--feature { grid-column: auto; flex-direction: column; }
  .sin-card--feature .sin-art { aspect-ratio: 1 / 1; }
  .sin-card--feature .sin-body { padding: 16px 24px 24px; }
  .sin-card--feature .sin-body h3 { font-size: 28px; }
  .sample-figure { padding: 16px; }
  .tier-scale { grid-template-columns: 1fr 1fr; }
  .engage-bar { padding: 12px 0; }
  .engage-share .share-label { width: 100%; }
  .btn-primary { width: 100%; }
  .legal-folio { padding: 32px 16px; }
  .faq-item summary h3 { font-size: 18px; }
  .faq-item p { padding-right: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

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


/* ---------- refinements ---------- */
@font-face { font-family: 'Lining Figures'; src: local('Baskerville'), local('Times New Roman'), local('TimesNewRomanPSMT'), local('Noto Serif'), local('Liberation Serif'), local('DejaVu Serif'); unicode-range: U+0030-0039; size-adjust: 92%; }
:root { --font-head: 'Lining Figures', 'IM Fell English', 'Iowan Old Style', Georgia, serif; }
.prose .mode-pair, .prose .sin-tags, .prose .virtue-ledger, .prose .shape-grid { padding-left: 0; }
.prose .sin-tags { margin: 0 0 12px; }
.prose .sin-tags li { margin: 0; }
.sin-card--feature .sin-art { flex-basis: 36%; }
.sds-tool .sds-likert-btn { display: grid; grid-template-rows: 56px auto; justify-items: center; align-items: center; gap: 8px; }
.sds-tool .sds-likert-btn .sds-dot, .sds-tool .sds-likert-btn.is-mid .sds-dot, .sds-tool .sds-likert-btn.is-neg .sds-dot, .sds-tool .sds-likert-btn.is-far .sds-dot { margin-top: 0; }
.sds-tool .sds-likert-label { align-self: start; }
.sds-tool .sds-q-text { min-height: 2.8em; }
@media (max-width: 640px) {
  .sds-tool .sds-likert-btn { grid-template-rows: 48px auto; }
  .sds-tool .sds-q-text { min-height: 4em; }
}


@media (max-width: 640px) {
  .hero-grid { gap: 24px; }
  .hero-copy h1 { margin-bottom: 8px; }
  .hero-lead { margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-copy .sin-chips, .hero-copy .hero-facts { display: none; }
  .sds-tool .sds-topbar { margin-bottom: 16px; gap: 8px; }
  .sds-tool .sds-progress { margin-bottom: 16px; }
  .hero-rose { opacity: .6; }
}
.sds-tool .sds-rose { width: 80px; height: 80px; }
@media (max-width: 640px) { .sds-tool .sds-rose { width: 56px; height: 56px; } }


.sds-tool .sds-arch-sub { line-height: 1.25; }
@media (max-width: 640px) {
  .sds-tool .sds-verdict { grid-template-columns: 112px 1fr; gap: 16px; }
  .sds-tool .sds-arch-title { font-size: 44px; }
  .sds-tool .sds-arch-sub { font-size: 18px; }
  .sds-tool .sds-verdict-summary { font-size: 14px; }
  .sds-tool .sds-pill { font-size: 12px; padding: 4px 12px; }
  .sds-tool .sds-radar-card { padding: 16px 8px; }
  .sds-radar-svg g text:first-child { font-size: 15px; }
  .sds-radar-svg g text:last-child { font-size: 18px; }
}


.legal-folio::before { top: -9px; width: 18px; height: 18px; background: var(--gold); border: 0; }
.prose-folio code { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.95em; color: var(--gold-hi); background: rgba(217, 168, 78, 0.1); padding: 0 4px; border-radius: 4px; }
