/*
 * Thought.global — How Thought Works, the illustrated journey. Scoped to body.thh-page / main.thh; /how-thought-works/
 * only. Values are the design language's (thought/docs/THOUGHT-DESIGN-LANGUAGE.md), copied, never shared files.
 * Gold = a link the record keeps. Dotted = not recorded. A dashed window = kept apart on purpose.
 */

@font-face {
	font-family: "Thought Display";
	src: url("../../../home/assets/fonts/fraunces-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.thh-page {
	--thh-night-0: #060a15; --thh-night-1: #0b1426; --thh-night-2: #121d36; --thh-line: #2a3a5e;
	--thh-plum-0: #170f20; --thh-plum-1: #241a33; --thh-plum-2: #2a1d3a;
	--thh-lilac: #b9a7da; --thh-gold: #c9a35e; --thh-gold-hi: #e3c58c; --thh-gold-ink: #7a5a20; --thh-gold-deep: #b8893e;
	--thh-parch: #f4efe4; --thh-parch-2: #ece4d4; --thh-paper: #fffdf8; --thh-dawn: #f3e6dc; --thh-ink: #1d1a26; --thh-ink-2: #4a4453; --thh-ink-3: #676070; --thh-rule: #ddd3c0;
	--thh-bone: #f1ede4; --thh-bone-2: #d2cbbb; --thh-bone-3: #a6aec0; --thh-moon: #f3ead2;
	--thh-conflict: #d4726d; --thh-tension: #a189cf; --thh-support: #6f9bd6; --thh-convergence: #5fb489; --thh-leaves: #dcab7c;
	--thh-display: "Thought Display", "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
	--thh-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--thh-ease: cubic-bezier(.2, .7, .2, 1); --thh-spring: cubic-bezier(.34, 1.56, .64, 1);
	--thh-gutter: clamp(18px, 4vw, 48px);
	background: var(--thh-night-0);
}

/* ---------- the shared nav, in night (recolour only) ---------- */
body.thh-page.flavor-thought .sh-thought-nav { background: rgba(6, 10, 21, .92); color: var(--thh-bone); border-bottom: 1px solid rgba(241, 237, 228, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.thh-page.flavor-thought .sh-thought-nav a,
body.thh-page.flavor-thought .sh-thought-nav-links > li > a,
body.thh-page.flavor-thought .sh-thought-nav-group-link,
body.thh-page.flavor-thought .sh-thought-nav-group-toggle,
body.thh-page.flavor-thought .sh-thought-nav-group-label { color: var(--thh-bone) !important; }
body.thh-page.flavor-thought .sh-thought-nav-brand { font-family: var(--thh-display) !important; font-weight: 450; }
body.thh-page.flavor-thought .sh-thought-nav-links a:hover,
body.thh-page.flavor-thought .sh-thought-nav-links a:focus,
body.thh-page.flavor-thought .sh-thought-nav-group-link:hover,
body.thh-page.flavor-thought .sh-thought-nav-group-toggle:hover,
body.thh-page.flavor-thought .sh-thought-nav-group.is-open .sh-thought-nav-group-toggle { background: rgba(241, 237, 228, .09); }
body.thh-page.flavor-thought .sh-thought-nav-links > li > a[aria-current="page"],
body.thh-page.flavor-thought .sh-thought-nav-group.is-current > .sh-thought-nav-split { background: rgba(241, 237, 228, .1); box-shadow: inset 0 -2px 0 var(--thh-gold); }
body.thh-page.flavor-thought .sh-thought-nav-menu a,
body.thh-page.flavor-thought .sh-thought-nav-menu a strong { color: var(--thought-ink, #191918) !important; }
body.thh-page.flavor-thought .sh-thought-nav-search input { background: rgba(241, 237, 228, .06) !important; border-color: rgba(241, 237, 228, .24) !important; color: var(--thh-bone) !important; }
body.thh-page.flavor-thought .sh-thought-nav-search input::placeholder { color: var(--thh-bone-3); }
body.thh-page.flavor-thought .sh-thought-nav-search button { background: var(--thh-gold) !important; border-color: var(--thh-gold) !important; color: var(--thh-night-0) !important; }
body.thh-page.flavor-thought .sh-thought-nav.is-enhanced .sh-thought-nav-toggle { background: rgba(241, 237, 228, .06); border-color: rgba(241, 237, 228, .3); color: var(--thh-bone); }
body.thh-page.flavor-thought .sh-thought-nav :focus-visible { outline: 2px solid var(--thh-gold-hi) !important; outline-offset: 2px; }
@media (max-width: 1023px) {
	body.thh-page.flavor-thought .sh-thought-nav-menu { background: transparent; }
	body.thh-page.flavor-thought .sh-thought-nav-menu a, body.thh-page.flavor-thought .sh-thought-nav-menu a strong { color: var(--thh-bone) !important; }
	body.thh-page.flavor-thought .sh-thought-nav-menu a span { color: var(--thh-bone-3) !important; }
	body.thh-page.flavor-thought .sh-thought-nav-menu a { background: rgba(241, 237, 228, .06) !important; box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .1); }
	body.thh-page.flavor-thought .sh-thought-nav-menu a:hover, body.thh-page.flavor-thought .sh-thought-nav-menu a:focus-visible { background: rgba(241, 237, 228, .11) !important; }
	body.thh-page.flavor-thought .sh-thought-nav-menu a[aria-current="page"] { background: rgba(241, 237, 228, .12) !important; box-shadow: inset 3px 0 0 #c9a35e, inset 0 0 0 1px rgba(241, 237, 228, .12); }
}

/* ---------- foundation ---------- */
body.thh-page main#content.thh { width: auto; max-width: none; margin: 0; padding: 0; }
.thh:focus { outline: none; }
.thh { --thh-lane: 14px; display: block; overflow-x: clip; color: var(--thh-bone); background: var(--thh-night-0); font: 400 17px/1.6 var(--thh-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.thh *, .thh *::before, .thh *::after { box-sizing: border-box; }
.thh img { max-width: 100%; display: block; }
.thh a { color: inherit; text-underline-offset: 3px; }
.thh :focus-visible { outline: 2px solid var(--thh-gold-hi) !important; outline-offset: 3px; border-radius: 6px; }
.thh :is(.thh-ch--paper, .thh-ch--parch, .thh-ch--dawn) :focus-visible { outline-color: var(--thh-ink) !important; }
.thh .thh-wrap { width: min(1200px, 100% - 2 * var(--thh-gutter)); margin-inline: auto; }
.thh [id] { scroll-margin-top: 80px; }
.thh h1, .thh h2, .thh h3 { margin: 0; font-family: var(--thh-display); font-weight: 420; font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 96; letter-spacing: -.012em; text-wrap: balance; color: inherit; text-transform: none; }
.thh h3 { font-size: clamp(1.12rem, 1rem + .45vw, 1.4rem); line-height: 1.25; font-variation-settings: "SOFT" 30, "opsz" 36; }
.thh p { margin: 0; }
.thh ul, .thh ol { margin: 0; padding: 0; list-style: none; }
.thh li { margin: 0; }
.thh figure, .thh blockquote, .thh dl, .thh dd { margin: 0; padding: 0; border: 0; background: none; quotes: none; }
.thh blockquote::before, .thh blockquote::after { content: none; }
.thh button { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.thh button:hover, .thh button:focus { background: none; box-shadow: none; color: inherit; }
.thh .thh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* glyphs (the Brain's vocabulary) */
.thh .thh-glyph, .thh .thh-btn-glyph, .thh .thh-seal-spark, .thh .thh-inline-glyph { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.thh svg .sh-brain-glyph__ring, .thh svg .sh-brain-glyph__open { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.thh svg .sh-brain-glyph__open { stroke-dasharray: 4.2 3.6; }
.thh svg .sh-brain-glyph__cut { fill: none; stroke: var(--thh-glyph-cut, var(--thh-night-1)); stroke-width: 1.7; stroke-linecap: round; }
.thh .thh-glyph--debate path:last-child, .thh .thh-mini-node[data-part="debate"] path:last-child, .thh .thh-hero-mark path:last-child { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.thh .thh-glyph--probe path, .thh .thh-glyph--probe circle { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.thh .thh-glyph--question circle { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-dasharray: 4.2 3.6; }

/* type */
.thh .thh-eyebrow { display: inline-flex; align-items: center; gap: .55em; margin: 0 0 16px; font: 700 12.5px/1.25 var(--thh-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--thh-gold); }
.thh .thh-eyebrow .thh-glyph { width: 17px; height: 17px; }
.thh .thh-lead { max-width: 62ch; margin-top: 16px; font-size: clamp(1.03rem, .98rem + .3vw, 1.16rem); line-height: 1.62; color: var(--thh-ink-2); }
.thh :is(.thh-hero, .thh-ch--night, .thh-ch--plum) .thh-lead { color: #d7d0c1; }
.thh .thh-ch-title { font-size: clamp(2.1rem, 1.2rem + 2.7vw, 3.7rem); line-height: 1.04; font-weight: 400; font-variation-settings: "SOFT" 70, "WONK" 0, "opsz" 144; letter-spacing: -.02em; }
.thh .thh-ch-title em { font-style: normal; color: var(--thh-gold-deep); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.thh :is(.thh-ch--night, .thh-ch--plum) .thh-ch-title em { color: var(--thh-gold-hi); }
.thh .thh-head { position: relative; max-width: 820px; margin-bottom: clamp(30px, 4vw, 50px); }
.thh .thh-kind { margin: 0 0 8px; font: 700 11.5px/1.3 var(--thh-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--thh-gold-ink); }
.thh :is(.thh-ch--night, .thh-ch--plum) .thh-kind { color: var(--thh-gold); }
.thh .thh-note, .thh .thh-fine { display: flex; gap: 9px; align-items: flex-start; max-width: 66ch; margin-top: 22px; color: var(--thh-ink-3); font-size: 14px; line-height: 1.55; }
.thh .thh-note .thh-glyph, .thh .thh-fine .thh-glyph { width: 15px; height: 15px; margin-top: 3px; color: var(--thh-gold); --thh-glyph-cut: var(--thh-night-0); }
.thh .thh-fine { color: var(--thh-bone-3); font-size: 13.5px; }

/* buttons */
.thh .thh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.thh .thh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; max-width: 100%; margin: 0; padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent; font: 650 15.5px/1.25 var(--thh-sans); text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s var(--thh-ease), background-color .18s var(--thh-ease), border-color .18s var(--thh-ease), color .18s var(--thh-ease); }
.thh .thh-btn:hover { transform: translateY(-2px); }
.thh .thh-btn--moon, .thh .thh-btn--moon:hover, .thh .thh-btn--moon:focus { background: var(--thh-moon); color: var(--thh-night-1); }
.thh .thh-btn--moon:hover { background: #fff7e2; }
.thh .thh-btn--line, .thh .thh-btn--line:focus { border-color: rgba(241, 237, 228, .42); color: var(--thh-bone); background: rgba(241, 237, 228, .04); }
.thh .thh-btn--line:hover { border-color: var(--thh-bone); background: rgba(241, 237, 228, .1); color: var(--thh-bone); }
.thh .thh-btn--ink, .thh .thh-btn--ink:focus { background: var(--thh-ink); color: var(--thh-parch); }
.thh .thh-btn--ink:hover { background: #2c2838; color: var(--thh-parch); }
.thh .thh-btn-glyph { width: 18px; height: 18px; transition: transform .18s var(--thh-ease); }
.thh .thh-btn:hover .thh-btn-glyph--arrow { transform: translateX(2px); }
.thh .thh-btn:hover .thh-btn-glyph--down { transform: translateY(2px); }

/* the record line */
.thh .thh-record { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: clamp(30px, 4vw, 44px); padding-top: 16px; border-top: 1px solid var(--thh-rule); }
.thh .thh-record li { display: flex; align-items: baseline; gap: 7px; color: var(--thh-ink-2); font-size: 14.5px; }
.thh .thh-record .thh-glyph { width: 15px; height: 15px; align-self: center; color: var(--thh-gold-ink); --thh-glyph-cut: var(--thh-parch); }
.thh .thh-record b { font: 500 21px/1 var(--thh-display); font-variation-settings: "opsz" 36; color: var(--thh-ink); font-variant-numeric: tabular-nums lining-nums; }

/* ---------- chapters on the thread (contract §4) ---------- */
.thh .thh-ch { position: relative; padding: 0 0 clamp(72px, 8vw, 118px); color: var(--thh-ink); }
.thh .thh-ch--paper { background: var(--thh-paper); --thh-cut: var(--thh-paper); }
.thh .thh-ch--parch { background: var(--thh-parch); --thh-cut: var(--thh-parch); }
.thh .thh-ch--night { background: radial-gradient(1100px 520px at 78% 18%, rgba(74, 53, 87, .34), transparent 70%), linear-gradient(var(--thh-night-1), var(--thh-night-0)); color: var(--thh-bone); --thh-cut: var(--thh-night-1); }
.thh .thh-ch--plum { background: radial-gradient(900px 480px at 12% 8%, rgba(201, 163, 94, .13), transparent 70%), radial-gradient(800px 600px at 70% 60%, rgba(120, 80, 150, .16), transparent 70%), linear-gradient(var(--thh-plum-2), var(--thh-plum-1) 30%, var(--thh-plum-0)); color: var(--thh-bone); --thh-cut: var(--thh-plum-1); }
.thh .thh-ch--dawn { background: radial-gradient(900px 520px at 80% 0%, rgba(248, 205, 170, .42), transparent 70%), linear-gradient(var(--thh-dawn), var(--thh-parch)); --thh-cut: var(--thh-dawn); }
.thh .thh-seam { position: relative; height: clamp(96px, 10vw, 140px); margin-bottom: clamp(14px, 3vw, 34px); color: var(--thh-from, var(--thh-night-0)); }
.thh .thh-seam-edge { position: absolute; inset: -1px 0 0; display: block; width: 100%; height: calc(100% + 1px); }
.thh .thh-seam-edge path { fill: currentColor; }
.thh .thh-seal { position: absolute; left: 50%; top: 40%; z-index: 4; display: grid; place-items: center; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 34%, #1f2a48, #0b1426 72%); box-shadow: 0 0 0 1.5px var(--thh-gold), 0 0 0 5px rgba(11, 20, 38, .9), 0 0 0 6px rgba(201, 163, 94, .45), 0 12px 30px -12px rgba(0, 0, 0, .7); color: var(--thh-gold-hi); transition: box-shadow .6s var(--thh-ease); }
.thh .thh-seal-n { display: grid; place-items: center; font: 500 19px/1 var(--thh-display); font-variation-settings: "opsz" 48, "SOFT" 50; letter-spacing: .02em; }
.thh .thh-seal-spark { width: 20px; height: 20px; }
.thh .thh-seal.is-lit { box-shadow: 0 0 0 1.5px var(--thh-gold-hi), 0 0 0 5px rgba(11, 20, 38, .9), 0 0 0 6px rgba(227, 197, 140, .75), 0 0 34px 8px rgba(227, 197, 140, .38); }
.thh .thh-placename { position: absolute; left: 50%; bottom: 8px; z-index: 4; transform: translateX(-50%); color: var(--thh-gold-ink); font: 700 11.5px/1.2 var(--thh-sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.thh :is(.thh-ch--night, .thh-ch--plum) .thh-placename { color: var(--thh-gold); }
.thh .thh-ch-in { position: relative; }
.thh.th-has-thread .thh-ch-in { z-index: 3; }
.thh .thh-mark { position: relative; display: flex; align-items: center; gap: .65em; margin: 0 0 20px; color: var(--thh-gold-ink); font: 700 12.5px/1.2 var(--thh-sans); letter-spacing: .17em; text-transform: uppercase; }
.thh :is(.thh-ch--night, .thh-ch--plum) .thh-mark { color: var(--thh-gold); }
.thh .thh-num { padding-right: .7em; border-right: 1px solid currentColor; font: 500 15px/1 var(--thh-display); letter-spacing: .04em; }
.thh .thh-mark .thh-glyph { width: 18px; height: 18px; --thh-glyph-cut: var(--thh-cut, var(--thh-paper)); }
.thh .thh-lane-star { display: none; }
@media (min-width: 1100px) {
	.thh .thh-ch-in { padding-left: 64px; }
	.thh .thh-lane-star { display: block; position: absolute; left: calc(var(--thh-lane) - 64px); top: 50%; width: 16px; height: 16px; margin-top: -8px; transform: translateX(-50%) rotate(45deg); border-radius: 3px; background: var(--thh-night-1); box-shadow: 0 0 0 1.5px var(--thh-gold), 0 0 0 4px rgba(201, 163, 94, .14); transition: box-shadow .5s var(--thh-ease), background-color .5s var(--thh-ease); }
	.thh .thh-lane-star.is-lit { background: var(--thh-gold-hi); box-shadow: 0 0 0 1.5px var(--thh-gold-hi), 0 0 0 5px rgba(227, 197, 140, .25), 0 0 18px rgba(227, 197, 140, .6); }
}
.thh .thh-grid { display: grid; gap: clamp(22px, 3.4vw, 46px); align-items: start; }
@media (min-width: 960px) { .thh .thh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- hero ---------- */
.thh .thh-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 5vw, 70px) 0 clamp(120px, 12vw, 160px); background: radial-gradient(120% 90% at 80% 30%, #172648 0%, var(--thh-night-0) 62%); }
.thh .thh-sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.thh .thh-star { fill: var(--thh-bone); }
.thh .thh-hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.thh .thh-hero-thread { fill: none; stroke: var(--thh-gold); stroke-width: 1.8; stroke-linecap: round; stroke-opacity: .8; }
.thh .thh-hero-dots { fill: none; stroke: var(--thh-bone-3); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .01 9; stroke-opacity: .6; }
.thh .thh-hero-plate { fill: var(--thh-night-1); stroke: rgba(227, 197, 140, .45); stroke-width: 1.2; }
.thh .thh-hero-mark { color: var(--thh-gold-hi); fill: var(--thh-gold-hi); --thh-glyph-cut: var(--thh-night-1); }
.thh .thh-hero-in { position: relative; max-width: 1200px; }
.thh .thh-crumbs { margin-bottom: clamp(26px, 4vw, 48px); }
.thh .thh-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--thh-bone-3); font: 600 12.5px/1.3 var(--thh-sans); letter-spacing: .04em; }
.thh .thh-crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(166, 174, 192, .5); }
.thh .thh-crumbs a { color: var(--thh-bone-2); text-decoration: none; }
.thh .thh-crumbs a:hover { color: var(--thh-bone); text-decoration: underline; }
.thh .thh-hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5.2rem); line-height: 1; font-weight: 370; font-variation-settings: "SOFT" 70, "WONK" 0, "opsz" 144; letter-spacing: -.026em; color: var(--thh-bone); }
.thh .thh-hero h1 em { display: block; font-style: normal; font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; color: var(--thh-gold-hi); }
.thh .thh-hero-poem { max-width: 46ch; margin-top: 24px; color: var(--thh-moon); font: 400 clamp(1.12rem, 1rem + .5vw, 1.36rem)/1.5 var(--thh-display); font-style: italic; font-variation-settings: "SOFT" 80, "opsz" 24; }
.thh .thh-hero .thh-lead { max-width: 52ch; }
.thh .thh-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 10px; color: var(--thh-bone-2); font: 600 12px/1 var(--thh-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.thh .thh-cue .thh-glyph { width: 18px; height: 18px; }
@media (max-width: 1099px) { .thh .thh-hero-art { opacity: .32; } }
@media (max-width: 680px) { .thh .thh-hero-art { display: none; } .thh .thh-hero .thh-actions .thh-btn { width: 100%; } }

/* ---------- I · what Thought is ---------- */
.thh .thh-compare { display: grid; gap: 16px; }
@media (min-width: 860px) { .thh .thh-compare { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.thh .thh-compare-col { padding: 22px 24px; border-radius: 22px; background: rgba(255, 253, 248, .55); box-shadow: 0 0 0 1px var(--thh-rule); }
.thh .thh-compare-col.is-thought { background: var(--thh-paper); box-shadow: 0 0 0 1.5px var(--thh-gold), 0 18px 40px -30px rgba(29, 26, 38, .45); }
.thh .thh-compare-label { margin-bottom: 14px; color: var(--thh-gold-ink); font: 700 11.5px/1.3 var(--thh-sans); letter-spacing: .14em; text-transform: uppercase; }
.thh .thh-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.thh .thh-chain li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(29, 26, 38, .05); font-size: 14.5px; --thh-glyph-cut: var(--thh-paper); }
.thh .thh-chain li .thh-glyph { width: 17px; height: 17px; color: var(--thh-gold-deep); }
.thh .thh-chain li + li::before { content: "→"; margin: 0 4px 0 -4px; color: var(--thh-gold-deep); }
.thh .thh-chain--plain li { background: transparent; box-shadow: inset 0 0 0 1px var(--thh-rule); color: var(--thh-ink-2); }
.thh .thh-chain .is-gone { color: var(--thh-ink-3); box-shadow: inset 0 0 0 1px var(--thh-rule); text-decoration: line-through; text-decoration-color: rgba(103, 96, 112, .5); }

/* ---------- II · the miniature Brain ---------- */
.thh .thh-mini { display: grid; gap: clamp(16px, 2.6vw, 30px); align-items: center; padding: clamp(14px, 2vw, 24px); border-radius: 28px; background: radial-gradient(80% 90% at 30% 40%, rgba(27, 41, 80, .55), rgba(6, 10, 21, .25) 75%); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .1); }
@media (min-width: 960px) { .thh .thh-mini { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.thh .thh-mini-sky svg { display: block; width: 100%; height: auto; overflow: visible; }
.thh .thh-mini-window { fill: rgba(111, 155, 214, .06); stroke: rgba(111, 155, 214, .55); stroke-width: 1.3; stroke-dasharray: 5 6; }
.thh text.thh-mini-zone { fill: var(--thh-bone-3); font: 700 11px/1 var(--thh-sans); letter-spacing: .14em; }
.thh .thh-mini-link { stroke-width: 2; stroke-linecap: round; transition: stroke-opacity .35s var(--thh-ease), stroke-width .35s var(--thh-ease); }
.thh .thh-mini-link.is-rec { stroke: var(--thh-gold); stroke-opacity: .55; }
.thh .thh-mini-link.is-con { stroke: var(--thh-bone-3); stroke-opacity: .55; stroke-dasharray: .01 8; stroke-width: 3; }
.thh .thh-mini-link.is-on { stroke-opacity: 1; stroke-width: 3; }
.thh .thh-mini-node { cursor: pointer; color: var(--thh-gold-hi); fill: var(--thh-gold-hi); --thh-glyph-cut: var(--thh-night-1); }
.thh .thh-mini-node[data-part="thinker"] { color: var(--thh-bone); fill: var(--thh-bone); }
.thh .thh-mini-node[data-part="observed"] { color: var(--thh-support); fill: var(--thh-support); }
.thh .thh-mini-node[data-part="probe"] { color: var(--thh-bone-2); fill: var(--thh-bone-2); }
.thh .thh-mini-halo { fill: rgba(227, 197, 140, 0); transition: fill .35s var(--thh-ease); }
.thh .thh-mini-plate { fill: var(--thh-night-1); stroke: rgba(241, 237, 228, .2); stroke-width: 1; transition: stroke .35s var(--thh-ease); }
.thh .thh-mini-node.is-on .thh-mini-halo { fill: rgba(227, 197, 140, .2); }
.thh .thh-mini-node.is-on .thh-mini-plate { stroke: var(--thh-gold-hi); stroke-width: 2; }
.thh .thh-mini-node:hover .thh-mini-plate { stroke: var(--thh-gold-hi); }
.thh text.thh-mini-label { fill: var(--thh-bone-2); stroke: none; font: 650 14px/1 var(--thh-sans); }
.thh .thh-mini-node.is-on text.thh-mini-label { fill: var(--thh-bone); }
.thh .thh-mini-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.thh .thh-mini-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(241, 237, 228, .06); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .14); color: var(--thh-bone-2); font: 650 14px/1.2 var(--thh-sans); --thh-glyph-cut: var(--thh-night-1); }
.thh .thh-mini-tabs [role="tab"] .thh-glyph { width: 19px; height: 19px; color: var(--thh-gold-hi); }
.thh .thh-mini-tabs [role="tab"]:hover { background: rgba(241, 237, 228, .1); color: var(--thh-bone); }
.thh .thh-mini-tabs [role="tab"][aria-selected="true"] { background: var(--thh-moon); color: var(--thh-night-1); box-shadow: none; --thh-glyph-cut: var(--thh-moon); }
.thh .thh-mini-tabs [role="tab"][aria-selected="true"] .thh-glyph { color: var(--thh-gold-deep); }
html:not(.thh-js) .thh .thh-mini-tabs { display: none; }
html:not(.thh-js) .thh .thh-mini-node { cursor: default; }
.thh .thh-part { padding: 22px 24px; border-radius: 22px; background: linear-gradient(180deg, #fffdf8, #f6efe1); color: var(--thh-ink); box-shadow: 0 0 0 1px var(--thh-rule), 0 24px 50px -36px rgba(0, 0, 0, .9); --thh-glyph-cut: var(--thh-paper); }
.thh .thh-part[hidden] { display: none; }
html:not(.thh-js) .thh .thh-part[hidden] { display: block; }
html:not(.thh-js) .thh .thh-part + .thh-part { margin-top: 12px; }
.thh .thh-part h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 1.4rem; }
.thh .thh-part h3 .thh-glyph { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--thh-night-1); color: var(--thh-gold-hi); --thh-glyph-cut: var(--thh-night-1); }
.thh .thh-part p { color: var(--thh-ink-2); line-height: 1.6; }
.thh .thh-part-links { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(201, 163, 94, .1); color: var(--thh-ink) !important; font-size: 14.5px; }
.thh .thh-part-links.is-apart { background: rgba(111, 155, 214, .1); }
.thh .thh-part .thh-btn { margin-top: 14px; }
.thh .thh-part .thh-btn--line, .thh .thh-part .thh-btn--line:focus { border-color: var(--thh-rule); color: var(--thh-ink); background: transparent; }
.thh .thh-part .thh-btn--line:hover { border-color: var(--thh-ink-3); color: var(--thh-ink); background: rgba(29, 26, 38, .04); }
.thh .thh-part :focus-visible { outline-color: var(--thh-ink) !important; }
.thh .thh-aside { display: flex; gap: 10px; align-items: flex-start; max-width: 70ch; margin-top: clamp(26px, 3vw, 38px); color: var(--thh-bone-2); font-size: 15px; line-height: 1.55; }
.thh .thh-aside .thh-glyph { width: 20px; height: 20px; margin-top: 2px; color: var(--thh-gold); }
.thh .thh-aside a { font-weight: 650; text-decoration: underline; text-decoration-color: rgba(201, 163, 94, .6); }

/* ---------- III · a mind, at a moment ---------- */
.thh .thh-rules, .thh .thh-made { padding: clamp(20px, 2.6vw, 28px); border-radius: 22px; background: var(--thh-parch); box-shadow: 0 0 0 1px var(--thh-rule); }
.thh .thh-rules h3, .thh .thh-made h3 { margin-bottom: 12px; }
.thh .thh-rules li { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; color: var(--thh-ink-2); line-height: 1.5; }
.thh .thh-rules .thh-glyph { width: 18px; height: 18px; margin-top: 3px; color: var(--thh-gold-deep); }
.thh .thh-made p { color: var(--thh-ink-2); line-height: 1.6; }
.thh .thh-made-state { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px !important; padding: 12px 14px; border-radius: 14px; background: rgba(29, 26, 38, .05); color: var(--thh-ink) !important; font-size: 14.5px; }
.thh .thh-made-state .thh-glyph { width: 17px; height: 17px; margin-top: 2px; color: var(--thh-gold-ink); --thh-glyph-cut: var(--thh-paper); }
.thh .thh-two { margin-top: clamp(28px, 4vw, 44px); }
.thh .thh-two-pair { display: grid; gap: 14px; }
@media (min-width: 860px) { .thh .thh-two-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.thh .thh-two blockquote { padding: 20px 22px; border-radius: 20px; background: var(--thh-night-1); color: var(--thh-bone); box-shadow: 0 0 0 1px var(--thh-line); }
.thh .thh-two blockquote p:not(.thh-two-year) { margin-top: 6px; font: 400 1.05rem/1.6 var(--thh-display); font-variation-settings: "SOFT" 40, "opsz" 16; }
.thh .thh-two-year { color: var(--thh-gold-hi); font: 500 1.8rem/1 var(--thh-display); }
.thh .thh-two figcaption { margin-top: 12px; color: var(--thh-ink-3); font-size: 14px; line-height: 1.55; }
.thh .thh-two figcaption a { font-weight: 650; text-decoration: underline; text-decoration-color: var(--thh-gold); }

/* ---------- IV · debates ---------- */
.thh .thh-steps { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 900px) { .thh .thh-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.thh .thh-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-radius: 18px; background: rgba(241, 237, 228, .05); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .12); --thh-glyph-cut: var(--thh-plum-1); }
.thh .thh-steps .thh-glyph { width: 24px; height: 24px; color: var(--thh-gold-hi); }
.thh .thh-steps b { color: var(--thh-bone); font: 450 1.08rem/1.25 var(--thh-display); }
.thh .thh-steps span { color: #d2cbdc; font-size: 14px; line-height: 1.45; }
.thh .thh-prose p { max-width: 62ch; color: #d7d0c1; line-height: 1.7; }
.thh .thh-prose p + p { margin-top: 14px; }
.thh .thh-outcome { padding: 22px 24px; border-radius: 22px; background: rgba(23, 15, 32, .55); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .12); }
.thh .thh-outcome h3 { margin-bottom: 12px; }
.thh .thh-outcome h3 a { text-decoration: none; }
.thh .thh-outcome h3 a:hover { text-decoration: underline; text-decoration-color: var(--thh-gold); }
.thh .thh-outcome dl { display: grid; gap: 10px; }
.thh .thh-outcome dl div { padding: 10px 14px; border-radius: 12px; background: rgba(241, 237, 228, .05); box-shadow: inset 3px 0 0 var(--thh-gold); }
.thh .thh-outcome dt { color: var(--thh-gold); font: 700 11px/1.3 var(--thh-sans); letter-spacing: .14em; text-transform: uppercase; }
.thh .thh-outcome dd { margin-top: 4px; color: var(--thh-bone); font: 400 1rem/1.5 var(--thh-display); }
.thh .thh-outcome figcaption { margin-top: 12px; color: var(--thh-bone-3); font-size: 13.5px; }

/* ---------- V · the world, and the unknown ---------- */
.thh .thh-panel { padding: clamp(20px, 2.6vw, 30px); border-radius: 22px; background: rgba(255, 253, 248, .8); box-shadow: 0 0 0 1px var(--thh-rule), 0 18px 40px -32px rgba(29, 26, 38, .4); }
.thh .thh-panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.thh .thh-panel h3 .thh-glyph { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--thh-night-1); color: var(--thh-gold-hi); --thh-glyph-cut: var(--thh-night-1); }
.thh .thh-flow, .thh .thh-pipe { display: grid; gap: 10px; counter-reset: thhf; }
.thh .thh-flow li { position: relative; padding-left: 34px; color: var(--thh-ink-2); line-height: 1.5; counter-increment: thhf; }
.thh .thh-flow li::before { content: counter(thhf); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--thh-ink); color: var(--thh-parch); font: 700 11px/1 var(--thh-sans); }
.thh .thh-flow b, .thh .thh-pipe b { color: var(--thh-ink); }
.thh .thh-pipe li { display: flex; gap: 12px; align-items: flex-start; color: var(--thh-ink-2); line-height: 1.5; }
.thh .thh-pipe-n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--thh-ink-3); color: var(--thh-ink-2); font: 700 11px/1 var(--thh-sans); }
.thh .thh-pipe li.is-human .thh-pipe-n { background: var(--thh-gold-deep); box-shadow: none; color: #fff; }
.thh .thh-panel-note { margin-top: 14px; color: var(--thh-ink-3); font-size: 14px; line-height: 1.55; }
.thh .thh-panel-note a { font-weight: 650; text-decoration: underline; text-decoration-color: var(--thh-gold); }
.thh .thh-boundary { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed rgba(111, 155, 214, .6); background: rgba(111, 155, 214, .06); color: var(--thh-ink-2); font-size: 14.5px; line-height: 1.5; }
.thh .thh-boundary strong { color: var(--thh-ink); }
.thh .thh-boundary.is-quiet { border-color: rgba(122, 90, 32, .35); background: rgba(201, 163, 94, .08); }
.thh .thh-panel .thh-btn { margin-top: 16px; }
.thh .thh-list li { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.thh .thh-list .thh-glyph { color: var(--thh-gold-deep); }

/* ---------- VI · the difference ---------- */
.thh .thh-diff { display: grid; gap: 14px; }
@media (min-width: 860px) { .thh .thh-diff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .thh .thh-diff { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thh .thh-diff li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; background: rgba(241, 237, 228, .05); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .12); }
.thh .thh-badge { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--thh-night-2); box-shadow: 0 0 0 1px var(--thh-line); color: var(--thh-gold-hi); --thh-glyph-cut: var(--thh-night-2); }
.thh .thh-badge .thh-glyph { width: 22px; height: 22px; }
.thh .thh-diff h3 { margin-bottom: 6px; }
.thh .thh-diff p { color: #d2cbdc; font-size: 15px; line-height: 1.55; }
.thh .thh-check { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--thh-gold-hi); font: 650 14px/1.3 var(--thh-sans); text-decoration: underline; text-decoration-color: rgba(227, 197, 140, .5); }
.thh .thh-inline-glyph { width: 15px; height: 15px; }
.thh .thh-not { max-width: 860px; margin-top: clamp(28px, 4vw, 44px); padding: 22px 24px; border-radius: 20px; border: 1.5px dashed rgba(241, 237, 228, .22); }
.thh .thh-not h3 { margin-bottom: 10px; }
.thh .thh-not li { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; color: var(--thh-bone-2); line-height: 1.5; }
.thh .thh-not .thh-glyph { width: 17px; height: 17px; margin-top: 3px; color: var(--thh-conflict); }

/* ---------- motion (finite; off under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
	html.thh-js .thh [data-thh-reveal].is-armed { opacity: .4; transform: translateY(18px); }
	html.thh-js .thh [data-thh-reveal] { transition: opacity .8s var(--thh-ease), transform .8s var(--thh-ease); }
	html.thh-js .thh .thh-hero-in > * { animation: thh-rise .9s var(--thh-ease) backwards; }
	html.thh-js .thh .thh-hero-in > :nth-child(2) { animation-delay: .08s; }
	html.thh-js .thh .thh-hero-in > :nth-child(3) { animation-delay: .16s; }
	html.thh-js .thh .thh-hero-in > :nth-child(4) { animation-delay: .24s; }
	html.thh-js .thh .thh-hero-in > :nth-child(n+5) { animation-delay: .32s; }
	html.thh-js .thh .thh-hero-thread { stroke-dasharray: 1; stroke-dashoffset: 0; animation: thh-draw 2.4s var(--thh-ease) backwards .5s; }
	html.thh-js .thh .thh-hero-mark { animation: thh-fade .8s var(--thh-ease) backwards; animation-delay: calc(.4s + var(--d) * .22s); }
	html.thh-js .thh .thh-tw0 { animation: thh-twinkle 4.8s steps(5) infinite; }
	html.thh-js .thh .thh-tw2 { animation: thh-twinkle 6.4s steps(5) infinite 1.4s; }
	html.thh-js .thh .is-still .thh-tw0, html.thh-js .thh .is-still .thh-tw2 { animation-play-state: paused; }
	html.thh-js .thh .thh-part.is-entering { animation: thh-panel .45s var(--thh-ease) both; }
}
@keyframes thh-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes thh-draw { from { stroke-dashoffset: 1; } }
@keyframes thh-fade { from { opacity: 0; } }
@keyframes thh-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
@keyframes thh-panel { from { opacity: .45; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
	.thh *, .thh *::before, .thh *::after { animation: none !important; transition: none !important; }
}
@media print {
	.thh .thh-seam, .thh .thh-sky, .thh .thh-hero-art, .thh .thh-mini-sky { display: none; }
	.thh .thh-ch, .thh .thh-hero { background: #fff !important; color: #000 !important; }
	.thh .thh-part[hidden] { display: block; }
}
