/* ═══ aenima labs site ═══ */
/* Palette and typography lifted from /02 - Concept/brand_identities.html.
   Navy palette for aenima; warm palette for the Kodama section. */

:root {
	/* aenima (navy) */
	--ink-deep:        #0D1B2A;
	--ink-midnight:    #1B2D45;
	--ink-steel-dark:  #2A3F5F;
	--brand-blue:      #7EB8DA;
	--brand-steel:     #4A90B8;
	--brand-mist:      #B0C4D8;
	--brand-dim:       #8CA3B8;
	--brand-faint:     #5A7A94;

	/* Kodama (warm) */
	--warm-earth:      #2C1810;
	--warm-walnut:     #5C3D2E;
	--warm-tan:        #6B4C3B;
	--warm-gold:       #B8860B;
	--warm-amber:      #D4A017;
	--warm-honey:      #8B6914;
	--warm-parchment:  #FFF8F0;
	--warm-cream:      #FFF3E6;
	--warm-linen:      #F5E6D0;

	/* neutrals */
	--bg:              #FAFAFA;
	--text:            #1A1A1A;
	--text-dim:        #666;
	--divider:         #E0E0E0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Inter', sans-serif;
	background: var(--bg);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(126,184,218,0.35); color: #FFF; }

:focus { outline: none; }
:focus-visible {
	outline: 2px solid var(--brand-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Fade-up on load */
.reveal {
	opacity: 0;
	transform: translateY(14px);
	animation: reveal 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
	animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal {
	to { opacity: 1; transform: none; }
}

/* ─── Shared ─── */

.section-label {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--brand-faint);
	margin-bottom: 20px;
}
.section-label-warm { color: var(--warm-honey); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.5px;
	transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1),
	            background 220ms ease,
	            border-color 220ms ease,
	            box-shadow 260ms ease,
	            color 220ms ease;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
	background: var(--brand-blue);
	color: var(--ink-deep);
	box-shadow: 0 0 0 rgba(126,184,218,0);
}
.btn-primary:hover {
	background: #9AC8E2;
	box-shadow: 0 10px 28px -12px rgba(126,184,218,0.55);
}
.btn-ghost {
	background: transparent;
	color: var(--brand-mist);
	border-color: rgba(126,184,218,0.4);
}
.btn-ghost:hover {
	border-color: var(--brand-blue);
	color: #FFF;
	background: rgba(126,184,218,0.06);
}

/* ─── Nav ─── */

.site-nav {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 10;
	padding: 28px 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #FFF;
}
.brand-wordmark {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.5px;
}
.brand-wordmark-light { font-weight: 400; color: var(--brand-blue); }
.site-nav-links {
	display: flex;
	gap: 32px;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.site-nav-links a {
	position: relative;
	color: var(--brand-mist);
	transition: color 200ms ease;
	padding-bottom: 4px;
}
.site-nav-links a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 1px;
	background: var(--brand-blue);
	transition: right 320ms cubic-bezier(0.2,0.8,0.2,1);
}
.site-nav-links a:hover { color: #FFF; }
.site-nav-links a:hover::after { right: 0; }

/* ─── Hero ─── */

.hero {
	position: relative;
	background: linear-gradient(135deg, var(--ink-deep) 0%, var(--ink-midnight) 50%, var(--ink-steel-dark) 100%);
	color: #FFF;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 120px 60px 100px;
	overflow: hidden;
}
.hero-inner {
	position: relative;
	z-index: 1;
	max-width: 820px;
}
.eyebrow {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--brand-blue);
	margin-bottom: 32px;
}
.hero h1 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(44px, 7vw, 84px);
	font-weight: 600;
	letter-spacing: -1.5px;
	line-height: 1.05;
	margin-bottom: 36px;
}
.hero-accent {
	background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-steel) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-lede {
	font-family: 'DM Sans', sans-serif;
	font-size: 20px;
	line-height: 1.55;
	color: var(--brand-mist);
	max-width: 620px;
	margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-gradient {
	position: absolute;
	top: -20%; right: -10%;
	width: 720px; height: 720px;
	background: radial-gradient(circle at center, rgba(126,184,218,0.18) 0%, transparent 70%);
	filter: blur(40px);
	pointer-events: none;
	animation: heroDrift 14s ease-in-out infinite alternate;
}
@keyframes heroDrift {
	from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
	to   { transform: translate3d(-30px, 20px, 0) scale(1.04); opacity: 1; }
}

/* Soft grain overlay for depth */
.hero-grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.035;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Scroll cue */
.hero-scroll-cue {
	position: absolute;
	bottom: 36px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: var(--brand-mist);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	opacity: 0.75;
	transition: opacity 200ms ease, transform 260ms ease;
	z-index: 2;
}
.hero-scroll-cue:hover { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.hero-scroll-cue-line {
	width: 1px;
	height: 44px;
	background: linear-gradient(to bottom, rgba(126,184,218,0) 0%, var(--brand-blue) 100%);
	position: relative;
	overflow: hidden;
}
.hero-scroll-cue-line::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: -50%;
	height: 50%;
	background: linear-gradient(to bottom, transparent, var(--brand-blue));
	animation: scrollCue 2.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes scrollCue {
	0%   { transform: translateY(0); opacity: 0; }
	30%  { opacity: 1; }
	100% { transform: translateY(200%); opacity: 0; }
}

/* ─── About ─── */

.about {
	position: relative;
	padding: 120px 60px;
	background: #FFF;
}
.about::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 120px;
	background: linear-gradient(to bottom, rgba(255,248,240,0) 0%, var(--warm-parchment) 100%);
	pointer-events: none;
}
.about-inner { max-width: 1100px; margin: 0 auto; }
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	font-family: 'DM Sans', sans-serif;
	font-size: 19px;
	line-height: 1.65;
	color: var(--text);
	max-width: 1000px;
}
.about-grid p strong { color: var(--ink-deep); font-weight: 500; }

/* ─── Product (Kodama) ─── */

.product {
	padding: 120px 60px;
	background: linear-gradient(135deg, var(--warm-parchment) 0%, var(--warm-cream) 50%, #FFEDD5 100%);
	color: var(--warm-earth);
}
.product-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 80px;
	align-items: center;
}
.product-media {
	background: rgba(44,24,16,0.03);
	border: 1px solid rgba(184,134,11,0.2);
	border-radius: 20px;
	padding: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.product h2 {
	font-family: 'Playfair Display', serif;
	font-size: clamp(48px, 6vw, 72px);
	font-weight: 600;
	color: var(--warm-earth);
	letter-spacing: -1px;
	margin-bottom: 16px;
	line-height: 1;
}
.product-tagline {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 22px;
	color: var(--warm-honey);
	margin-bottom: 28px;
}
.product-copy p {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 1.65;
	color: var(--warm-tan);
	margin-bottom: 18px;
	max-width: 620px;
}
.product-etymology {
	font-size: 16px !important;
	color: var(--warm-walnut) !important;
	border-left: 2px solid var(--warm-gold);
	padding-left: 18px;
	margin-top: 24px !important;
}
.product-etymology em {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-style: italic;
	color: var(--warm-earth);
}
.product-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 36px;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--warm-honey);
}
.status-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--warm-gold);
	box-shadow: 0 0 0 4px rgba(184,134,11,0.18);
	animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(184,134,11,0.18); }
	50%      { box-shadow: 0 0 0 8px rgba(184,134,11,0.08); }
}

/* ─── Contact ─── */

.contact {
	padding: 120px 60px;
	background: var(--ink-deep);
	color: #FFF;
}
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact h2 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 600;
	letter-spacing: -1px;
	margin-bottom: 24px;
}
.contact p {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: var(--brand-mist);
	margin-bottom: 36px;
}

/* ─── Footer ─── */

.site-footer {
	background: var(--ink-deep);
	border-top: 1px solid rgba(126,184,218,0.08);
	padding: 36px 60px;
	color: var(--brand-dim);
}
.site-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 13px;
	letter-spacing: 1px;
}
.site-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--brand-mist);
}
.site-footer-meta { display: inline-flex; align-items: center; gap: 10px; }
.site-footer-meta a { color: var(--brand-blue); }
.site-footer-meta a:hover { color: #FFF; }
.site-footer-divider { opacity: 0.4; }

/* ─── Responsive ─── */

@media (max-width: 820px) {
	.site-nav { padding: 22px 24px; }
	.site-nav-links { gap: 20px; font-size: 12px; }
	.hero { padding: 120px 24px 80px; }
	.about, .product, .contact { padding: 80px 24px; }
	.about-grid { grid-template-columns: 1fr; gap: 28px; font-size: 17px; }
	.product-inner { grid-template-columns: 1fr; gap: 40px; text-align: left; }
	.product-media { justify-self: start; padding: 28px; }
	.product-media svg { width: 160px; height: 160px; }
	.site-footer { padding: 28px 24px; }
	.site-footer-inner { flex-direction: column; gap: 10px; }
	.hero-scroll-cue { display: none; }
}

@media (max-width: 480px) {
	.hero-actions { flex-direction: column; align-items: stretch; }
	.btn { width: 100%; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.reveal { opacity: 1; transform: none; }
}
