/* ============================================================
   Teslahouse v2 — modern minimal, parallax-driven
   ============================================================ */

:root {
	--c-bg: #0b0b0d;
	--c-surface: #111114;
	--c-line: rgba(255, 255, 255, 0.08);
	--c-line-strong: rgba(255, 255, 255, 0.18);
	--c-text: #f3f3f5;
	--c-text-muted: rgba(243, 243, 245, 0.62);
	--c-accent: #ff9a1f;
	--c-accent-soft: rgba(255, 154, 31, 0.18);
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Inter", system-ui, sans-serif;
	--max-w: 1280px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--header-h: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "ss01", "cv11";
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease, opacity 0.25s ease;
}

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.04;
	margin: 0;
	color: var(--c-text);
}

.display {
	font-weight: 500;
	font-size: clamp(3rem, 9vw, 8rem);
	letter-spacing: -0.04em;
	line-height: 0.95;
}

.h2 { font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

p { margin: 0; color: var(--c-text-muted); }

.lead {
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	color: var(--c-text-muted);
	line-height: 1.55;
	max-width: 56ch;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--c-text-muted);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.shell {
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-h);
	z-index: 60;
	display: flex;
	align-items: center;
	transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
	border-bottom: 1px solid transparent;
}

.site-nav.is-solid {
	background: rgba(11, 11, 13, 0.78);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border-bottom-color: var(--c-line);
}

.nav-row {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
}

.nav-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
}

.nav-brand .logo {
	display: block;
	height: 48px;
	width: auto;
	background: #fff;
	padding: 6px 10px;
	border-radius: 8px;
	transition: transform 0.25s ease;
}

.nav-brand:hover .logo { transform: translateY(-1px); }

.nav-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: none;
	gap: 2.25rem;
	justify-content: center;
}

.nav-links a {
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-text-muted);
	position: relative;
	padding: 0.5rem 0;
}

.nav-links a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0.15rem;
	width: 0;
	height: 1px;
	background: var(--c-accent);
	transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--c-text);
}

.nav-links a.active::after,
.nav-links a:hover::after {
	width: 100%;
	left: 0;
}

.nav-end {
	display: none;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.82rem;
	color: var(--c-text-muted);
	letter-spacing: 0.08em;
}

.pulse {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #29d68e;
	box-shadow: 0 0 0 0 rgba(41, 214, 142, 0.7);
	animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
	0%   { box-shadow: 0 0 0 0 rgba(41, 214, 142, 0.55); }
	70%  { box-shadow: 0 0 0 10px rgba(41, 214, 142, 0); }
	100% { box-shadow: 0 0 0 0 rgba(41, 214, 142, 0); }
}

.nav-end a { color: var(--c-text); font-weight: 500; }
.nav-end a:hover { color: var(--c-accent); }

.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	cursor: pointer;
	padding: 0;
	margin-left: auto;
}

.nav-toggle span {
	display: block;
	width: 16px;
	height: 1.5px;
	background: var(--c-text);
	margin: 0 auto;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 920px) {
	.nav-links { display: flex; }
	.nav-end { display: flex; }
	.nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
	position: fixed;
	inset: 0;
	background: var(--c-bg);
	z-index: 55;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: var(--header-h) var(--gutter) var(--gutter);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-drawer.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.mobile-drawer li {
	margin: 0.4rem 0;
}

.mobile-drawer a {
	font-size: clamp(1.6rem, 7vw, 2.6rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--c-text);
}

.mobile-drawer a.active { color: var(--c-accent); }

.mobile-drawer .contact-line {
	margin-top: 2rem;
	color: var(--c-text-muted);
	font-size: 0.9rem;
	letter-spacing: 0.06em;
}

.mobile-drawer .contact-line a {
	font-size: inherit;
	color: var(--c-text);
}

@media (min-width: 920px) {
	.mobile-drawer { display: none; }
}

/* ============================================================
   Hero (homepage)
   ============================================================ */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	color: var(--c-text);
	overflow: hidden;
	isolation: isolate;
	padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.hero-bg {
	position: absolute;
	inset: -10%;
	background-position: center;
	background-size: cover;
	z-index: -2;
	will-change: transform;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.15) 45%, rgba(11,11,13,0.85) 100%);
	z-index: -1;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	width: 100%;
}

@media (min-width: 860px) {
	.hero-grid {
		grid-template-columns: 1.4fr 1fr;
		align-items: end;
	}
}

.hero h1 {
	font-size: clamp(3rem, 10vw, 8.5rem);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 0.92;
	margin-bottom: 0.4rem;
}

.hero h1 .accent {
	color: var(--c-accent);
	font-style: italic;
	font-weight: 400;
}

.hero-meta {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding-bottom: 0.6rem;
}

.hero-meta .lead { color: rgba(243, 243, 245, 0.78); }

.hero-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.scroll-cue {
	position: absolute;
	left: var(--gutter);
	bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	z-index: 2;
}

.scroll-cue .bar {
	width: 1px;
	height: 36px;
	background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
	display: inline-block;
	animation: scrollBar 1.8s ease-in-out infinite;
}

@keyframes scrollBar {
	0%   { transform: scaleY(0); transform-origin: top; }
	50%  { transform: scaleY(1); transform-origin: top; }
	51%  { transform-origin: bottom; }
	100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.95rem 1.5rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
	border: 1px solid transparent;
	line-height: 1;
	font-family: inherit;
}

.btn-primary {
	background: var(--c-accent);
	color: #1b1106;
}
.btn-primary:hover { background: #ffb24d; transform: translateY(-1px); }

.btn-ghost {
	background: rgba(255,255,255,0.04);
	color: var(--c-text);
	border-color: var(--c-line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-link {
	background: transparent;
	color: var(--c-text);
	border: 0;
	padding: 0;
	font-size: 0.9rem;
	letter-spacing: 0.12em;
}

.btn .arrow {
	display: inline-flex;
	width: 16px;
	height: 16px;
	transition: transform 0.25s ease;
}

.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Parallax tiles (homepage main)
   ============================================================ */
.tiles { padding: 0; }

.tile {
	position: relative;
	min-height: 86vh;
	display: flex;
	align-items: center;
	color: var(--c-text);
	overflow: hidden;
	isolation: isolate;
	border-top: 1px solid var(--c-line);
}

.tile-bg {
	position: absolute;
	inset: -10%;
	background-position: center;
	background-size: cover;
	z-index: -2;
	will-change: transform;
	transition: filter 0.6s ease, transform 0.6s ease;
}

.tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.35) 50%, rgba(11,11,13,0.8) 100%);
	z-index: -1;
	transition: background 0.4s ease;
}

.tile-link {
	display: block;
	width: 100%;
	padding: 6rem 0;
}

.tile .shell {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: end;
}

@media (min-width: 860px) {
	.tile .shell {
		grid-template-columns: auto 1fr auto;
		align-items: center;
	}
}

.tile-num {
	font-size: 0.78rem;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.55);
	font-feature-settings: "tnum";
}

.tile h2 {
	font-size: clamp(2.5rem, 8vw, 6rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 0.95;
}

.tile p { color: rgba(243, 243, 245, 0.7); margin-top: 0.5rem; max-width: 42ch; }

.tile-arrow {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1px solid var(--c-line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
	flex-shrink: 0;
}

.tile:hover .tile-bg { transform: scale(1.04); }
.tile:hover .tile-arrow { background: var(--c-accent); border-color: var(--c-accent); color: #1b1106; }
.tile:hover .tile-arrow svg { transform: translateX(3px); }
.tile-arrow svg { width: 22px; height: 22px; transition: transform 0.3s ease; }

/* ============================================================
   24/7 marquee strip
   ============================================================ */
.marquee {
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	background: var(--c-bg);
	overflow: hidden;
	padding: 1.25rem 0;
}

.marquee-track {
	display: flex;
	gap: 3rem;
	white-space: nowrap;
	animation: scroll-x 38s linear infinite;
	width: max-content;
	font-size: clamp(1.4rem, 3vw, 2.4rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--c-text);
}

.marquee-track span { display: inline-flex; align-items: center; gap: 1.6rem; }

.marquee-track .dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-accent);
}

@keyframes scroll-x {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-head {
	padding: calc(var(--header-h) + 5rem) 0 4rem;
	border-bottom: 1px solid var(--c-line);
	position: relative;
	overflow: hidden;
}

.page-head .eyebrow { color: var(--c-accent); }
.page-head .eyebrow::before { background: var(--c-accent); opacity: 0.8; }

.page-head h1 {
	margin-top: 1rem;
	font-size: clamp(2.6rem, 8vw, 6rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 0.95;
}

.page-head p {
	max-width: 56ch;
	margin-top: 1.25rem;
	color: var(--c-text-muted);
}

/* ============================================================
   Sections (generic)
   ============================================================ */
.section {
	padding: clamp(4rem, 9vw, 8rem) 0;
}

.section-tight { padding: 3.5rem 0; }

.section-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 920px) {
	.section-grid-2 { grid-template-columns: 1fr 1.4fr; align-items: start; }
	.section-grid-sticky > .col-left { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Big stat blocks */
.stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	border-top: 1px solid var(--c-line);
	margin-top: 4rem;
	padding-top: 3rem;
}

@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat .num {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--c-text);
}

.stat .num .accent { color: var(--c-accent); }

.stat .label {
	margin-top: 0.6rem;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	color: var(--c-text-muted);
}

/* About: pillars */
.pillars-v2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--c-line);
	margin-top: 3rem;
	border: 1px solid var(--c-line);
	border-radius: 4px;
	overflow: hidden;
}

@media (min-width: 860px) { .pillars-v2 { grid-template-columns: repeat(3, 1fr); } }

.pillar-v2 {
	background: var(--c-bg);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 320px;
}

.pillar-v2 .num {
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	color: var(--c-accent);
}

.pillar-v2 h3 {
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
	letter-spacing: -0.02em;
}

.pillar-v2 p { color: var(--c-text-muted); font-size: 0.95rem; }

/* Image card with caption */
.image-card {
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--c-line);
}

.image-card img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Gallery
   ============================================================ */
.filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--c-line);
	margin-bottom: 2.5rem;
}

.filter-row button {
	background: transparent;
	border: 1px solid var(--c-line);
	color: var(--c-text-muted);
	padding: 0.55rem 1rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: all 0.25s ease;
	font-family: inherit;
}

.filter-row button:hover { color: var(--c-text); border-color: var(--c-line-strong); }
.filter-row button.is-active { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }

.gallery {
	column-count: 1;
	column-gap: 14px;
}

@media (min-width: 640px) { .gallery { column-count: 2; } }
@media (min-width: 1024px) { .gallery { column-count: 3; } }

.tile-img {
	display: block;
	break-inside: avoid;
	margin-bottom: 14px;
	border-radius: 4px;
	overflow: hidden;
	cursor: zoom-in;
	position: relative;
	background: var(--c-surface);
	transform: translateZ(0);
}

.tile-img img {
	width: 100%;
	height: auto;
	transition: transform 0.6s ease, opacity 0.4s ease;
}

.tile-img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tile-img:hover img { transform: scale(1.04); }
.tile-img:hover::after { opacity: 1; }
.tile-img.is-hidden { display: none; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 10, 0.94);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100;
	padding: 1rem;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.lightbox.is-open { display: flex; }

.lightbox img {
	max-width: 94vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
}

.lightbox button {
	position: absolute;
	background: rgba(255,255,255,0.08);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.12);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
	font-family: inherit;
}

.lightbox button:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4rem;
}

@media (min-width: 1000px) {
	.contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.contact-rows { display: flex; flex-direction: column; }

.contact-row {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 1.5rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--c-line);
	align-items: center;
}

.contact-row:first-child { border-top: 1px solid var(--c-line); }

.contact-row .key {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--c-text-muted);
}

.contact-row .val {
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	color: var(--c-text);
	letter-spacing: -0.01em;
	font-weight: 500;
}

.contact-row .val a:hover { color: var(--c-accent); }

.map-frame {
	height: clamp(380px, 60vh, 620px);
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--c-line);
	background: var(--c-surface);
}

.map-frame iframe { width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(180deg) brightness(0.95); }

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip {
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	padding: clamp(4rem, 8vw, 7rem) 0;
	text-align: center;
}

.cta-strip h2 {
	font-size: clamp(2rem, 6vw, 4.5rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	max-width: 18ch;
	margin: 0 auto 1.5rem;
	line-height: 1;
}

.cta-strip .em { color: var(--c-accent); font-style: italic; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
	padding: clamp(3rem, 6vw, 5rem) 0 2rem;
	color: var(--c-text-muted);
	font-size: 0.88rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 820px) {
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-grid h4 {
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--c-text);
	margin-bottom: 1rem;
	font-weight: 500;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 0.3rem 0; }
.footer-grid a { color: var(--c-text-muted); }
.footer-grid a:hover { color: var(--c-text); }

.footer-logo {
	display: inline-block;
	background: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

.footer-logo img {
	display: block;
	height: 56px;
	width: auto;
}

.footer-tag {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--c-text);
	line-height: 1.05;
	margin-bottom: 1rem;
}

.footer-tag .em { color: var(--c-accent); font-style: italic; }

.socials {
	display: inline-flex;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.socials a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--c-line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.socials a:hover { background: var(--c-accent); color: #1b1106; border-color: var(--c-accent); }

.socials svg { width: 14px; height: 14px; fill: currentColor; }

.footer-bottom {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-line);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	justify-content: space-between;
	align-items: center;
	text-align: center;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--c-text-muted);
}

@media (min-width: 700px) {
	.footer-bottom { flex-direction: row; text-align: left; }
}

/* ============================================================
   Reveal-on-scroll (used via IntersectionObserver)
   ============================================================ */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
	.marquee-track, .scroll-cue .bar { animation: none !important; }
	.hero-bg, .tile-bg { transform: none !important; }
}

/* ============================================================
   404
   ============================================================ */
.error-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--header-h) var(--gutter) var(--gutter);
}

.error-page .num {
	font-size: clamp(7rem, 28vw, 18rem);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--c-text);
}

.error-page .num .em { color: var(--c-accent); font-style: italic; font-weight: 400; }

.error-page p { margin: 1rem auto 2rem; max-width: 44ch; }

/* ============================================================
   Utility
   ============================================================ */
.lock-scroll { overflow: hidden; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--c-line); margin: 0; }
