/* Kodama — kodama.house
   Palette: Kodama Design System v2 (wood / stone / leaf). Mark: traced moyogi bonsai. */

/* ─── Fonts: self-hosted (SIL Open Font License), so no request reaches Google before consent ─── */
/* Cinzel normal 400 500 — latin-ext */
@font-face {
	font-family: 'Cinzel';
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("assets/fonts/cinzel-normal-latin-ext.woff2") format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Cinzel normal 400 500 — latin */
@font-face {
	font-family: 'Cinzel';
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("assets/fonts/cinzel-normal-latin.woff2") format('woff2');
	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;
}
/* EB Garamond italic 400 — latin-ext */
@font-face {
	font-family: 'EB Garamond';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/eb-garamond-italic-latin-ext.woff2") format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* EB Garamond italic 400 — latin */
@font-face {
	font-family: 'EB Garamond';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/eb-garamond-italic-latin.woff2") format('woff2');
	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;
}
/* EB Garamond normal 400 500 — latin-ext */
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("assets/fonts/eb-garamond-normal-latin-ext.woff2") format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* EB Garamond normal 400 500 — latin */
@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("assets/fonts/eb-garamond-normal-latin.woff2") format('woff2');
	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;
}
/* Inter normal 400 600 — latin-ext */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/inter-normal-latin-ext.woff2") format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal 400 600 — latin */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/inter-normal-latin.woff2") format('woff2');
	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;
}
/* Noto Serif JP normal 300 400 — subset */
@font-face {
	font-family: 'Noto Serif JP';
	font-style: normal;
	font-weight: 300 400;
	font-display: swap;
	src: url("assets/fonts/noto-serif-jp-normal-subset.woff2") format('woff2');
	unicode-range: U+4e00, U+4e09, U+4e8c, U+4e94, U+516d, U+56db, U+6728, U+970a;
}

:root {
	--night: #12150E;
	--forest-deep: #1F2418;
	--forest: #262C1D;
	--moss: #3D4A2F;
	--leaf: #8A936F;
	--leaf-text: #9AA37E; /* leaf lifted to 4.5:1 for small text on forest */
	--parchment: #F4EDE0;
	--parchment-dim: rgba(244, 237, 224, 0.72);
	--parchment-faint: rgba(244, 237, 224, 0.58);
	--line: rgba(244, 237, 224, 0.12);
	--ochre: #8A6F3F;
	--gold: #C9A24E;
	--gold-pale: #E3CE95;
	--gold-deep: #A9833A;
	--gold-ink: #7D6029; /* gold that reads on parchment at 5:1 */
	--terra: #6B1F1F;

	--display: "Cinzel", "Trajan Pro", Georgia, serif;
	--serif: "EB Garamond", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, sans-serif;
	--jp: "Noto Serif JP", serif;

	--wrap: 1160px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--forest-deep);
	color: var(--parchment);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: var(--forest-deep); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--gold); color: var(--forest-deep); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

.label {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

h2 {
	font-family: var(--display);
	font-size: clamp(30px, 4.2vw, 52px);
	line-height: 1.12;
	letter-spacing: .01em;
}
.gold { color: var(--gold); }
.lead {
	font-family: var(--serif);
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.5;
	color: var(--parchment);
}
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-lede { font-family: var(--serif); font-size: 21px; color: var(--parchment-dim); margin-top: 18px; }

/* ─── The mark: an SVG mask so the tree can wear gold leaf ─── */
.tree-mask {
	display: inline-block;
	aspect-ratio: 904 / 796;
	background: linear-gradient(115deg, var(--gold-deep) 0%, var(--gold) 35%, var(--gold-pale) 50%, var(--gold) 65%, var(--gold-deep) 100%);
	background-size: 300% 100%;
	-webkit-mask: url("assets/tree.svg") center / contain no-repeat;
	        mask: url("assets/tree.svg") center / contain no-repeat;
}

/* ─── Buttons ─── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	font: 500 15px/1 var(--sans);
	letter-spacing: .02em;
	text-decoration: none;
	transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--forest-deep); box-shadow: 0 10px 30px -12px rgba(201, 162, 78, .6); }
.btn-gold:hover { background: var(--gold-pale); }
.btn-ghost { border: 1px solid rgba(244, 237, 224, .28); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-pale); }
:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 3px; border-radius: 6px; }

/* ─── Nav ─── */
.nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px clamp(20px, 4vw, 48px);
	transition: background .35s, backdrop-filter .35s, padding .35s, border-color .35s;
	border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
	background: rgba(18, 21, 14, .78);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	        backdrop-filter: blur(14px) saturate(1.2);
	border-bottom-color: var(--line);
	padding-top: 12px; padding-bottom: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-tree { width: 34px; }
.nav-word { font-family: var(--display); font-size: 18px; letter-spacing: .28em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--parchment-dim); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--parchment); }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); opacity: 0; transform: scale(0); transition: opacity .3s, transform .3s var(--ease); }
.nav-links a[aria-current="true"]::after { opacity: 1; transform: none; }
.nav-links .nav-cta { color: var(--gold); border: 1px solid rgba(201, 162, 78, .5); padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--forest-deep); }

/* Mobile menu */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: var(--parchment); cursor: pointer; }
.nav-toggle i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle i:first-of-type { top: 18px; }
.nav-toggle i:last-of-type { top: 25px; }
.menu-open .nav-toggle i:first-of-type { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav-toggle i:last-of-type { top: 21.5px; transform: rotate(-45deg); }
.nav-sheet { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; padding: 96px 28px 48px; background: var(--night); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; overflow: hidden; }
.nav-sheet[hidden] { display: none; }
.menu-open .nav-sheet { opacity: 1; visibility: visible; }
.nav-sheet nav { display: grid; gap: 4px; position: relative; z-index: 1; }
.nav-sheet a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 26px; letter-spacing: .04em; text-decoration: none; transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.nav-sheet a span { font-family: var(--jp); font-size: 15px; color: var(--gold); width: 20px; }
.menu-open .nav-sheet a { transform: none; opacity: 1; }
.menu-open .nav-sheet a:nth-child(2) { transition-delay: .04s; } .menu-open .nav-sheet a:nth-child(3) { transition-delay: .08s; }
.menu-open .nav-sheet a:nth-child(4) { transition-delay: .12s; } .menu-open .nav-sheet a:nth-child(5) { transition-delay: .16s; }
.menu-open .nav-sheet a:nth-child(6) { transition-delay: .2s; color: var(--gold-pale); }
.sheet-tree { position: absolute; right: -18%; bottom: -6%; width: 90%; opacity: .1; }
.menu-open body { overflow: hidden; }

/* ─── Hero ─── */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: clamp(640px, 100svh, 1080px);
	display: grid;
	grid-template-rows: 1fr auto;
	align-items: end;
	justify-items: center;
	padding: 110px 24px 96px;
	overflow: hidden;
	isolation: isolate;
	background: var(--night);
}
.hero-sky {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(60% 50% at 50% 38%, rgba(201, 162, 78, .16), transparent 70%),
		radial-gradient(80% 60% at 50% 110%, rgba(61, 74, 47, .7), transparent 70%),
		radial-gradient(120% 80% at 50% 0%, #1B2014, var(--night) 70%);
}
.hero-sky::after {
	/* washi grain */
	content: "";
	position: absolute;
	inset: 0;
	opacity: .08;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-stage {
	position: relative;
	width: min(560px, 82vw);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	align-self: center;
}
.hero-tree {
	position: relative;
	z-index: 1;
	width: 74%;
	margin-top: 6%;
	animation: shimmer 9s ease-in-out infinite, rise 1.6s var(--ease) both;
	filter: drop-shadow(0 20px 40px rgba(201, 162, 78, .18));
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.enso {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.enso-path {
	fill: none;
	stroke: var(--gold);
	stroke-width: 7;
	stroke-linecap: round;
	opacity: .5;
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	animation: draw 3.2s .3s var(--ease) forwards, breathe 8s 3.5s ease-in-out infinite;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes breathe { 50% { opacity: .28; } }
.stardust {
	position: absolute;
	inset: -12%;
	width: 124%;
	height: 124%;
	z-index: 2;
	pointer-events: none;
}
.hero-copy { text-align: center; max-width: 720px; position: relative; z-index: 3; }
.hero-kanji { font-family: var(--jp); font-weight: 300; font-size: 18px; letter-spacing: .5em; color: var(--gold); margin-bottom: 10px; padding-left: .5em; }
.hero-title {
	font-family: var(--display);
	font-weight: 500;
	font-size: clamp(52px, 9vw, 112px);
	letter-spacing: .24em;
	padding-left: .24em;
	line-height: 1;
	text-transform: uppercase;
	background: linear-gradient(180deg, var(--parchment) 30%, var(--gold-pale));
	-webkit-background-clip: text;
	        background-clip: text;
	color: transparent;
}
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); color: var(--gold-pale); margin: 18px 0 18px; }
.hero-lede { color: var(--parchment-dim); font-size: 17px; max-width: 560px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--gold); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (min-width: 1080px) and (min-aspect-ratio: 5/4) {
	.hero {
		grid-template-rows: none;
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		align-items: center;
		column-gap: clamp(32px, 5vw, 96px);
		padding: 100px clamp(48px, 7vw, 120px) 80px;
	}
	.hero-stage { width: min(640px, 100%, calc(100svh - 160px)); justify-self: end; }
	.hero-copy { text-align: left; justify-self: start; }
	.hero-kanji { padding-left: 0; }
	.hero-title { padding-left: 0; font-size: clamp(64px, 6.4vw, 108px); }
	.hero-lede { margin-left: 0; }
	.hero-actions { justify-content: flex-start; }
}

/* ─── Sections ─── */
section { position: relative; }
.idea, .how, .memorome, .grounded, .mind, .promises, .status { padding: clamp(72px, 8vw, 112px) 0; }

/* Idea */
.idea { background: var(--forest-deep); }
.idea-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 80px; align-items: start; }
.idea-statement h2 { font-size: clamp(32px, 4.6vw, 58px); }
.idea-body { padding-top: 46px; color: var(--parchment-dim); font-size: 17px; }
.idea-body .lead { margin-bottom: 22px; }
.etymology {
	grid-column: 1 / -1;
	margin: 48px 0 0;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 48px;
	padding: 44px 52px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(201, 162, 78, .07), transparent 60%);
}
.etymology-kanji { font-family: var(--jp); font-weight: 300; font-size: clamp(64px, 9vw, 120px); line-height: 1; color: var(--gold); writing-mode: vertical-rl; letter-spacing: .1em; }
.etymology figcaption { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; color: var(--parchment-dim); }
.etymology strong { color: var(--parchment); font-weight: 500; }

/* How */
.how { background: linear-gradient(180deg, var(--forest-deep), var(--forest)); }
.voices { display: grid; grid-template-columns: 1fr 140px 1fr; align-items: stretch; }
.voice-card {
	padding: 40px;
	border-radius: 24px;
	background: rgba(244, 237, 224, .035);
	border: 1px solid var(--line);
	color: var(--parchment-dim);
	transition: border-color .3s, transform .3s var(--ease);
}
.voice-card:hover { border-color: rgba(201, 162, 78, .4); transform: translateY(-4px); }
.voice-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.voice-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(201, 162, 78, .12); color: var(--gold); flex: none; }
.voice-icon svg { width: 28px; }
.voice-role { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf-text); font-weight: 600; }
.voice-card h3 { font-family: var(--display); font-size: 26px; color: var(--parchment); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.voices-bridge { position: relative; display: grid; place-items: center; }
.bridge-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.bridge-tree { position: relative; z-index: 1; width: 64px; animation: shimmer 9s ease-in-out infinite; padding: 0; }
.bridge-label { position: absolute; top: calc(50% + 34px); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

.journey { list-style: none; margin: 80px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.journey li { padding: 32px 28px 0 0; position: relative; }
.journey li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.journey-n { font-family: var(--display); color: var(--gold); font-size: 14px; letter-spacing: .2em; }
.journey h3 { font-family: var(--display); font-size: 22px; margin: 10px 0 8px; }
.journey p { color: var(--parchment-dim); font-size: 15px; }

/* Memorome */
.memorome { background: var(--forest); }
.memorome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.memorome-copy > p:not(.label):not(.lead) { color: var(--parchment-dim); }
.memorome-copy .lead { margin: 24px 0 20px; }
.strata { margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.strata div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.strata dt { font-family: var(--display); color: var(--gold); letter-spacing: .08em; }
.strata dd { margin: 0; color: var(--parchment-dim); font-size: 15px; }
.memory-card {
	border-radius: 20px;
	background: #0F120B;
	border: 1px solid rgba(201, 162, 78, .22);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 8px rgba(244, 237, 224, .02);
	overflow: hidden;
	transform: rotate(1.2deg);
	transition: transform .5s var(--ease);
}
.memory-card:hover { transform: rotate(0); }
.memory-card-head { padding: 16px 26px; border-bottom: 1px solid var(--line); }
.memory-kicker { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf-text); }
.memory-body { padding: 26px 26px 24px; }
.memory-title { margin: 0 0 14px; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: .04em; color: var(--gold-pale); }
.memory-quote { margin: 0 0 24px; padding-left: 16px; border-left: 2px solid var(--gold-deep); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--parchment); }
.memory-label { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--parchment-faint); }
.memory-cues { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.memory-cues li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(201, 162, 78, .35); background: rgba(201, 162, 78, .08); color: var(--gold-pale); font-size: 14px; }
.memory-link { margin: 0; font-size: 15px; color: var(--parchment-dim); }
.memory-link strong { font-weight: 500; color: var(--parchment); }
.memory-note { margin: 0; padding: 18px 24px 24px; font-family: var(--serif); font-size: 17px; color: var(--parchment-faint); border-top: 1px dashed var(--line); }

/* Grounded */
.grounded { background: linear-gradient(180deg, var(--forest), var(--forest-deep)); }
.grounded-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grounded-copy > p:not(.label):not(.lead) { color: var(--parchment-dim); }
.grounded-copy .lead { margin: 24px 0 20px; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 86%; padding: 18px 22px; border-radius: 22px; font-size: 16px; line-height: 1.55; }
.msg p { margin: 0; }
.msg-listener { align-self: flex-end; background: rgba(244, 237, 224, .08); border-bottom-right-radius: 6px; color: var(--parchment); }
.msg-kodama { align-self: flex-start; background: linear-gradient(135deg, rgba(201, 162, 78, .16), rgba(201, 162, 78, .05)); border: 1px solid rgba(201, 162, 78, .25); border-bottom-left-radius: 6px; font-family: var(--serif); font-size: 19px; }
.msg-abstain { background: rgba(138, 147, 111, .1); border-color: rgba(138, 147, 111, .3); }
.cite { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(18, 21, 14, .6); font: 500 12.5px/1.2 var(--sans); letter-spacing: .02em; color: var(--gold-pale); }
.cite::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cite-void { color: var(--leaf-text); }
.cite-void::before { background: transparent; border: 1px solid var(--leaf); }
.chat-note { margin-top: 8px; font-size: 13px; color: var(--parchment-faint); font-style: italic; }

/* Mind */
.mind { background: var(--forest-deep); }
.mind-diagram { border-radius: 24px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); padding: clamp(10px, 2vw, 28px); overflow-x: auto; }
.mind-diagram svg { width: 100%; min-width: 680px; height: auto; color: var(--gold); font-family: var(--sans); }
.lane > rect { fill: rgba(244, 237, 224, .025); stroke: var(--line); }
.lane-title { fill: var(--parchment); font-family: var(--display); font-size: 20px; letter-spacing: .04em; }
.lane-sub { fill: var(--parchment-faint); font-size: 12px; letter-spacing: .04em; }
.track { fill: none; stroke: rgba(244, 237, 224, .1); stroke-width: 1; }
.chip rect { fill: #252A1E; stroke: rgba(244, 237, 224, .2); }
.chip text { fill: var(--parchment); font-size: 15px; text-anchor: middle; }
.chip-gold rect { fill: #3A3622; stroke: var(--gold); }
.chip-gold text { fill: var(--gold-pale); }
.chip-soft rect { fill: #2A3022; stroke: var(--leaf); stroke-dasharray: 4 4; }
.flow-dash { stroke-dasharray: 4 5; stroke: rgba(138, 147, 111, .8); }
.flow { fill: none; stroke: rgba(201, 162, 78, .7); stroke-width: 1.4; }
.pulse { fill: var(--gold-pale); filter: drop-shadow(0 0 6px var(--gold)); }
.pulse-slow { fill: var(--leaf); }
.pulse-slower { fill: var(--gold); opacity: .8; }
.mind-stack { display: none; list-style: none; margin: 0; padding: 0; }
.ms-lane { padding: 22px 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(244, 237, 224, .025); }
.ms-title { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: .04em; }
.ms-sub { margin: 2px 0 16px; font-size: 12px; letter-spacing: .04em; color: var(--parchment-faint); }
.ms-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.ms-chips li { display: inline-flex; align-items: center; white-space: nowrap; font-size: 14px; line-height: 1; }
.ms-chips span { padding: 10px 14px; border-radius: 999px; background: #252A1E; border: 1px solid rgba(244, 237, 224, .2); }
.ms-chips li:not(:last-child)::after { content: ""; width: 12px; height: 1px; margin: 0 3px; background: var(--gold); opacity: .55; }
.ms-chips .ms-gold span { background: #3A3622; border-color: var(--gold); color: var(--gold-pale); }
.ms-chips .ms-soft span { background: #2A3022; border: 1px dashed var(--leaf); }
.ms-link { position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding-left: 34px; font-size: 13px; font-style: italic; font-family: var(--serif); color: var(--gold-pale); }
.ms-link::before { content: ""; position: absolute; left: 22px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), transparent 50%, var(--gold)); opacity: .7; }
.ms-link-dash::before { background: repeating-linear-gradient(var(--leaf) 0 4px, transparent 4px 9px); }
.ms-link-dash { color: var(--leaf-text); }
.mind-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.mind-points h3 { font-family: var(--display); font-size: 21px; margin-bottom: 12px; color: var(--gold-pale); }
.mind-points p { color: var(--parchment-dim); font-size: 15px; }

/* Promises */
.promises { background: var(--parchment); color: var(--forest-deep); }
.promises .label { color: var(--gold-ink); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(31, 36, 24, .16); border-left: 1px solid rgba(31, 36, 24, .16); }
.promise { padding: 40px 36px 44px; border-right: 1px solid rgba(31, 36, 24, .16); border-bottom: 1px solid rgba(31, 36, 24, .16); transition: background .3s; }
.promise:hover { background: rgba(201, 162, 78, .1); }
.promise-n { font-family: var(--jp); font-size: 28px; color: var(--gold-ink); line-height: 1; }
.promise h3 { font-family: var(--display); font-size: 22px; margin: 22px 0 10px; font-weight: 500; }
.promise p { font-size: 15px; color: rgba(31, 36, 24, .72); margin: 0; }

/* Status */
.status { background: var(--night); overflow: hidden; }
.status-glow { position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(201, 162, 78, .14), transparent 70%); pointer-events: none; }
.status-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.status-copy .lead { margin: 24px 0 30px; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: var(--parchment-dim); }
.status-list li { display: flex; align-items: center; gap: 14px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold); flex: none; }
.status-live { background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 162, 78, .6); animation: ping 2.4s infinite; }
.status-next { border-style: dashed; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(201, 162, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 78, 0); } }
.status-card { text-align: center; padding: 52px 40px; border-radius: 28px; border: 1px solid rgba(201, 162, 78, .3); background: linear-gradient(180deg, rgba(31, 36, 24, .9), rgba(18, 21, 14, .9)); }
.status-tree { width: 120px; margin: 0 auto 24px; display: block; animation: shimmer 9s ease-in-out infinite; }
.status-card h3 { font-family: var(--display); font-size: 28px; margin-bottom: 12px; }
.status-card > p { color: var(--parchment-dim); }
.status-card .btn { margin: 12px 0 24px; }
.status-card > .status-slush { font-size: 14px; color: var(--parchment-faint); margin: 0; }
.status-slush strong { color: var(--gold-pale); font-weight: 600; }

/* Footer */
.footer { background: var(--night); border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--parchment-faint); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-tree { width: 44px; }
.footer-word { margin: 0; font-family: var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--parchment); }
.footer-sub { margin: 0; }
.footer-sub a, .footer-links a { text-decoration: none; color: var(--parchment-dim); }
.footer-sub a:hover, .footer-links a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-meta { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
	.nav-links a:not(.nav-cta) { display: none; }
	.nav-toggle { display: block; }
	.idea-grid, .memorome-grid, .grounded-grid, .status-grid { grid-template-columns: 1fr; gap: 48px; }
	.idea-body { padding-top: 0; }
	.voices { grid-template-columns: 1fr; gap: 0; }
	.voices-bridge { height: 120px; }
	.bridge-line { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
	.bridge-label { top: auto; left: calc(50% + 46px); }
	.journey { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
	.mind-points, .promise-grid { grid-template-columns: 1fr 1fr; }
	.grounded-copy { order: -1; }
	.memory-card { transform: none; }
}
@media (max-width: 620px) {
	.wrap { width: calc(100% - 32px); }
	.nav { padding: 14px 16px; }
	.nav-word { font-size: 15px; }
	.nav-links .nav-cta { padding: 8px 14px; font-size: 13px; }
	.nav { gap: 12px; }
	.nav-brand { gap: 10px; }
	.nav-tree { width: 30px; }
	.nav-word { letter-spacing: .22em; }
	.hero { padding: 90px 16px 80px; }
	.etymology { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px; }
	.etymology-kanji { writing-mode: horizontal-tb; }
	.voice-card { padding: 28px 24px; }
	.journey, .mind-points, .promise-grid { grid-template-columns: 1fr; }
	.mind-diagram { display: none; }
	.mind-stack { display: block; }
	.msg { max-width: 94%; }
	.strata div { grid-template-columns: 1fr; gap: 4px; }
	.status-card { padding: 40px 24px; }
	.footer-grid { flex-direction: column; align-items: flex-start; }
}
/* Touch screens have no hover; don't leave cards lifted after a tap */
@media (hover: none) {
	.btn:hover, .voice-card:hover { transform: none; }
}
/* ─── Cookie consent (consent.js) ─── */
.cc { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(420px, calc(100% - 32px)); padding: 18px 18px 16px; border-radius: 18px; background: #181C12; color: var(--parchment); border: 1px solid rgba(201, 162, 78, .3); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); font: 400 14px/1.5 var(--sans); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease); }
.cc.is-open { opacity: 1; transform: none; }
.cc[hidden] { display: none; }
.cc-text { margin: 0 0 14px; color: var(--parchment-dim); }
.cc-text strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--parchment); }
.cc-text a { color: var(--gold-pale); text-underline-offset: 3px; }
.cc-actions { display: flex; gap: 8px; }
.cc-btn { flex: 1; height: 42px; border-radius: 999px; border: 1px solid rgba(244, 237, 224, .28); background: transparent; color: var(--parchment); font: 500 14px/1 var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.cc-btn:hover { border-color: var(--gold-pale); }
.cc-accept { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.cc-accept:hover { background: var(--gold-pale); border-color: var(--gold-pale); }

@media print {
	.nav, .nav-sheet, .scroll-cue, .stardust, .skip { display: none !important; }
	.reveal { opacity: 1 !important; transform: none !important; }
	.cc { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.enso-path { stroke-dashoffset: 0; }
	.pulse { display: none; }
}
