/* ==========================================================================
   Ravir — main stylesheet
   01 Tokens · 02 Base · 03 Type · 04 Layout · 05 Buttons · 06 Header
   07 Hero · 08 Chapter · 09 Wines · 10 Product · 11 Story · 12 Recipes
   13 Media · 14 Partner · 15 Footer · 16 Prose · 17 Motion
   ========================================================================== */

/* 01 Tokens ---------------------------------------------------------------- */
:root {
	--ink: #0d0b0a;
	--ink-2: #16120f;
	--bone: #f3ede3;
	--bone-2: #e9e0d1;
	--muted: rgb(243 237 227 / .66);
	--line: rgb(243 237 227 / .14);
	--wine: #8c1d24;
	--gold: #c6a466;

	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Jost", system-ui, sans-serif;

	--max: 82rem;
	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--space: clamp(5rem, 11vw, 9.5rem);
	--header: 5.5rem;

	--ease: cubic-bezier(.22, 1, .36, 1);
	--slow: 1.2s;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 4rem;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--bone);
	font: 300 1.0625rem/1.75 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
figure, blockquote, address { margin: 0; font-style: normal; }
::selection { background: var(--wine); color: var(--bone); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 100;
	padding: .75rem 1.25rem;
	background: var(--bone);
	color: var(--ink);
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 03 Type ------------------------------------------------------------------ */
h1, h2, h3 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -.01em;
}

p { margin: 0 0 1.25em; }

.display { font-size: clamp(3.75rem, 11vw, 9.5rem); line-height: .92; }
.title { font-size: clamp(2.5rem, 5.5vw, 4.75rem); margin-bottom: .5em; }

.subtitle {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.8vw, 2.25rem);
	font-style: italic;
	line-height: 1.3;
}

.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 36rem; }

.eyebrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	color: var(--gold);
	font: 400 .75rem/1 var(--sans);
	letter-spacing: .32em;
	text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-size: .75rem;
	letter-spacing: .28em;
	text-transform: uppercase;
}
.link-arrow svg { width: 1.1rem; transition: transform .6s var(--ease); }

/* 04 Layout ---------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { position: relative; padding-block: var(--space); }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); text-align: center; }
.section-head .eyebrow { justify-content: center; }

.split { display: grid; gap: clamp(3rem, 7vw, 7rem); align-items: center; }

/* Offset gold frame around imagery */
.frame { position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.frame::after {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	z-index: -1;
	border: 1px solid var(--gold);
	opacity: .5;
}

/* Ivory arch — bottles are shot on white, multiply blends them into it */
.arch {
	display: grid;
	place-items: end center;
	padding: 3rem 1rem 0;
	background: radial-gradient(120% 80% at 50% 100%, var(--bone-2), var(--bone) 70%);
	border-radius: 999px 999px 0 0;
	overflow: hidden;
}
.arch img { mix-blend-mode: multiply; transition: transform var(--slow) var(--ease); }

@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; }
	.split--media { grid-template-columns: 5fr 6fr; }
}

/* 05 Buttons --------------------------------------------------------------- */
.btn {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .9rem;
	padding: 1.1rem 2.1rem;
	overflow: hidden;
	border: 1px solid currentColor;
	background: none;
	font-size: .75rem;
	font-weight: 400;
	letter-spacing: .28em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .6s var(--ease), border-color .6s var(--ease);
}
.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--bone);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .7s var(--ease);
}
.btn svg { width: 1.1rem; transition: transform .7s var(--ease); }
.btn:hover { color: var(--ink); border-color: var(--bone); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover svg, a:hover .link-arrow svg { transform: translateX(.35rem); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* 06 Header ---------------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header);
	transition: height .6s var(--ease), background-color .6s var(--ease), border-color .6s;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	--header: 4.25rem;
	background: rgb(13 11 10 / .82);
	border-color: var(--line);
	backdrop-filter: blur(14px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { position: relative; z-index: 2; }
.brand img { width: 5.25rem; transition: width .6s var(--ease); }
.is-scrolled .brand img { width: 4.25rem; }

.nav ul { margin: 0; padding: 0; list-style: none; }
.nav a { display: block; transition: color .4s, opacity .4s; }

.nav-toggle {
	position: relative;
	z-index: 2;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
	position: absolute;
	left: .5rem;
	right: .5rem;
	height: 1px;
	background: currentColor;
	transition: transform .5s var(--ease);
}
.nav-toggle__bars { top: 1.1rem; }
.nav-toggle__bars::before { content: ""; left: 0; right: 0; top: .5rem; }
.nav-open .nav-toggle__bars { transform: translateY(.25rem) rotate(45deg); }
.nav-open .nav-toggle__bars::before { transform: translateY(-.5rem) rotate(-90deg); }

/* Mobile: full-screen overlay */
@media (max-width: 1023px) {
	.nav {
		position: fixed;
		inset: 0;
		display: grid;
		place-items: center;
		background: var(--ink);
		clip-path: inset(0 0 100% 0);
		transition: clip-path .8s var(--ease);
	}
	.nav-open .nav { clip-path: inset(0); }
	.nav-open body { overflow: hidden; }
	.nav-open .site-header { backdrop-filter: none; } /* a filter would trap the fixed overlay */

	.nav .menu { text-align: center; }
	.nav .menu > li {
		opacity: 0;
		transform: translateY(1.5rem);
		transition: opacity .6s var(--ease), transform .6s var(--ease);
	}
	.nav-open .nav .menu > li { opacity: 1; transform: none; }
	.nav-open .nav .menu > li:nth-child(2) { transition-delay: .05s; }
	.nav-open .nav .menu > li:nth-child(3) { transition-delay: .1s; }
	.nav-open .nav .menu > li:nth-child(4) { transition-delay: .15s; }
	.nav-open .nav .menu > li:nth-child(5) { transition-delay: .2s; }
	.nav-open .nav .menu > li:nth-child(n+6) { transition-delay: .25s; }

	.nav .menu > li > a { padding: .2rem 0; font: 400 clamp(2rem, 8vw, 3rem)/1.2 var(--serif); }
	.nav .sub-menu { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: .5rem; }
	.nav .sub-menu a { color: var(--gold); font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; }
}

/* Desktop: inline with dropdown */
@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.nav .menu { display: flex; gap: 2.5rem; }
	.nav .menu > li { position: relative; }
	.nav .menu > li > a {
		padding-block: .5rem;
		font-size: .75rem;
		letter-spacing: .24em;
		text-transform: uppercase;
	}
	.nav .menu > li > a::after {
		content: "";
		display: block;
		height: 1px;
		margin-top: .35rem;
		background: var(--gold);
		transform: scaleX(0);
		transition: transform .6s var(--ease);
	}
	.nav .menu > li:hover > a::after,
	.nav .current-menu-item > a::after,
	.nav .current-menu-ancestor > a::after { transform: scaleX(1); }

	.nav .sub-menu {
		position: absolute;
		top: 100%;
		left: -1.5rem;
		min-width: 14rem;
		padding: 1rem 1.5rem;
		background: rgb(13 11 10 / .94);
		border: 1px solid var(--line);
		backdrop-filter: blur(14px);
		opacity: 0;
		visibility: hidden;
		transform: translateY(.5rem);
		transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
	}
	.nav li:hover > .sub-menu,
	.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav .sub-menu a { padding-block: .5rem; font: italic 400 1.25rem/1.3 var(--serif); color: var(--muted); }
	.nav .sub-menu a:hover { color: var(--bone); }
}

/* 07 Hero ------------------------------------------------------------------ */
.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	min-height: 100svh;
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media :is(img, video) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: ken-burns 18s var(--ease) both;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, var(--ink) 0%, transparent 45%),
		linear-gradient(to bottom, rgb(13 11 10 / .55), transparent 30%),
		rgb(13 11 10 / .35);
}

.hero--home { place-items: center; text-align: center; }
.hero--home .eyebrow { justify-content: center; }
.hero--home .eyebrow::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.hero--home .hero__title { margin-bottom: 2.5rem; }
.hero--home .hero__title em { color: var(--gold); }

.hero--page { min-height: 72svh; align-items: end; padding-bottom: clamp(3rem, 8vw, 6rem); }

@media (max-width: 899px) {
	.hero--page { place-items: center; padding-top: var(--header); padding-bottom: 0; text-align: center; }
	.hero--page .eyebrow { justify-content: center; }
	.hero--page .eyebrow::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
}

.hero__title .mask { display: block; }
.hero__scroll {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	width: 1px;
	height: 4rem;
	overflow: hidden;
	background: var(--line);
}
.hero__scroll::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bone);
	animation: scroll-cue 2.4s var(--ease) infinite;
}

/* 08 Chapter (full-bleed panels) ------------------------------------------ */
.chapter {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: min(100svh, 60rem);
	padding-block: var(--space);
	overflow: hidden;
}
.chapter__media { position: absolute; inset: -10% 0; z-index: -2; }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.chapter::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(var(--dir, 90deg), rgb(13 11 10 / .88), rgb(13 11 10 / .25) 70%);
}
.chapter--end { --dir: 270deg; }

.chapter__body { position: relative; max-width: 36rem; }
.chapter--end .chapter__body { margin-left: auto; text-align: right; }
.chapter__body .subtitle { margin-bottom: 2.5rem; }
.chapter__title { margin-bottom: .25em; }

@media (max-width: 899px) {
	.chapter, .chapter--end { --dir: 0deg; text-align: center; }
	.chapter--end .chapter__body { margin-inline: auto; text-align: center; }
	.chapter__body { margin-inline: auto; }
}

/* 09 Wines ----------------------------------------------------------------- */
.wines__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); max-width: 64rem; margin-inline: auto; }
.wine-card { display: block; text-align: center; }
.wine-card__arch { aspect-ratio: 3 / 4; margin-bottom: 2rem; }
.wine-card__arch img { max-height: 92%; width: auto; }
.wine-card:hover .wine-card__arch img { transform: translateY(-1.25rem) scale(1.03); }
.wine-card .eyebrow { justify-content: center; margin-bottom: 1rem; }
.wine-card .eyebrow::before { display: none; }
.wine-card__name { margin-bottom: 1rem; font-size: clamp(2rem, 3.5vw, 2.75rem); }
.wine-card .link-arrow { color: var(--muted); transition: color .4s; }
.wine-card:hover .link-arrow { color: var(--bone); }

@media (min-width: 720px) {
	.wines__grid { grid-template-columns: 1fr 1fr; }
	.wines__grid > :nth-child(even) { margin-top: 6rem; }
}

/* 10 Product (single wine) ------------------------------------------------ */
.product { padding-top: calc(var(--header) + clamp(2rem, 5vw, 4rem)); }
.product__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.product__arch { aspect-ratio: 4 / 5; max-height: 80svh; margin-inline: auto; }
.product__arch img { max-height: 94%; width: auto; animation: rise 1.6s var(--ease) both; }
.product__info .title { font-size: clamp(2.5rem, 5vw, 4.25rem); }

.specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 2.5rem 0 3rem;
	border-top: 1px solid var(--line);
}
.specs > div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--gold); font-size: .6875rem; letter-spacing: .28em; text-transform: uppercase; }
.specs dd { margin: .35rem 0 0; font: 400 1.5rem/1.3 var(--serif); }

.product__next { display: block; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.product__next .eyebrow { margin-bottom: .75rem; }
.product__next-name { display: inline-flex; align-items: center; gap: 1rem; font: italic 400 2rem/1.2 var(--serif); }
.product__next svg { width: 1.5rem; transition: transform .6s var(--ease); }
.product__next:hover svg { transform: translateX(.5rem); }

@media (min-width: 900px) {
	.product__grid { grid-template-columns: 5fr 6fr; }
	.product__media { position: sticky; top: calc(var(--header) + 2rem); }
}

/* 11 Story / Awards -------------------------------------------------------- */
.dropcap::first-letter {
	float: left;
	margin: .1em .12em 0 0;
	color: var(--gold);
	font: 400 4.5em/.8 var(--serif);
}
.quote {
	margin: 2.5rem 0;
	padding-left: 1.75rem;
	border-left: 1px solid var(--gold);
	font: italic 400 clamp(1.5rem, 2.4vw, 2rem)/1.35 var(--serif);
}
.signature { color: var(--muted); }
.signature span { color: var(--bone); font: italic 400 1.75rem var(--serif); }

.awards { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: award; }
.awards li {
	display: flex;
	gap: 1.5rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--line);
	font: 400 1.5rem/1.3 var(--serif);
	counter-increment: award;
}
.awards li::before { content: counter(award, decimal-leading-zero); color: var(--gold); font: .75rem/2.6 var(--sans); letter-spacing: .2em; }

/* 12 Recipes --------------------------------------------------------------- */
.statement { text-align: center; }
.statement__text { max-width: 52rem; margin: 0 auto 3rem; font-size: clamp(1.75rem, 3.6vw, 3rem); }

.recipes { padding-top: 0; }
.recipes__grid { display: grid; gap: 2rem; }
.recipe-card {
	display: grid;
	align-items: center;
	background: var(--ink-2);
	border: 1px solid var(--line);
	transition: border-color .6s var(--ease);
}
.recipe-card:hover { border-color: rgb(198 164 102 / .5); }
.recipe-card__media { overflow: hidden; }
.recipe-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--slow) var(--ease); }
.recipe-card:hover .recipe-card__media img { transform: scale(1.05); }
.recipe-card__body { padding: clamp(2rem, 5vw, 4rem); }
.recipe-card__body p:not(.eyebrow) { color: var(--muted); }

.recipe { display: grid; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.recipe__heading { margin: 3rem 0 1.25rem; font-size: 2rem; }
.ingredients { margin: 0; padding: 0; list-style: none; columns: 2 16rem; column-gap: 3rem; }
.ingredients li { padding: .65rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.steps { margin: 0 0 3rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1.5rem 4rem; counter-increment: step; }
.steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: -.35rem;
	color: var(--gold);
	font: italic 400 2rem/1 var(--serif);
}

@media (min-width: 900px) {
	.recipe-card { grid-template-columns: 1fr 1fr; }
	.recipe { grid-template-columns: 4fr 7fr; }
	.recipe__media { position: sticky; top: 7rem; }
}

/* 13 Media ----------------------------------------------------------------- */
.media-list { display: grid; gap: var(--space); }
.video__poster {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--ink-2);
	cursor: pointer;
	overflow: hidden;
}
.video__poster img,
.video iframe { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.video__poster img { opacity: .8; transition: transform var(--slow) var(--ease), opacity .6s; }
.video__poster:hover img { transform: scale(1.04); opacity: 1; }
.video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5.5rem;
	height: 5.5rem;
	border: 1px solid var(--bone);
	border-radius: 50%;
	translate: -50% -50%;
	transition: background-color .5s var(--ease), scale .5s var(--ease);
}
.video__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border: .55rem solid transparent;
	border-left: .85rem solid var(--bone);
	border-right: 0;
	translate: -50% -50%;
}
.video__poster:hover .video__play { background: var(--wine); border-color: var(--wine); scale: 1.08; }

/* 14 Partner --------------------------------------------------------------- */
.partner { background: var(--ink-2); border-top: 1px solid var(--line); }
.partner__grid { display: grid; gap: clamp(3rem, 7vw, 8rem); }
.partner__contact { align-self: end; }
.partner__line {
	display: block;
	width: fit-content;
	margin-bottom: .5rem;
	font: 400 clamp(1.5rem, 2.6vw, 2.25rem)/1.3 var(--serif);
	background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
	transition: background-size .6s var(--ease);
}
.partner__line:hover { background-size: 100% 1px; }
.partner__contact address { margin-top: 2rem; color: var(--muted); }

.form { margin-top: 3rem; }
.form__row { display: grid; gap: 0 2rem; }
.form__hp { position: absolute; left: -9999px; }
.field { position: relative; margin-bottom: 2rem; }
.field :is(input, textarea) {
	width: 100%;
	padding: 1.5rem 0 .6rem;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: none;
	color: var(--bone);
	font: inherit;
	resize: vertical;
	transition: border-color .4s;
}
.field :is(input, textarea):focus { outline: none; border-color: var(--gold); }
.field label {
	position: absolute;
	top: 1.5rem;
	left: 0;
	color: var(--muted);
	pointer-events: none;
	transform-origin: left top;
	transition: transform .4s var(--ease), color .4s;
}
.field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label { transform: translateY(-1.4rem) scale(.75); color: var(--gold); }

.form__status { min-height: 1.75em; margin: 1rem 0 0; font-size: .9375rem; }
.form__status[data-state="sent"] { color: var(--gold); }
.form__status[data-state="error"] { color: #e07a7f; }

@media (min-width: 720px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .partner__grid { grid-template-columns: 3fr 2fr; } }

/* 15 Footer ---------------------------------------------------------------- */
.site-footer { padding-block: 5rem 2.5rem; border-top: 1px solid var(--line); text-align: center; }
.site-footer__brand img { width: 8rem; margin-inline: auto; opacity: .9; }
.site-footer__tagline { margin: 1.5rem 0 4rem; color: var(--muted); font: italic 400 1.5rem var(--serif); }
.site-footer__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: .75rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.site-footer__meta a:hover { color: var(--gold); }

/* 16 Prose (editor content) ------------------------------------------------ */
.prose { max-width: 48rem; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 2rem; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }

/* 17 Motion ---------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .45s var(--ease) both fade-out; }
::view-transition-new(root) { animation: .9s var(--ease) both fade-in; }

/* Load-in: eyebrow, masked title lines, CTA */
.hero__eyebrow { animation: fade-in 1.2s var(--ease) .2s both; }
.hero__title .mask { overflow: hidden; padding-bottom: .08em; }
.hero__title .mask > span { display: inline-block; animation: line-up 1.4s var(--ease) .3s both; }
.hero__title .mask + .mask > span { animation-delay: .45s; }
.hero__cta { animation: fade-in 1.2s var(--ease) .9s both; }

/* Scroll reveal (JS adds .is-in) */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(2.5rem);
	transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
	transition-delay: var(--d, 0s);
}
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"].is-in { clip-path: inset(0 -2rem -2rem 0); }

/* Scroll-linked parallax where supported (no JS) */
@supports (animation-timeline: view()) {
	.chapter__media { animation: parallax linear both; animation-timeline: view(); }
}

@keyframes ken-burns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(3rem); } to { opacity: 1; transform: none; } }
@keyframes parallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
@keyframes scroll-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.chapter__media { animation: none !important; }
}
