/* ==========================================================================
   Aloft — design tokens
   ========================================================================== */
:root {
	/* Dawn-sky palette (light sections) */
	--sky-lavender: #dee1f5;
	--sky-peach: #ffd9b3;
	--sky-coral: #ff9d76;
	--sky-gold: #f6c766;
	--cream: #fff8f0;
	--cream-deep: #fbeee0;

	/* Pre-dawn indigo (dark sections + text) */
	--indigo-950: #0c0f2a;
	--indigo-900: #131843;
	--indigo-850: #181f52;
	--indigo-800: #1e2560;
	--indigo-700: #2c3480;

	--paper: var(--cream);
	--ink: #14172c;
	--ink-dim: #4c5178;
	--ink-soft: #767ba0;

	--ember: #ff5a36;
	--ember-deep: #d63f1f;
	--gold: #f0b34e;

	--glass: rgba(255, 248, 240, 0.72);
	--glass-dark: rgba(12, 15, 42, 0.6);
	--line: rgba(20, 23, 44, 0.12);
	--line-dark: rgba(255, 255, 255, 0.14);

	--font-display: 'Platypi', Georgia, serif;
	--font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-md: 1.25rem;
	--fs-lg: 1.75rem;
	--fs-xl: 2.4rem;
	--fs-2xl: 3.4rem;
	--fs-3xl: 5rem;

	--sp-1: 8px;
	--sp-2: 16px;
	--sp-3: 24px;
	--sp-4: 32px;
	--sp-5: 48px;
	--sp-6: 64px;
	--sp-7: 96px;
	--sp-8: 140px;

	--radius: 8px;
	--radius-lg: 20px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-in: cubic-bezier(.5, 0, .75, 0);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	position: relative;
}
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2000;
	opacity: .045;
	mix-blend-mode: multiply;
	background-image: url('../img/grain.png');
	background-size: 220px 220px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
.container { max-width: 1280px; margin-inline: auto; padding-inline: var(--sp-4); }
@media (max-width: 780px) { .container { padding-inline: var(--sp-3); } }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ember-deep);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--ember-deep); }
.on-dark .eyebrow { color: var(--sky-gold); }
.on-dark .eyebrow::before { background: var(--sky-gold); }

.lede { font-size: var(--fs-md); color: var(--ink-dim); max-width: 56ch; line-height: 1.6; }
.on-dark .lede { color: rgba(255, 248, 240, 0.72); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .9em 1.7em; border-radius: 999px; font-size: .95rem; font-weight: 700;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
	white-space: nowrap;
}
.btn--primary { background: var(--ember); color: var(--cream); box-shadow: 0 10px 24px -8px rgba(255, 90, 54, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(255, 90, 54, .6); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ember); color: var(--ember-deep); }
.on-dark .btn--ghost { border-color: var(--line-dark); color: var(--cream); }
.on-dark .btn--ghost:hover { border-color: var(--sky-gold); color: var(--sky-gold); }
.magnetic { will-change: transform; }

/* ==========================================================================
   Section backdrop system (real photos + duotone overlay)
   ========================================================================== */
.section { position: relative; padding-block: var(--sp-8); }
.section.on-dark { background: var(--indigo-950); color: var(--cream); }
.section[data-bg]::before {
	content: '';
	/* oversized + will-change: a parallax scrub can translate this layer a
	   little in either direction without exposing an edge. --parallax-y is
	   set on the section itself by initCtaParallax (sections.js); a custom
	   property set inline on an element inherits into its own pseudo-elements. */
	position: absolute; inset: -8% 0; z-index: 0;
	background-size: cover; background-position: center;
	opacity: .34;
	transform: translateY(var(--parallax-y, 0));
	will-change: transform;
}
.section[data-bg]::after {
	content: '';
	position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(180deg, rgba(12, 15, 42, .92), rgba(12, 15, 42, .82));
}
.section[data-bg="hangar"]::before { background-image: url('../img/bg-hangar.jpg'); }
.section[data-bg="meadow"]::before { background-image: url('../img/bg-meadow.jpg'); }
.section[data-bg="dawnfield"]::before { background-image: url('../img/bg-dawnfield.jpg'); }
.section[data-bg] > .container { position: relative; z-index: 1; }

/* Hand-drawn cloud/wisp accents */
.al-wisp { position: absolute; opacity: .5; pointer-events: none; color: var(--sky-peach); }
.on-dark .al-wisp { color: rgba(255, 248, 240, .16); }
.section:not(.on-dark) .al-wisp { color: var(--sky-coral); opacity: .22; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: var(--glass);
	backdrop-filter: blur(14px) saturate(1.2);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand__mark {
	width: 30px; height: 30px; border-radius: 50%;
	background: linear-gradient(135deg, var(--sky-coral), var(--sky-gold), var(--sky-lavender));
	display: inline-block;
}
.primary-nav__list { display: flex; align-items: center; gap: var(--sp-4); }
.primary-nav__list > li > a { font-size: .95rem; font-weight: 500; transition: color .25s var(--ease); }
.primary-nav__list > li > a:hover { color: var(--ember-deep); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.mobile-nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; }
.mobile-nav {
	max-height: 0; overflow: hidden; background: var(--cream); border-top: 1px solid transparent;
	transition: max-height .4s var(--ease), border-color .4s;
}
.mobile-nav.is-open { max-height: 400px; border-top-color: var(--line); }
.mobile-nav nav { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.mobile-nav__list { display: grid; gap: var(--sp-2); }
.mobile-nav__list a { font-size: 1.05rem; font-weight: 500; }
@media (max-width: 900px) {
	.primary-nav { display: none; }
	.mobile-nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
	.header-actions > .btn { display: none; }
}
@media (min-width: 901px) { .mobile-nav { display: none; } }

.skip-link:focus {
	position: fixed; left: var(--sp-3); top: var(--sp-2); width: auto; height: auto; overflow: visible;
	background: var(--indigo-950); color: var(--cream); padding: .7em 1.2em; border-radius: var(--radius);
	z-index: 10000; font-weight: 700;
}

/* ==========================================================================
   Hero — the envelope inflation rig lives here
   ========================================================================== */
.hero {
	position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 90px; overflow: clip;
	background: linear-gradient(180deg, var(--sky-lavender) 0%, var(--sky-peach) 45%, var(--sky-coral) 100%);
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-6); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

.hero__title { font-size: clamp(2.6rem, 5.4vw, var(--fs-3xl)); margin-block: .35em .3em; letter-spacing: -.01em; color: var(--indigo-950); }
.hero__sub { font-size: var(--fs-md); color: var(--ink-dim); max-width: 46ch; margin-bottom: var(--sp-4); }
.hero__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.hero__stage {
	position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
	background: linear-gradient(160deg, var(--cream-deep), var(--cream));
	overflow: hidden;
	box-shadow: 0 40px 80px -32px rgba(12, 15, 42, .35);
}
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.hero__stage.is-live canvas { opacity: 1; }
.hero__stage-fallback {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 30%, var(--sky-gold), var(--sky-peach));
}
.hero__stage.is-live .hero__stage-fallback { display: none; }
/* Visitors who never get the real WebGL envelope (touch pointer, weak GPU,
   no WebGL2 — the capability gate in envelope.js) still deserve to see the
   signature moment, just not as 3D. A recorded loop of the real scroll
   animation stands in, UNLESS the visitor has asked for no motion at all —
   reduced-motion keeps the plain static icon above. */
@media (prefers-reduced-motion: no-preference) {
	.hero__stage-fallback {
		background: var(--sky-peach) url('../img/envelope-preview-light.gif') center / cover no-repeat;
	}
	.hero__stage-fallback svg { opacity: 0; }
}
.hero__stage-scrub {
	position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3;
	display: flex; align-items: center; gap: 10px;
	font-size: .78rem; font-weight: 600; color: var(--ink-dim);
	background: var(--glass); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 16px;
	opacity: 0; transition: opacity .5s var(--ease);
}
.hero__stage.is-live .hero__stage-scrub { opacity: 1; }
.hero__stage-track { flex: 1; height: 3px; background: var(--line); border-radius: 2px; position: relative; }
.hero__stage-track i { position: absolute; inset: 0; width: 0%; background: var(--ember); border-radius: 2px; transform-origin: left; }
.hero__stage-livery { position: absolute; top: 18px; right: 18px; z-index: 3; display: flex; gap: 6px; }
.hero__stage-livery button {
	width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8);
	box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--ease);
}
.hero__stage-livery button:hover, .hero__stage-livery button.is-active { transform: scale(1.15); }
.hero__stage-hint { position: absolute; top: 18px; left: 18px; z-index: 3; font-size: .72rem; font-weight: 600; color: var(--ink-soft); background: var(--glass); padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .4s; }
.hero__stage.is-live .hero__stage-hint { opacity: 1; }

/* ==========================================================================
   Flight stats band
   ========================================================================== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 780px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat__gauge { display: block; width: 60px; height: 60px; margin: 0 auto 6px; }
.stat__gauge-track { fill: none; stroke: rgba(255,248,240,.14); stroke-width: 5; }
.stat__gauge-arc { fill: none; stroke: var(--sky-gold); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 264; stroke-dashoffset: 264; }
.stat:not(.on-dark .stat) .stat__gauge-arc { stroke: var(--ember-deep); }
.stat__value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--sky-gold); }
.stat:not(.on-dark .stat) .stat__value { color: var(--ember-deep); }
.stat__label { font-size: .85rem; color: var(--ink-dim); margin-top: .4em; }
.on-dark .stat__label { color: rgba(255,248,240,.65); }

/* ==========================================================================
   Fleet catalogue
   ========================================================================== */
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section__head h2 { font-size: var(--fs-xl); max-width: 26ch; }

.category-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.category-filter button {
	padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600;
	transition: all .25s var(--ease);
}
.category-filter button.is-active, .category-filter button:hover { background: var(--indigo-900); border-color: var(--indigo-900); color: var(--cream); }

.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 1100px) { .fleet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fleet-grid { grid-template-columns: 1fr; } }

.balloon-card { display: block; position: relative; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px -18px rgba(12,15,42,.3); transition: box-shadow .4s var(--ease), transform .5s var(--ease); transform-style: preserve-3d; will-change: transform; }
.balloon-card:hover { box-shadow: 0 26px 46px -18px rgba(12,15,42,.42); }
.balloon-card[hidden] { display: none; }
/* pointer-tracked sheen — set --mx/--my via JS on pointermove (fleet-tilt in sections.js) */
.balloon-card::after {
	content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
	opacity: 0; transition: opacity .3s;
	background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.5), transparent 60%);
	mix-blend-mode: overlay;
}
.balloon-card:hover::after { opacity: 1; }
.balloon-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--cream-deep); }
.balloon-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.balloon-card:hover .balloon-card__media img { transform: scale(1.06); }
.balloon-card__volume { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; background: var(--glass); backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 999px; color: var(--ink-dim); }
.balloon-card__body { padding: 16px; }
.balloon-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.balloon-card__title { font-size: 1.08rem; }
.balloon-card__price { font-size: .85rem; color: var(--ember-deep); font-weight: 700; white-space: nowrap; }
.balloon-card__livery { font-style: italic; color: var(--ink-soft); font-size: .85rem; margin-top: .3em; }
.balloon-card__capacity { font-size: .72rem; color: var(--ink-soft); margin-top: .6em; letter-spacing: .02em; font-weight: 600; }

/* ==========================================================================
   The build — commission process timeline
   ========================================================================== */
/* Deliberately NOT four equal boxes in a straight row — a hand-stitch
   zigzags, so the steps alternate high/low along it instead of sitting on
   one flat baseline. Four equal rectangles in lockstep is exactly the
   "everything centered and stacked" template tell; this breaks it on
   purpose, not just via motion but in the actual geometry. */
.process-rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); counter-reset: step; padding-top: 64px; padding-bottom: 24px; }
.process-step:nth-child(3), .process-step:nth-child(5) { margin-top: 56px; }
@media (max-width: 1100px) and (min-width: 701px) {
	.process-rail { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-5); }
	.process-step:nth-child(3), .process-step:nth-child(5) { margin-top: 0; }
	.process-step:nth-child(4), .process-step:nth-child(5) { margin-top: 28px; }
}
@media (max-width: 700px) { .process-rail { grid-template-columns: 1fr; padding-top: 0; } .process-step:nth-child(n) { margin-top: 0; } }

/* stitch-line: a real zigzag thread connecting each step's anchor point —
   scroll-drawn (see initStitchLine in sections.js). Its four vertices are
   authored to match the four columns' baseline/offset rhythm above; if the
   breakpoints change, re-check this against the columns rather than
   assuming it still lines up. */
.stitch-line { position: absolute; top: 0; left: 0; width: 100%; height: 110px; pointer-events: none; }
@media (max-width: 1100px) { .stitch-line { display: none; } }
.stitch-line path { fill: none; stroke: var(--sky-gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 9 7; }
.process-step { position: relative; padding-top: var(--sp-3); border-top: 2px solid var(--line-dark); }
@media (min-width: 1101px) { .process-step { border-top: none; } }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.6rem; color: var(--sky-gold); display: block; margin-bottom: .4em; }
.process-step h3 { font-size: 1.15rem; margin-bottom: .4em; }
.process-step p { color: rgba(255,248,240,.65); font-size: .92rem; }

/* ==========================================================================
   Testimonials — flight log
   ========================================================================== */
.testimonial-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 900px) { .testimonial-strip { grid-template-columns: 1fr; } }
.testimonial { position: relative; overflow: hidden; background: rgba(255,248,240,.06); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: var(--sp-3); }
/* cursor spotlight — --mx/--my set via JS on pointermove (initTestimonialSpotlight in sections.js) */
.testimonial::before {
	content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
	background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(240,179,78,.18), transparent 65%);
}
.testimonial:hover::before { opacity: 1; }
.testimonial p, .testimonial cite { position: relative; z-index: 1; }
.testimonial p { font-size: 1.05rem; line-height: 1.6; }
.testimonial cite { display: block; margin-top: var(--sp-2); font-style: normal; font-size: .78rem; font-weight: 700; color: var(--sky-gold); }

/* ==========================================================================
   Dawn-flights animated sunrise panel
   ========================================================================== */
.sunrise-panel { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -24px rgba(20,23,44,.35); }
.sunrise-panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sunrise-panel__card { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; background: var(--glass); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 16px 18px; }
.sunrise-panel__card p:not(.eyebrow) { color: var(--ink); font-size: .92rem; line-height: 1.5; }

/* ==========================================================================
   Quote / CTA band
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; text-align: center; margin-top: var(--sp-2); margin-bottom: var(--sp-4); }

/* ==========================================================================
   Inquiry dialog
   ========================================================================== */
dialog.inquiry-dialog { width: min(480px, calc(100vw - 40px)); padding: 0; border: none; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -20px rgba(0,0,0,.4); }
dialog.inquiry-dialog::backdrop { background: rgba(12, 15, 42, .55); backdrop-filter: blur(4px); }
.inquiry-form { padding: var(--sp-4); }
.inquiry-form h3 { font-size: 1.4rem; margin-bottom: .3em; }
.inquiry-form .field { margin-top: var(--sp-2); }
.inquiry-form label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.inquiry-form input, .inquiry-form textarea { width: 100%; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--paper); }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--ember); }
.inquiry-form textarea { min-height: 90px; resize: vertical; }
.inquiry-form .field--hp { position: absolute; left: -9999px; }
.inquiry-form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--sp-3); }
.inquiry-form__status { font-size: .85rem; margin-top: var(--sp-2); }
.inquiry-form__status.is-error { color: var(--ember-deep); }
.inquiry-form__status.is-ok { color: var(--indigo-800); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--indigo-950); color: var(--cream-deep); padding-block: var(--sp-6) var(--sp-4); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
.footer__col h4 { font-size: 1rem; margin-bottom: 1em; color: var(--sky-gold); }
.footer__col ul { display: grid; gap: .7em; }
.footer__col a { color: rgba(255,248,240,.75); font-size: .92rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--cream); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,248,240,.55); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,248,240,.14); font-size: .85rem; color: rgba(255,248,240,.55); flex-wrap: wrap; }

/* ==========================================================================
   Reveal-on-scroll base state (GSAP ScrollTrigger toggles .is-in)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
}
.js-off .reveal { opacity: 1; transform: none; }

/* Single-balloon hero photo: clip-path wipe on load (see initSpecReveal in sections.js) */
.spec-reveal { clip-path: inset(0 0 0 100%); }
.spec-reveal.is-in { clip-path: inset(0 0 0 0%); transition: clip-path 1s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: reduce) { .spec-reveal { clip-path: inset(0 0 0 0%); } }

/* ==========================================================================
   Page / 404 / search / comments (shared inner-page chrome)
   ========================================================================== */
.page-hero { padding-block: 150px 40px; background: linear-gradient(180deg, var(--sky-lavender), var(--cream)); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: var(--indigo-950); }
.page-content { max-width: 74ch; margin-inline: auto; padding-block: var(--sp-5); }
.page-content h2 { font-size: var(--fs-lg); margin-top: 1.4em; }
.page-content p { margin-top: 1em; color: var(--ink-dim); }
.not-found { text-align: center; padding-block: 160px; }

.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-5); align-items: start; }
@media (max-width: 900px) { .archive-layout { grid-template-columns: 1fr; } }
.sidebar-widget { background: var(--cream-deep); border-radius: var(--radius-lg); padding: var(--sp-3); margin-bottom: var(--sp-3); }
.sidebar-widget h4 { font-size: .95rem; margin-bottom: .8em; }
.sidebar-widget ul { display: grid; gap: .6em; font-size: .9rem; }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.comment-form input, .comment-form textarea { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; margin-top: .4em; }
.comment-form p { margin-top: var(--sp-2); }

.searchform { display: flex; gap: 10px; }
.searchform input[type="search"] { flex: 1; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; }

/* ==========================================================================
   Standard WP content classes (alignment, captions, gallery, sticky)
   ========================================================================== */
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.wp-caption-text { font-size: .85rem; color: var(--ink-dim); margin-top: .6em; }
.gallery-caption { font-size: .85rem; color: var(--ink-dim); }
.sticky { border-left: 2px solid var(--ember); padding-left: 1em; }
.screen-reader-text { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
