/* ═══════════════════════════════════════════════════════════
   D-STAR Landing — v1 (Header + Hero)
   Mobile-first · transform/opacity-only motion · no heavy libs
   ═══════════════════════════════════════════════════════════ */

:root {
    --navy-950: #031628;
    --navy-900: #041d33;
    --navy-800: #062843;
    --navy-700: #08385f;
    --navy-600: #0e4a7a;
    --yellow: #f6b51e;
    --yellow-300: #ffd266;
    --sky: #5cc8ff;
    --mint: #35e0a1;
    --cream: #fbf7f0;
    --cream-2: #f4ede1;
    --ink: #0b2540;

    --f-display: 'Lalezar', 'Readex Pro', system-ui, sans-serif;
    --f-body: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    --f-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

    --ease: cubic-bezier(.2, .8, .2, 1);
    --hdr-h: 72px;
    --gutter: 16px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hdr-h) + 12px);
}
body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

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

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
    position: fixed; top: 10px; right: 10px; z-index: 200;
    background: var(--yellow); color: var(--navy-900); padding: 10px 16px; border-radius: 10px;
    transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ── Scroll progress ─────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--sky), var(--yellow));
    transform-origin: right center; transform: scaleX(0);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px;
    font-weight: 600; font-size: 15.5px; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
    -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-y {
    background: var(--yellow); color: var(--navy-900);
    box-shadow: 0 10px 30px -10px rgba(246, 181, 30, .65), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.btn-y svg { fill: currentColor; }
.btn-y::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(120%); transition: transform .7s var(--ease);
}
.btn-ghost {
    color: #fff; border: 1.5px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .04);
}
.btn-ghost .arr { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
@media (hover: hover) {
    .btn-y:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(246, 181, 30, .8), inset 0 -3px 0 rgba(0, 0, 0, .12); }
    .btn-y:hover::after { transform: translateX(-120%); }
    .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }
    .btn-ghost:hover .arr { transform: translateX(-4px); }
}
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ═════════════ HEADER ═════════════ */
.hdr {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--hdr-h);
    color: #fff;
    transition: background-color .35s, box-shadow .35s, color .35s, transform .4s var(--ease);
}
.hdr-in {
    height: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter);
    display: flex; align-items: center; gap: 24px;
}
.brand { position: relative; display: block; width: 104px; flex: none; }
.brand img { width: 100%; height: auto; transition: opacity .3s; }
.brand-n { position: absolute; inset: 0; opacity: 0; }

.nav { display: none; }
.hdr-act { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.hdr-login {
    display: none; align-items: center; gap: 6px;
    font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px;
    opacity: .85; transition: opacity .2s, background-color .2s;
}
.hdr-login svg { width: 18px; height: 18px; fill: currentColor; }
.hdr-login:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
.hdr .btn-sm { display: none; }

.burger { width: 44px; height: 44px; border-radius: 12px; display: grid; place-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* solid state after scrolling */
.hdr.is-solid { background: rgba(251, 247, 240, .96); color: var(--navy-800); box-shadow: 0 1px 0 rgba(8, 56, 95, .08), 0 10px 30px -18px rgba(8, 56, 95, .35); }
.hdr.is-solid .brand-w { opacity: 0; }
.hdr.is-solid .brand-n { opacity: 1; }
.hdr.menu-open { background: transparent; color: #fff; box-shadow: none; transform: none; }
.hdr.menu-open .brand-w { opacity: 1; }
.hdr.menu-open .brand-n { opacity: 0; }

/* mobile menu sheet */
.mnav {
    position: fixed; inset: 0; z-index: 95;
    background: radial-gradient(120% 70% at 100% 0%, var(--navy-600), var(--navy-900) 60%);
    padding: calc(var(--hdr-h) + 24px) 24px 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; transition: opacity .3s;
}
.mnav[hidden] { display: none; }
.mnav.open { opacity: 1; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a {
    font-family: var(--f-display); font-size: 34px; color: #fff; line-height: 1.25;
    padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex; align-items: baseline; gap: 14px;
    opacity: 0; transform: translateY(14px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.mnav nav a i { font: 600 13px var(--f-mono); color: var(--yellow); font-style: normal; }
.mnav.open nav a { opacity: 1; transform: none; }
.mnav.open nav a:nth-child(2) { transition-delay: .05s; }
.mnav.open nav a:nth-child(3) { transition-delay: .1s; }
.mnav.open nav a:nth-child(4) { transition-delay: .15s; }
.mnav.open nav a:nth-child(5) { transition-delay: .2s; }
.mnav-foot { display: grid; gap: 12px; }

@media (min-width: 640px) {
    .hdr .btn-sm { display: inline-flex; }
}
@media (min-width: 1000px) {
    :root { --hdr-h: 84px; }
    .brand { width: 120px; }
    .nav { display: flex; gap: 4px; margin-inline-start: 12px; }
    .nav a {
        position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; opacity: .82;
        transition: opacity .2s;
    }
    .nav a::after {
        content: ''; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px;
        background: var(--yellow); transform: scaleX(0); transition: transform .3s var(--ease);
    }
    .nav a:hover, .nav a.on { opacity: 1; }
    .nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
    .hdr-login { display: inline-flex; }
    .burger, .mnav { display: none !important; }
    .hdr.is-solid { background: rgba(251, 247, 240, .85); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
}

/* ═════════════ HERO — magazine cover ═════════════ */
.hero { position: relative; background: var(--navy-900); color: #fff; }

.cover {
    position: relative; z-index: 0; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: calc(var(--hdr-h) + 18px) var(--gutter) 0;
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(70% 55% at 50% 0%, rgba(14, 74, 122, .95), transparent 72%),
        linear-gradient(180deg, var(--navy-800), var(--navy-900) 70%);
}
.hero-sky .grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px; background-position: center top;
    -webkit-mask-image: radial-gradient(75% 65% at 50% 35%, #000 25%, transparent 80%);
            mask-image: radial-gradient(75% 65% at 50% 35%, #000 25%, transparent 80%);
}
.hero-sky .glow { position: absolute; border-radius: 50%; }
.hero-sky .g1 { width: 900px; height: 900px; left: 50%; bottom: -520px; margin-left: -450px; background: radial-gradient(closest-side, rgba(246, 181, 30, .26), transparent); }
.hero-sky .g2 { width: 600px; height: 600px; right: -260px; top: -200px; background: radial-gradient(closest-side, rgba(92, 200, 255, .16), transparent); }
.hero-sky .stars, .hero-sky .stars::after {
    position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; background: transparent;
    box-shadow:
        12vw 18vh #fff, 28vw 9vh rgba(255,255,255,.7), 44vw 22vh #fff, 63vw 12vh rgba(255,255,255,.6),
        81vw 26vh #fff, 92vw 8vh rgba(255,255,255,.8), 7vw 54vh rgba(255,255,255,.6), 36vw 40vh #fff,
        58vw 48vh rgba(255,255,255,.5), 74vw 36vh #fff, 88vw 52vh rgba(255,255,255,.7), 20vw 30vh #fff;
    animation: twinkle 4s ease-in-out infinite alternate;
}
.hero-sky .stars::after {
    content: '';
    box-shadow: 18vw 36vh #fff, 52vw 6vh rgba(255,255,255,.8), 70vw 38vh #fff, 96vw 40vh rgba(255,255,255,.6), 4vw 30vh #fff, 40vw 14vh rgba(255,255,255,.6);
    animation-delay: -2s;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }

/* ── top copy ── */
.pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .9);
}
.pulse { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.tagline {
    display: block; margin-top: 16px;
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); line-height: 1.25;
}
.hl { position: relative; display: inline-block; color: var(--yellow); }
.squiggle { position: absolute; left: 0; right: 0; bottom: -.04em; width: 100%; height: .26em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--yellow); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rocket { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.28em; margin-inline-start: .08em; overflow: visible; animation: rocket 3.2s 1.2s ease-in-out infinite; filter: drop-shadow(0 6px 14px rgba(246, 181, 30, .35)); }
.rocket .flame { transform-box: fill-box; transform-origin: 50% 0; animation: flame .18s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scaleY(.82) scaleX(.94); } to { transform: scaleY(1.08) scaleX(1.04); } }
@keyframes rocket { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-5px, -7px) rotate(-6deg); } }

.cover-cta { position: relative; z-index: 3; }
.lead { font-size: clamp(1rem, .92rem + .4vw, 1.15rem); color: rgba(255, 255, 255, .78); max-width: 36em; margin: 12px auto 0; line-height: 1.9; }
.lead strong { color: #fff; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
@media (max-width: 599px) {
    .cta-row { flex-direction: column; align-items: center; }
    .cta-row .btn { width: 100%; max-width: 330px; }
}

.tagline > .rise { display: inline-block; }
.rise { animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--d) * 100ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* layout order (title uses display:contents so its children join the column) */
.cover-top { order: 1; }
.title { display: contents; font-weight: 400; }
.tagline { order: 2; }
.cover-cta { order: 3; }
.giant { order: 4; }
.crew { order: 5; }

/* ── GIANT WORD ──
   default / mobile: letters filled with a photo (background-clip:text — cheap)
   .vid-on (desktop): letters become a window onto the video (blend-mode mask) */
.giant {
    --gs: min(25.5vw, 40vh, 360px);
    position: relative; display: block; width: 100%;
    margin-top: 26px;
    font-family: 'Fredoka', var(--f-display); font-weight: 700;
    font-size: var(--gs); line-height: .8; letter-spacing: -.02em;
    white-space: nowrap; text-align: center;
}
.giant i { font-style: normal; display: inline-block; }
.giant-mask { position: relative; display: flow-root; }  /* flow-root: stop the ink margins collapsing out of the box */
.giant-vid { display: none; position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; }
.giant-ink {
    display: block; padding: .22em .06em .16em; margin: -.12em -.06em -.12em;
    color: transparent;
    background: url('img/p-8-640.webp') 50% 45% / cover, var(--yellow);
    -webkit-background-clip: text; background-clip: text;
    animation: pop 1s .3s var(--ease) backwards;
}
/* outline: a yellow fat silhouette + a black copy on top, both BEHIND the mask.
   Only the outer ring shows (no internal font contours), and the black copy makes
   the screen-blended video inside the letters show in true colour. */
.giant-line, .giant-back {
    position: absolute; inset: 0; display: block; padding: .1em 0 .04em; pointer-events: none;
    animation: pop 1s .3s var(--ease) backwards;
}
.giant-line { color: var(--yellow); -webkit-text-stroke: max(5px, .018em) var(--yellow); }
.giant-back { color: #000; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) { .giant-ink { background-image: url('img/p-8-1100.webp'); } }

.hero.vid-on .giant-mask { mix-blend-mode: screen; }
.hero.vid-on .giant-vid { display: block; }
.hero.vid-on .giant-ink {
    background: #000; color: #fff;
    -webkit-background-clip: border-box; background-clip: border-box;
    mix-blend-mode: multiply; animation: none;
    -webkit-text-stroke: max(2px, .008em) #fff;   /* slightly fatter than the black copy: hides the seam */
}
.hero.vid-on .giant-line, .hero.vid-on .giant-back { animation: none; }
.hero.vid-on .giant i { animation: drop 1s cubic-bezier(.3, 1.45, .5, 1) both; animation-delay: calc(var(--i) * 80ms + 250ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-55%) rotate(-10deg); } to { opacity: 1; transform: none; } }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── crew (cutouts standing in front of the word) ── */
.crew { direction: ltr; position: relative; z-index: 2; width: 100vw; display: flex; justify-content: center; margin-top: -10vw; pointer-events: none; }
.crew figure { position: relative; width: 60%; flex: none; }
.crew img { width: 100%; height: auto; filter: drop-shadow(0 -10px 30px rgba(0, 0, 0, .35)); }
.crew-sr { margin-left: -10%; animation: crewL 1.1s .5s var(--ease) backwards; }
.crew-jr { margin-right: -10%; animation: crewR 1.1s .6s var(--ease) backwards; z-index: 1; }
@keyframes crewL { from { opacity: 0; transform: translate(-40px, 40px); } to { opacity: 1; transform: none; } }
@keyframes crewR { from { opacity: 0; transform: translate(40px, 40px); } to { opacity: 1; transform: none; } }
.crew figcaption {
    position: absolute; top: 0; display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .88); direction: ltr;
    background: rgba(4, 29, 51, .82); border: 1px solid rgba(255, 255, 255, .16);
    padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.crew figcaption b { color: var(--yellow); font-weight: 700; }
.crew-sr figcaption { left: 22%; top: auto; bottom: 25%; }
.crew-jr figcaption { right: 26%; top: auto; bottom: 25%; }
@media (min-width: 1000px) {
    .crew-sr figcaption { left: 4%; top: auto; bottom: 10%; }
    .crew-jr figcaption { right: 4%; top: auto; bottom: 10%; }
}

.cover-cap { display: none; }

.hero-edge { position: absolute; left: 0; bottom: -1px; z-index: 5; width: 100%; height: 40px; fill: var(--cream); pointer-events: none; }

/* ── desktop: full-screen cover + pinned zoom ── */
@media (min-width: 1000px) {
    .cover { height: 100vh; min-height: 640px; padding-top: calc(var(--hdr-h) + 10px); }
    .tagline { margin-top: 12px; }
    .crew { position: absolute; left: 0; right: 0; bottom: 0; width: auto; margin: 0; justify-content: space-between; }
    .crew figure { width: min(39vw, 74vh, 760px); margin: 0; }
    .crew figcaption { font-size: 13px; padding: 5px 12px; }
    .giant { margin-top: auto; margin-bottom: calc(min(39vw, 74vh, 760px) * .56 * .42); }
    .hero-edge { height: 80px; }

    .hero.pin { height: 250vh; }
    .hero.pin .cover { position: sticky; top: 0; }
    .hero.pin .giant-mask, .hero.pin .giant-line, .hero.pin .giant-back { will-change: transform; }
    .hero.pin .cover-cap {
        display: block; position: absolute; z-index: 4; left: 50%; top: 50%;
        transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
        text-align: center; white-space: nowrap;
        padding: 26px 48px; border-radius: 28px;
        background: rgba(4, 29, 51, .8);
        box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
    }
    .cover-cap span { display: block; font-size: 22px; color: rgba(255, 255, 255, .82); }
    .cover-cap b { display: block; font: 400 clamp(2.4rem, 1rem + 3vw, 3.6rem)/1.3 var(--f-display); color: var(--yellow); }
}
@media (min-width: 1000px) and (max-height: 760px) {
    .lead { display: none; }
}



/* ═════════════ Reduced motion ═════════════ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .squiggle path { stroke-dashoffset: 0; }
    .hero-sky .shoot { display: none; }
}

/* full-screen video revealed at the end of the dive (desktop pin only) */
.cover-full { display: none; }
@media (min-width: 1000px) {
    .hero.pin .cover-full { display: block; position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; }
    .cover-full video { width: 100%; height: 100%; object-fit: cover; }
    .cover-full::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(4, 29, 51, .35), rgba(4, 29, 51, .75)); }
}

/* ── mobile/tablet hero: fill the whole screen, breathe vertically ── */
@media (max-width: 999px) {
    .cover { padding-top: calc(var(--hdr-h) + 22px); }
    .tagline { margin-top: 20px; }
    .lead { margin-top: 14px; }
    .cta-row { margin-top: 26px; gap: 14px; }
    .cover-cta { margin-bottom: 0; }
    .giant { margin-top: 36px; --gs: min(27vw, 150px); }
    .crew { margin-top: 18px; }
    .crew figure { width: 63%; }
    .hero-edge { height: 34px; }
}

/* senior cutout is less wide (1388x941) than the junior one (1672x941): match their heights */
.crew .crew-sr { width: 52%; }
@media (max-width: 999px) { .crew .crew-sr { width: 52.5%; } }
@media (min-width: 1000px) { .crew .crew-sr { width: calc(min(39vw, 74vh, 760px) * .83); } }

/* ═════════════ Generic scroll reveal ═════════════ */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ═════════════ 2. ABOUT — ما هو D-STAR؟ ═════════════ */
.about { position: relative; isolation: isolate; overflow: hidden; background: var(--cream); padding: 72px 0 100px; }
.about-dots {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(8, 56, 95, .11) 1.3px, transparent 1.6px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--navy-600); }
.eyebrow span { font: 700 12px var(--f-mono); background: var(--yellow); color: var(--navy-900); border-radius: 999px; padding: 3px 9px; }

.h2 { font: 400 clamp(2.5rem, 1.5rem + 3.6vw, 4.4rem)/1.2 var(--f-display); color: var(--navy-800); margin-top: 12px; }
.ds { position: relative; display: inline-block; font-family: 'Fredoka', var(--f-display); font-weight: 700; letter-spacing: -.01em; color: var(--navy-700); }
.ds-line { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .24em; overflow: visible; }
.ds-line path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.1s .35s var(--ease); }
.rv.in .ds-line path { stroke-dashoffset: 0; }

.about-intro { display: grid; gap: 52px; align-items: center; }
.about-lead { margin-top: 18px; font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 2.05; color: #3c4c5e; max-width: 34em; }
.about-lead strong { color: var(--navy-800); font-weight: 600; }

/* ── typographic acrostic poster ── */
.decode { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.poster {
    position: relative; isolation: isolate;
    font-family: 'Fredoka', var(--f-display);
    font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.015em;
    color: var(--navy-600); font-weight: 500;
}
.pl { display: block; white-space: nowrap; }
.pl b {
    display: inline-block; width: .78em; text-align: center; margin-right: .06em;
    font-weight: 700; color: var(--navy-900); text-transform: uppercase;
}
.pl small { font-size: .5em; font-weight: 500; color: #8a98a8; margin-left: .12em; }
.pl:nth-child(5) small, .pl:nth-child(4) small { margin-left: 0; }
/* vertical highlighter running down the initials: reads D-S-T-A-R */
.poster-bar {
    position: absolute; z-index: -1; left: -.06em; top: .06em; bottom: .02em; width: .9em;
    background: var(--yellow); border-radius: .22em;
    box-shadow: 0 24px 40px -22px rgba(246, 181, 30, .9);
    transform-origin: 50% 0;
}

/* entrance: bar draws down, lines slide in one by one */
.js .poster-bar { transform: scaleY(0); transition: transform 1.1s var(--ease) .15s; }
.js .rv.in .poster-bar { transform: none; }
.js .pl { opacity: 0; transform: translateX(-18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k) * 120ms + 300ms); }
.js .rv.in .pl { opacity: 1; transform: none; }

/* rotating seal */
.seal { position: absolute; z-index: 2; top: 50%; right: 0; width: 112px; height: 112px; margin-top: -56px; filter: drop-shadow(0 16px 24px rgba(4, 29, 51, .3)); }
.seal-ring { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal-ring text { font: 700 7.2px var(--f-body); fill: var(--navy-900); }
.seal-mark { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 599px) {
    .about-intro { gap: 48px; }
    .decode { max-width: none; }
    .seal { width: 92px; height: 92px; margin-top: -46px; top: 62%; }
    .seal-mark { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
}
@media (min-width: 1000px) {
    .about-intro { grid-template-columns: 1.05fr .95fr; gap: 72px; }
    .decode { margin-inline: auto 0; }
    .seal { right: -10px; top: 8%; margin-top: 0; width: 124px; height: 124px; }
}

/* journey heading */
.journey-head { text-align: center; }
.h3 { font: 400 clamp(1.8rem, 1.2rem + 2.3vw, 3rem)/1.35 var(--f-display); color: var(--navy-800); }
.h3 em { font-style: normal; background: linear-gradient(transparent 60%, rgba(246, 181, 30, .55) 0); padding-inline: .1em; }
.bot { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; margin-inline-end: .1em; }
.bot-eye { transform-box: fill-box; transform-origin: center; animation: blinkEye 4.5s infinite; }
@keyframes blinkEye { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.bot-led { animation: led 1.6s ease-in-out infinite alternate; }
@keyframes led { from { opacity: .45; } to { opacity: 1; } }
.journey-head p { max-width: 40em; margin: 14px auto 0; color: #4d5d6f; font-size: clamp(1rem, .95rem + .25vw, 1.12rem); line-height: 1.95; }

/* ── journey (shared) ── */
.journey { position: relative; margin-top: 84px; }
.j-rail { display: none; }
.j-inner { position: relative; margin-top: 46px; }

.trace { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace-bg { stroke: rgba(8, 56, 95, .22); stroke-width: 3; stroke-dasharray: 1 9; }
.trace-glow { stroke: rgba(246, 181, 30, .28); stroke-width: 12; }
.trace-on { stroke: url(#traceGrad); stroke-width: 4; }
.spark { opacity: 0; transition: opacity .3s; }
.spark-core { fill: #fff; stroke: var(--yellow); stroke-width: 3; }
.spark-halo { fill: rgba(246, 181, 30, .35); transform-box: fill-box; transform-origin: center; animation: halo 1s ease-in-out infinite alternate; }
@keyframes halo { from { transform: scale(.7); } to { transform: scale(1.15); } }

.stages { position: relative; z-index: 1; display: grid; gap: 26px; padding-inline-start: 44px; }

/* ── stage card: each stage has its own colour ── */
.stage {
    position: relative; border-radius: 30px; background: var(--bg);
    box-shadow: 0 26px 50px -38px rgba(8, 56, 95, .55);
    transition: transform .6s var(--ease), opacity .6s var(--ease), box-shadow .6s var(--ease);
}
.stage-img { position: relative; aspect-ratio: 16 / 10.5; border-radius: 30px 30px 0 0; overflow: hidden; }
.stage-img::before {
    content: ''; position: absolute; left: 50%; bottom: -42%; width: 82%; aspect-ratio: 1; translate: -50% 0;
    border-radius: 50%; background: var(--c); opacity: .9;
    transition: background-color .7s var(--ease), transform .9s var(--ease);
}
/* the cut-out fills the photo area and bleeds past its sides, so the hard cut edges never show */
.stage-img img {
    position: absolute; left: -6%; bottom: 0; width: 112%; height: 100%;
    object-fit: cover; object-position: 50% 100%;
    filter: drop-shadow(0 12px 18px rgba(8, 56, 95, .22));
    transition: filter .8s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
}
.stage-num {
    position: absolute; z-index: 1; top: 10px; left: 18px;
    font: 700 58px/1 'Fredoka', var(--f-display); color: transparent;
    -webkit-text-stroke: 2px var(--c); opacity: .9;
}
.stage-txt { padding: 16px 24px 24px; }
.stage-en {
    display: inline-block; font: 700 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
    color: #fff; background: var(--c); padding: 4px 10px; border-radius: 999px;
}
.stage h4 { font: 400 clamp(1.7rem, 1.35rem + 1vw, 2.1rem)/1.3 var(--f-display); color: var(--navy-800); margin-top: 8px; }
.stage p { font-size: 15.5px; color: #4f5f71; line-height: 1.85; margin-top: 2px; }

/* mobile circuit: stages are "unpowered" until the current reaches them */
.journey:not(.hz) .stage:not(.on) .stage-img img { filter: grayscale(1); opacity: .55; transform: scale(.96); }
.journey:not(.hz) .stage:not(.on) .stage-img::before { background: #cdd5de; }
html:not(.js) .stage-img img { filter: none !important; opacity: 1 !important; transform: none !important; }

.node {
    position: absolute; z-index: 2; right: -40px; top: 30%;
    width: 36px; height: 36px; margin-top: -18px;
    border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid rgba(8, 56, 95, .18);
    transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.node i { font: 700 11px var(--f-mono); font-style: normal; color: #8a98a8; transition: color .4s; }
.stage.on .node { background: var(--c); border-color: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent), 0 0 22px 2px color-mix(in srgb, var(--c) 45%, transparent); }
.stage.on .node i { color: #fff; }

@media (min-width: 640px) and (max-width: 999px) {
    .stage { display: grid; grid-template-columns: 44% 1fr; align-items: center; }
    .stage-img { border-radius: 0 30px 30px 0; height: 100%; aspect-ratio: auto; min-height: 210px; }
    .node { top: 50%; }
}

/* ── desktop fallback (no pinning: reduced motion) ── */
@media (min-width: 1000px) {
    .journey { margin-top: 120px; }
    .journey:not(.hz) .stages { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0; }
    .journey:not(.hz) .trace, .journey .node { display: none; }
    .journey:not(.hz) .stage .stage-img img { filter: drop-shadow(0 12px 18px rgba(8, 56, 95, .22)); opacity: 1; transform: none; }
    .journey:not(.hz) .stage .stage-img::before { background: var(--c); }
}

/* ── desktop: pinned horizontal ride ── */
.journey.hz { height: var(--jh, 300vh); margin-top: 0; }
.journey.hz .j-stage {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--hdr-h) + 12px) 0 30px;   /* clear the always-visible header */
    isolation: isolate;
}
/* stage tint fades in/out softly instead of a hard edge */
.journey.hz .j-stage::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-color: var(--jbg, transparent);
    transition: background-color .7s var(--ease);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.journey.hz .journey-head p { margin-top: 8px; }
.journey.hz .j-rail {
    display: block; position: relative; height: 4px; border-radius: 4px;
    margin: 34px 70px 56px; background: rgba(8, 56, 95, .12);
}
.j-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(270deg, #f6b51e, #ff7a45, #14b07a, #2b9fe6, #7b61ff, #ec4f88); transform-origin: 100% 50%; transform: scaleX(0); }
.j-dot { position: absolute; top: 50%; right: calc(var(--i) * 20%); width: 0; height: 0; }
.j-dot i {
    position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--cream); border: 3px solid rgba(8, 56, 95, .2);
    transition: background-color .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.j-dot em {
    position: absolute; top: 20px; left: 0; translate: -50% 0; white-space: nowrap;
    font-style: normal; font-size: 14px; font-weight: 500; color: #8a98a8; transition: color .4s;
}
.j-dot.on i { background: var(--c); border-color: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); }
.j-dot.now i { transform: scale(1.25); }
.j-dot.on em { color: var(--navy-800); font-weight: 600; }

.journey.hz .j-viewport { position: relative; }
.journey.hz .j-inner { max-width: none; margin: 0; padding: 0; }
.journey.hz .trace { display: none; }
.journey.hz .stages {
    display: flex; gap: 32px; width: max-content; padding: 0;
    padding-inline: max(16px, calc((100vw - 1240px) / 2 + 16px));
    will-change: transform;
}
.journey.hz .stage { width: clamp(360px, 31vw, 450px); flex: none; opacity: .5; transform: scale(.94); }
.journey.hz .stage.on { opacity: 1; transform: none; }
.journey.hz .stage.now { box-shadow: 0 40px 70px -40px rgba(8, 56, 95, .65); }
.journey.hz .stage-img { aspect-ratio: auto; height: clamp(180px, 31vh, 300px); }
.journey.hz .stage.now .stage-img::before { transform: scale(1.06); }

/* about uses clip (not hidden) so the sticky ride keeps working */
.about { overflow: clip; }
@media (min-width: 1000px) { .about { padding: 110px 0 40px; } }

/* mobile line-breaking for the about section */
@media (max-width: 599px) {
    .h3 em { white-space: nowrap; }
}
@media (min-width: 600px) { .m-br { display: none; } }

/* ═════════════ 3. AGES / PROGRAMS ═════════════ */
.ages {
    --acc: #f6b51e; --acc2: #ffd266; --accRGB: 246, 181, 30;
    position: relative; isolation: isolate; overflow: clip;
    background: var(--navy-800); color: #fff;
    padding: 96px 0 110px;
}
.ages[data-track="senior"] { --acc: #5cc8ff; --acc2: #b5e8ff; --accRGB: 92, 200, 255; }
.ages-edge { position: absolute; top: -1px; left: 0; z-index: 1; width: 100%; height: 44px; fill: var(--cream); pointer-events: none; }
.ages-sky {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(50% 40% at 15% 60%, rgba(var(--accRGB), .14), transparent 70%),
        radial-gradient(45% 40% at 90% 20%, rgba(92, 200, 255, .12), transparent 70%),
        linear-gradient(180deg, var(--navy-800), var(--navy-900));
    transition: background .6s;
}
.ages-sky::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000 20%, transparent 80%);
            mask-image: radial-gradient(80% 60% at 50% 40%, #000 20%, transparent 80%);
}

.eyebrow--dark { color: rgba(255, 255, 255, .78); }
.h2--light { color: #fff; }
.ds-y { font-family: 'Fredoka', var(--f-display); font-weight: 700; color: var(--yellow); }
.ages-head { text-align: center; max-width: 780px; margin: 0 auto; }
.ages-lead { color: rgba(255, 255, 255, .74); margin-top: 14px; line-height: 1.95; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }

/* ── age dial ── */
.dial {
    margin: 46px auto 0; max-width: 880px;
    display: grid; gap: 18px; padding: 24px 22px 22px; border-radius: 30px;
    background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8);
}
.dial-read { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dial-q { font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem)/1.2 var(--f-display); color: #fff; }
.dial-num { display: flex; align-items: baseline; gap: 8px; }
.dial-num b { font: 700 clamp(3.4rem, 2.6rem + 3vw, 5rem)/.85 'Fredoka', var(--f-display); color: var(--acc); transition: color .4s; display: inline-block; min-width: 1.2em; text-align: center; }
.dial-num b.bump { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.dial-num small { font-size: 15px; color: rgba(255, 255, 255, .6); }

.range { position: relative; height: 44px; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; pointer-events: none; }
.range-track span { position: absolute; top: 0; bottom: 0; border-radius: 10px; transition: opacity .4s, box-shadow .4s; }
.seg-j { right: 0; width: calc(45% + 1.7px); background: linear-gradient(270deg, #ffd266, #f6b51e); }
.seg-s { left: 0; right: calc(45% + 6px); background: linear-gradient(270deg, #8fd9ff, #2b9fe6); }
.ages[data-track="junior"] .seg-s, .ages[data-track="senior"] .seg-j { opacity: .22; }
.ages[data-track="junior"] .seg-j { box-shadow: 0 0 18px rgba(246, 181, 30, .55); }
.ages[data-track="senior"] .seg-s { box-shadow: 0 0 18px rgba(92, 200, 255, .55); }

.range input {
    -webkit-appearance: none; appearance: none; position: relative; z-index: 1;
    width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
}
.range input::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.range input::-moz-range-track { height: 44px; background: transparent; }
.range input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 34px; height: 34px; margin-top: 5px; border-radius: 50%;
    background: #fff; border: 7px solid var(--acc);
    box-shadow: 0 0 0 7px rgba(var(--accRGB), .22), 0 10px 22px rgba(0, 0, 0, .45);
    transition: border-color .4s, box-shadow .4s, transform .2s;
}
.range input::-moz-range-thumb {
    box-sizing: border-box; width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: 7px solid var(--acc);
    box-shadow: 0 0 0 7px rgba(var(--accRGB), .22), 0 10px 22px rgba(0, 0, 0, .45);
}
.range input:active::-webkit-slider-thumb { transform: scale(1.1); }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #fff, 0 0 0 9px rgba(var(--accRGB), .6); }

.ticks { position: relative; height: 22px; }
.ticks span {
    position: absolute; top: 0; right: calc(17px + var(--p) * (100% - 34px)); transform: translateX(50%);
    font: 600 13px var(--f-mono); color: rgba(255, 255, 255, .38); cursor: pointer;
    transition: color .3s, transform .3s var(--ease);
}
.ticks span.on { color: var(--acc); transform: translateX(50%) scale(1.25); }

.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tab {
    display: inline-flex; align-items: center; gap: 8px; direction: ltr;
    padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03);
    transition: background-color .3s, color .3s, border-color .3s;
}
.tab svg { width: 18px; height: 18px; fill: currentColor; }
.tab small { font-size: 12px; opacity: .65; }
.tab-j[aria-selected="true"] { background: #f6b51e; border-color: #f6b51e; color: var(--navy-900); }
.tab-s[aria-selected="true"] { background: #5cc8ff; border-color: #5cc8ff; color: var(--navy-900); }
@media (hover: hover) { .tab[aria-selected="false"]:hover { border-color: rgba(255, 255, 255, .5); } }

/* ── program panels ── */
.panels { display: grid; margin-top: 56px; }
.panel { grid-area: 1 / 1; display: grid; gap: 30px; align-items: center; }
html:not(.js) .panel { grid-area: auto; margin-bottom: 60px; }
.js .panel:not(.on) { display: none; }
.js .panel.on { animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.panel-art { position: relative; padding-top: 12%; }
/* the coloured window the kids sit in — their heads break out of its top edge */
.panel-frame {
    position: absolute; left: 0; right: 0; bottom: 0; top: 34%;
    border-radius: 32px;
    background:
        linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 26px 26px,
        linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 26px 26px,
        radial-gradient(120% 100% at 30% 0%, var(--acc2), var(--acc) 70%);
    box-shadow: 0 40px 80px -36px rgba(var(--accRGB), .55), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
/* clip the cut-out's hard sides + bottom exactly on the frame (top stays open) */
.panel-pic { position: relative; display: flow-root; clip-path: inset(-100% 0 0 0 round 0 0 32px 32px); }
.panel-pic img {
    display: block; max-width: none; height: auto;
    width: calc(100% + 2 * var(--ox)); margin-inline: calc(-1 * var(--ox));
    margin-bottom: calc(-1 * var(--oy));
    filter: drop-shadow(0 -6px 18px rgba(4, 29, 51, .25));
}
.panel-age {
    position: absolute; top: 0; right: 4%; z-index: 1;
    font: 700 clamp(2rem, 1.6rem + 1.4vw, 2.8rem)/1 'Fredoka', var(--f-display); color: #fff;
    background: var(--navy-900); border: 2px solid var(--acc); border-radius: 20px; padding: 8px 16px 6px;
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); text-align: center;
}
.panel-age small { display: block; font: 600 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-top: 4px; }

.panel-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--acc); font-weight: 600; font-size: 15px; }
.panel-tag svg { width: 20px; height: 20px; fill: currentColor; }
.panel-name { font: 700 clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem)/1.05 'Fredoka', var(--f-display); color: var(--acc); margin-top: 6px; text-align: right; }
.panel-name span { color: #fff; }
.panel-desc { color: rgba(255, 255, 255, .76); margin-top: 12px; line-height: 1.95; font-size: clamp(1rem, .96rem + .2vw, 1.1rem); max-width: 34em; }

.tracks { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.tracks li {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    transition: border-color .3s, background-color .3s, opacity .5s var(--ease), transform .5s var(--ease);
}
@media (hover: hover) { .tracks li:hover { border-color: rgba(var(--accRGB), .7); background: rgba(255, 255, 255, .08); } }
.tr-ico { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(var(--accRGB), .15); color: var(--acc); }
.tr-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-txt b { display: block; font-size: 15.5px; font-weight: 600; color: #fff; line-height: 1.45; }
.tr-txt small { display: block; font: 500 11.5px var(--f-mono); color: rgba(255, 255, 255, .5); text-align: right; letter-spacing: .02em; }
.js .panel.on .tracks li { animation: liIn .5s var(--ease) backwards; animation-delay: calc(var(--k) * 60ms + 150ms); }
@keyframes liIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 560px) { .tracks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
    .ages { padding: 130px 0 140px; }
    .ages-edge { height: 80px; }
    .dial { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; padding: 26px 32px; }
    .dial-read { flex-direction: column; align-items: flex-start; gap: 4px; }
    .dial-ctrl { padding-top: 6px; }
    .tabs { grid-column: 1 / -1; }
    .panel { grid-template-columns: 1fr 1fr; gap: 64px; }
    .panel-info { order: -1; }
}

/* ═════════════ 4. CENTRES ═════════════ */
.nowrap { white-space: nowrap; }
.centers { position: relative; isolation: isolate; background: var(--cream); padding: 90px 0 100px; }
.centers-edge { position: absolute; top: -1px; left: 0; width: 100%; height: 40px; fill: var(--navy-900); pointer-events: none; }
.centers-head { text-align: center; max-width: 760px; margin: 0 auto; }
.ds-n { font-family: 'Fredoka', var(--f-display); font-weight: 700; color: var(--navy-700); }
.pin-ico { display: inline-block; width: .8em; height: .8em; vertical-align: -.06em; animation: pinBob 2.4s ease-in-out infinite; }
@keyframes pinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.centers-lead { color: #4d5d6f; margin-top: 12px; line-height: 1.95; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }

/* toolbar */
.finder { margin-top: 36px; display: grid; gap: 12px; }
.locate svg { fill: currentColor; }
.locate.busy svg { animation: spin 1s linear infinite; }
.search {
    display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px;
    background: #fff; border: 1.5px solid rgba(8, 56, 95, .12); box-shadow: 0 12px 30px -24px rgba(8, 56, 95, .5);
    transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(246, 181, 30, .2); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #8a98a8; stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: #9aa7b5; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
    background: #fff; border: 1.5px solid rgba(8, 56, 95, .12); font-weight: 600; font-size: 14.5px; color: var(--navy-800);
    transition: background-color .2s, border-color .2s, color .2s;
}
.chip i { font: 700 11.5px var(--f-mono); font-style: normal; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--cream-2); color: var(--navy-600); }
.chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--navy-600)); }
.chip[data-city="all"]::before { display: none; }
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip.on i { background: rgba(255, 255, 255, .15); color: #fff; }
@media (hover: hover) { .chip:not(.on):hover { border-color: rgba(8, 56, 95, .35); } }
.finder-msg { margin-top: 12px; font-size: 14.5px; color: var(--navy-600); text-align: center; }
.finder-msg:empty { display: none; }
.finder-msg.err { color: #c2410c; }

.centers-grid { display: grid; gap: 22px; margin-top: 26px; align-items: start; }

/* ── live map ── */
.map {
    position: relative; height: 320px; border-radius: 28px; overflow: hidden; isolation: isolate;
    background: #e9e4da; border: 1px solid rgba(8, 56, 95, .1);
    box-shadow: 0 30px 60px -40px rgba(8, 56, 95, .6);
}
.map-canvas { position: absolute; inset: 0; z-index: 0; }
.map-skel { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 8px; color: #8a98a8; font-size: 14px; background: linear-gradient(110deg, #ece7dd 30%, #f5f1ea 50%, #ece7dd 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; transition: opacity .4s; }
.map-skel svg { width: 34px; height: 34px; fill: #c9c1b2; }
.map.ready .map-skel { opacity: 0; pointer-events: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* leaflet skin */
.map .leaflet-container { font-family: var(--f-body); background: #e9e4da; }
.map .leaflet-control-zoom { border: 0 !important; box-shadow: 0 10px 24px -12px rgba(8, 56, 95, .5) !important; border-radius: 14px !important; overflow: hidden; }
.map .leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--navy-800) !important; font-size: 18px !important; }
.map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .75); direction: ltr; }
.map .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(8, 56, 95, .6); }
.map .leaflet-popup-content { margin: 12px 16px; direction: rtl; text-align: right; font-size: 14px; line-height: 1.6; color: var(--ink); }
.map .leaflet-popup-content b { display: block; font: 400 18px/1.3 var(--f-display); color: var(--navy-800); }
.map .leaflet-popup-content a { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--navy-600); }
.lf-pin { background: none; border: 0; }
.lf-pin i {
    position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: -15px;
    background: var(--c); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    box-shadow: 0 8px 16px -6px rgba(8, 56, 95, .55); transition: transform .3s var(--ease);
}
.lf-pin i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; }
.lf-pin.hot i { transform: rotate(-45deg) scale(1.3); }
.lf-me { background: none; border: 0; }
.lf-me i { position: absolute; inset: 0; border-radius: 50%; background: #1fbf86; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(31, 191, 134, .25); }

/* ── centre cards ── */
.cc-list { display: grid; gap: 16px; }
.cc {
    position: relative; overflow: hidden; background: #fff; border-radius: 24px; border: 1px solid rgba(8, 56, 95, .08);
    box-shadow: 0 22px 44px -34px rgba(8, 56, 95, .55);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cc[hidden] { display: none; }
@media (hover: hover) { .cc:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(8, 56, 95, .6); border-color: color-mix(in srgb, var(--c) 60%, transparent); } }
.cc.is-near { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 32%, transparent), 0 30px 60px -36px rgba(8, 56, 95, .6); }
.cc.hot { border-color: var(--c); }

/* real map thumbnail — click opens Google Maps */
.cc-map { position: relative; display: block; aspect-ratio: 420 / 170; overflow: hidden; background: #ece7dd; }
.cc-tiles { position: absolute; inset: 0; }
.cc-tiles img { position: absolute; max-width: none; transition: transform .6s var(--ease); }
.cc-map::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 56, 95, .18)); pointer-events: none; }
@media (hover: hover) { .cc:hover .cc-tiles img { transform: scale(1.06); } }
.cc-pin { position: absolute; z-index: 1; left: 50%; top: 50%; width: 38px; height: 38px; margin: -38px 0 0 -19px; fill: var(--c); filter: drop-shadow(0 6px 8px rgba(8, 56, 95, .4)); transition: transform .4s var(--ease); transform-origin: 50% 100%; }
.cc:hover .cc-pin, .cc.is-near .cc-pin, .cc.hot .cc-pin { transform: translateY(-4px) scale(1.1); }
.cc-open {
    position: absolute; z-index: 2; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--navy-800); background: rgba(255, 255, 255, .92);
    padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(8, 56, 95, .5);
    transition: background-color .2s, color .2s;
}
.cc-open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cc-map:hover .cc-open, .cc-map:focus-visible .cc-open { background: var(--navy-800); color: #fff; }
.cc-dist, .cc-near { position: absolute; z-index: 2; top: 10px; display: none; font-size: 12px; font-weight: 700; border-radius: 999px; white-space: nowrap; padding: 4px 10px; box-shadow: 0 6px 14px -8px rgba(8, 56, 95, .5); }
.cc-dist { left: 10px; background: var(--navy-800); color: #fff; }
.cc-near { right: 10px; background: var(--c); color: var(--navy-900); }
.has-dist .cc-dist { display: block; }
.cc.is-near .cc-near { display: block; }

.cc-body { padding: 14px 18px 18px; }
.cc-city { display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy-700); background: color-mix(in srgb, var(--c) 24%, #fff); padding: 2px 10px; border-radius: 999px; }
.cc-name { font: 400 1.6rem/1.3 var(--f-display); color: var(--navy-800); margin-top: 4px; }
.cc-area { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; color: #5d6d7f; line-height: 1.6; }
.cc-area svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: #9aa7b5; }

.cc-empty { margin-top: 18px; text-align: center; color: #5d6d7f; }
.cc-empty button { color: var(--navy-700); font-weight: 700; text-decoration: underline; }
.map-credit { margin-top: 18px; text-align: center; font-size: 11px; color: #9aa7b5; }
.map-credit a { text-decoration: underline; }

@media (min-width: 640px) {
    .finder { grid-template-columns: auto 1fr; }
    .chips { grid-column: 1 / -1; }
    .cc-list { grid-template-columns: 1fr 1fr; }
    .map { height: 380px; }
}
@media (min-width: 1000px) {
    .centers { padding: 120px 0 130px; }
    .centers-edge { height: 70px; }
    .finder { grid-template-columns: auto minmax(220px, 340px) 1fr; align-items: center; }
    .chips { grid-column: auto; justify-content: flex-end; }
    .centers-grid { grid-template-columns: minmax(380px, 1fr) 1.15fr; gap: 28px; }
    .map { position: sticky; top: calc(var(--hdr-h) + 20px); height: calc(100vh - var(--hdr-h) - 60px); max-height: 640px; min-height: 460px; }
}

/* entrance */
.js .cc { animation: ccIn .6s var(--ease) backwards; animation-delay: calc(var(--k) * 50ms); animation-play-state: paused; }
.js .cc-list.in .cc { animation-play-state: running; }
@keyframes ccIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── phones: centre cards become a swipe carousel ── */
.cc-dots { display: none; }
@media (max-width: 639px) {
    .cc-list {
        display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
        margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 10px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .cc-list::-webkit-scrollbar { display: none; }
    .cc { flex: 0 0 84%; scroll-snap-align: start; }
    .cc:hover { transform: none; }
    .cc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
    .cc-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(8, 56, 95, .2); transition: width .3s var(--ease), background-color .3s; }
    .cc-dots i.on { width: 22px; background: var(--yellow); }
    .cc.cur { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
}

/* ═════════════ 5. LIFE / GALLERY ═════════════ */
.life { position: relative; isolation: isolate; overflow: clip; background: var(--navy-900); color: #fff; padding: 96px 0 110px; }
.life-edge { position: absolute; top: -1px; left: 0; z-index: 1; width: 100%; height: 44px; fill: var(--cream); pointer-events: none; }
.life-sky {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(45% 35% at 85% 15%, rgba(246, 181, 30, .12), transparent 70%),
        radial-gradient(50% 40% at 10% 70%, rgba(92, 200, 255, .1), transparent 70%),
        linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.life-head { text-align: center; max-width: 820px; margin: 0 auto; }
.life-sub { margin-top: 10px; font: 400 clamp(1.3rem, 1.05rem + 1vw, 1.8rem)/1.4 var(--f-display); color: var(--yellow); }
.life-lead { margin-top: 10px; color: rgba(255, 255, 255, .78); line-height: 2; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.life-lead mark { background: none; color: #fff; font-weight: 600; box-shadow: inset 0 -.35em 0 color-mix(in srgb, var(--c) 55%, transparent); padding-inline: .05em; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; margin-top: 22px; }
.tile { position: relative; border-radius: 20px; overflow: hidden; background: var(--navy-700); }
.tile[hidden] { display: none; }
.tile--w, .tile--b { grid-column: span 2; }
.tile--t, .tile--b { grid-row: span 2; }
.tile-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; display: block; cursor: zoom-in; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.tile-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 29, 51, .7)); opacity: .85; transition: opacity .4s; pointer-events: none; }
.tile-cap {
    position: absolute; z-index: 1; bottom: 10px; right: 10px; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0 !important;
    font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(4, 29, 51, .55);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
}
.tile-cap svg { width: 12px; height: 12px; fill: var(--yellow); }
@media (hover: hover) {
    .tile:hover img, .tile:hover video { transform: scale(1.06); }
    .tile:hover .tile-btn::after { opacity: 1; }
}
.tile-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; border-radius: 20px; }

/* featured video */
.tile--feature { box-shadow: 0 0 0 2px rgba(246, 181, 30, .55), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.feat-play { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; pointer-events: none; }
.feat-play i {
    width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
    background: var(--yellow); box-shadow: 0 0 0 10px rgba(246, 181, 30, .25), 0 18px 40px -10px rgba(0, 0, 0, .6);
    animation: playPulse 2.2s ease-in-out infinite;
}
.feat-play svg { width: 30px; height: 30px; fill: var(--navy-900); margin-inline-start: 4px; }
.feat-play b { font: 400 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.3 var(--f-display); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
@keyframes playPulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(246, 181, 30, .28), 0 18px 40px -10px rgba(0, 0, 0, .6); } 50% { box-shadow: 0 0 0 18px rgba(246, 181, 30, .08), 0 18px 40px -10px rgba(0, 0, 0, .6); } }

/* entrance */
.js .tile { animation: tileIn .7s var(--ease) backwards; animation-delay: calc(var(--k) * 45ms); animation-play-state: paused; }
.js .bento.in .tile { animation-play-state: running; }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* phones: show the first 8, rest behind "show more" */
.g-more-wrap { display: none; text-align: center; margin-top: 18px; }
@media (max-width: 639px) {
    .bento.clamp .tile:nth-child(n + 9) { display: none; }
    .bento.clamp ~ .g-more-wrap { display: block; }
}

@media (min-width: 640px) {
    .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; gap: 14px; }
    .tile { border-radius: 24px; }
}
@media (min-width: 1000px) {
    .life { padding: 130px 0 140px; }
    .life-edge { height: 80px; }
    .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 205px; gap: 16px; margin-top: 30px; }
}

/* lightbox */
.lb {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(3, 18, 32, .94); color: #fff; overflow: hidden;
}
.lb[open] { display: grid; place-items: center; animation: lbIn .3s var(--ease); }
.lb::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { width: min(92vw, 1200px); display: grid; gap: 12px; justify-items: center; }
.lb-media { width: 100%; display: grid; place-items: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 78vh; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); animation: lbIn .35s var(--ease); }
.lb figcaption { font-size: 15px; color: rgba(255, 255, 255, .8); text-align: center; }
.lb-x, .lb-nav {
    position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background-color .2s;
}
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-x svg, .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-x { top: 18px; left: 18px; }
.lb-prev { right: 18px; top: 50%; margin-top: -24px; }
.lb-next { left: 18px; top: 50%; margin-top: -24px; }
@media (max-width: 639px) {
    .lb-nav { top: auto; bottom: 22px; margin: 0; }
    .lb-prev { right: calc(50% + 10px); }
    .lb-next { left: calc(50% + 10px); }
}

/* ═════════════ 6. NUMBERS ═════════════ */
.nums {
    position: relative; isolation: isolate; overflow: clip; color: var(--navy-900);
    background:
        radial-gradient(rgba(6, 40, 67, .1) 1.4px, transparent 1.7px) 0 0 / 22px 22px,
        radial-gradient(80% 70% at 85% 0%, #ffd266, transparent 70%),
        var(--yellow);
    padding: 90px 0 100px;
}
.nums-edge { position: absolute; top: -1px; left: 0; width: 100%; height: 40px; fill: var(--navy-900); pointer-events: none; }
.nums-head { text-align: center; }
.eyebrow--ink { color: var(--navy-800); }
.eyebrow--ink span { background: var(--navy-800); color: var(--yellow); }
.nums .h2 { color: var(--navy-900); }
.nums .ds-n { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 4px 0 var(--navy-800); }
.nums-sub { margin-top: 6px; font: 400 clamp(1.3rem, 1.05rem + 1vw, 1.8rem)/1.4 var(--f-display); color: var(--navy-700); }

/* odometer digits */
.odo { display: inline-flex; align-items: flex-end; direction: ltr; font: 700 1em/1 'Fredoka', var(--f-display); }
.od { display: inline-block; height: 1em; overflow: hidden; }
.od-s { display: flex; flex-direction: column; line-height: 1; word-spacing: 0; transform: translateY(0); transition: transform 1.8s cubic-bezier(.16, 1, .3, 1); }
.od-s i { display: block; height: 1em; font-style: normal; text-align: center; }
.odo.go .od-s { transform: translateY(calc(var(--n) * -1em)); }
.od-x { display: inline-block; }

/* D-STAR figures */
.big-nums { display: grid; gap: 14px; margin-top: 34px; }
.big-nums li {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px 20px; border-radius: 26px;
    background: rgba(255, 255, 255, .35); border: 2px solid rgba(6, 40, 67, .12);
    box-shadow: 0 20px 40px -30px rgba(6, 40, 67, .55);
}
.big-nums .odo { font-size: clamp(3.4rem, 2.4rem + 4vw, 5.6rem); color: var(--navy-900); }
.big-nums li > span { font-weight: 700; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); color: var(--navy-800); }

/* Robotna panel */
.rob {
    margin-top: 22px; border-radius: 30px; padding: 24px 20px; color: #fff;
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 30px 30px,
        radial-gradient(120% 100% at 100% 0%, var(--navy-600), var(--navy-900) 70%);
    box-shadow: 0 40px 70px -40px rgba(4, 29, 51, .85);
}
.rob-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.rob-head img { width: 58px; height: 58px; border-radius: 16px; background: #fff; padding: 6px; flex: none; }
.rob-head b { display: block; font: 400 1.5rem/1.3 var(--f-display); }
.rob-head small { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.rob-nums { display: grid; gap: 4px; margin-top: 8px; }
.rob-nums li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 12px 0; }
.rob-nums li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.rob-nums .odo { grid-row: span 2; font-size: clamp(2.3rem, 1.9rem + 1.6vw, 3.2rem); color: var(--yellow); min-width: 4.2em; justify-content: flex-start; }
.rob-nums li > span { font-weight: 700; font-size: 1.1rem; }
.rob-nums small { font-size: 13.5px; color: rgba(255, 255, 255, .65); }

@media (min-width: 640px) {
    .big-nums { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
    .nums { padding: 130px 0 140px; }
    .nums-edge { height: 70px; }
    .big-nums { gap: 22px; margin-top: 46px; }
    .big-nums li { padding: 34px 20px 30px; }
    .rob { margin-top: 26px; padding: 30px 36px; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 30px; }
    .rob-head { flex-direction: column; align-items: flex-start; border-bottom: 0; border-inline-end: 1px dashed rgba(255, 255, 255, .15); padding: 0 0 0 24px; }
    .rob-nums { grid-template-columns: repeat(3, 1fr); margin: 0; }
    .rob-nums li { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 6px 10px; }
    .rob-nums li + li { border-top: 0; border-inline-start: 1px solid rgba(255, 255, 255, .08); }
    .rob-nums .odo { grid-row: auto; min-width: 0; justify-content: center; }
}
@media (max-width: 639px) {
    .big-nums { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .big-nums li { padding: 16px 4px 14px; border-radius: 20px; }
    .big-nums .odo { font-size: clamp(1.7rem, 8.4vw, 2.4rem); }
    .big-nums li > span { font-size: .92rem; text-align: center; line-height: 1.3; }
}

/* ── numbers: softer, warmer, more depth ── */
.nums {
    background: linear-gradient(165deg, #ffdc82 0%, #f9c645 42%, #f6b51e 100%);
    padding-bottom: 150px;
}
.nums-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nums-glow i { position: absolute; border-radius: 50%; }
.nums-glow i:nth-child(1) { width: 720px; height: 720px; top: -260px; right: -200px; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent); }
.nums-glow i:nth-child(2) { width: 640px; height: 640px; bottom: -220px; left: -220px; background: radial-gradient(closest-side, rgba(255, 140, 50, .32), transparent); }
.nums-glow i:nth-child(3) { width: 420px; height: 420px; top: 30%; left: 35%; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent); }
.nums .ds-n { text-shadow: 0 3px 0 var(--navy-800), 0 10px 24px rgba(8, 56, 95, .25); }

.big-nums li {
    position: relative; border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .3));
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 34px 60px -38px rgba(130, 70, 0, .55), inset 0 1px 0 #fff;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
@media (hover: hover) { .big-nums li:hover { box-shadow: 0 44px 70px -38px rgba(130, 70, 0, .65), inset 0 1px 0 #fff; } }
.bn-ico {
    width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px;
    background: var(--navy-800); box-shadow: 0 12px 22px -12px rgba(8, 56, 95, .7);
}
.bn-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rob { border-radius: 36px; position: relative; overflow: hidden; isolation: isolate; }
.rob::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(246, 181, 30, .22), transparent); }
.rob-head img { border-radius: 18px; }

.nums-foot { position: absolute; left: 0; bottom: -1px; width: 100%; height: 50px; fill: var(--cream); pointer-events: none; }

@media (max-width: 639px) {
    .bn-ico { width: 40px; height: 40px; border-radius: 13px; }
    .bn-ico svg { width: 21px; height: 21px; }
    .big-nums li { border-radius: 24px; }
}
@media (min-width: 640px) {
    .big-nums { align-items: center; }
    .big-nums li:nth-child(2) { top: -16px; }
}
@media (min-width: 1000px) {
    .nums { padding-bottom: 190px; }
    .nums-foot { height: 90px; }
    .big-nums li { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

/* ═════════════ 7. IMPACT ═════════════ */
.impact { position: relative; background: var(--cream); padding: 70px 0 110px; }
.impact-head { text-align: center; max-width: 780px; margin: 0 auto; }
.u-y { font-style: normal; background: linear-gradient(transparent 62%, rgba(246, 181, 30, .6) 0); padding-inline: .08em; }
.impact-lead { margin-top: 14px; color: #4d5d6f; line-height: 1.95; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }

.skills { display: grid; gap: 10px; margin-top: 38px; }
.skill {
    position: relative; overflow: hidden; border-radius: 26px; background: var(--bg);
    height: 82px; transition: height .55s var(--ease), box-shadow .5s var(--ease), flex-grow .7s var(--ease);
    box-shadow: 0 18px 36px -30px rgba(8, 56, 95, .5);
}
.skill.open { height: 340px; box-shadow: 0 30px 60px -36px rgba(8, 56, 95, .6); }
.skill-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; text-align: right; cursor: pointer; }
.skill-btn:focus-visible { outline: 3px solid var(--c); outline-offset: -3px; border-radius: 26px; }

.skill-ico {
    position: absolute; z-index: 2; top: 15px; right: 15px; width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center; background: var(--c); color: #fff;
    box-shadow: 0 12px 22px -12px var(--c);
    transition: right .6s var(--ease), transform .6s var(--ease);
}
.skill-ico svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.skill-num { position: absolute; z-index: 2; top: 24px; left: 20px; font: 700 22px/1 'Fredoka', var(--f-display); color: var(--c); opacity: .75; transition: all .6s var(--ease); }
.skill-txt { position: absolute; z-index: 2; top: 14px; right: 82px; left: 60px; display: flex; flex-direction: column; transition: opacity .35s; }
.skill-txt small { font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, #0b2540); }
.skill-txt b { font: 400 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.35 var(--f-display); color: var(--navy-800); }

.skill-pic { position: absolute; left: -7%; right: -7%; bottom: 0; height: calc(100% - 90px); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s; }
.skill-pic::before { content: ''; position: absolute; left: 50%; bottom: -40%; width: 70%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--c); opacity: .22; }
.skill-pic img { position: relative; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; filter: drop-shadow(0 10px 18px rgba(8, 56, 95, .2)); }
.skill.open .skill-pic { opacity: 1; transform: none; }

@media (min-width: 1000px) {
    .impact { padding: 90px 0 140px; }
    .skills { display: flex; gap: 14px; height: 500px; margin-top: 50px; }
    .skill, .skill.open { height: auto; }
    .skill { flex: 1 1 0; min-width: 0; }
    .skill.open { flex-grow: 4.3; }

    /* collapsed: icon centred, number at the bottom, faded picture */
    .skill-ico { right: 50%; transform: translateX(50%); top: 22px; }
    .skill.open .skill-ico { right: 22px; transform: none; }
    .skill-num { top: auto; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 30px; }
    .skill.open .skill-num { top: 26px; bottom: auto; left: 26px; transform: none; font-size: 24px; }
    .skill-txt { right: 92px; left: 70px; top: 22px; opacity: 0; transition: opacity .25s; }
    .skill.open .skill-txt { opacity: 1; transition: opacity .45s .3s; }
    .skill-txt b { font-size: 1.75rem; }
    .skill-pic { height: calc(100% - 120px); opacity: .5; transform: none; filter: grayscale(1); }
    .skill.open .skill-pic { opacity: 1; filter: none; }
    .skill:not(.open) .skill-pic img { object-position: 50% 100%; }
}

/* ═════════════ 8. REGISTER ═════════════ */
.reg { position: relative; isolation: isolate; overflow: clip; background: var(--navy-800); color: #fff; padding: 96px 0 110px; }
.reg-edge { position: absolute; top: -1px; left: 0; z-index: 1; width: 100%; height: 44px; fill: var(--cream); pointer-events: none; }
.reg-sky {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(45% 45% at 90% 30%, rgba(246, 181, 30, .16), transparent 70%),
        radial-gradient(50% 50% at 0% 90%, rgba(92, 200, 255, .12), transparent 70%),
        linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.reg-sky::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 80%);
}
.reg-grid { display: grid; gap: 34px; align-items: center; }
.reg-copy { text-align: center; }
.reg-lead { margin-top: 12px; color: rgba(255, 255, 255, .76); line-height: 1.95; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 32em; margin-inline: auto; }

/* step track */
.steps { display: flex; justify-content: center; gap: 0; margin-top: 28px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; max-width: 140px; }
.step + .step::before {
    content: ''; position: absolute; top: 21px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 3px; border-radius: 3px;
    background: rgba(255, 255, 255, .14); transition: background-color .4s;
}
.step i {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 18px 'Fredoka', var(--f-display); font-style: normal;
    border: 2px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .6); background: var(--navy-800);
    transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s;
}
.step span { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .6); transition: color .4s; }
.step.on i { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); box-shadow: 0 0 0 7px rgba(246, 181, 30, .2); }
.step.done i { background: rgba(246, 181, 30, .18); border-color: var(--yellow); color: var(--yellow); }
.step.on span, .step.done span { color: #fff; }

/* wizard card */
.wiz {
    position: relative; border-radius: 30px; padding: 26px 20px 20px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.wiz-bar { position: absolute; inset: 0 0 auto; height: 4px; background: rgba(255, 255, 255, .08); }
.wiz-bar span { display: block; height: 100%; width: 33.34%; margin-inline-start: 0; background: linear-gradient(270deg, #ffd266, var(--yellow)); border-radius: 0 4px 4px 0; transition: width .6s var(--ease); }
.wiz-pane { animation: paneIn .5s var(--ease); }
.wiz-pane[hidden] { display: none; }
@keyframes paneIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.wiz-q { font: 400 clamp(1.4rem, 1.15rem + 1vw, 1.9rem)/1.35 var(--f-display); }
.wiz-q small { display: block; font: 600 12px var(--f-mono); letter-spacing: .08em; color: var(--yellow); margin-bottom: 4px; }

.pick-centers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.pc {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: right;
    padding: 12px 14px 12px 12px; border-radius: 18px; color: #fff;
    background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .12);
    transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.pc b { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.pc small { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.pc-dot { position: absolute; top: 14px; left: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
@media (hover: hover) { .pc:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); } }
.pc[aria-checked="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.pc[aria-checked="true"] small { color: var(--navy-700); }

.pick-age { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.pa {
    height: 52px; border-radius: 16px; font: 700 20px 'Fredoka', var(--f-display); color: #fff;
    background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .12);
    transition: background-color .25s, border-color .25s, transform .25s var(--ease), color .25s;
}
.pa-j { box-shadow: inset 0 -3px 0 rgba(246, 181, 30, .55); }
.pa-s { box-shadow: inset 0 -3px 0 rgba(92, 200, 255, .55); }
@media (hover: hover) { .pa:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .4); } }
.pa-j[aria-checked="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.pa-s[aria-checked="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy-900); }
.prog-hint { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); font-size: 15px; animation: paneIn .4s var(--ease); }
.prog-hint svg { width: 22px; height: 22px; flex: none; fill: var(--yellow); }
.prog-hint b { font: 700 1.05rem 'Fredoka', var(--f-display); color: var(--yellow); }
.prog-hint small { color: rgba(255, 255, 255, .6); }

.sum { margin-top: 16px; display: grid; gap: 8px; }
.sum > div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.sum dt { font-size: 13px; color: rgba(255, 255, 255, .55); min-width: 70px; }
.sum dd { flex: 1; font-weight: 700; font-size: 16px; }
.sum-edit { font-size: 13px; font-weight: 600; color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.wiz-go { width: 100%; margin-top: 18px; }
.wiz-go .arr { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wiz-go[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.wiz-note { margin-top: 10px; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .6); }

.wiz-nav { display: flex; margin-top: 14px; min-height: 0; }
.wiz-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); padding: 6px 4px; }
.wiz-back[hidden] { display: none; }
.wiz-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wiz-back:hover { color: #fff; }

@media (min-width: 640px) {
    .pick-centers { grid-template-columns: repeat(3, 1fr); }
    .wiz { padding: 32px 30px 24px; }
}
@media (min-width: 1000px) {
    .reg { padding: 130px 0 140px; }
    .reg-edge { height: 80px; }
    .reg-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
    .reg-copy { text-align: start; }
    .reg-lead { margin-inline: 0; }
    .steps { justify-content: flex-start; flex-direction: column; gap: 22px; margin-top: 36px; }
    .step { flex-direction: row; max-width: none; gap: 14px; }
    .step span { font-size: 16px; }
    .step + .step::before { top: auto; bottom: calc(100% + 1px); right: 20.5px; left: auto; width: 3px; height: 22px; background: rgba(255, 255, 255, .14); }
    .step.on:not(:first-child)::before, .step.done + .step::before { background: var(--yellow); }
}
@media (max-width: 999px) {
    .step.on:not(:first-child)::before, .step.done + .step::before { background: var(--yellow); }
    .step + .step::before { background: rgba(255, 255, 255, .14); }
}
@media (max-width: 380px) { .pick-age { grid-template-columns: repeat(4, 1fr); } }

.cc-main { display: inline-block; margin-inline-start: 6px; font-size: 12px; font-weight: 700; color: var(--navy-900); background: var(--yellow); padding: 2px 10px; border-radius: 999px; }
.cc-area { font-size: 13.5px; }

/* ═════════════ 10. FINAL CTA ═════════════ */
.final { position: relative; isolation: isolate; overflow: clip; background: var(--cream); padding: 100px 0 110px; }
.final-edge { position: absolute; top: -1px; left: 0; z-index: 1; width: 100%; height: 44px; fill: var(--navy-900); pointer-events: none; }
.final-sky {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(rgba(8, 56, 95, .1) 1.3px, transparent 1.6px) 0 0 / 24px 24px,
        radial-gradient(50% 50% at 20% 50%, rgba(246, 181, 30, .18), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.final-sky .stars { display: none; }
.final-grid { display: grid; gap: 40px; align-items: center; }

/* photo inside the morphing D-STAR blob */
.final-art { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 1 / .92; }
.final-blob {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%;
    background: var(--yellow);
    box-shadow: 0 40px 80px -40px rgba(8, 56, 95, .55), 0 0 0 10px var(--yellow);
    animation: morph 14s ease-in-out infinite;
}
.final-blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.04); }
.final-ring {
    position: absolute; inset: -22px; z-index: -1; border-radius: 50%;
    border: 2px dashed rgba(8, 56, 95, .25); animation: spin 50s linear infinite;
}
.final-star { position: absolute; z-index: 2; width: 64px; height: 64px; top: -6px; right: 6%; fill: var(--yellow); filter: drop-shadow(0 10px 16px rgba(8, 56, 95, .35)); animation: starFloat 5s ease-in-out infinite; }
.final-star { stroke: var(--navy-800); stroke-width: 1.2; stroke-linejoin: round; }
@keyframes starFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(12deg); } }

.final-copy { text-align: center; }
.final-quote { text-wrap: balance; }
.final-quote span { display: block; font: 400 clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem)/1.4 var(--f-display); color: var(--navy-700); }
.final-quote b {
    display: block; margin-top: 4px; font: 400 clamp(2.2rem, 1.5rem + 3vw, 3.9rem)/1.3 var(--f-display); color: var(--navy-900);
}
.final-quote b { background: linear-gradient(transparent 64%, rgba(246, 181, 30, .65) 0); display: inline; padding-inline: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.final-cta .arr { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.final .btn-ghost { color: var(--navy-800); border-color: rgba(8, 56, 95, .25); background: #fff; }
@media (hover: hover) { .final .btn-ghost:hover { border-color: var(--navy-800); background: #fff; } }
@media (max-width: 599px) {
    .final-cta { flex-direction: column; align-items: center; }
    .final-cta .btn { width: 100%; max-width: 330px; }
}
@media (min-width: 1000px) {
    .final { padding: 140px 0 150px; }
    .final-edge { height: 80px; }
    .final-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
    .final-copy { text-align: start; order: -1; }
    .final-cta { justify-content: flex-start; }
}

/* ═════════════ FOOTER ═════════════ */
.ft { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; font-size: 15px; }
.ft-top { display: grid; gap: 34px; }
.ft-brand img { width: 150px; height: auto; }
.ft-brand p { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.ft-brand .ft-tag { margin-top: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.ft-col h3 { font: 400 1.25rem var(--f-display); color: #fff; margin-bottom: 10px; }
.ft-col > a { display: block; padding: 4px 0; transition: color .2s; }
.ft-col a:hover { color: var(--yellow); }
.ft-branches { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-branches a { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; transition: border-color .2s, color .2s; }
.ft-branches a:hover { border-color: var(--yellow); }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.ft-up { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.ft-up svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ft-up:hover { color: var(--yellow); }
@media (min-width: 640px) { .ft-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ft { padding-top: 80px; } .ft-top { grid-template-columns: 1.4fr .8fr .8fr 1.2fr; gap: 40px; } }
@keyframes morph {
    0%, 100% { border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; }
    33% { border-radius: 42% 58% 38% 62% / 58% 40% 60% 42%; }
    66% { border-radius: 52% 48% 64% 36% / 38% 62% 38% 62%; }
}

/* ═════════════ CERTIFICATE VERIFICATION PAGE ═════════════ */
.vh { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-900); padding: calc(var(--hdr-h) + 36px) 0 120px; text-align: center; }
.vh-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(70% 60% at 50% 0%, rgba(14, 74, 122, .95), transparent 72%), linear-gradient(180deg, var(--navy-800), var(--navy-900) 75%); }
.vh-sky .grid { position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 25%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 25%, transparent 80%); }
.vh-sky .stars, .vh-sky .stars::after {
    position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; background: transparent;
    box-shadow: 12vw 18vh #fff, 28vw 9vh rgba(255,255,255,.7), 44vw 22vh #fff, 63vw 12vh rgba(255,255,255,.6), 81vw 26vh #fff, 92vw 8vh rgba(255,255,255,.8), 7vw 34vh rgba(255,255,255,.6), 74vw 36vh #fff;
    animation: twinkle 4s ease-in-out infinite alternate;
}
.vh-sky .stars::after { content: ''; box-shadow: 18vw 30vh #fff, 52vw 6vh rgba(255,255,255,.8), 70vw 28vh #fff, 96vw 30vh rgba(255,255,255,.6), 4vw 14vh #fff; animation-delay: -2s; }
.vh-in { max-width: 820px; }
.vh-title { font: 400 clamp(2.3rem, 1.4rem + 3.6vw, 4rem)/1.25 var(--f-display); margin-top: 16px; }
.vh-en { font: 700 clamp(1rem, .9rem + .5vw, 1.25rem) 'Fredoka', var(--f-display); color: rgba(255, 255, 255, .55); letter-spacing: .04em; margin-top: 2px; }
.vh-lead { margin-top: 10px; color: rgba(255, 255, 255, .76); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.vh .rise { display: block; }
.vh p.pill.rise { display: inline-flex; }

.vh-edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 56px; fill: var(--cream); }

/* result area */
.vr { background: var(--cream); padding: 30px 0 90px; }
.vr .wrap { max-width: 860px; }
.vback { margin-top: 26px; text-align: center; font-size: 14.5px; }
.vback a { color: var(--navy-600); font-weight: 600; }
.vback a:hover { color: var(--navy-900); text-decoration: underline; }

.vsteps { display: grid; gap: 12px; }
.vstep {
    display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px 20px;
    background: #fff; border-radius: 22px; border: 1px solid rgba(8, 56, 95, .08); box-shadow: 0 20px 40px -32px rgba(8, 56, 95, .5);
}
.vstep i { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 20px 'Fredoka', var(--f-display); font-style: normal; background: var(--yellow); color: var(--navy-900); }
.vstep b { font: 400 1.3rem/1.3 var(--f-display); color: var(--navy-800); }
.vstep span { font-size: 14px; color: #5d6d7f; }

.vcard {
    position: relative; background: #fff; border-radius: 30px; padding: 26px 22px 12px;
    border: 1px solid rgba(8, 56, 95, .08); box-shadow: 0 40px 80px -50px rgba(8, 56, 95, .6);
    animation: rise .8s var(--ease) backwards;
}
.vcard--ok { border-top: 6px solid #1fbf86; }
.vcard--bad { border-top: 6px solid #e11d48; }
.vcard-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px dashed rgba(8, 56, 95, .14); }
.vcard--bad:not(:has(.vrows)) .vcard-head { border-bottom: 0; padding-bottom: 14px; }
.vcard-head h2 { font: 400 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.3 var(--f-display); color: var(--navy-800); }
.vcard-head p { color: #5d6d7f; font-size: 14.5px; line-height: 1.8; margin-top: 2px; }
.vbadge { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; }
.vbadge svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.vbadge--ok { background: #1fbf86; box-shadow: 0 14px 28px -12px rgba(31, 191, 134, .7); }
.vbadge--bad { background: #e11d48; box-shadow: 0 14px 28px -12px rgba(225, 29, 72, .6); }
.vstatus { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px !important; font-weight: 700; color: #0f8a5f !important; background: #dbf5ea; padding: 3px 12px; border-radius: 999px; margin: 0 0 6px !important; }
.vstatus .pulse { background: #1fbf86; }
.vstatus .pulse::after { border-color: #1fbf86; }

.vrows { padding: 6px 0; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid rgba(8, 56, 95, .06); }
.vrow:last-child { border-bottom: 0; }
.vrow-ico { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(246, 181, 30, .16); }
.vrow-ico svg { width: 19px; height: 19px; fill: none; stroke: #c78a00; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vcard--bad .vrow-ico { background: rgba(225, 29, 72, .08); }
.vcard--bad .vrow-ico svg { stroke: #e11d48; }
.vrow dt { font-size: 14px; color: #6a7a8c; font-weight: 500; }
.vrow dd { margin-inline-start: auto; font-weight: 700; font-size: 15.5px; color: var(--navy-800); text-align: left; word-break: break-word; }
.vrow dd.mono { font-family: var(--f-mono); letter-spacing: .04em; color: var(--navy-600); }

/* rotating seal on valid certificates */
.vseal { position: absolute; top: -40px; left: 18px; width: 100px; height: 100px; filter: drop-shadow(0 14px 22px rgba(4, 29, 51, .3)); }
.vseal-ring { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.vseal-ring text { font: 700 7.4px var(--f-body); fill: var(--navy-900); }
.vseal-mark { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.vcard--ok .vcard-head { padding-left: 100px; }

@media (max-width: 599px) {
    .vcard { padding: 22px 16px 8px; }
    .vcard-head { flex-direction: column; gap: 12px; }
    .vcard--ok .vcard-head { padding-left: 0; }
    .vseal { width: 80px; height: 80px; top: -30px; left: 12px; }
    .vrow { flex-wrap: wrap; row-gap: 2px; }
    .vrow dd { flex-basis: 100%; text-align: right; margin: 0; padding-inline-start: 48px; }
    .vrow dd.mono { text-align: right; }
}
@media (min-width: 700px) { .vsteps { grid-template-columns: repeat(3, 1fr); } .vstep { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 6px; } .vstep i { grid-row: auto; } }
@media (min-width: 1000px) { .vh { padding: calc(var(--hdr-h) + 60px) 0 150px; } .vh-edge { height: 90px; } .vr { padding: 40px 0 120px; } .vcard { padding: 32px 34px 14px; } }
.vcard--ok .vbadge { display: none; }
@media (max-width: 599px) { .vcard--ok .vcard-head { padding-top: 34px; } }

/* QR-scan prompt (shown on /verify without a code) */
.vcard--scan { text-align: center; padding: 34px 24px 30px; border-top: 6px solid var(--yellow); }
.vcard--scan h2 { font: 400 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.35 var(--f-display); color: var(--navy-800); margin-top: 14px; }
.vcard--scan p { color: #5d6d7f; line-height: 1.9; max-width: 34em; margin: 8px auto 0; }
.vscan { width: 110px; height: 110px; margin: 0 auto; padding: 14px; border-radius: 28px; background: var(--navy-800); box-shadow: 0 20px 40px -20px rgba(8, 56, 95, .7); }
.vscan svg { width: 100%; height: 100%; overflow: visible; }
.vscan-frame { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; }
.vscan-qr rect, .vscan-qr path { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.vscan-line { stroke: var(--mint); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--mint)); animation: scanLine 2.4s ease-in-out infinite; }
@keyframes scanLine { 0%, 100% { transform: translateY(-16px); } 50% { transform: translateY(16px); } }
.vh { padding-bottom: 110px; }

/* ═════════════ LOGIN PAGE ═════════════ */
.lg { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-900); padding: calc(var(--hdr-h) + 34px) 0 80px; }
.lg-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 60% at 80% 10%, rgba(14, 74, 122, .95), transparent 72%), radial-gradient(45% 45% at 10% 80%, rgba(246, 181, 30, .14), transparent 70%), linear-gradient(180deg, var(--navy-800), var(--navy-900) 75%); }
.lg-sky .grid { position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 25%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 25%, transparent 80%); }
.lg-sky .stars, .lg-sky .stars::after { position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; background: transparent;
    box-shadow: 12vw 18vh #fff, 28vw 9vh rgba(255,255,255,.7), 44vw 22vh #fff, 63vw 12vh rgba(255,255,255,.6), 81vw 46vh #fff, 92vw 8vh rgba(255,255,255,.8), 7vw 64vh rgba(255,255,255,.6), 74vw 76vh #fff;
    animation: twinkle 4s ease-in-out infinite alternate; }
.lg-sky .stars::after { content: ''; box-shadow: 18vw 50vh #fff, 52vw 6vh rgba(255,255,255,.8), 70vw 28vh #fff, 96vw 60vh rgba(255,255,255,.6), 4vw 14vh #fff; animation-delay: -2s; }
.lg .rise { display: block; }
.lg-grid { display: grid; gap: 40px; align-items: center; }

/* card */
.lg-card {
    width: 100%; max-width: 460px; margin-inline: auto; position: relative;
    background: var(--cream); color: var(--ink); border-radius: 32px; padding: 34px 24px 28px;
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .05);
}
.lg-lock {
    width: 64px; height: 64px; margin: -66px auto 14px; border-radius: 20px; display: grid; place-items: center;
    background: var(--yellow); color: var(--navy-900); box-shadow: 0 16px 30px -12px rgba(246, 181, 30, .75), 0 0 0 6px var(--cream);
}
.lg-lock svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lg-title { text-align: center; font: 400 clamp(1.9rem, 1.6rem + 1vw, 2.4rem)/1.3 var(--f-display); color: var(--navy-800); }
.lg-sub { text-align: center; color: #5d6d7f; font-size: 14.5px; margin-top: 2px; }
.lg-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 14px; border-radius: 14px; background: #dbf5ea; color: #0f7a54; font-size: 14px; font-weight: 600; }
.lg-status svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.lg-form { margin-top: 22px; display: grid; gap: 16px; }
.lg-field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.lg-input {
    position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; border-radius: 16px;
    background: #fff; border: 1.5px solid rgba(8, 56, 95, .12); transition: border-color .2s, box-shadow .2s;
}
.lg-input:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(246, 181, 30, .22); }
.lg-input.has-err { border-color: #e11d48; }
.lg-input > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #8a98a8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); text-align: left; }
.lg-input input::placeholder { color: #a7b2be; }
.lg-eye { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #8a98a8; transition: background-color .2s, color .2s; }
.lg-eye:hover { background: var(--cream-2); color: var(--navy-700); }
.lg-eye[aria-pressed="true"] { color: var(--navy-700); }
.lg-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lg-err { margin-top: 6px; font-size: 13px; color: #e11d48; }

.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lg-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #4d5d6f; cursor: pointer; }
.lg-check input { width: 18px; height: 18px; accent-color: var(--navy-700); }
.lg-submit { width: 100%; margin-top: 4px; }
.lg-submit .arr { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* visual */
.lg-art { display: none; position: relative; }
.lg-photo { border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; overflow: hidden; aspect-ratio: 1 / .95; box-shadow: 0 0 0 10px rgba(246, 181, 30, .9), 0 50px 90px -40px rgba(0, 0, 0, .8); animation: morph 14s ease-in-out infinite; }
.lg-photo img { width: 100%; height: 100%; object-fit: cover; }
.lg-quote { position: absolute; bottom: -14px; right: 8%; padding: 14px 18px; border-radius: 20px; background: rgba(4, 29, 51, .88); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.lg-quote img { width: 110px; height: auto; }
.lg-quote p { font-size: 13.5px; color: rgba(255, 255, 255, .75); margin-top: 4px; }
.lg-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7); animation: bob 5s ease-in-out infinite; }
.lg-chip--a { top: 6%; left: -2%; background: #fff; color: var(--navy-800); direction: ltr; }
.lg-chip--a b { font-family: 'Fredoka', var(--f-display); color: var(--navy-700); }
.lg-chip--b { top: 40%; left: -8%; background: var(--yellow); color: var(--navy-900); animation-delay: -2.5s; }
.lg-chip--b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 599px) { .lg-card { padding: 30px 18px 24px; border-radius: 26px; } .lg { padding-top: calc(var(--hdr-h) + 50px); } }
@media (min-width: 1000px) {
    .lg { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr-h) + 40px) 0 90px; }
    .lg-grid { grid-template-columns: 1fr 1fr; gap: 80px; width: 100%; }
    .lg-card { margin-inline: 0 auto; padding: 40px 36px 32px; }
    .lg-art { display: block; max-width: 520px; }
}
.lg .lg-art.rise { display: none; }
@media (min-width: 1000px) { .lg .lg-art.rise { display: block; } }

/* Browser autofill (saved passwords): keep our white field instead of the blue/yellow tint */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--ink) !important;
    caret-color: var(--ink);
    transition: background-color 99999s ease-out 0s;
}
input:autofill { background: #fff !important; }

/* ── registration request form (wizard step 3) + success ── */
.sum--compact { margin-top: 14px; gap: 6px; }
.sum--compact > div { padding: 10px 14px; }
.req { margin-top: 16px; display: grid; gap: 12px; }
.req-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req-field label { display: block; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .8); margin-bottom: 6px; }
.req-field input {
    width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; border: 1.5px solid transparent;
    background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline: 0;
    transition: border-color .2s, box-shadow .2s;
}
.req-field input[dir="ltr"] { text-align: left; }
.req-field input[dir="ltr"]:placeholder-shown { text-align: right; }
.req-field input::placeholder { color: #a7b2be; }
.req-field input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(246, 181, 30, .3); }
.req-field input[aria-invalid="true"] { border-color: #ff6b81; }
.req-err { margin-top: 6px; font-size: 13px; color: #ffb3c0; }
.req-err--form { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(225, 29, 72, .16); color: #ffd1d9; }
.req .wiz-go { margin-top: 4px; }
.req .wiz-note { margin-top: 2px; }
.wiz-go.busy { opacity: .7; pointer-events: none; }
.wiz-go.busy .arr { animation: spin 1s linear infinite; }

.wiz-done { text-align: center; padding: 10px 0 6px; }
.done-ico { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: #1fbf86; box-shadow: 0 0 0 10px rgba(31, 191, 134, .18), 0 20px 40px -16px rgba(31, 191, 134, .7); animation: pop .6s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.done-ico svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-txt { margin-top: 10px; color: rgba(255, 255, 255, .8); line-height: 1.9; }
.done-txt b { color: #fff; }
.done-again { margin-top: 20px; }

/* ── registration: single open form ── */
.req { margin-top: 0; gap: 18px; }
.req-block { border: 0; margin: 0; padding: 0 0 18px; min-width: 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); transition: opacity .3s; }
.req-q { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; padding: 0; font: 400 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.3 var(--f-display); color: #fff; margin-bottom: 12px; }
.req-q i {
    width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 15px 'Fredoka', var(--f-display); font-style: normal;
    border: 2px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .7); transition: background-color .25s, border-color .25s, color .25s;
}
.req-block.ok .req-q i { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.req-block.bad .req-q i { border-color: #ff6b81; color: #ff6b81; }
.prog-tag:empty { display: none; }
.prog-tag { margin-inline-start: auto; font: 700 14px 'Fredoka', var(--f-display); direction: ltr; padding: 4px 12px; border-radius: 999px; animation: pop .35s var(--ease); }
.prog-tag[data-kind="j"] { background: var(--yellow); color: var(--navy-900); }
.prog-tag[data-kind="s"] { background: var(--sky); color: var(--navy-900); }

.req .pick-centers, .req .pick-age { margin-top: 0; }
label.pc { cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s var(--ease), color .15s; }
label.pc:has(input:checked) { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
label.pc:has(input:checked) small { color: var(--navy-700); }
label.pc:has(input:focus-visible), label.pa:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; }
label.pa { display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s var(--ease), color .15s; }
label.pa-j:has(input:checked) { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
label.pa-s:has(input:checked) { background: var(--sky); border-color: var(--sky); color: var(--navy-900); }
label.pc:active, label.pa:active { transform: scale(.96); }

.req-row { display: grid; gap: 12px; }
.req-block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.wiz { padding-top: 30px; }
.wiz-done { padding: 24px 0 10px; }
.wiz-done:focus { outline: none; }
@media (min-width: 640px) { .req-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .reg-grid { align-items: start; } .reg-copy { position: sticky; top: calc(var(--hdr-h) + 40px); } }
