/* ==========================================================================
   Tahmid Portfolio: main stylesheet
   Palette tokens come from inc/setup.php (Customizer-driven):
     --primary --secondary --accent --bg --fg --ink-accent
   The page recolors itself as you scroll through --page-bg / --page-fg / --page-accent
   (set by assets/js/scene.js). Without JS they simply equal --bg / --fg.
   ========================================================================== */

@font-face {
	font-family: "Mona Sans";
	src: url("../fonts/mona-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--font-display: "Mona Sans", "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Mona Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
	--gutter: clamp(1.1rem, 4vw, 3.5rem);
	--radius: 1.1rem;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--header-h: 4.6rem;
	--page-bg: var(--bg);
	--page-fg: var(--fg);
	--page-accent: var(--ink-accent);
	--line: color-mix(in srgb, currentColor 22%, transparent);
	--surface: color-mix(in srgb, currentColor 8%, transparent);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--page-bg);
	color: var(--page-fg);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.55;
	font-weight: 450;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* paper grain */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 50;
	pointer-events: none;
	opacity: 0.04;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 1; }
img, video, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: fixed; left: 1rem; top: -4rem; z-index: 200;
	padding: 0.7rem 1.1rem; border-radius: 999px;
	background: var(--fg); color: var(--bg);
	transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* fixed topographic background (front page) */
.page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page-bg canvas { width: 100%; height: 100%; }

/* ---------- typography ---------- */
.display {
	font-family: var(--font-display);
	font-weight: 850;
	text-transform: uppercase;
	font-size: clamp(2.3rem, 6.2vw, 6rem);
	line-height: 0.95;
	letter-spacing: -0.035em;
}
.display--xl { font-size: clamp(3rem, 10vw, 10rem); line-height: 0.88; }
.eyebrow {
	margin-bottom: 1.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--page-accent);
}
.lead { font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.5; max-width: 40rem; }
.prose { max-width: 46rem; font-size: 1.1rem; }
.prose > * + * { margin-top: 1.2em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--page-accent); }
.prose img { border-radius: var(--radius); }

.mark { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; background: var(--primary); box-shadow: 0.42rem 0.08rem 0 -0.05rem var(--secondary); margin-right: 0.5rem; }

/* split-text helpers (added by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }
.char { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 0.6rem;
	padding: 0.95rem 1.7rem;
	border: 2px solid var(--primary);
	border-radius: 999px;
	background: var(--primary);
	color: var(--bg);
	font-weight: 700; letter-spacing: 0.01em;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--page-fg); border-color: var(--page-fg); color: var(--page-bg); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--page-fg); color: var(--page-bg); border-color: var(--page-fg); }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ---------- header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	display: flex; align-items: center; gap: 1.5rem;
	height: var(--header-h);
	padding-inline: var(--gutter);
	color: var(--page-fg);
	transition: background 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease);
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--page-bg) 92%, transparent); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; }
.brand__name { display: inline-flex; flex-direction: column; line-height: 0.86; text-transform: uppercase; }
.brand__first { font-family: var(--font-serif); font-size: 1.55rem; letter-spacing: 0.01em; }
.brand__last { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.03em; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__list a { position: relative; font-weight: 600; font-size: 0.95rem; padding-block: 0.3rem; }
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--page-accent); transform: scaleX(0); transform-origin: right;
	transition: transform 0.4s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* ---------- opening stage (hero -> card -> signature) ---------- */
.stage { position: relative; }
.stage__pin { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.scene-on .stage { height: 440vh; }
.scene-on .stage__pin { position: sticky; top: 0; }

.rows {
	position: absolute; inset: 0; z-index: 1;
	display: flex; flex-direction: column; justify-content: center; gap: 1vh;
	opacity: 0; pointer-events: none;
}
.rows__line {
	display: flex; width: max-content; white-space: nowrap;
	font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
	font-size: clamp(3.4rem, 12.5vw, 12.5rem); line-height: 0.95; letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 2px color-mix(in srgb, var(--page-fg) 38%, transparent);
	will-change: transform;
}
.rows__line:nth-child(2) { color: color-mix(in srgb, var(--primary) 70%, transparent); -webkit-text-stroke: 0; }
.rows__line span { padding-right: 0.5em; }

/* the hero is the "frame": it shrinks into a card on scroll */
.hero {
	position: absolute; inset: 0; z-index: 2;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 62%, var(--secondary) 0 27vmin, transparent 27.3vmin),
		var(--bg);
	transform-origin: 50% 50%;
	will-change: transform, opacity;
}
.hero.is-collapsed .hero__title, .hero.is-collapsed .hero__meta, .hero.is-collapsed .hero__hint, .hero.is-collapsed .hero__scroll { pointer-events: none; }
.hero__veil { position: absolute; inset: 0; z-index: 6; background: var(--page-bg); opacity: 0; pointer-events: none; }
.stage.is-done .stage__pin > * { visibility: hidden; }
.hero__bg, .hero__fg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: 1; }
.hero__fg { z-index: 3; opacity: 0; transition: opacity 0.8s ease; }
.hero__fg.is-ready { opacity: 1; }
.hero__fallback {
	position: absolute; z-index: 3; left: 50%; bottom: 0;
	height: 102%; width: auto; max-width: none;
	transform: translateX(-50%);
	pointer-events: none;
}
html.has-webgl .hero__fallback { display: none; }

.hero__title {
	position: absolute; z-index: 2;
	left: var(--gutter); right: var(--gutter);
	top: clamp(5.2rem, 13vh, 9rem);
	font-family: var(--font-display); font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(3.6rem, 13.2vw, 14rem);
	line-height: 0.82;
	letter-spacing: -0.05em;
	color: var(--primary);
	pointer-events: none;
}
.hero__line { display: block; overflow: hidden; padding-top: 0.04em; white-space: nowrap; }
.hero__line--2 { text-align: right; }

.hero__meta { position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(1.4rem, 4vh, 2.6rem); max-width: 20rem; color: var(--fg); }
.hero__role { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.hero__tagline { margin-top: 0.4rem; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.hero__hint {
	position: absolute; z-index: 4; left: 50%; bottom: clamp(1.4rem, 4vh, 2.6rem); transform: translateX(-50%);
	padding: 0.5rem 1rem; border-radius: 999px;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	color: var(--fg);
	font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
	transition: opacity 0.6s;
}
.hero__hint.is-hidden { opacity: 0; pointer-events: none; }
.hero__scroll {
	position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(1.4rem, 4vh, 2.6rem);
	display: inline-flex; align-items: center; gap: 0.7rem; color: var(--fg);
	font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}
.hero__scroll i { width: 2.6rem; height: 2px; background: currentColor; transform-origin: left; animation: tp-scroll 2.2s var(--ease) infinite; }
@keyframes tp-scroll { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* signature */
.sigwrap { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; opacity: 0; color: var(--page-accent); }
.sigwrap__label {
	position: absolute; left: 50%; top: 17vh; transform: translateX(-50%);
	display: inline-flex; align-items: center; white-space: nowrap;
	font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--page-fg);
}
.sig { width: min(72vw, 920px); height: auto; max-height: 56vh; object-fit: contain; color: var(--page-accent); }
svg.sig { stroke: currentColor; stroke-width: 3.5; stroke-linejoin: round; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5)); }

/* ---------- statement ---------- */
.scene-on .statement { margin-top: -70vh; }
.statement { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 2.2rem; }
.statement__emblem { display: grid; justify-items: center; gap: 0.7rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.statement__emblem .mark { width: 1.6rem; height: 1.6rem; margin: 0; }
.statement__text {
	max-width: 17ch;
	font-family: var(--font-display); font-weight: 850; text-transform: uppercase;
	font-size: clamp(2.1rem, 6.4vw, 6.8rem); line-height: 0.98; letter-spacing: -0.04em;
}
.statement__text em { font-family: var(--font-serif); font-style: normal; font-weight: 400; letter-spacing: -0.01em; color: var(--page-accent); }

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 11vw, 9.5rem) var(--gutter); position: relative; }

/* ---------- work collage ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0 2.4rem; }
.chip {
	display: inline-block; padding: 0.55rem 1.2rem; border: 2px solid var(--line); border-radius: 999px;
	background: transparent; font-weight: 700; font-size: 0.9rem;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: currentColor; }
.chip.is-active { background: var(--page-fg); color: var(--page-bg); border-color: var(--page-fg); }

.grid, .collage { display: grid; gap: clamp(1rem, 2.4vw, 2rem); }
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.collage { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; row-gap: clamp(3rem, 9vw, 8rem); margin-top: 2rem; }
.card { transition: opacity 0.4s, transform 0.5s var(--ease); }
.card.is-filtered { opacity: 0.12; transform: scale(0.97); pointer-events: none; }
.card__link { display: block; }
.card__caption { margin-bottom: 0.7rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; min-height: 1em; }
.card__media {
	position: relative; overflow: hidden; aspect-ratio: var(--ar, 4 / 3); border-radius: 0.35rem;
	background: var(--surface);
	display: grid; place-items: center;
}
.card__img, .card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card__video { opacity: 0; transition: opacity 0.4s, transform 0.9s var(--ease); }
.card:hover .card__video.is-playing { opacity: 1; }
.card:hover .card__img { transform: scale(1.06); }
.card__ph {
	font-family: var(--font-display); font-weight: 900; text-transform: uppercase; text-align: center;
	font-size: clamp(1.6rem, 3.6vw, 3.2rem); line-height: 0.95; letter-spacing: -0.04em; padding: 1rem; color: var(--bg);
	transition: transform 0.9s var(--ease);
}
.card:hover .card__ph { transform: scale(1.07) rotate(-2deg); }
.card__media--roblox { background: var(--primary); }
.card__media--unreal-engine { background: var(--fg); }
.card__media--unity { background: var(--secondary); }
.card__media--unity .card__ph { color: var(--fg); }
.card__media--figma-ui-ux { background: var(--accent); }
.card__media--figma-ui-ux .card__ph { color: var(--fg); }
.card__media--other { background: var(--surface); }
.card__media--other .card__ph { color: inherit; }
.card__media--noimg::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.16;
	background: repeating-linear-gradient(135deg, var(--bg) 0 2px, transparent 2px 14px);
}
.card__title { margin-top: 0.8rem; font-family: var(--font-display); font-weight: 850; text-transform: uppercase; font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1; letter-spacing: -0.03em; }
.work__all { margin-top: 4rem; }

/* scattered layout: sizes, offsets and aspect ratios (child 3 is the quote block) */
@media (min-width: 900px) {
	.collage > :nth-child(10n + 1) { grid-column: 2 / span 3; --ar: 3 / 4; }
	.collage > :nth-child(10n + 2) { grid-column: 7 / span 5; --ar: 4 / 5; margin-top: 4vh; }
	.collage > :nth-child(10n + 3) { grid-column: 3 / span 3; align-self: center; }
	.collage > :nth-child(10n + 4) { grid-column: 1 / span 4; --ar: 1 / 1; margin-top: 6vh; }
	.collage > :nth-child(10n + 5) { grid-column: 7 / span 3; --ar: 3 / 4; margin-top: 12vh; }
	.collage > :nth-child(10n + 6) { grid-column: 10 / span 3; --ar: 4 / 5; }
	.collage > :nth-child(10n + 7) { grid-column: 2 / span 5; --ar: 4 / 3; }
	.collage > :nth-child(10n + 8) { grid-column: 8 / span 4; --ar: 1 / 1; margin-top: 10vh; }
	.collage > :nth-child(10n + 9) { grid-column: 1 / span 3; --ar: 3 / 4; }
	.collage > :nth-child(10n + 10) { grid-column: 6 / span 4; --ar: 4 / 3; }
}
@media (max-width: 899px) {
	.collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1rem; }
	.collage > * { --ar: 3 / 4; }
	.collage > .collage__quote { grid-column: 1 / -1; }
	.collage > :nth-child(2n) { margin-top: 2.5rem; }
}
.collage__quote { max-width: 24rem; }
.collage__text { font-family: var(--font-serif); font-size: clamp(1.25rem, 1.9vw, 1.8rem); line-height: 1.12; }
.collage__sig { margin-top: 1.1rem; width: 9rem; height: auto; color: var(--page-accent); }

/* ---------- split section ---------- */
.split__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: 2rem; }
.split__col { display: grid; align-content: start; justify-items: start; gap: 1.4rem; }
.split__title { display: grid; line-height: 0.82; text-transform: uppercase; }
.split__title em { font-family: var(--font-serif); font-style: normal; font-weight: 400; font-size: clamp(2.8rem, 7.5vw, 7.5rem); color: var(--page-accent); line-height: 0.9; letter-spacing: -0.01em; }
.split__title span { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 7.2vw, 7.2rem); letter-spacing: -0.05em; }
.split__text { max-width: 24rem; opacity: 0.85; }
.split__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- project page ---------- */
.project__head { padding-bottom: 2rem; }
.project__meta { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.project__meta dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.project__meta dd { font-weight: 700; }
.project__meta a { color: var(--page-accent); text-decoration: underline; text-underline-offset: 3px; }
.project__cover { padding-inline: var(--gutter); }
.project__cover img { width: 100%; height: auto; border-radius: var(--radius); }
.project__next { display: block; background: var(--primary); color: var(--bg); }
.project__next .eyebrow { color: var(--secondary); display: block; }
.post-row { padding-block: 2rem; border-top: 1px solid var(--line); }
.post-row__title { font-family: var(--font-display); font-weight: 850; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; }
.navigation.pagination { margin-top: 3rem; }
.navigation.pagination .nav-links { display: flex; gap: 0.6rem; }
.page-numbers { padding: 0.5rem 1rem; border: 2px solid var(--line); border-radius: 999px; }
.page-numbers.current { background: var(--page-fg); color: var(--page-bg); border-color: var(--page-fg); }

/* ---------- contact + footer ---------- */
.contact { overflow: hidden; padding-bottom: 0; }
.contact__mail {
	display: inline-block; margin-top: clamp(1.6rem, 4vw, 3rem);
	font-family: var(--font-display); font-weight: 850; text-transform: uppercase; letter-spacing: -0.04em;
	font-size: clamp(1.4rem, 4.8vw, 4.6rem); line-height: 1;
	border-bottom: 0.07em solid currentColor; padding-bottom: 0.1em;
	word-break: break-all;
	transition: color 0.3s;
}
.contact__mail:hover { color: var(--page-accent); }
.contact__links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: clamp(1.8rem, 4vw, 3rem); }
.contact .btn { background: var(--page-fg); color: var(--page-bg); border-color: var(--page-fg); }
.contact .btn:hover { background: var(--page-accent); border-color: var(--page-accent); color: var(--fg); }
.contact .btn--ghost { background: transparent; color: var(--page-fg); border-color: var(--page-fg); }
.contact .btn--ghost:hover { background: var(--page-fg); color: var(--page-bg); }
.footer-line {
	margin: clamp(3rem, 8vw, 7rem) calc(var(--gutter) * -1) 0;
	padding-inline: var(--gutter);
	font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.055em;
	font-size: clamp(3rem, 11.5vw, 12rem); line-height: 0.8; white-space: nowrap;
	transform: translateY(18%);
	color: color-mix(in srgb, var(--page-fg) 92%, transparent);
}

.site-footer {
	position: relative; z-index: 1;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
	padding: 1.6rem var(--gutter); font-size: 0.9rem; font-weight: 600;
	background: var(--page-bg); color: var(--page-fg);
}
.site-footer__links { display: flex; gap: 1.4rem; }
.site-footer a:hover { color: var(--page-accent); }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 7px; height: 7px; background: var(--page-accent); }
.cursor__ring {
	width: 38px; height: 38px; border: 2px solid var(--page-accent);
	display: grid; place-items: center;
	font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
	transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; background: color-mix(in srgb, var(--page-accent) 22%, transparent); }
.cursor.is-view .cursor__ring { width: 92px; height: 92px; background: var(--page-accent); border-color: var(--page-accent); }
.cursor.is-view .cursor__ring::after { content: "View"; color: var(--page-bg); }
.cursor.is-hero .cursor__ring, .cursor.is-hero .cursor__dot { opacity: 0; }

/* ---------- reveal states (JS adds .js-ready, .is-in) ---------- */
.js-ready .reveal { opacity: 0; transform: translateY(28px); }
.js-ready .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-ready [data-lines] .wi { transform: translateY(108%); }
.js-ready [data-lines].is-in .wi { transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js-ready .hero [data-chars] .char { transform: translateY(108%); }
.js-ready .hero.is-in [data-chars] .char { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.split__cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.header-cta { display: none; }
	.nav-toggle {
		display: inline-grid; gap: 0.38rem; place-content: center; margin-left: auto;
		width: 2.8rem; height: 2.8rem; border: 2px solid currentColor; border-radius: 50%; background: transparent; z-index: 120;
	}
	.nav-toggle__bar { display: block; width: 1.1rem; height: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
	.nav-open .nav-toggle__bar:first-of-type { transform: translateY(0.24rem) rotate(45deg); }
	.nav-open .nav-toggle__bar:nth-of-type(2) { transform: translateY(-0.24rem) rotate(-45deg); }
	.nav {
		position: fixed; inset: 0; z-index: 110; margin: 0;
		display: none; align-items: center; justify-content: center;
		background: var(--page-bg); color: var(--page-fg);
	}
	.nav-open .nav { display: flex; }
	.nav-open .site-header { z-index: 130; }
	.nav__list { flex-direction: column; align-items: center; gap: 1.2rem; }
	.nav__list a { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.4rem, 11vw, 4.2rem); font-weight: 900; letter-spacing: -0.04em; }
	.hero__hint, .hero__scroll { display: none; }
	.hero__meta { right: var(--gutter); max-width: none; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
	.hero__tagline { opacity: 0.9; }
}
@media (max-width: 520px) {
	.hero__title { top: clamp(4.6rem, 11vh, 6rem); font-size: clamp(2.8rem, 15vw, 6rem); }
}

/* ---------- reduced motion: no pinned sequence, no marquee, no reveals ---------- */
@media (prefers-reduced-motion: reduce) {
	.scene-on .stage { height: auto; }
	.scene-on .stage__pin { position: relative; }
	.rows, .sigwrap { display: none; }
	.hero__scroll i, .mark { animation: none; }
	.js-ready .reveal { opacity: 1; transform: none; }
	.js-ready [data-lines] .wi, .js-ready .hero [data-chars] .char { transform: none; }
	* { scroll-behavior: auto !important; }
}
