/* Hallmark · route: studied-DNA (sources: orvani.group + lambowholesale.com, both owner's own) · genre: atmospheric
 * structure: scroll-flight through a living field (template flow kept) · hero: lambo diagonal static stream
 * display: Archivo 900 @ 125% (ORVANI) + Unbounded 900 stream (Lambo) · property sections wear their own brand faces
 * palette: OLO #00FFCC · violet #CC00FF · coral #FF0033 · laser #FF3300 · aubergine #09040C · ink #0D0C0A · white. No yellow.
 */

/* ── Fonts (self-hosted) ─────────────────────────────────────────── */
@font-face { font-family: "Archivo"; src: url("../brand/orvani/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../brand/lambo/unbounded-900-latin.woff2") format("woff2"); font-weight: 900; font-display: block; }
@font-face { font-family: "Anton"; src: url("../brand/underdogs/anton-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../brand/underdogs/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../brand/phlower/outfit-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
	--color-olo: #00ffcc;
	--color-violet: #cc00ff;
	--color-coral: #ff0033;
	--color-laser: #ff3300;
	--color-bg: #09040c;
	--color-ink: #0d0c0a;
	--color-white: #ffffff;
	--color-text: rgba(255, 255, 255, 0.92);
	--color-muted: rgba(255, 255, 255, 0.68);
	--color-line: rgba(255, 255, 255, 0.14);

	/* Phlower Pharma (phlowerpharma.com bundle) */
	--pp-forest: #2d5a27;
	--pp-leaf: #5ea131;
	--pp-sage: #8bb973;
	--pp-deep: #234b1f;
	/* Underdogs Lab (--ud-*) */
	--ud-bg: #030203;
	--ud-fuchsia: #ff00bf;

	--font-display: "Archivo", "Arial Black", system-ui, sans-serif;
	--font-body: "Archivo", system-ui, sans-serif;
	--font-stream: "Unbounded", system-ui, sans-serif;
	--font-pp: "Outfit", "Inter", system-ui, sans-serif;
	--font-ud: "Anton", "Impact", sans-serif;
	--font-ud-body: "Inter", system-ui, sans-serif;

	--space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem;
	--space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--shadow-text: 0 2px 24px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);

	/* Template typography hooks the settings panel can still drive */
	--color-heading: var(--color-white);
	--color-accent: var(--color-olo);
	--color-body: var(--color-text);
	--color-label: var(--color-violet);
}

/* ── Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
	width: 100%;
	min-height: 100%;
	background: #000;
	overflow-x: clip;
	font-family: var(--font-body);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
}
html { color-scheme: dark; scroll-snap-type: y proximity; scroll-padding-top: 0; }

body > canvas, canvas[data-engine] {
	position: fixed; top: 0; left: 0;
	width: 100vw; height: 100vh; z-index: 0;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-olo); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--color-violet); color: var(--color-white); }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: fixed; top: var(--space-2); left: var(--space-2); z-index: 300;
	padding: var(--space-2) var(--space-4); background: var(--color-olo); color: var(--color-ink);
	font-weight: 700; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

#scroll-container { position: relative; z-index: 1; pointer-events: none; }

.section {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	padding: var(--space-24) clamp(1.25rem, 6vw, 6rem);
	pointer-events: none;
	scroll-snap-align: start;
}
.section a, .section button { pointer-events: auto; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav-float {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	display: flex; align-items: center; justify-content: space-between;
	height: 72px; padding: 0 clamp(1.25rem, 4vw, 3rem);
	transition: background-color 300ms var(--ease-out);
}
.nav-float.visible { background: linear-gradient(rgba(9, 4, 12, 0.85), rgba(9, 4, 12, 0)); }

.nav-logo {
	font-family: var(--font-display);
	font-weight: 900; font-stretch: 125%;
	font-size: 0.95rem; letter-spacing: -0.01em;
	color: var(--color-white); text-decoration: none; white-space: nowrap;
	text-shadow: var(--shadow-text);
}
.nav-logo span { color: var(--color-olo); }

.nav-links { display: flex; gap: var(--space-8); }
.nav-links a {
	font-size: 0.875rem; font-weight: 600; color: var(--color-text);
	text-decoration: none; padding: var(--space-3) 0; text-shadow: var(--shadow-text);
	transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--color-olo); } }

.nav-hamburger {
	display: none; position: relative; width: 44px; height: 44px;
	background: none; border: 0; cursor: pointer;
}
.nav-hamburger span {
	position: absolute; left: 10px; width: 24px; height: 2px; background: var(--color-white);
	transition: transform 250ms var(--ease-out), opacity 150ms ease;
}
.nav-hamburger span:nth-child(1) { top: 14px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 28px; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
	position: fixed; inset: 0; z-index: 90;
	display: flex; flex-direction: column; justify-content: center; gap: var(--space-6);
	padding: 0 var(--space-8);
	background: rgba(9, 4, 12, 0.96);
	opacity: 0; visibility: hidden;
	transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms;
}
.nav-mobile-overlay.open { opacity: 1; visibility: visible; transition: opacity 250ms var(--ease-out); }
.nav-mobile-overlay a {
	font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
	font-size: clamp(2rem, 9vw, 3rem); color: var(--color-white); text-decoration: none;
}
.nav-mobile-overlay a:focus-visible, .nav-mobile-overlay a:active { color: var(--color-olo); }

@media (max-width: 768px) {
	.nav-links { display: none; }
	.nav-hamburger { display: block; }
}

.progress-bar {
	position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
	background: var(--color-olo);
}

/* ── Hero: pinned stage + diagonal static stream ─────────────────── */
.hero { display: block; min-height: 200vh; padding: 0; scroll-snap-align: start; }
.hero-stage {
	position: sticky; top: 0;
	height: 100vh; height: 100dvh;
	overflow: hidden;
}
.stream-host {
	position: absolute; inset: 0;
	pointer-events: none;
	font-family: var(--font-stream);
	font-weight: 900;
	--sb: 54%;
}
.stream-probe { position: absolute; top: 0; left: 0; width: 1px; height: var(--sb); visibility: hidden; }
.stream-canvas { position: absolute; top: 0; left: 0; display: block; }
@media (max-width: 480px) { .stream-host { --sb: 52%; } }

.hero-copy {
	position: absolute;
	left: clamp(1.25rem, 6vw, 6rem);
	bottom: clamp(5rem, 14vh, 9rem);
	max-width: 30rem;
	z-index: 3;
}
.hero-line {
	font-family: var(--font-display);
	font-weight: 800; font-stretch: 112%;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	line-height: 1.2; letter-spacing: -0.01em;
	color: var(--color-white);
	text-wrap: balance;
	text-shadow: var(--shadow-text);
}
.hero-place {
	margin-top: var(--space-3);
	font-size: 1rem; color: var(--color-muted);
	text-shadow: var(--shadow-text);
}

.scroll-hint {
	position: absolute; right: clamp(1.25rem, 6vw, 6rem); bottom: clamp(5rem, 14vh, 9rem);
	z-index: 3; display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
	font-size: 0.8125rem; font-weight: 600; color: var(--color-text); text-shadow: var(--shadow-text);
}
.scroll-line { width: 2px; height: 48px; background: var(--color-olo); transform-origin: top; animation: scrollPulse 2.4s var(--ease-out) infinite; }
@keyframes scrollPulse { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Shared display type ─────────────────────────────────────────── */
.display {
	font-family: var(--font-display);
	font-weight: 900; font-stretch: 125%;
	line-height: 0.98; letter-spacing: -0.035em;
	color: var(--color-heading);
	text-wrap: balance; overflow-wrap: anywhere; min-width: 0;
	text-shadow: var(--shadow-text);
}
.body-copy {
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	line-height: 1.6; color: var(--color-body);
	max-width: 36rem; text-wrap: pretty;
	text-shadow: var(--shadow-text);
}
.body-copy + .body-copy { margin-top: var(--space-4); }

/* ── About ───────────────────────────────────────────────────────── */
.about-inner { width: 100%; max-width: 78rem; }
.about .display { font-size: clamp(2.6rem, 7.2vw, 7rem); max-width: 14ch; }
.about .display .ink-olo { color: var(--color-olo); }
.about-translation {
	margin-top: var(--space-4);
	font-family: var(--font-display); font-stretch: 112%; font-size: clamp(1.25rem, 2.2vw, 1.875rem); font-weight: 800; color: var(--color-violet);
	text-shadow: var(--shadow-text);
}
.about-cols {
	margin-top: var(--space-12);
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12);
	max-width: 62rem;
}
.about-quote {
	border-left: 3px solid var(--color-coral);
	padding-left: var(--space-6);
}
.about-quote blockquote {
	font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
	font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; color: var(--color-white);
	text-shadow: var(--shadow-text);
}
.about-quote figcaption { margin-top: var(--space-3); font-size: 0.9375rem; color: var(--color-muted); text-shadow: var(--shadow-text); }
@media (max-width: 820px) { .about-cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* ── HQ ──────────────────────────────────────────────────────────── */
.hq { justify-content: flex-end; text-align: right; }
.hq-inner { max-width: 70rem; }
.hq h2 { font-size: 1.125rem; font-weight: 700; color: var(--color-olo); text-shadow: var(--shadow-text); }
.hq address { font-style: normal; margin-top: var(--space-4); }
.hq .display { display: block; font-size: clamp(2.4rem, 8vw, 8rem); }
.hq .display.dim { color: var(--color-coral); }
.hq-city {
	display: block; margin-top: var(--space-4);
	font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
	font-size: clamp(1.25rem, 2.6vw, 2.25rem); color: var(--color-white); text-shadow: var(--shadow-text);
}

/* Buttons: one solid, the rest outline */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
	min-height: 48px; padding: 0 var(--space-6);
	font-weight: 700; font-size: 1rem; white-space: nowrap; text-decoration: none;
	border-radius: 999px; border: 2px solid currentColor;
	transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-olo { background: var(--color-olo); border-color: var(--color-olo); color: var(--color-ink); }
.btn-ghost { color: var(--color-white); background: rgba(9, 4, 12, 0.35); backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) {
	.btn-olo:hover { background: var(--color-white); border-color: var(--color-white); }
	.btn-ghost:hover { background: var(--color-white); color: var(--color-ink); border-color: var(--color-white); }
}
.hq .btn { margin-top: var(--space-8); }

/* ── Property: Phlower Pharma (its own face + logo) ──────────────── */
.prop { align-items: flex-end; padding-bottom: clamp(4rem, 12vh, 8rem); }
.prop-card {
	width: 100%; max-width: 44rem;
	padding: clamp(1.75rem, 4vw, 3rem);
	border-radius: 28px;
}
.pp .prop-card {
	font-family: var(--font-pp);
	background: var(--color-white);
	color: var(--color-ink);
	box-shadow: 0 30px 80px rgba(13, 12, 10, 0.28);
}
.pp-logo { display: block; width: min(100%, 22rem); height: auto; filter: brightness(0); }
.pp h2 {
	margin-top: var(--space-8);
	font-family: var(--font-pp); font-weight: 800;
	font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--color-ink);
	text-wrap: balance;
}
.pp p { margin-top: var(--space-4); font-size: 1.125rem; line-height: 1.6; color: var(--color-ink); max-width: 34rem; }
.pp .btn { margin-top: var(--space-8); font-family: var(--font-pp); background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) { .pp .btn:hover { background: var(--color-white); border-color: var(--color-ink); color: var(--color-ink); } }
.pp .btn:focus-visible { background: var(--color-white); border-color: var(--color-ink); color: var(--color-ink); }

/* ── Property: Underdogs Lab (its own face + mark) ───────────────── */
.ud { justify-content: flex-end; }
.ud .prop-card {
	font-family: var(--font-ud-body);
	background: color-mix(in srgb, var(--ud-bg) 86%, transparent);
	border: 1px solid rgba(0, 255, 204, 0.28);
	backdrop-filter: blur(10px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-8); align-items: center;
}
.ud-mark { width: clamp(6rem, 12vw, 9.5rem); height: auto; filter: invert(1); }
.ud h2 {
	font-family: var(--font-ud); font-weight: 400; text-transform: uppercase;
	font-size: clamp(3rem, 7vw, 6rem); line-height: 0.9; letter-spacing: 0.005em; color: #fff;
}
.ud h2 span { color: var(--color-olo); }
.ud-line { margin-top: var(--space-3); font-family: var(--font-ud); font-size: clamp(1.25rem, 2vw, 1.6rem); text-transform: uppercase; color: var(--ud-fuchsia); letter-spacing: 0.01em; }
.ud p.ud-desc { grid-column: 1 / -1; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); max-width: 36rem; }
.ud .btn { grid-column: 1 / -1; justify-self: start; font-family: var(--font-ud-body); }
@media (max-width: 560px) { .ud .prop-card { grid-template-columns: minmax(0, 1fr); } }

/* ── Properties index (the page's last word) ─────────────────────── */
.props { flex-direction: column; align-items: stretch; justify-content: center; }
.props h2 { font-size: 1.125rem; font-weight: 700; color: var(--color-olo); text-shadow: var(--shadow-text); }
.props-list { list-style: none; margin-top: var(--space-6); border-top: 1px solid var(--color-line); }
.props-list li { border-bottom: 1px solid var(--color-line); }
.props-list a {
	display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-6);
	padding: clamp(1.25rem, 3vw, 2.25rem) 0; text-decoration: none; color: var(--color-white);
	text-shadow: var(--shadow-text);
}
.props-name { font-size: min(7.2vw, 7rem); line-height: 0.95; overflow-wrap: anywhere; min-width: 0; transition: color 150ms ease; }
.props-list .is-pp .props-name { font-family: var(--font-pp); font-weight: 800; letter-spacing: -0.03em; }
.props-list .is-ud .props-name { font-family: var(--font-ud); font-weight: 400; text-transform: uppercase; }
.props-meta { flex: none; font-size: 1rem; font-weight: 600; color: var(--color-muted); }
@media (hover: hover) and (pointer: fine) {
	.props-list .is-pp a:hover .props-name { color: var(--pp-leaf); }
	.props-list .is-ud a:hover .props-name,
	.props-list .is-ud a:focus-visible .props-name { color: var(--color-laser); }
}
@media (max-width: 640px) { .props-list a { flex-direction: column; gap: var(--space-2); } }

.footer { min-height: 0; padding: 0; display: none; }

/* ── Site footer ─────────────────────────────────────────────────── */
.site-footer {
	position: relative; z-index: 2;
	background: var(--color-bg);
	border-top: 3px solid var(--color-violet);
	padding: var(--space-16) clamp(1.25rem, 6vw, 6rem) var(--space-8);
}
.sf-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); max-width: 90rem; }
.sf-name { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--color-white); }
.sf-name span { color: var(--color-olo); }
.sf-grid address { font-style: normal; margin-top: var(--space-4); line-height: 1.6; color: var(--color-muted); }
.sf-grid h2 { font-size: 0.9375rem; font-weight: 700; color: var(--color-violet); margin-bottom: var(--space-3); }
.sf-grid ul { list-style: none; display: grid; gap: var(--space-2); }
.sf-grid ul a { display: inline-block; padding: var(--space-2) 0; color: var(--color-text); text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .sf-grid ul a:hover { color: var(--color-olo); } }
.sf-bottom { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--color-line); font-size: 0.875rem; color: var(--color-muted); max-width: 90rem; }
@media (max-width: 820px) { .sf-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* ── Debug-only settings gear (?debug) ───────────────────────────── */
.settings-gear, .settings-panel { display: none; }
.debug .settings-gear { display: flex; }
.debug .settings-panel { display: block; }

@media (prefers-reduced-motion: reduce) {
	.scroll-line { animation: none; }
	html { scroll-snap-type: none; }
}

/* Small screens: keep copy legible over the bright field */
@media (max-width: 640px) {
	.scroll-hint { display: none; }
	.about-inner { background: rgba(9, 4, 12, 0.62); padding: var(--space-6); border-radius: 20px; backdrop-filter: blur(4px); }
	.hero-copy { right: clamp(1.25rem, 6vw, 6rem); }
}
