/*
 * Healthier Minds - revamp stylesheet
 * Shape system: cards/media 28px, inputs 14px, buttons + chips full pill.
 * One accent (sun yellow), navy ink from the logo wordmark.
 */

@view-transition { navigation: auto; }

:root {
    --sun: #F5C62C;
    --sun-soft: #FCEFB8;
    --sun-ink: #1B2E3D;
    --navy: #345D7B;
    --ink: #172A38;
    --muted: #4E5F6D;
    --bg: #F6F7F9;
    --surface: #FFFFFF;
    --surface-2: #EEF1F4;
    --line: rgb(23 42 56 / .10);
    --shadow: 0 30px 60px -30px rgb(23 42 56 / .25);
    --radius: 28px;
    --radius-sm: 14px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --max: 1240px;
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, sans-serif;
    color-scheme: light;
}


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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

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

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--sun); color: var(--sun-ink); padding: 10px 18px; border-radius: 999px; font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(var(--max), 100% - 64px); } }

.section { padding-block: clamp(80px, 11vw, 150px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.eyebrow i { color: var(--sun); font-size: 1.1rem; }

.h-xl { font-size: clamp(2.9rem, 7.2vw, 6rem); line-height: 1; }
.h-lg { font-size: clamp(2.2rem, 4.6vw, 3.75rem); }
.h-md { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.body { color: var(--muted); max-width: 62ch; }
.body + .body { margin-top: 1em; }

/* Highlighter sweep behind a key phrase */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
    content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .16em; height: .34em;
    background: var(--sun); border-radius: 999px; transform-origin: left; transform: scaleX(0);
    animation: sweep 1s var(--ease) forwards; animation-delay: var(--sweep-delay, 1.1s);
}
@keyframes sweep { to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn {
    --bx: 0px; --by: 0px;
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
    padding: 18px 26px; border-radius: 999px; border: 0;
    transform: translate(var(--bx), var(--by));
    transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.btn i { font-size: 1.15em; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 14px 30px -14px rgb(245 198 44 / .9); }
.btn-sun:hover { box-shadow: 0 18px 36px -12px rgb(245 198 44 / 1); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: .7; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow span { background: linear-gradient(var(--sun), var(--sun)) left bottom / 0 3px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.link-arrow:hover span { background-size: 100% 3px; }
.link-arrow i { transition: transform .4s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Intro curtain (first visit per session) ---------- */
.intro {
    position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
    background: var(--ink); pointer-events: none;
}
.intro-bulb {
    width: 92px; aspect-ratio: 400 / 488;
    background: url("/assets/images/HealthierMindsLogoLight.png") left center / auto 100% no-repeat;
    animation: bulb 1.1s var(--ease) both;
}
@keyframes bulb { from { opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.intro.is-leaving { animation: curtain .9s var(--ease) forwards; }
.intro.is-leaving .intro-bulb { animation: bulbOut .5s var(--ease) forwards; }
@keyframes curtain { to { clip-path: inset(0 0 100% 0); } }
@keyframes bulbOut { to { opacity: 0; transform: translateY(-40px) scale(.9); } }
.intro { clip-path: inset(0 0 0 0); }
html:not(.show-intro) .intro { display: none; }

/* ---------- Navigation ---------- */
.nav-sentinel { position: absolute; top: 0; height: 80px; width: 1px; }
.nav {
    position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0;
    width: min(var(--max), 100% - 24px);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 10px 10px 22px; border-radius: 999px;
    transition: background-color .4s, box-shadow .4s, width .6s var(--ease), padding .4s;
}
.nav.is-scrolled {
    width: min(920px, 100% - 24px);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px rgb(23 42 56 / .35);
}
@media (prefers-reduced-transparency: reduce) { .nav.is-scrolled { background: var(--surface); backdrop-filter: none; } }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    position: relative; display: block; padding: 10px 16px; border-radius: 999px;
    font-weight: 500; text-decoration: none; color: var(--ink); transition: background-color .3s;
}
.nav-links a:hover { background: var(--surface-2); }
.nav-links a[aria-current="page"]::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--sun);
}
.nav-cta { display: none; }
.nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: var(--sun); color: var(--sun-ink); font-size: 1.4rem; cursor: pointer;
}
@media (min-width: 960px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; padding: 14px 22px; }
    .nav-toggle { display: none; }
}

.menu {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: space-between;
    padding: 96px 24px 32px; background: var(--ink); color: var(--bg);
    clip-path: circle(0 at calc(100% - 48px) 44px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 48px) 44px); visibility: visible; transition: clip-path .8s var(--ease); }
.menu-close {
    position: absolute; top: 24px; right: 22px; width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: var(--sun); color: var(--sun-ink); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu li a {
    display: block; font: 600 clamp(2.4rem, 11vw, 3.6rem)/1.15 var(--font-display); letter-spacing: -.03em;
    text-decoration: none; color: inherit; transform: translateY(105%); transition: transform .7s var(--ease), color .3s;
}
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--sun); }
.menu.is-open li a { transform: none; transition-delay: calc(.12s + var(--i) * .06s); }
.menu-foot { display: grid; gap: 6px; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.menu-foot a { text-decoration: none; }

/* ---------- Reveal primitives ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--w) * 70ms + var(--base, 250ms)); }
@keyframes rise { to { transform: none; } }

.fade-up { opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--delay, .6s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: center; padding: 120px 0 64px; overflow: clip; isolation: isolate; }
.hero-aurora { position: absolute; inset: -20%; z-index: -1; pointer-events: none; }
.hero-aurora span {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
    animation: drift 18s ease-in-out infinite alternate;
}
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; background: var(--sun); top: 8%; right: 4%; }
.hero-aurora span:nth-child(2) { width: 30vw; height: 30vw; background: #9CC3E0; bottom: 10%; left: 6%; opacity: .35; animation-duration: 24s; }
.hero-aurora span:nth-child(3) { width: 22vw; height: 22vw; background: var(--sun-soft); top: 30%; left: 36%; animation-duration: 20s; }
@keyframes drift { 50% { transform: translate(4vw, -3vw) scale(1.08); } 100% { transform: translate(-3vw, 4vw) scale(.95); } }

.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.hero h1 { margin: 22px 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-media { position: relative; }
.blob {
    position: absolute; inset: 6% -4% -6% 8%; z-index: -1; background: var(--sun);
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
    33% { border-radius: 63% 37% 44% 56% / 51% 61% 39% 49%; }
    66% { border-radius: 38% 62% 36% 64% / 61% 35% 65% 39%; }
}
.hero-frame {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    clip-path: inset(100% 0 0 0 round var(--radius)); animation: unveil 1.4s var(--ease) .35s forwards;
}
.hero-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scale: 1.18; animation: settle 1.8s var(--ease) .35s forwards; }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes settle { to { scale: 1; } }

.page-hero { padding: 150px 0 40px; position: relative; isolation: isolate; overflow: clip; }
.page-hero .lead { margin-top: 22px; }
.page-hero .hero-aurora span:nth-child(1) { width: 34vw; height: 34vw; top: -30%; }

/* ---------- Marquee ---------- */
.marquee { padding: 26px 0; background: var(--sun); color: var(--sun-ink); overflow: hidden; rotate: -1.5deg; margin-block: 24px; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee-group span { font: 600 clamp(1.4rem, 2.6vw, 2.1rem)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee-group i { font-size: 1.6rem; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (scroll-filled words) ---------- */
.statement p { font: 500 clamp(1.8rem, 4.2vw, 3.4rem)/1.18 var(--font-display); letter-spacing: -.025em; max-width: 24ch; }
.statement .w { opacity: .18; transition: opacity .2s; }
.no-js .statement .w, .reduced .statement .w { opacity: 1; }
.statement-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 48px; }

/* ---------- Bento ---------- */
.bento-head { margin-bottom: 48px; max-width: 30ch; }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .tile:nth-child(1) { grid-column: span 4; grid-row: span 2; }
    .tile:nth-child(2) { grid-column: span 2; }
    .tile:nth-child(3) { grid-column: span 2; }
    .tile:nth-child(4) { grid-column: span 6; }
}
.tile {
    --mx: 50%; --my: 50%;
    position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
    border-radius: var(--radius); background: var(--surface); padding: 28px; text-decoration: none; color: inherit;
    box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .4s;
}
.tile::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgb(245 198 44 / .22), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(245 198 44 / .7), var(--shadow); }
.tile h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.tile p { color: var(--muted); font-size: 1rem; }
.tile-media { border-radius: 18px; overflow: hidden; margin-top: auto; }
.tile-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: scale 1s var(--ease); }
.tile:hover .tile-media img { scale: 1.05; }
.tile-icon {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sun-soft); color: var(--sun-ink); font-size: 1.5rem;
}
.tile-go { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, transform .5s var(--ease); }
.tile:hover .tile-go { background: var(--sun); color: var(--sun-ink); transform: rotate(-45deg); }
.tile--sun { background: var(--sun); color: var(--sun-ink); box-shadow: none; }
.tile--sun p { color: color-mix(in srgb, var(--sun-ink) 80%, transparent); }
.tile--sun .tile-icon { background: rgb(255 255 255 / .45); color: var(--sun-ink); }
.tile--sun .tile-go { box-shadow: inset 0 0 0 1px rgb(27 46 61 / .25); }
.tile--sun:hover .tile-go { background: var(--sun-ink); color: var(--sun); }
.tile--wide { display: grid; gap: 28px; align-items: center; }
@media (min-width: 768px) { .tile--wide { grid-template-columns: 1fr 1.1fr; } .tile--wide .tile-media { margin: -8px -8px -8px 0; } }

/* ---------- Sticky list (why choose us) ---------- */
.why { display: grid; gap: 48px; }
@media (min-width: 960px) { .why { grid-template-columns: 1fr 1fr; gap: 80px; } .why-aside { position: sticky; top: 120px; align-self: start; } }
.why-aside .media { margin-top: 36px; border-radius: var(--radius); overflow: hidden; }
.why-aside .media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.why-list { display: grid; gap: 14px; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.why-item i { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--sun); font-size: 1.6rem; }
.why-item h3 { font-size: 1.35rem; margin-bottom: 8px; letter-spacing: -.02em; }
.why-item p { color: var(--muted); font-size: 1rem; }

/* ---------- Fact band ---------- */
.fact { position: relative; border-radius: calc(var(--radius) + 12px); background: var(--ink); color: #EDF2F6; padding: clamp(40px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.fact::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -15%; top: -40%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgb(245 198 44 / .35), transparent 65%); }
.fact-grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .fact-grid { grid-template-columns: 1.2fr 1fr; } }
.fact-num { font: 600 clamp(4.5rem, 14vw, 11rem)/.9 var(--font-display); letter-spacing: -.05em; color: var(--sun); font-variant-numeric: tabular-nums; }
.fact p { color: rgb(237 242 246 / .78); font-size: 1.2rem; max-width: 36ch; margin-bottom: 28px; }

/* ---------- Services: sticky stack ---------- */
.stack { display: grid; gap: 24px; }
.stack-card {
    position: relative;
    display: grid; gap: 32px; padding: clamp(24px, 4vw, 52px); border-radius: calc(var(--radius) + 8px);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transform-origin: top center;
    scroll-margin-top: 110px;
}
.stack-card:nth-child(2) { background: var(--sun); color: var(--sun-ink); box-shadow: var(--shadow); }
.stack-card:nth-child(2) .body, .stack-card:nth-child(2) li { color: color-mix(in srgb, var(--sun-ink) 82%, transparent); }
.stack-card:nth-child(2) .btn-sun { background: var(--sun-ink); color: var(--sun); box-shadow: none; }
.stack-card:nth-child(3) { background: var(--ink); color: #EDF2F6; }
.stack-card:nth-child(3) .body, .stack-card:nth-child(3) li { color: rgb(237 242 246 / .78); }
@media (min-width: 960px) { .stack-card { position: sticky; top: calc(96px + var(--i) * 18px); grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; min-height: 72vh; } }
.stack-card .media { border-radius: 22px; overflow: hidden; }
.stack-card .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stack-card h2 { margin: 16px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks i { color: var(--navy); font-size: 1.25rem; margin-top: 3px; }
.stack-card:nth-child(2) .ticks i { color: var(--sun-ink); }
.stack-card:nth-child(3) .ticks i { color: var(--sun); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600; box-shadow: inset 0 0 0 1px currentColor; opacity: .85; }

/* ---------- About ---------- */
.story { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.story .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.values { display: grid; gap: 16px; margin-top: 64px; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.value { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.value i { font-size: 2rem; color: var(--navy); }
.value h3 { font-size: 1.3rem; margin: 18px 0 8px; letter-spacing: -.02em; }
.value p { color: var(--muted); font-size: 1rem; }
.value--lead { background: var(--sun); color: var(--sun-ink); box-shadow: none; display: flex; flex-direction: column; justify-content: space-between; }
.value--lead h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: 0; }
.value--lead p { color: color-mix(in srgb, var(--sun-ink) 80%, transparent); }

.band { background: var(--sun-soft); border-radius: calc(var(--radius) + 12px); padding: clamp(32px, 6vw, 80px); display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .band { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.band .media { border-radius: var(--radius); overflow: hidden; }
.band .body { color: color-mix(in srgb, var(--ink) 78%, transparent); }

.pair { display: grid; gap: 16px; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair-card { border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.pair-card .media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pair-card .inner { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 14px; flex: 1; align-content: start; }
.pair-card .inner .link-arrow { margin-top: 8px; }

/* ---------- Guide (7 steps) ---------- */
.steps-wrap { position: relative; }
.steps { display: grid; gap: clamp(56px, 8vw, 110px); padding-left: 0; list-style: none; margin: 0; }
.steps-rail { position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.steps-rail span { position: absolute; inset: 0; background: var(--sun); transform-origin: top; transform: scaleY(0); }
.reduced .steps-rail span, .no-js .steps-rail span { transform: none; }
.step { position: relative; display: grid; gap: 28px; padding-left: 84px; }
.step-dot {
    position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line);
    font: 600 1.2rem var(--font-display); transition: background-color .5s, box-shadow .5s, color .5s;
}
.step.is-in .step-dot { background: var(--sun); color: var(--sun-ink); box-shadow: 0 0 0 8px color-mix(in srgb, var(--sun) 25%, transparent); }
.step .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.step .media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.step h2 { margin-bottom: 14px; }
@media (min-width: 960px) {
    .steps-rail { left: 50%; translate: -1px 0; }
    .step { grid-template-columns: 1fr 1fr; gap: 120px; padding-left: 0; align-items: center; }
    .step-dot { left: 50%; translate: -50% 0; top: 50%; margin-top: -28px; }
    .step:nth-child(even) .step-text { order: 2; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 22px;
    border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
    text-decoration: none; color: inherit; transition: transform .5s var(--ease), box-shadow .3s;
}
a.contact-card:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1.5px var(--sun); }
.contact-card > i:first-child { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); font-size: 1.4rem; }
.contact-card small { display: block; color: var(--muted); font-size: .875rem; }
.contact-card strong { font-weight: 600; }
.contact-card > i:last-child { color: var(--muted); }

.form { padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--radius) + 4px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field label span { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--bg);
    border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius-sm); padding: 14px 16px;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 45%, transparent); }
.field .error { color: #B42318; font-size: .875rem; font-weight: 500; min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D92D20; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-foot p { font-size: .875rem; color: var(--muted); max-width: 34ch; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 500; display: flex; gap: 12px; align-items: center; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #DCFAE6; color: #085D3A; }
.form-status.bad { background: #FEE4E2; color: #912018; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 28px; }
.footer-cta {
    position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) + 12px);
    background: var(--sun); color: var(--sun-ink); padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
    display: grid; gap: 32px; align-items: end;
}
@media (min-width: 960px) { .footer-cta { grid-template-columns: 1.4fr 1fr; } }
.footer-cta h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.footer-cta .rays { position: absolute; right: -6%; top: -30%; width: 46%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: repeating-conic-gradient(rgb(255 255 255 / .28) 0 6deg, transparent 6deg 30deg); animation: turn 60s linear infinite; mask: radial-gradient(circle, #000 30%, transparent 70%); }
@keyframes turn { to { rotate: 360deg; } }
.footer-cta-actions { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 960px) { .footer-cta-actions { justify-items: end; } }
.footer-cta .btn-ink { background: var(--sun-ink); color: var(--sun); }
.footer-cta a.plain { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.footer-main { display: grid; gap: 40px; padding: 64px 4px 40px; }
@media (min-width: 768px) { .footer-main { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-main img { height: 56px; width: auto; }
.footer-main p { color: var(--muted); margin-top: 16px; max-width: 32ch; }
.footer-main h3 { font: 600 .875rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-main ul a { text-decoration: none; }
.footer-main ul a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: background-color .3s, transform .5s var(--ease); }
.socials a:hover { background: var(--sun); color: var(--sun-ink); transform: translateY(-3px); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.logo-dark { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .marquee-track { animation: none; }
    .hero-frame { clip-path: none; }
    .hero-frame img { scale: 1; }
    .split-word { transform: none; }
    .fade-up { opacity: 1; }
    .stack-card { position: relative; top: auto; }
    @view-transition { navigation: none; }
}

.page-hero .story h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }

/* ---------- Cinematic hero: looping landscape video under centred copy ---------- */
.hero--cinema { position: relative; display: block; min-height: 100dvh; padding: 0; background: #FFFFFF; overflow: hidden; }
.cinema-video {
    position: absolute; inset: 0; z-index: 0;
    /* First frame sits underneath, so nothing is ever blank while the video loads */
    background: #FFFFFF url("/assets/revamp/video/hero-landscape-poster.webp") center bottom / cover no-repeat;
}
.cinema-video video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block;
    transition: opacity 1.4s linear;
}
@media (max-aspect-ratio: 3/4) {
    .cinema-video { background-image: url("/assets/revamp/video/hero-portrait-poster.webp"); background-position: center; }
}
.cinema-copy {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding-top: clamp(140px, 19vh, 190px); padding-bottom: 160px;
}
.cinema-title {
    font-size: clamp(3rem, 8.6vw, 6.5rem); line-height: .95; letter-spacing: -.04em; font-weight: 600;
    max-width: 14ch; margin: 22px 0 0;
}
.cinema-lead { margin-top: 30px; max-width: 42rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--ink); font-weight: 500; text-shadow: 0 0 18px rgb(255 255 255 / .95), 0 0 6px rgb(255 255 255 / .9); }
.cinema-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.btn-lg { padding: 20px 34px; font-size: 1.0625rem; }
.hero--cinema .btn-ghost { background: rgb(255 255 255 / .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.cinema-rise { opacity: 0; animation: cinemaRise .8s ease-out forwards; animation-delay: var(--rise-delay, 0s); }
@keyframes cinemaRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
html.show-intro .cinema-rise { animation-delay: calc(var(--rise-delay, 0s) + 1s); }

@media (max-width: 767px) {
    /* Phones load a centred portrait cut of the clip */
    .cinema-video video { object-position: center center; }
    .cinema-video { background-position: center; }
    .cinema-copy { padding-top: 120px; padding-bottom: 34vh; }
}
}
@media (prefers-reduced-motion: reduce) {
    .cinema-rise { opacity: 1; animation: none; }
}
