/* ==========================================================================
   Epal Global Education — public site design system
   Mobile-first. No framework. Pairs with epal.js (vanilla, deferred).
   ========================================================================== */

:root {
    /* ---- Palette v3 "Orbit" (2026-11-18). Legacy names kept; values remapped. ---- */
    --ink: #050c22;            /* deep space navy: dark bands, text on light */
    --ink-2: #0a1636;
    --ink-3: #12235a;
    --void: #02061a;           /* deepest background (footer, menu) */
    --brand: #2f6bff;          /* electric blue: primary actions, links */
    --brand-deep: #1b4fe0;
    --cyan: #22d3ee;           /* signal cyan: glows, active states on dark */
    --sky: #8ec5ff;            /* light blue: accents on dark */
    --violet: #7c5cff;         /* aurora secondary */
    --warm: #ffb547;           /* warm highlight: sparingly (badges, "free", key numbers) */
    --warm-deep: #e8890c;
    --paper: #ffffff;          /* light content sections */
    --paper-2: #f5f7fb;
    --white: #ffffff;
    --text: #0a1228;
    --muted: #55617c;
    --muted-on-ink: #a6b3d1;
    --line: rgba(10, 18, 40, .11);
    --line-on-ink: rgba(255, 255, 255, .12);
    --ok: #13a36b;
    --err: #e5484d;

    /* Gradients */
    --grad-brand: linear-gradient(120deg, #2f6bff 0%, #22d3ee 100%);
    --grad-aurora: linear-gradient(120deg, #2f6bff, #7c5cff 45%, #22d3ee);
    --grad-text: linear-gradient(100deg, #ffffff 10%, #8ec5ff 55%, #22d3ee 95%);
    --grad-text-ink: linear-gradient(100deg, #050c22 0%, #1b4fe0 55%, #0aa5c4 100%);
    --grad-warm: linear-gradient(120deg, #ffb547, #ff7a59);

    /* Glass & glow */
    --glass-bg: rgba(14, 26, 64, .55);
    --glass-bg-light: rgba(255, 255, 255, .66);
    --glass-line: rgba(255, 255, 255, .14);
    --glass-blur: saturate(160%) blur(18px);
    --glow-brand: 0 0 0 1px rgba(47, 107, 255, .5), 0 10px 40px -8px rgba(47, 107, 255, .55);
    --glow-cyan: 0 0 0 1px rgba(34, 211, 238, .45), 0 10px 40px -10px rgba(34, 211, 238, .5);
    --shadow-1: 0 1px 2px rgba(5, 12, 34, .06), 0 4px 14px -6px rgba(5, 12, 34, .12);
    --shadow-2: 0 2px 6px rgba(5, 12, 34, .06), 0 18px 40px -18px rgba(5, 12, 34, .28);
    --shadow-3: 0 30px 80px -30px rgba(5, 12, 34, .55);

    /* Fonts: Space Grotesk (display) + Geist (UI/body) + Geist Mono (labels, data) */
    --display: "Space Grotesk", "Geist", system-ui, sans-serif;
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --serif: var(--display);   /* legacy alias: old pages used Fraunces via --serif */

    --gutter: clamp(16px, 5vw, 48px);
    --max: 1240px;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --header-h: 64px;          /* fixed header height incl. its top offset; heroes pad by this */
    --topbar-h: 0px;           /* legacy: the info row is gone; stays 0 */
    /* Fluid type scale */
    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-display: clamp(2.4rem, 1.2rem + 4vw, 4.75rem);
    --fs-h1: clamp(2.1rem, 1.2rem + 3vw, 3.75rem);
    --fs-h2: clamp(1.85rem, 1.1rem + 2.2vw, 3rem);
    --fs-h3: clamp(1.1rem, .98rem + .5vw, 1.35rem);
    --fs-body: clamp(1rem, .96rem + .15vw, 1.0625rem);
    --fs-lead: clamp(1.05rem, .98rem + .35vw, 1.25rem);
    /* Spacing */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
    --sec-pad: clamp(48px, 7vh, 88px);
    --sec-gap: clamp(16px, 2.2vw, 28px);
    --card-pad: clamp(16px, 1.6vw, 24px);
    --container: min(1240px, 100% - 32px);
    --container-narrow: min(960px, 100% - 32px);
    --hero-max: min(calc(100svh - var(--header-h)), 680px);
    --widget-max: calc(100svh - var(--header-h) - 24px);
    --img-ratio: 4 / 3;
}

@media (min-width: 1200px) {
    :root { --header-h: 80px; }
}
@media (min-width: 1200px) and (max-height: 760px) {
    :root { --header-h: 68px; }
}
@media (max-height: 760px) and (min-width: 960px) {
    :root {
        --sec-pad: clamp(32px, 5vh, 52px); --sec-gap: 16px; --card-pad: 16px;
        --fs-display: clamp(2rem, 1rem + 2.6vw, 3rem);
        --fs-h1: clamp(1.7rem, 1rem + 1.8vw, 2.4rem);
        --fs-h2: clamp(1.35rem, 1rem + 1.1vw, 1.85rem);
    }
}

/* Cross-document page transitions: see motion.css */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.ep-skip {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.ep-skip:focus { top: 12px; }

.ep-container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ep-section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.ep-section--tight { padding-block: clamp(56px, 8vw, 96px); }
.ep-dark { background: var(--ink); color: #fff; }
.ep-paper-2 { background: var(--paper-2); }

/* ---------- Type ---------- */
.ep-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand);
}
.ep-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.ep-dark .ep-eyebrow, .ep-hero .ep-eyebrow, .ep-cta .ep-eyebrow { color: var(--sky); }

.ep-display {
    font-family: var(--serif);
    font-size: clamp(42px, 8.6vw, 104px);
    font-weight: 350;
    line-height: 1.0;
    letter-spacing: -.035em;
    font-variation-settings: "opsz" 144;
}
.ep-h2 {
    font-family: var(--serif);
    font-size: clamp(34px, 5.4vw, 64px);
    font-weight: 350;
    letter-spacing: -.03em;
    font-variation-settings: "opsz" 144;
}
.ep-h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; letter-spacing: -.02em; }
.ep-display em, .ep-h2 em, .ep-h3 em { font-style: italic; font-weight: 300; color: var(--brand); }
.ep-dark .ep-display em, .ep-dark .ep-h2 em, .ep-hero .ep-display em, .ep-hero .ep-h2 em, .ep-cta .ep-h2 em, .ep-footer em { color: var(--sky); }
.ep-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.ep-dark .ep-lead, .ep-hero .ep-lead, .ep-cta .ep-lead { color: var(--muted-on-ink); }
.ep-muted { color: var(--muted); }

.ep-head { display: grid; gap: 20px; align-content: start; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 992px) {
    .ep-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 64px; }
}

/* ---------- Buttons ---------- */
.ep-btn {
    --bg: var(--brand); --fg: #fff;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 54px; padding: 0 26px;
    border-radius: 999px;
    background: var(--bg); color: var(--fg);
    font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s;
    -webkit-tap-highlight-color: transparent;
}
.ep-btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--ink);
    transform: translateY(101%); border-radius: inherit;
    transition: transform .5s var(--ease-out);
}
.ep-btn:hover::before { transform: translateY(0); }
.ep-btn:hover { box-shadow: 0 14px 30px -12px rgba(30, 107, 214, .6); }
.ep-btn:active { transform: scale(.97); }
.ep-btn .ep-arrow { transition: transform .45s var(--ease-out); }
.ep-btn:hover .ep-arrow { transform: translateX(4px); }
.ep-btn--light { --bg: #fff; --fg: var(--ink); }
.ep-btn--light::before { background: var(--brand); }
.ep-btn--light:hover { color: #fff; }
.ep-btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.ep-btn--ghost::before { background: currentColor; opacity: .08; }
.ep-dark .ep-btn:not(.ep-btn--light):not(.ep-btn--ghost)::before { background: #fff; }
.ep-dark .ep-btn:not(.ep-btn--light):not(.ep-btn--ghost):hover { color: var(--ink); }
.ep-btn--block { width: 100%; }

.ep-link {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .45s var(--ease-out);
    padding-bottom: 2px;
}
.ep-link:hover { background-size: 100% 1px; }

.ep-arrow { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.ep-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--ink); color: #fff;
    padding: calc(var(--header-h) + var(--topbar-h) + clamp(40px, 8vw, 96px)) 0 clamp(56px, 9vw, 120px);
    min-height: min(100svh, 980px);
    display: flex; align-items: center;
}
.ep-hero--page { min-height: auto; padding-bottom: clamp(56px, 8vw, 104px); }
.ep-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ep-hero__bg::before {
    content: ""; position: absolute; inset: -20%;
    background:
        radial-gradient(40% 45% at 78% 30%, rgba(30, 107, 214, .45), transparent 70%),
        radial-gradient(35% 40% at 12% 90%, rgba(143, 185, 255, .16), transparent 70%);
    animation: ep-drift 18s ease-in-out infinite alternate;
}
.ep-hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line-on-ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-on-ink) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 80%);
    mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 80%);
    opacity: .5;
}
@keyframes ep-drift { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }

.ep-hero__grid { display: grid; gap: 48px; align-items: center; width: 100%; }
@media (min-width: 992px) { .ep-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 40px; } }
.ep-hero__copy { display: grid; gap: 28px; }
.ep-hero__title { max-width: 13ch; }
.ep-hero--page .ep-hero__title { max-width: 16ch; }
.ep-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .ep-hero__cta .ep-btn { flex: 1 1 100%; } }
.ep-hero__meta {
    display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 8px;
    font-size: 13px; color: var(--muted-on-ink); letter-spacing: .02em;
}
.ep-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.ep-hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(143, 185, 255, .15); }

/* Word-split headline reveal */
.ep-split .ep-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ep-split .ep-w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 120ms); }
.ep-split.is-in .ep-w > span { transform: none; }

/* Globe visual */
.ep-globe { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 1; }
@media (max-width: 991px) { .ep-globe { width: min(88%, 380px); } }
.ep-globe svg { width: 100%; height: 100%; overflow: visible; }
.ep-globe .g-line { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.ep-globe .g-rim { fill: none; stroke: rgba(143, 185, 255, .5); stroke-width: 1.2; }
.ep-globe .g-route { fill: none; stroke: url(#epRouteGrad); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 4 7; animation: ep-dash 2.4s linear infinite; }
.ep-globe .g-orbit { fill: none; stroke: rgba(143, 185, 255, .28); stroke-width: 1; }
.ep-globe .g-dot { fill: var(--sky); }
.ep-globe .g-pulse { fill: none; stroke: var(--sky); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ep-pulse 2.6s var(--ease-out) infinite; }
.ep-globe .g-label { fill: #fff; font: 600 13px var(--sans); letter-spacing: .08em; }
.ep-globe .g-sub { fill: var(--muted-on-ink); font: 500 10.5px var(--sans); letter-spacing: .12em; }
.ep-globe .g-mer { transform-box: view-box; transform-origin: 260px 260px; animation: ep-mer 12s ease-in-out infinite; }
@keyframes ep-mer { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes ep-dash { to { stroke-dashoffset: -22; } }
@keyframes ep-pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.ep-globe__card {
    position: absolute; display: grid; gap: 2px;
    padding: 12px 16px; border-radius: 14px;
    background: rgba(12, 31, 69, .6); border: 1px solid var(--line-on-ink);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font-size: 12px; color: var(--muted-on-ink);
    animation: ep-float 7s ease-in-out infinite;
}
.ep-globe__card strong { color: #fff; font-size: 14px; font-weight: 700; }
.ep-globe__card--a { left: -4%; bottom: 14%; }
.ep-globe__card--b { right: -2%; top: 8%; animation-delay: -3.5s; }
@keyframes ep-float { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.ep-marquee {
    --gap: 48px;
    display: flex; overflow: hidden; user-select: none;
    border-block: 1px solid var(--line);
    padding-block: 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ep-marquee__track { display: flex; flex: none; gap: var(--gap); padding-right: var(--gap); animation: ep-marquee 38s linear infinite; }
.ep-marquee:hover .ep-marquee__track { animation-play-state: paused; }
.ep-marquee__item { display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap; font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); font-style: italic; font-weight: 300; }
.ep-marquee__item::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--brand); }
@keyframes ep-marquee { to { transform: translateX(-100%); } }

/* ---------- Statement (scroll-lit words) ---------- */
.ep-statement {
    font-family: var(--serif); font-weight: 350;
    font-size: clamp(28px, 4.4vw, 56px); line-height: 1.18; letter-spacing: -.025em;
    max-width: 22ch;
}
.ep-statement .ep-lw { opacity: .16; transition: opacity .3s linear; }
.ep-statement .ep-lw.is-lit { opacity: 1; }
.ep-statement em { font-style: italic; color: var(--brand); }
.ep-statement-wrap { display: grid; gap: 40px; }
@media (min-width: 992px) { .ep-statement-wrap { grid-template-columns: 220px 1fr; gap: 64px; } }

/* ---------- Service rows ---------- */
.ep-services { border-top: 1px solid var(--line); }
.ep-service {
    position: relative; isolation: isolate;
    display: grid; gap: 14px; grid-template-columns: 44px 1fr;
    padding: 28px 0; border-bottom: 1px solid var(--line);
    transition: color .45s var(--ease-out);
}
.ep-service::before {
    content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
    background: var(--ink); transform: scaleY(0); transform-origin: bottom;
    transition: transform .6s var(--ease-out);
}
.ep-service__no { font-size: 13px; font-weight: 700; color: var(--brand); padding-top: 8px; letter-spacing: .06em; transition: color .45s; }
.ep-service__body { display: grid; gap: 12px; }
.ep-service__title { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.1; }
.ep-service__text { color: var(--muted); max-width: 58ch; transition: color .45s; }
.ep-service__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-service__tags li { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .45s; }
.ep-service__go {
    display: none; width: 56px; height: 56px; border-radius: 50%;
    place-items: center; box-shadow: inset 0 0 0 1px var(--line);
    transition: transform .6s var(--ease-out), background .45s, box-shadow .45s;
}
@media (min-width: 900px) {
    .ep-service { grid-template-columns: 80px 1fr 1fr 56px; align-items: center; gap: 32px; padding: 40px 0; }
    .ep-service__body { display: contents; }
    .ep-service__side { display: grid; gap: 14px; }
    .ep-service__go { display: grid; }
    .ep-service__no { padding-top: 0; }
    .ep-service:hover { color: #fff; }
    .ep-service:hover::before { transform: scaleY(1); transform-origin: top; }
    .ep-service:hover .ep-service__text { color: var(--muted-on-ink); }
    .ep-service:hover .ep-service__no { color: var(--sky); }
    .ep-service:hover .ep-service__tags li { box-shadow: inset 0 0 0 1px var(--line-on-ink); }
    .ep-service:hover .ep-service__go { background: var(--brand); box-shadow: none; transform: rotate(-45deg); }
}

/* ---------- Destination cards ---------- */
.ep-dests { display: grid; gap: 16px; }
@media (min-width: 900px) { .ep-dests { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ep-dest {
    --mx: 50%; --my: 50%;
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    min-height: clamp(420px, 60vw, 560px);
    padding: clamp(24px, 3.4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--ink); color: #fff;
    transition: transform .8s var(--ease-out);
}
.ep-dest::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: var(--dest-bg);
    transition: transform 1.2s var(--ease-out);
}
.ep-dest::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .14), transparent 60%);
    opacity: 0; transition: opacity .4s;
}
.ep-dest:hover::before { transform: scale(1.06); }
.ep-dest:hover::after { opacity: 1; }
.ep-dest--my { --dest-bg: radial-gradient(90% 70% at 100% 0%, #2a74e0 0%, transparent 60%), radial-gradient(80% 60% at 0% 100%, #0d6c73 0%, transparent 70%), linear-gradient(160deg, #0c1f45, #06122a); }
.ep-dest--cy { --dest-bg: radial-gradient(90% 70% at 100% 0%, #c9a46a 0%, transparent 55%), radial-gradient(80% 60% at 0% 100%, #1e6bd6 0%, transparent 70%), linear-gradient(160deg, #14305f, #06122a); }
.ep-dest__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ep-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    white-space: nowrap;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ep-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 3px rgba(110, 231, 168, .2); }
.ep-dest__coords { font-size: 11px; white-space: nowrap; letter-spacing: .1em; color: rgba(255, 255, 255, .6); text-align: right; }
.ep-dest__name { font-family: var(--serif); font-size: clamp(56px, 11vw, 120px); line-height: .9; letter-spacing: -.04em; font-weight: 300; }
.ep-dest__tag { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: rgba(255, 255, 255, .8); margin-top: 12px; }
.ep-dest__list { display: grid; gap: 10px; margin-top: 24px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.ep-dest__list li { display: flex; gap: 10px; }
.ep-dest__list li::before { content: ""; flex: none; width: 14px; height: 1px; background: currentColor; margin-top: 12px; opacity: .6; }
.ep-dest__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-weight: 700; font-size: 15px; }
.ep-dest__foot .ep-circle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .6s var(--ease-out); }
.ep-dest:hover .ep-dest__foot .ep-circle { transform: rotate(-45deg); }

.ep-beyond {
    margin-top: 16px; padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius-lg); background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line);
    display: grid; gap: 20px; align-items: center;
}
@media (min-width: 900px) { .ep-beyond { grid-template-columns: 1fr auto; margin-top: 20px; } }

/* ---------- Process ---------- */
.ep-process { position: relative; }
.ep-process__list { display: grid; }
.ep-process__rail { position: absolute; left: 23px; top: 8px; bottom: 8px; width: 1px; background: var(--line-on-ink); }
.ep-process__rail i { position: absolute; inset: 0; background: linear-gradient(var(--sky), var(--brand)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.ep-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 40px; }
.ep-step:last-child { padding-bottom: 0; }
.ep-step__dot {
    position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
    background: var(--ink); color: var(--muted-on-ink);
    box-shadow: inset 0 0 0 1px var(--line-on-ink);
    transition: background .5s, color .5s, box-shadow .5s;
}
.ep-step.is-active .ep-step__dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(30, 107, 214, .2); }
.ep-step__title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; padding-top: 8px; }
.ep-step__text { color: var(--muted-on-ink); margin-top: 8px; max-width: 46ch; }
@media (min-width: 992px) {
    .ep-process-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
    .ep-process-wrap .ep-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
}

/* ---------- Promise ---------- */
.ep-promise { display: grid; gap: 16px; }
@media (min-width: 900px) { .ep-promise { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ep-pcard { padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ep-pcard--no { background: transparent; }
.ep-pcard h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 24px; }
.ep-pcard li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.ep-pcard li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.ep-pcard--yes li svg { color: var(--ok); }
.ep-pcard--no li svg { color: var(--err); }

/* ---------- Figures ---------- */
.ep-figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ep-figure { padding: 28px 12px 0 0; display: grid; gap: 8px; }
.ep-figure + .ep-figure { padding-left: clamp(12px, 3vw, 32px); border-left: 1px solid var(--line); }
.ep-figure__n { font-family: var(--serif); font-size: clamp(56px, 10vw, 128px); line-height: .9; letter-spacing: -.04em; font-weight: 300; color: var(--brand); font-variant-numeric: tabular-nums; }
.ep-figure__l { font-size: clamp(13px, 1.4vw, 15px); color: var(--muted); max-width: 22ch; }

/* ---------- Vision / Mission ---------- */
.ep-vm { display: grid; gap: 16px; }
@media (min-width: 900px) { .ep-vm { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ep-vm__card {
    position: relative; overflow: hidden;
    padding: clamp(28px, 3.6vw, 48px); border-radius: var(--radius-lg);
    background: var(--ink-2); border: 1px solid var(--line-on-ink);
    display: grid; gap: 20px; align-content: start;
}
.ep-vm__card p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.015em; font-weight: 350; }
.ep-vm__card::after {
    content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 107, 214, .35), transparent 70%);
}

/* ---------- FAQ ---------- */
.ep-faq { border-top: 1px solid var(--line); }
.ep-faq details { border-bottom: 1px solid var(--line); }
.ep-faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 24px 0; font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; letter-spacing: -.01em;
    -webkit-tap-highlight-color: transparent;
}
.ep-faq summary::-webkit-details-marker { display: none; }
.ep-faq summary i {
    position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease-out), background .3s, color .3s;
}
.ep-faq summary i::before, .ep-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.ep-faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease-out); }
.ep-faq details[open] summary i { background: var(--ink); color: #fff; box-shadow: none; }
.ep-faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.ep-faq__a { overflow: hidden; }
.ep-faq__a p { padding: 0 56px 28px 0; color: var(--muted); max-width: 70ch; }
@media (min-width: 992px) { .ep-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; } }

/* ---------- CTA / Form ---------- */
.ep-cta {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-lg);
    background: var(--ink); color: #fff;
    padding: clamp(28px, 5vw, 72px);
    display: grid; gap: 48px;
}
.ep-cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(60% 80% at 100% 0%, rgba(30, 107, 214, .5), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(143, 185, 255, .14), transparent 70%);
}
@media (min-width: 992px) { .ep-cta { grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; } }
.ep-cta__copy { display: grid; gap: 24px; align-content: start; }
.ep-contact-lines { display: grid; gap: 16px; margin-top: 8px; }
.ep-contact-lines > a, .ep-contact-lines > div { display: flex; align-items: center; gap: 14px; min-height: 48px; color: #fff; font-size: 16px; font-weight: 600; transition: color .25s; }
.ep-contact-lines > a span, .ep-contact-lines > div span { display: grid; line-height: 1.35; min-width: 0; overflow-wrap: break-word; }
.ep-contact-lines small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-ink); }
.ep-contact-lines > a:hover { color: var(--sky); }
.ep-contact-lines > a > svg, .ep-contact-lines > div > svg { flex: none; width: 44px; height: 44px; padding: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-on-ink); color: #fff; transition: background .3s, box-shadow .3s; }
.ep-contact-lines > a:hover > svg { background: var(--brand); box-shadow: none; }
.ep-contact-lines > a.is-wa > svg { background: #25d366; box-shadow: none; }
.ep-contact-lines > a.is-wa:hover > svg { background: #1eb858; }
.ep-contact-lines__social { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line-on-ink); }
.ep-contact-lines__social .ep-socials a { color: #fff; }

.ep-form { display: grid; gap: 14px; }
.ep-form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .ep-form__row { grid-template-columns: 1fr 1fr; } }
.ep-field { position: relative; }
.ep-field input, .ep-field textarea, .ep-field select {
    width: 100%; appearance: none; -webkit-appearance: none;
    font: inherit; font-size: 16px; color: inherit;
    padding: 26px 18px 10px; min-height: 60px;
    border-radius: 14px; border: 1px solid var(--line);
    background: var(--white);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.ep-field textarea { min-height: 132px; resize: vertical; }
.ep-field label {
    position: absolute; left: 19px; top: 19px;
    font-size: 15px; color: var(--muted); pointer-events: none;
    transform-origin: left top; transition: transform .3s var(--ease-out), color .25s;
}
.ep-field input:focus, .ep-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30, 107, 214, .15); }
.ep-field input:focus + label, .ep-field input:not(:placeholder-shown) + label,
.ep-field textarea:focus + label, .ep-field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--brand); }
.ep-dark .ep-field input, .ep-dark .ep-field textarea, .ep-cta .ep-field input, .ep-cta .ep-field textarea {
    background: rgba(255, 255, 255, .05); border-color: var(--line-on-ink); color: #fff;
}
.ep-cta .ep-field label, .ep-dark .ep-field label { color: var(--muted-on-ink); }
.ep-cta .ep-field input:focus + label, .ep-cta .ep-field input:not(:placeholder-shown) + label,
.ep-cta .ep-field textarea:focus + label, .ep-cta .ep-field textarea:not(:placeholder-shown) + label { color: var(--sky); }
.ep-field.has-error input, .ep-field.has-error textarea { border-color: var(--err); }
.ep-field__err { display: block; font-size: 13px; color: #ff8a80; margin-top: 6px; padding-left: 4px; }
.ep-form--light .ep-field__err { color: var(--err); }
.ep-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.ep-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.ep-cta .ep-check { color: var(--muted-on-ink); }
.ep-form__note { font-size: 13px; color: var(--muted-on-ink); }
.ep-form--light .ep-form__note { color: var(--muted); }
.ep-segment { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-segment label { cursor: pointer; }
.ep-segment input { position: absolute; opacity: 0; pointer-events: none; }
.ep-segment span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s; }
.ep-segment input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.ep-segment input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-cta .ep-segment span { box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.ep-cta .ep-segment input:checked + span { background: #fff; color: var(--ink); }
.ep-form-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: block; }

.ep-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-size: 14.5px; }
.ep-alert--ok { background: rgba(31, 138, 91, .12); color: #0f5e3c; box-shadow: inset 0 0 0 1px rgba(31, 138, 91, .3); }
.ep-alert--err { background: rgba(194, 55, 47, .1); color: #8e2620; box-shadow: inset 0 0 0 1px rgba(194, 55, 47, .3); }
.ep-cta .ep-alert--ok { color: #a7f3d0; }
.ep-cta .ep-alert--err { color: #fecaca; }

/* ---------- Page hero extras / content blocks ---------- */
.ep-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted-on-ink); }
.ep-crumbs a:hover { color: #fff; }
.ep-crumbs span[aria-hidden] { opacity: .5; }

.ep-grid-2 { display: grid; gap: 40px; }
@media (min-width: 992px) { .ep-grid-2 { grid-template-columns: 1fr 1fr; gap: 80px; } }

.ep-cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .ep-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ep-cards--4 { grid-template-columns: repeat(4, 1fr); } .ep-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.ep-card {
    --mx: 50%; --my: 50%;
    position: relative; overflow: hidden;
    padding: 28px; border-radius: var(--radius);
    background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
    display: grid; gap: 12px; align-content: start;
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.ep-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(300px circle at var(--mx) var(--my), rgba(30, 107, 214, .08), transparent 60%);
    opacity: 0; transition: opacity .4s;
}
.ep-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -28px rgba(6, 18, 42, .35); }
.ep-card:hover::before { opacity: 1; }
.ep-card__no { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.ep-card h3 { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.ep-card p { color: var(--muted); font-size: 15px; }

.ep-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-pills li { padding: 9px 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.ep-dark .ep-pills li { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-on-ink); }

.ep-note {
    display: grid; gap: 12px; padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius-lg); background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line); border-left: 3px solid var(--brand);
}

.ep-detail { display: grid; gap: 32px; padding-block: 40px; border-top: 1px solid var(--line); }
.ep-detail:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 992px) { .ep-detail { grid-template-columns: 120px 1fr 1fr; gap: 48px; padding-block: 56px; } }
.ep-detail__no { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--brand); font-weight: 300; }
.ep-detail h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.025em; }
.ep-detail ul { display: grid; gap: 0; }
.ep-detail li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.ep-detail li:first-child { border-top: 1px solid var(--line); }
.ep-detail li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

.ep-success { text-align: center; display: grid; gap: 24px; justify-items: center; max-width: 640px; margin-inline: auto; }
.ep-success__icon { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(110, 231, 168, .12); color: #6ee7a8; box-shadow: 0 0 0 10px rgba(110, 231, 168, .06); }
.ep-success__icon svg { width: 40px; height: 40px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ep-draw .9s .3s var(--ease-out) forwards; }
@keyframes ep-draw { to { stroke-dashoffset: 0; } }

/* Reveal animations: see motion.css */

/* ---------- Utilities ---------- */
.ep-mt-s { margin-top: 16px; } .ep-mt-m { margin-top: 32px; } .ep-mt-l { margin-top: clamp(40px, 6vw, 72px); }
.ep-stack { display: grid; gap: 20px; align-content: start; }
.ep-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ep-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .ep-split .ep-w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .ep-statement .ep-lw { opacity: 1; }
    .ep-marquee__track { animation: none; }
}

/* ---------- Photo & shape primitives (shared) ---------- */
.ep-photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-2); }
.ep-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ep-photo:hover img { transform: scale(1.04); }
.ep-flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); vertical-align: -2px; }
.ep-mono {
    display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px;
    background: linear-gradient(135deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 55%, #06122a));
    color: #fff; font: 700 14px var(--sans); letter-spacing: .02em; box-shadow: 0 10px 22px -12px var(--c, var(--brand));
}
.ep-blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55; }
.ep-dots { position: absolute; pointer-events: none; background-image: radial-gradient(currentColor 1.2px, transparent 1.4px); background-size: 16px 16px; opacity: .18; }
.ep-ring { position: absolute; pointer-events: none; border-radius: 50%; border: 1px solid currentColor; opacity: .18; }
.ep-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(30, 107, 214, .1); color: var(--brand-deep); }
.ep-badge--ok { background: rgba(31, 138, 91, .12); color: #146c47; }
.ep-badge--warn { background: rgba(214, 140, 30, .14); color: #8a5a0b; }
.ep-badge--muted { background: var(--paper-2); color: var(--muted); }
.ep-disclaimer { font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Home — data-rich platform sections
   ========================================================================== */

/* Hero */
.ep-search {
    margin-top: 8px; padding: 8px; border-radius: 20px;
    background: #fff; border: 1px solid rgba(6, 18, 42, .1);
    box-shadow: 0 24px 60px -38px rgba(6, 18, 42, .55);
}
.ep-search__row { display: grid; gap: 0; grid-template-columns: 1fr 1fr; }
.ep-search__f { position: relative; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; min-width: 0; }
.ep-search__f + .ep-search__f { border-left: 1px solid var(--line); }
.ep-search__f:first-child { grid-column: 1 / -1; }
.ep-search__f span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ep-search__f select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: 600 16px var(--sans); color: var(--text); padding: 0 18px 0 0; width: 100%; cursor: pointer; text-overflow: ellipsis; }
.ep-search__f select:focus { outline: none; }
.ep-search__f:focus-within { box-shadow: 0 0 0 3px rgba(143, 185, 255, .6); }
.ep-search__f::after { content: ""; position: absolute; right: 14px; bottom: 18px; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.ep-search .ep-btn { grid-column: 1 / -1; min-height: 56px; border-radius: 13px; }
@media (min-width: 760px) {
    .ep-search__row { grid-template-columns: 1.25fr 1fr 1fr auto; align-items: stretch; }
    .ep-search .ep-btn { padding: 0 22px; }
    .ep-search__f:first-child { grid-column: auto; }
    .ep-search .ep-btn { grid-column: auto; }
}
/* University rail */
.ep-rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 6px max(var(--gutter), calc((100vw - var(--max)) / 2)) 24px;
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
    scrollbar-width: thin;
}
.ep-ucard {
    --c: var(--brand);
    position: relative; overflow: hidden; scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 10px; min-height: 290px; padding: 22px;
    border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.ep-ucard::before { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--c); opacity: .08; transition: transform .8s var(--ease-out); }
.ep-ucard:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line), 0 26px 50px -28px rgba(6, 18, 42, .45); }
.ep-ucard:hover::before { transform: scale(1.4); }
.ep-ucard__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.ep-ucard h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.ep-ucard__loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.ep-ucard__loc svg { width: 15px; height: 15px; }
.ep-ucard__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-ucard__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.ep-ucard__foot span { display: grid; }
.ep-ucard__foot small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ep-ucard__foot strong { font-size: 16px; }
.ep-ucard__n { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ep-ucard--all { align-items: center; justify-content: center; text-align: center; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 24px; box-shadow: none; }
.ep-ucard--all .ep-arrow { width: 22px; height: 22px; }

/* Page hero with photo */
.ep-hero__photo { position: absolute; inset: 0; z-index: -2; }
.ep-hero__photo img { width: 100%; height: 100%; object-fit: cover; animation: ep-kenburns 22s ease-out both; }
.ep-hero--photo .ep-hero__bg { background: linear-gradient(90deg, rgba(6, 18, 42, .94) 0%, rgba(6, 18, 42, .78) 45%, rgba(6, 18, 42, .35) 100%); }
.ep-hero--photo .ep-hero__bg::after { opacity: .25; }
@media (max-width: 700px) { .ep-hero--photo .ep-hero__bg { background: linear-gradient(180deg, rgba(6, 18, 42, .7), rgba(6, 18, 42, .92)); } }
@keyframes ep-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

.ep-ugrid { display: grid; gap: 16px; }
@media (min-width: 640px) { .ep-ugrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ep-ugrid { grid-template-columns: repeat(4, 1fr); } }

/* Privacy & Terms */
.ep-legal { max-width: 760px; }
.ep-legal h2 { margin: 36px 0 12px; font-size: 24px; }
.ep-legal p, .ep-legal ul { margin: 0 0 16px; }
.ep-legal ul { padding-left: 20px; list-style: disc; }

/* University cards: logo tile and optional campus photo band */
.ep-ulogo { display: inline-flex; align-items: center; height: 52px; max-width: 180px; padding: 6px 10px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); position: relative; }
.ep-ulogo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; }
.ep-ucard__photo { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; object-fit: cover; }
.ep-ucard.has-photo::before { display: none; }
.ep-ucard.has-photo .ep-ucard__top { position: relative; margin-top: 64px; }
.ep-ucard.has-photo .ep-flag { align-self: flex-end; }
.ep-ucard.has-photo h3, .ep-ucard.has-photo .ep-ucard__loc, .ep-ucard.has-photo .ep-ucard__meta, .ep-ucard.has-photo .ep-ucard__foot { position: relative; }
.ep-ucard.has-photo .ep-badge { align-self: flex-end; background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Shared tap targets (44px minimum) ---------- */
.ep-menu__list a { min-height: 44px; align-items: center; }
.ep-menu__foot a:not(.ep-btn) { display: inline-flex; align-items: center; min-height: 44px; }
.ep-cur select { height: 44px; }
.ep-crumbs a { display: inline-flex; align-items: center; min-height: 44px !important; }
.ep-crumbs > * { display: inline-flex; align-items: center; }
@media (max-width: 899px) {
    .ep-footer__links { gap: 0; }
    .ep-footer__links a, .ep-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Tap targets: at least 44px for choosers, chips and small links ---------- */
.ep-est__seg label > span, .ep-segment label > span, .ep-xp__chips label > span { min-height: 44px; display: inline-flex; align-items: center; }
.ep-est__seg label, .ep-segment label, .ep-xp__chips label { min-height: 44px; display: inline-flex; align-items: stretch; }
.ep-search select { min-height: 44px; }
.ep-hv__quick a { min-height: 44px; display: inline-flex; align-items: center; }
.ep-hv__scroll { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.ep-crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.ep-xo__card .ep-link { min-height: 44px; }

/* Display headings: slightly tighter spacing reads better on narrow phones */
@media (max-width: 479px) { .ep-display { letter-spacing: -.01em; } }

/* ── Photo bands (partials/photo-band) and photo-backed CTAs ── */
.ep-pband { margin: 0 0 clamp(8px, 2vw, 24px); overflow: hidden; }
.ep-pband img, .ep-pband video { display: block; max-width: 100%; object-fit: cover; }
.ep-pband--strip .ep-pband__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; padding: 0 8px; }
.ep-pband--strip img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 8px; }
.ep-pband--strip img:nth-child(odd) { translate: 0 12px; }
.ep-pband--strip { padding-bottom: 12px; }
.ep-pband--duotone { position: relative; height: clamp(160px, 22vw, 300px); background: var(--brand-deep, #0d3a7a); }
.ep-pband--duotone img { width: 100%; height: 100%; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; opacity: .9; }
.ep-pband--duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,18,42,.75), rgba(30,107,214,.35)); mix-blend-mode: multiply; }
.ep-pband__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-block: 8px; }
.ep-pband__row img { width: clamp(72px, 11vw, 140px); height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 14px 30px -18px rgba(6,18,42,.6); }
.ep-pband__row img:nth-child(even) { translate: 0 14px; }
.ep-pband__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(90px, 12vw, 170px)); gap: 8px; }
.ep-pband__grid img { width: 100%; height: 100%; border-radius: 10px; }
.ep-pband__grid img:first-child { grid-row: 1 / -1; }
.ep-pband__grid img:nth-child(4) { grid-column: 2 / -1; }
.ep-pband__clipwrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; align-items: stretch; }
.ep-pband__clipwrap > * { width: 100%; height: 100%; aspect-ratio: 4 / 3; border-radius: 10px; }
.ep-pband__clipwrap video { aspect-ratio: 16 / 10; grid-row: span 1; }
@media (max-width: 599px) {
    .ep-pband__clipwrap { grid-template-columns: 1fr 1fr; }
    .ep-pband__clipwrap video { grid-column: 1 / -1; }
    .ep-pband__clipwrap img:nth-of-type(3) { display: none; }
    .ep-pband--strip .ep-pband__track { grid-auto-columns: 42%; }
    .ep-pband__row img:nth-child(n+5) { display: none; }
}
.ep-cta { background: linear-gradient(100deg, rgba(6,18,42,.96) 30%, rgba(6,18,42,.72)), url(img/graduates-sm.webp) right center / cover no-repeat, var(--ink); }
.ep-cjoin--cta { position: relative; isolation: isolate; overflow: hidden; }
.ep-cjoin--cta::after { content: ""; position: absolute; inset: 0 0 0 auto; width: min(38%, 420px); z-index: -1; background: linear-gradient(90deg, #fff, transparent 45%), url(img/counselling-sm.webp) center / cover no-repeat; }
@media (max-width: 767px) { .ep-cjoin--cta::after { inset: auto 0 0 0; width: 100%; height: 38%; background: linear-gradient(180deg, #fff, rgba(255,255,255,.35) 60%), url(img/counselling-sm.webp) center / cover no-repeat; } }
/* Dark text sections get a faint city photo under a deep scrim */
.ep-section.ep-dark:not(.ep-cteam-sec) { background-image: linear-gradient(180deg, rgba(6,18,42,.93), rgba(6,18,42,.86)), url(img/malaysia-city-sm.webp); background-size: cover; background-position: center; }
.ep-ph__photos { display: flex; margin-top: 14px; }
.ep-ph__photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px var(--paper, #fff); }
.ep-ph__photos img + img { margin-left: -14px; }

/* ---------- Fit pass: tighter rhythm on short laptop screens (100% and 90% zoom) ---------- */
@media (max-height: 760px) and (min-width: 960px) {
    .ep-section { padding-block: clamp(44px, 9vh, 72px); }
    .ep-section--tight { padding-block: clamp(36px, 7vh, 60px); }
    .ep-h2 { font-size: clamp(28px, min(3.4vw, 6.4vh), 44px); }
}

/* ==========================================================================
   Phones & tablets (mobile pass 2026-11-11). Everything here sits in
   max-width / hover:none queries, so 1200px+ desktop layouts are unchanged.
   ========================================================================== */
/* iOS Safari zooms the page when a control under 16px gets focus (iPad included). */
@media (max-width: 1199px) {
    .ep-cur select { font-size: 16px; }
}
@media (max-width: 899px) {
    /* Small labels: never below 13px, small print never below 14px */
    .ep-eyebrow { font-size: 13px; }
    .ep-crumbs { font-size: 14px; }
    .ep-badge { font-size: 13px; }
    .ep-disclaimer { font-size: 14px; }
    .ep-contact-lines small { font-size: 12px; }
    .ep-form__note { font-size: 14px; }
    .ep-ucard__loc { font-size: 14px; }
    .ep-ucard__foot small { font-size: 13px; }
    .ep-ucard__n { font-size: 14px; }
    .ep-fun-fly text { font-size: 19px; }
}
/* Photo bands: nothing cropped at the edges or bottom on phones */
@media (max-width: 959px) { .ep-pband__row { padding-bottom: 22px; } }
@media (max-width: 599px) {
    .ep-pband__row { flex-wrap: nowrap; }
    .ep-pband__row img { width: min(72px, calc((100% - 42px) / 4)); flex: 0 1 auto; }
    /* The strip scrolls on purpose, snapping photo by photo */
    .ep-pband--strip .ep-pband__track { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 14px; grid-auto-columns: 44%; }
    .ep-pband--strip .ep-pband__track::-webkit-scrollbar { display: none; }
    .ep-pband--strip img { scroll-snap-align: start; }
    .ep-pband--strip { padding-bottom: 0; }
}

/* CTA cards with a photo: on phones the photo sits below the buttons, never behind them */
@media (max-width: 767px) {
    .ep-cjoin.ep-cjoin--cta { padding-bottom: 168px; }
    .ep-cjoin.ep-cjoin--cta::after { height: 150px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0) 45%), url(img/counselling-sm.webp) center 30% / cover no-repeat; }
}
@media (max-width: 480px) {
    .ep-cjoin.ep-cjoin--cta .ep-row { display: grid; grid-template-columns: 1fr; }
    .ep-cjoin.ep-cjoin--cta .ep-btn { width: 100%; }
}

/* Touch screens: no zoomed photos or lifted icons left behind after a tap */
@media (hover: none) {
    .ep-photo:hover img { transform: none; }
    .ep-socials a:hover { transform: none; }
}


/* ==========================================================================
   DESIGN SYSTEM v3 "ORBIT" (2026-11-18)
   Everything below overrides the legacy rules above. Builders' spec lives in
   the design-system doc (old-design-system.md). New components/utilities use
   the nx- prefix; legacy ep- classes are restyled in place - never rename them.
   ========================================================================== */

/* ---------- Base v3 ---------- */
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -.003em; background: var(--paper); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 6px rgba(34, 211, 238, .18); }
.ep-dark, .nx-dark { background: var(--ink); color: #fff; }
.ep-section { padding-block: var(--sec-pad); }
.ep-section--tight { padding-block: calc(var(--sec-pad) * .75); }
kbd { font-family: var(--mono); font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: inherit; }

/* ---------- Type v3 ---------- */
.ep-eyebrow, .nx-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-deep);
}
.ep-eyebrow::before, .nx-eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 2px; flex: none;
    background: var(--grad-brand); box-shadow: 0 0 12px rgba(34, 211, 238, .7);
}
.ep-dark .ep-eyebrow, .nx-dark .ep-eyebrow, .ep-hero .ep-eyebrow, .ep-cta .ep-eyebrow, .nx-dark .nx-eyebrow, .nx-ph .ep-eyebrow { color: var(--cyan); }
.ep-display, .nx-display {
    font-family: var(--display); font-size: var(--fs-display); font-weight: 600;
    line-height: 1.02; letter-spacing: -.035em; font-variation-settings: normal; text-wrap: balance;
}
.ep-h2, .nx-h2 { font-family: var(--display); font-size: var(--fs-h2); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; font-variation-settings: normal; text-wrap: balance; }
.ep-h3, .nx-h3 { font-family: var(--display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
/* <em> inside headings = gradient accent (no italics in v3) */
.ep-display em, .ep-h2 em, .ep-h3 em, .nx-display em, .nx-h2 em {
    font-style: normal; font-weight: inherit; color: var(--brand-deep);
    background: var(--grad-text-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ep-dark .ep-display em, .ep-dark .ep-h2 em, .ep-hero .ep-display em, .ep-hero .ep-h2 em, .ep-cta .ep-h2 em, .ep-footer em,
.nx-dark .ep-display em, .nx-dark .ep-h2 em, .nx-dark .nx-display em, .nx-dark .nx-h2 em, .nx-ph .ep-display em {
    color: var(--sky); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ep-lead, .nx-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.ep-dark .ep-lead, .nx-dark .ep-lead, .nx-dark .nx-lead, .ep-hero .ep-lead, .ep-cta .ep-lead { color: var(--muted-on-ink); }
.nx-mono { font-family: var(--mono); letter-spacing: .02em; }
.nx-num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.nx-grad-text { background: var(--grad-text-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nx-dark .nx-grad-text, .ep-dark .nx-grad-text { background-image: var(--grad-text); }
.nx-small { font-size: var(--fs-sm); color: var(--muted); }
.nx-dark .nx-small, .ep-dark .nx-small { color: var(--muted-on-ink); }

/* Section header: eyebrow + title + lead (optionally split with an action on the right) */
.ep-head, .nx-head { display: grid; gap: 12px; align-content: start; margin-bottom: clamp(24px, 4vw, 44px); }
.nx-head--center { justify-items: center; text-align: center; }
.nx-head--center .ep-lead, .nx-head--center .nx-lead { margin-inline: auto; }
@media (min-width: 992px) {
    .ep-head--split, .nx-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 48px; }
}

/* ---------- Buttons v3 ---------- */
.ep-btn {
    --bg: var(--brand); --fg: #fff;
    min-height: 50px; padding: 0 24px; gap: 10px; border-radius: var(--radius-pill);
    background: var(--bg); color: var(--fg);
    font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 24px -10px rgba(47, 107, 255, .7);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .25s, background-color .25s;
}
.ep-btn::before { background: var(--grad-brand); transform: none; opacity: 0; transition: opacity .35s var(--ease-out); }
.ep-btn:hover::before { opacity: 1; transform: none; }
.ep-btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 34px -10px rgba(34, 211, 238, .65); transform: translateY(-1px); }
.ep-btn:active { transform: translateY(0) scale(.97); }
.ep-btn--light { --bg: #fff; --fg: var(--ink); box-shadow: 0 8px 24px -12px rgba(5, 12, 34, .5); }
.ep-btn--light::before { background: var(--grad-brand); }
.ep-btn--light:hover { color: #fff; }
.ep-btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.ep-btn--ghost::before { background: currentColor; opacity: 0; }
.ep-btn--ghost:hover::before { opacity: .08; }
.ep-btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }
.ep-dark .ep-btn--ghost, .nx-dark .ep-btn--ghost, .nx-ph .ep-btn--ghost, .ep-cta .ep-btn--ghost { --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.ep-dark .ep-btn:not(.ep-btn--light):not(.ep-btn--ghost)::before { background: var(--grad-brand); }
.ep-dark .ep-btn:not(.ep-btn--light):not(.ep-btn--ghost):hover { color: #fff; }
/* Glow: the hero/CTA button. Gradient fill + cyan bloom. */
.ep-btn--glow { --bg: linear-gradient(120deg, #2f6bff, #4f7dff 40%, #22b8e0); background: var(--bg); box-shadow: 0 0 0 1px rgba(142, 197, 255, .45), 0 10px 40px -8px rgba(47, 107, 255, .8), 0 0 60px -20px rgba(34, 211, 238, .8); }
.ep-btn--glow:hover { box-shadow: 0 0 0 1px rgba(142, 197, 255, .8), 0 14px 46px -8px rgba(47, 107, 255, .9), 0 0 80px -16px rgba(34, 211, 238, .95); }
.ep-btn--warm { --bg: var(--grad-warm); --fg: #1d1203; background: var(--bg); box-shadow: 0 10px 30px -12px rgba(255, 140, 60, .8); }
.ep-btn--warm::before { background: linear-gradient(120deg, #ffc56b, #ff8f6b); }
.ep-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ep-btn--lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.ep-btn[disabled], .ep-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.nx-iconbtn {
    width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
    color: inherit; background: rgba(10, 18, 40, .05); box-shadow: inset 0 0 0 1px var(--line);
    transition: background .25s, box-shadow .25s, transform .3s var(--ease-out);
}
.nx-iconbtn:hover { background: rgba(47, 107, 255, .1); box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .4); }
.nx-iconbtn svg { width: 18px; height: 18px; }
.nx-dark .nx-iconbtn, .ep-dark .nx-iconbtn { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.ep-link { font-weight: 600; color: var(--brand-deep); }
.nx-dark .ep-link, .ep-dark .ep-link { color: var(--sky); }

/* ---------- Surfaces: aurora, grid lines, noise, glass, glow ---------- */
.nx-dark, .nx-ph, .nx-ft, .nx-ctab__card { position: relative; isolation: isolate; overflow: hidden; }
/* Aurora: <div class="nx-aurora" aria-hidden="true"></div> as the FIRST child of a positioned, isolated box. */
.nx-aurora {
    position: absolute; inset: -20%; z-index: -2; pointer-events: none;
    background:
        radial-gradient(40% 50% at 18% 30%, rgba(47, 107, 255, .55), transparent 70%),
        radial-gradient(35% 45% at 82% 20%, rgba(124, 92, 255, .42), transparent 70%),
        radial-gradient(45% 50% at 70% 85%, rgba(34, 211, 238, .30), transparent 70%),
        radial-gradient(30% 40% at 30% 90%, rgba(47, 107, 255, .25), transparent 70%);
    animation: nx-aurora 22s ease-in-out infinite alternate;
    will-change: transform;
}
.nx-aurora--soft { opacity: .55; }
.nx-aurora--warm { background:
        radial-gradient(40% 50% at 20% 30%, rgba(47, 107, 255, .5), transparent 70%),
        radial-gradient(35% 45% at 80% 25%, rgba(255, 181, 71, .32), transparent 70%),
        radial-gradient(45% 50% at 60% 90%, rgba(34, 211, 238, .28), transparent 70%); }
@keyframes nx-aurora {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(3%, -2%, 0) rotate(6deg) scale(1.06); }
    100% { transform: translate3d(-3%, 2%, 0) rotate(-4deg) scale(1.02); }
}
/* Grid lines: faint 56px blueprint grid fading out at the edges */
.nx-gridlines {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 56px 56px; background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.nx-gridlines--ink { background-image: linear-gradient(rgba(10, 18, 40, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 18, 40, .06) 1px, transparent 1px); }
/* Noise: add nx-noise to a positioned box (uses ::after) */
.nx-noise::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Light band with a subtle colour mesh */
.nx-mesh {
    background:
        radial-gradient(50% 60% at 0% 0%, rgba(47, 107, 255, .09), transparent 70%),
        radial-gradient(40% 50% at 100% 10%, rgba(34, 211, 238, .08), transparent 70%),
        var(--paper);
}
/* Glass */
.nx-glass {
    background: var(--glass-bg); color: #fff;
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 50px -24px rgba(0, 0, 0, .6);
    border-radius: var(--radius);
}
.nx-glass--light {
    background: var(--glass-bg-light); color: var(--text);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 20px 50px -26px rgba(5, 12, 34, .35);
    border-radius: var(--radius);
}
/* Glow border: rotating gradient rim drawn on ::before (box needs a border-radius) */
.nx-glow { position: relative; }
.nx-glow::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
    background: conic-gradient(from var(--nx-angle, 0deg), rgba(47, 107, 255, 0), rgba(47, 107, 255, .9), rgba(34, 211, 238, .9), rgba(124, 92, 255, .6), rgba(47, 107, 255, 0) 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: nx-spin 8s linear infinite;
}
.nx-glow--hover::before { opacity: 0; transition: opacity .4s; }
.nx-glow--hover:hover::before, .nx-glow--hover:focus-within::before { opacity: 1; }
@property --nx-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes nx-spin { to { --nx-angle: 360deg; } }
/* Spotlight: data-spotlight (motion.js) writes --mx/--my; .nx-spot draws the light */
.nx-spot, .nx-ph, .nx-ctab__card { --mx: 50%; --my: 30%; }
.nx-spot::after, .nx-ph::after, .nx-ctab__card::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx) var(--my), rgba(34, 211, 238, .16), transparent 60%);
}
.nx-card.nx-spot::after { z-index: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(47, 107, 255, .10), transparent 60%); opacity: 0; transition: opacity .4s; }
.nx-card.nx-spot:hover::after { opacity: 1; }
.nx-glowline { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .8), rgba(47, 107, 255, .8), transparent); }
.nx-orb { position: absolute; border-radius: 50%; pointer-events: none; opacity: .55; background: radial-gradient(circle, rgba(47, 107, 255, .7), transparent 70%); }

/* ---------- Cards ---------- */
.nx-card {
    position: relative; isolation: isolate; display: block;
    background: #fff; color: var(--text); border-radius: var(--radius); padding: var(--card-pad);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
a.nx-card:hover, .nx-card--hover:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .35), var(--shadow-2), 0 0 0 4px rgba(47, 107, 255, .06); }
.nx-card--dark { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); color: #fff; box-shadow: inset 0 0 0 1px var(--line-on-ink); }
a.nx-card--dark:hover, .nx-card--dark.nx-card--hover:hover { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45), 0 20px 50px -24px rgba(34, 211, 238, .45); }
.nx-card__media { margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--card-pad); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.nx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
a.nx-card:hover .nx-card__media img { transform: scale(1.05); }
.nx-card__title { font-family: var(--display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.nx-card__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nx-card--dark .nx-card__meta { color: var(--muted-on-ink); }
.nx-cards { display: grid; gap: var(--sec-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ep-card { border-radius: var(--radius); }

/* Stat / counter */
.nx-stat { display: grid; gap: 4px; }
.nx-stat__n { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.nx-stat__l { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nx-dark .nx-stat__l, .ep-dark .nx-stat__l { color: var(--muted-on-ink); }
.nx-dark .nx-stat__n { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Badges & chips ---------- */
.ep-badge, .nx-badge {
    display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--radius-pill);
    font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
    background: rgba(47, 107, 255, .1); color: var(--brand-deep); box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .22);
}
.nx-badge--ok, .ep-badge--ok { background: rgba(19, 163, 107, .1); color: #0b7a4f; box-shadow: inset 0 0 0 1px rgba(19, 163, 107, .3); }
.nx-badge--warm { background: rgba(255, 181, 71, .16); color: #8a5200; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .45); }
.nx-badge--muted, .ep-badge--muted { background: rgba(10, 18, 40, .05); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.nx-badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: nx-ping 2s infinite; }
.nx-dark .nx-badge, .ep-dark .nx-badge { background: rgba(34, 211, 238, .1); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); }
@keyframes nx-ping { 0% { box-shadow: 0 0 0 0 rgba(19, 163, 107, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(19, 163, 107, 0); } }
/* Chips: <button class="nx-chip" aria-pressed> or <label class="nx-chip"><input type=radio|checkbox><span>..</span></label> */
.nx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; }
.nx-chips--scroll::-webkit-scrollbar { display: none; }
.nx-chip { position: relative; display: inline-flex; align-items: center; flex: none; cursor: pointer; }
.nx-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
button.nx-chip, .nx-chip > span {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 500; color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
    transition: background .2s, color .2s, box-shadow .2s;
}
button.nx-chip:hover, .nx-chip:hover > span { box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .45); }
button.nx-chip[aria-pressed="true"], .nx-chip input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink), 0 6px 18px -8px rgba(47, 107, 255, .7); }
.nx-chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nx-dark button.nx-chip, .nx-dark .nx-chip > span { background: rgba(255, 255, 255, .05); color: #fff; box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.nx-dark button.nx-chip[aria-pressed="true"], .nx-dark .nx-chip input:checked + span { background: var(--cyan); color: var(--ink); }

/* ---------- Form controls ---------- */
.nx-field { display: grid; gap: 6px; }
.nx-label { font-size: 13px; font-weight: 600; color: var(--text); }
.nx-input, .nx-select, .nx-textarea {
    width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: var(--radius-sm);
    font: 400 16px/1.4 var(--sans); color: var(--text); background-color: #fff;
    box-shadow: inset 0 0 0 1px rgba(10, 18, 40, .16);
    transition: box-shadow .2s, background-color .2s;
}
.nx-textarea { min-height: 120px; padding: 14px 16px; resize: vertical; }
.nx-select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23050c22' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 11px; }
.nx-input:hover, .nx-select:hover, .nx-textarea:hover { box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .45); }
.nx-input:focus, .nx-select:focus, .nx-textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 5px rgba(47, 107, 255, .14); }
.nx-input[aria-invalid="true"], .nx-select[aria-invalid="true"], .nx-textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.nx-hint { font-size: 13px; color: var(--muted); }
.nx-err { font-size: 13px; color: var(--err); font-weight: 600; }
.nx-dark .nx-input, .nx-dark .nx-select, .nx-dark .nx-textarea { background-color: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.nx-dark .nx-label { color: #fff; }
/* Range slider: set --v (0-100%) from JS for the filled track in WebKit */
.nx-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --v: 50%; }
.nx-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) 0 var(--v), rgba(10, 18, 40, .12) var(--v)); }
.nx-range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(10, 18, 40, .12); }
.nx-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--brand); }
.nx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 4px 14px rgba(47, 107, 255, .5); }
.nx-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 4px 14px rgba(47, 107, 255, .5); }

/* ---------- Tabs (role=tablist) ---------- */
.nx-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: rgba(10, 18, 40, .05); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nx-tabs::-webkit-scrollbar { display: none; }
.nx-tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s, background .25s, box-shadow .25s; }
.nx-tab:hover { color: var(--text); }
.nx-tab[aria-selected="true"], .nx-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(5, 12, 34, .35); }
.nx-dark .nx-tabs { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.nx-dark .nx-tab { color: var(--muted-on-ink); }
.nx-dark .nx-tab[aria-selected="true"], .nx-dark .nx-tab.is-active { background: var(--grad-brand); color: #fff; }

/* ---------- Dialog (native <dialog class="nx-dialog">) ---------- */
.nx-dialog {
    width: min(640px, calc(100% - 24px)); max-height: min(86vh, 860px); padding: 0; border: 0; border-radius: var(--radius-lg);
    background: #fff; color: var(--text); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); overflow: auto;
}
.nx-dialog::backdrop { background: rgba(2, 6, 26, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nx-dialog[open] { animation: nx-pop .45s var(--ease-out); }
.nx-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nx-dialog__body { padding: 20px; }
@keyframes nx-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (max-width: 599px) {
    .nx-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92vh; }
    .nx-dialog[open] { animation-name: nx-sheet; }
}
@keyframes nx-sheet { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Table ---------- */
.nx-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.nx-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nx-table th { text-align: left; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.nx-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nx-table tr:last-child td { border-bottom: 0; }
.nx-table tbody tr { transition: background .2s; }
.nx-table tbody tr:hover { background: rgba(47, 107, 255, .04); }
.nx-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Marquee (add data-marquee for the WCAG pause button) ---------- */
.nx-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nx-marquee__track { display: flex; gap: 48px; width: max-content; animation: nx-marquee var(--speed, 40s) linear infinite; }
.nx-marquee:hover .nx-marquee__track, .nx-marquee.is-paused .nx-marquee__track { animation-play-state: paused; }
@keyframes nx-marquee { to { transform: translateX(-50%); } }

/* ---------- Layout helpers ---------- */
.nx-split { display: grid; gap: var(--sec-gap); }
@media (min-width: 960px) { .nx-split { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 4vw, 64px); } .nx-split--wide { grid-template-columns: 1.2fr .8fr; } }
.nx-bento { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .nx-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(160px, auto); } .nx-bento > .is-wide { grid-column: span 2; } .nx-bento > .is-tall { grid-row: span 2; } }
/* Section transitions */
.nx-fade-bottom { position: relative; }
.nx-fade-bottom::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px; background: linear-gradient(180deg, transparent, var(--paper)); pointer-events: none; z-index: 0; }
.nx-lift { position: relative; z-index: 2; margin-top: -28px; border-radius: 28px 28px 0 0; background: var(--paper); }

/* ==========================================================================
   HEADER v3: full-width glass bar (<1200px), floating glass capsule (>=1200px)
   JS hooks kept: .ep-header(.is-scrolled) .ep-nav__more(.is-open) .ep-nav__more-btn
   .ep-burger .ep-menu html.is-menu-open [data-ep-currency] [data-cmd-open]
   ========================================================================== */
.ep-header { position: fixed; inset: 0 0 auto 0; z-index: 90; color: #fff; transition: transform .5s var(--ease-out); }
.ep-header__row {
    height: var(--header-h);
    background: rgba(5, 12, 34, .8);
    -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
    transition: background .4s, box-shadow .4s;
}
.ep-header.is-scrolled .ep-header__row { background: rgba(5, 12, 34, .92); box-shadow: inset 0 -1px 0 rgba(142, 197, 255, .14), 0 12px 30px -18px rgba(0, 0, 0, .6); }
/* Pages without a hero (@section('body_class', 'ep-no-hero')): content starts below the header. */
.ep-no-hero #main { padding-top: var(--header-h); }
.ep-header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ep-logo { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.ep-logo img { display: block; width: 118px; height: auto; }
.ep-logo__mark { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }

.ep-nav { display: none; }
.ep-header__actions { display: flex; align-items: center; gap: 8px; }
.ep-header__actions .nx-hd__book { display: none; white-space: nowrap; }
@media (min-width: 640px) { .ep-header__actions .nx-hd__book { display: inline-flex; } }
.ep-header__portal { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line-on-ink); transition: color .2s, background .2s; }
.ep-header__portal svg { width: 18px; height: 18px; }
.ep-header__portal:hover { color: #fff; background: rgba(255, 255, 255, .08); }
@media (min-width: 1360px) { .ep-header__portal { display: inline-grid; } }

/* Search trigger (opens the command palette) */
.nx-hd__search {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px; border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-on-ink);
    font-size: 13.5px; font-weight: 500; transition: background .2s, color .2s, box-shadow .2s;
}
.nx-hd__search svg { width: 18px; height: 18px; flex: none; }
.nx-hd__search:hover { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5); }
.nx-hd__search-t, .nx-hd__search kbd { display: none; }
@media (min-width: 1200px) { .nx-hd__search { height: 40px; min-width: 40px; padding: 0 11px; } }
@media (min-width: 1440px) { .nx-hd__search-t, .nx-hd__search kbd { display: inline; } .nx-hd__search { padding: 0 8px 0 12px; } }

/* Currency switch */
.ep-cur { position: relative; display: inline-flex; }
.ep-cur select {
    appearance: none; -webkit-appearance: none; cursor: pointer; border: 0;
    height: 40px; padding: 0 28px 0 12px; border-radius: var(--radius-pill);
    font: 500 13px var(--mono); letter-spacing: .02em; color: #fff;
    background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238ec5ff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 10px;
    box-shadow: inset 0 0 0 1px var(--line-on-ink);
}
.ep-cur select:hover { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5); }
.ep-cur select option { color: var(--text); background: #fff; }
@media (max-width: 1199px) { .ep-cur select { font-size: 16px; height: 44px; } }
@media (max-width: 380px) { .ep-cur select { padding: 0 22px 0 10px; } }

/* Burger */
.ep-burger {
    width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff;
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-on-ink); -webkit-tap-highlight-color: transparent;
}
.ep-burger span { position: relative; width: 18px; height: 1.5px; background: currentColor; transition: background .3s; }
.ep-burger span::before, .ep-burger span::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.ep-burger span::before { top: -6px; }
.ep-burger span::after { top: 6px; }
.is-menu-open .ep-burger { background: var(--grad-brand); box-shadow: none; }
.is-menu-open .ep-burger span { background: transparent; }
.is-menu-open .ep-burger span::before { top: 0; transform: rotate(45deg); }
.is-menu-open .ep-burger span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 639px) {
    .ep-header__bar { gap: 8px; }
    .ep-header__actions { gap: 6px; }
    .ep-logo img { width: 104px; }
}
@media (max-width: 359px) { .ep-cur { display: none; } }

/* ---- Desktop capsule ---- */
@media (min-width: 1200px) {
    .ep-header { padding: 10px 16px 0; pointer-events: none; }
    .ep-header__row {
        pointer-events: auto; height: calc(var(--header-h) - 20px); max-width: calc(var(--max) + 48px); margin-inline: auto;
        border-radius: 20px; background: rgba(8, 16, 44, .7);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 40px -22px rgba(2, 6, 26, .7);
    }
    .ep-header.is-scrolled .ep-header__row { background: rgba(5, 12, 34, .88); box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .1), 0 22px 50px -24px rgba(2, 6, 26, .85), 0 0 40px -18px rgba(47, 107, 255, .55); }
    .ep-header__bar { padding-inline: 10px 8px; max-width: none; gap: 12px; }
    .ep-logo { padding-left: 6px; }
    .ep-logo img { width: 128px; }
    .ep-burger { display: none; }

    .ep-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
    .ep-nav > a, .ep-nav__more-btn {
        position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px;
        font-size: 14px; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, .76);
        transition: color .2s, background-color .2s;
    }
    .ep-nav > a:hover, .ep-nav__more-btn:hover, .ep-nav__more-btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .07); }
    .ep-nav > a[aria-current="page"], .ep-nav__more-btn[data-current] { color: #fff; }
    .ep-nav > a[aria-current="page"]::after, .ep-nav__more-btn[data-current]::after {
        content: ""; position: absolute; left: 50%; bottom: 4px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px;
        background: var(--grad-brand); box-shadow: 0 0 10px rgba(34, 211, 238, .9);
    }
    .ep-nav__more-btn svg { flex: none; opacity: .7; transition: transform .3s var(--ease-out); }
    .ep-nav__more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
}
@media (min-width: 1200px) and (max-width: 1299px) {
    .ep-nav > a, .ep-nav__more-btn { padding: 0 8px; font-size: 13.5px; }
    .ep-nav__more-btn { gap: 4px; }
    .ep-logo img { width: 112px; }
}
@media (min-width: 1200px) and (max-height: 760px) {
    .ep-header { padding-top: 8px; }
    .ep-header__row { height: calc(var(--header-h) - 16px); }
    .ep-logo img { width: 112px; }
}

/* ---- Mega panels ---- */
.ep-nav__more { position: relative; }
.ep-nav__panel {
    position: absolute; top: calc(100% + 16px); left: -12px; z-index: 5; width: 420px; padding: 10px;
    border-radius: 20px; color: #fff; text-align: left;
    background: rgba(8, 16, 44, .94); -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
    box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .18), 0 40px 80px -30px rgba(2, 6, 26, .9), 0 0 60px -30px rgba(47, 107, 255, .7);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.985); transform-origin: top left;
    transition: opacity .2s, transform .35s var(--ease-out), visibility 0s linear .35s;
}
.ep-nav__more.is-open .ep-nav__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .35s var(--ease-out); }
.ep-nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.nx-mega__grid { display: grid; gap: 4px; }
.nx-mega--study, .nx-mega--tools { width: 400px; }
.nx-mega__card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; color: #fff; transition: background .2s; }
.nx-mega__card:hover, .nx-mega__card[aria-current="page"] { background: rgba(255, 255, 255, .06); }
.nx-mega__card strong { display: block; font-size: 15px; font-weight: 600; }
.nx-mega__card small { display: block; font-size: 13px; color: var(--muted-on-ink); line-height: 1.4; }
.nx-mega__ic {
    flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(47, 107, 255, .35), rgba(34, 211, 238, .12)); color: var(--sky);
    box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .25); transition: background .25s, color .25s, box-shadow .25s;
}
.nx-mega__ic svg { width: 21px; height: 21px; }
.nx-mega__no { font-family: var(--mono); font-size: 12px; }
.nx-mega__card:hover .nx-mega__ic, .nx-mega__card[aria-current="page"] .nx-mega__ic { background: var(--grad-brand); color: #fff; box-shadow: 0 0 20px -4px rgba(34, 211, 238, .8); }
.nx-mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 0 12px; min-height: 46px; border-top: 1px solid var(--line-on-ink); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.nx-mega__foot:hover, .nx-mega__foot[aria-current="page"] { color: #fff; }
.nx-mega__foot svg { transition: transform .3s var(--ease-out); }
.nx-mega__foot:hover svg { transform: translateX(4px); }
.nx-mega--dest { width: 560px; }
.nx-mega__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nx-mega__tile {
    position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; gap: 8px; min-height: 92px; padding: 10px 12px; border-radius: 14px;
    color: #fff; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.01em;
    background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.nx-mega__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 12, 34, .05) 20%, rgba(5, 12, 34, .88)), var(--img) center / cover; transition: transform .7s var(--ease-out); }
.nx-mega__tile:hover::before { transform: scale(1.08); }
.nx-mega__tile:hover, .nx-mega__tile[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .7), 0 0 24px -8px rgba(34, 211, 238, .8); }
.nx-mega__tile img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); margin-bottom: 3px; }
.nx-mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.nx-mega__links a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #fff; box-shadow: inset 0 0 0 1px var(--line-on-ink); transition: background .2s, box-shadow .2s; }
.nx-mega__links a:hover, .nx-mega__links a[aria-current="page"] { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5); }
.nx-mega__links svg { color: var(--cyan); }

/* ---- Phone / tablet menu (below 1200px) ---- */
.ep-menu {
    position: fixed; inset: 0; z-index: 80; color: #fff; overflow-y: auto; overscroll-behavior: contain;
    background:
        radial-gradient(60% 40% at 90% 0%, rgba(47, 107, 255, .45), transparent 70%),
        radial-gradient(50% 40% at 0% 100%, rgba(34, 211, 238, .22), transparent 70%),
        var(--void);
    padding: calc(var(--header-h) + 16px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
}
.is-menu-open .ep-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-out); }
.is-menu-open { overflow: hidden; }
.ep-menu__in { display: flex; flex-direction: column; min-height: 100%; max-width: 720px; margin-inline: auto; }
.nx-menu__search { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; margin-bottom: 14px; border-radius: 14px; color: var(--muted-on-ink); font-size: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.nx-menu__search svg { width: 18px; height: 18px; color: var(--cyan); }
.ep-menu__list { display: grid; gap: 0; }
.ep-menu__list > li { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); transition-delay: calc(.06s + var(--i, 0) * .035s); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.is-menu-open .ep-menu__list > li { opacity: 1; transform: none; }
.ep-menu__list > li > a { display: flex; align-items: center; min-height: 52px; font-family: var(--display); font-size: clamp(21px, 5.4vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.ep-menu__list > li > a[aria-current="page"] { color: var(--cyan); }
.ep-menu__list > li > a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; border-radius: 2px; margin-right: 12px; background: var(--grad-brand); box-shadow: 0 0 10px var(--cyan); }
.ep-menu__group { padding: 12px 0 14px; }
.ep-menu__head { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.ep-menu__sub { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-menu__list .ep-menu__sub a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.ep-menu__list .ep-menu__sub a[aria-current="page"] { color: var(--ink); background: var(--cyan); box-shadow: none; }
.ep-menu__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; opacity: 0; transition: opacity .5s .3s; }
.is-menu-open .ep-menu__foot { opacity: 1; }
.ep-menu__foot a:not(.ep-btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-on-ink); font-size: 15px; }
.ep-menu__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-menu__foot .ep-menu__quick a { justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: var(--radius-pill); color: #fff; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.ep-menu__foot .ep-menu__quick a.is-wa { background: #25d366; color: #052e16; box-shadow: none; }
.ep-menu__quick svg { width: 18px; height: 18px; flex: none; }
.ep-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ep-menu__row .ep-socials a { color: #fff; }
@media (min-width: 1200px) { .ep-menu { display: none; } }
@media (max-width: 1199px) and (orientation: landscape) and (max-height: 540px) {
    .ep-menu__list { display: block; columns: 2; column-gap: 28px; }
    .ep-menu__list > li { break-inside: avoid; }
    .ep-menu__list > li > a { min-height: 44px; font-size: 20px; }
}

/* ---- Command palette (<dialog id="nx-cmd">) ---- */
.nx-cmd {
    width: min(640px, calc(100% - 24px)); max-height: min(72vh, 620px); margin: max(10vh, 72px) auto auto; padding: 0; border: 0; border-radius: 22px;
    color: #fff; background: rgba(8, 16, 44, .95); -webkit-backdrop-filter: saturate(170%) blur(24px); backdrop-filter: saturate(170%) blur(24px);
    box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .22), 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(47, 107, 255, .8);
    overflow: hidden;
}
.nx-cmd[open] { display: flex; animation: nx-pop .35s var(--ease-out); }
.nx-cmd::backdrop { background: rgba(2, 6, 26, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nx-cmd__box { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.nx-cmd__bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--line-on-ink); }
.nx-cmd__bar > svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.nx-cmd__input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; color: #fff; font: 400 17px var(--sans); outline: 0; }
.nx-cmd__input::placeholder { color: var(--muted-on-ink); }
.nx-cmd__input::-webkit-search-cancel-button { display: none; }
.nx-cmd__close { min-width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--muted-on-ink); }
.nx-cmd__list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.nx-cmd__group { padding: 4px 0 8px; }
.nx-cmd__head { padding: 8px 12px 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-ink); }
.nx-cmd__item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border-radius: 12px; color: #fff; font-size: 15px; }
.nx-cmd__item > svg:first-child { width: 18px; height: 18px; color: var(--sky); flex: none; }
.nx-cmd__item span { flex: none; }
.nx-cmd__item small { color: var(--muted-on-ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.nx-cmd__item .ep-arrow { margin-left: auto; opacity: 0; color: var(--cyan); transition: opacity .15s, transform .25s var(--ease-out); }
.nx-cmd__item:hover, .nx-cmd__item.is-active { background: rgba(47, 107, 255, .22); box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .25); }
.nx-cmd__item:hover .ep-arrow, .nx-cmd__item.is-active .ep-arrow { opacity: 1; transform: translateX(2px); }
.nx-cmd__note { padding: 6px 12px; font-size: 13px; color: var(--muted-on-ink); }
.nx-cmd__empty { padding: 28px 12px; text-align: center; color: var(--muted-on-ink); }
@media (max-width: 599px) { .nx-cmd { margin-top: 12px; max-height: 80vh; } .nx-cmd__item small { display: none; } }

/* ==========================================================================
   PAGE HERO v3 (partials/page-hero): dark aurora band; $light => light variant
   ========================================================================== */
.ep-ph.nx-ph { background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(28px, 5vh, 56px)) 0 clamp(36px, 6vh, 64px); }
.nx-ph .ep-ph__grid { display: grid; gap: 28px; position: relative; z-index: 1; }
@media (min-width: 960px) { .nx-ph.ep-ph--side .ep-ph__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; } }
.nx-ph .ep-ph__copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.nx-ph .ep-ph__title { font-size: var(--fs-display); color: #fff; max-width: 20ch; overflow-wrap: anywhere; margin: 0; }
.nx-ph .ep-lead { color: var(--muted-on-ink); }
.nx-ph .ep-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-ink); }
.nx-ph .ep-crumbs a { color: var(--sky); }
.nx-ph .ep-crumbs a:hover { color: #fff; }
.nx-ph .ep-ph__photos img { box-shadow: 0 0 0 3px var(--ink); }
.nx-ph .ep-ph__side { min-width: 0; color: var(--text); }
.nx-ph::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .6), rgba(47, 107, 255, .6), transparent); }
.nx-ph--light.ep-ph { background: var(--paper); color: var(--text); }
.nx-ph--light .ep-ph__title { color: var(--ink); }
.nx-ph--light .ep-lead, .nx-ph--light .ep-crumbs { color: var(--muted); }
.nx-ph--light .ep-crumbs a, .nx-ph--light .ep-eyebrow { color: var(--brand-deep); }
.nx-ph--light .ep-display em { background-image: var(--grad-text-ink); }
.nx-ph--light .nx-aurora { opacity: .25; }
.nx-ph--light .nx-gridlines { background-image: linear-gradient(rgba(10, 18, 40, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 18, 40, .06) 1px, transparent 1px); }

/* ==========================================================================
   CTA card (.ep-cta, partials/cta-band)
   ========================================================================== */
.ep-cta {
    position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 24px;
    padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg);
    background: var(--ink); color: #fff; box-shadow: 0 40px 80px -40px rgba(5, 12, 34, .7);
}
@media (min-width: 992px) { .ep-cta { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: end; } }
.ep-cta .ep-h2 { color: #fff; }
.ep-cta__copy { display: grid; gap: 16px; align-content: start; position: relative; z-index: 2; }
.nx-ctab__side { align-self: end; }

/* ==========================================================================
   FOOTER v3
   ========================================================================== */
.ep-footer { background: var(--void); color: #fff; padding: clamp(56px, 8vw, 104px) 0 calc(24px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; isolation: isolate; }
.nx-ft .nx-aurora { inset: -40% -20% auto; height: 120%; }
.nx-ft > .ep-container { position: relative; z-index: 1; }
.ep-footer__big { display: grid; gap: 24px; padding-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line-on-ink); }
@media (min-width: 900px) { .ep-footer__big { grid-template-columns: 1fr auto; align-items: end; } }
.nx-ft__line { font-family: var(--display); font-weight: 600; letter-spacing: -.045em; line-height: .98; font-size: clamp(2.3rem, 1rem + 5.2vw, 5.4rem); max-width: 14ch; text-wrap: balance; }
.nx-ft__line em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ep-footer__cols { display: grid; gap: 36px 24px; padding-block: clamp(36px, 5vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .ep-footer__cols { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.ep-footer__brand { grid-column: 1 / -1; display: grid; gap: 18px; max-width: 380px; align-content: start; }
@media (min-width: 900px) { .ep-footer__brand { grid-column: auto; } }
@media (max-width: 899px) { .ep-footer__touch { grid-column: 1 / -1; } }
.nx-ft__logo { width: 200px; max-width: 100%; height: auto; }
.ep-footer__brand p { color: var(--muted-on-ink); font-size: 15px; }
.ep-footer h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.ep-footer h4.nx-ft__h2 { margin-top: 24px; }
.ep-footer__links { display: grid; gap: 0; font-size: 15px; }
.ep-footer__links a { display: inline-flex; align-items: center; min-height: 40px; color: rgba(255, 255, 255, .78); background: none; transition: color .2s, transform .3s var(--ease-out); overflow-wrap: anywhere; }
.ep-footer__links a:hover { color: #fff; transform: translateX(3px); }
.ep-footer__touch .ep-footer__links { overflow-wrap: normal; }
.nx-ft__addr { display: block; padding-block: 8px; color: var(--muted-on-ink); }
.ep-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-on-ink); transition: background .3s, box-shadow .3s, transform .4s var(--ease-out); }
.ep-socials a:hover { background: var(--grad-brand); box-shadow: 0 0 24px -6px rgba(34, 211, 238, .9); transform: translateY(-3px); }
.ep-socials svg { width: 18px; height: 18px; }
.ep-footer__bottom { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-on-ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted-on-ink); }
.ep-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ep-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; background: none; }
.ep-footer__bottom a:hover { color: #fff; }
.ep-footer .ep-fun-fly { color: var(--sky); opacity: .7; }
@media (max-width: 899px) {
    .ep-footer__links { font-size: 16px; }
    .ep-footer__links a { display: flex; min-height: 44px; }
    .ep-footer__bottom { font-size: 13px; }
    .ep-fun-fly svg { overflow: visible; }
    .ep-fun-fly text { font-size: 19px; }
}
@media (max-width: 599px) {
    .ep-footer__cols > div:nth-child(2) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; column-gap: 24px; }
    .ep-footer__cols > div:nth-child(2) > h4.nx-ft__h2 { margin-top: 0; }
    .ep-footer__cols > div:nth-child(2) > .ep-footer__links { align-content: start; }
    .ep-footer__cols > div:nth-child(3) { grid-column: 1 / -1; }
    .ep-footer__cols > div:nth-child(3) .ep-footer__links { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 28px; }
}

/* ---------- Mobile action dock ---------- */
.ep-dock {
    position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; gap: 8px; padding: 8px; border-radius: 22px; color: #fff;
    background: rgba(8, 16, 44, .84); -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
    box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .2), 0 18px 40px -16px rgba(2, 6, 26, .7);
    transform: translateY(calc(100% + 32px)); transition: transform .6s var(--ease-out);
}
.ep-dock.is-visible { transform: none; }
.ep-dock a { flex: 1; min-height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.ep-dock a:active { transform: scale(.96); }
.ep-dock a svg { width: 18px; height: 18px; }
.ep-dock__icon { flex: 0 0 48px !important; box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.ep-dock__main { background: var(--grad-brand); box-shadow: 0 0 24px -8px rgba(34, 211, 238, .9); }
.ep-dock__icon--wa { background: #25d366; color: #052e16; box-shadow: none !important; }
@media (min-width: 900px) { .ep-dock { display: none; } }
@media (min-width: 560px) and (max-width: 899px) { .ep-dock { max-width: 440px; margin-inline: auto; } }
/* Floating bars share one offset: other fixed bars (.ep-fab, .tl-peek, compare tray) sit at
   bottom: calc(var(--ep-float-stack) + env(safe-area-inset-bottom)). Dock = 64px tall + 12px gap + 12px. */
:root { --ep-float-stack: 88px; }
@media (min-width: 900px) { :root { --ep-float-stack: 16px; } }
body:has(.ep-fab:not([hidden])) .ep-dock.is-visible,
body:has(.tl-peek.is-visible) .ep-dock.is-visible { transform: translateY(calc(100% + 32px)); }
body:has(.ep-fab:not([hidden])), body:has(.tl-peek.is-visible) { --ep-float-stack: 16px; }
@media (max-width: 899px) { body.has-dock .ep-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }
@media (min-width: 640px) and (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
    .ep-dock { display: none; }
    :root { --ep-float-stack: 16px; }
    body.has-dock .ep-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* Desktop WhatsApp button (icon only; the dock covers phones) */
.ep-wa-float { display: none; }
@media (min-width: 900px) {
    .ep-wa-float {
        position: fixed; z-index: 70; right: 24px; bottom: 24px; display: inline-flex; padding: 0; border-radius: 50%;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 18px 40px -14px rgba(5, 12, 34, .55), 0 0 30px -8px rgba(37, 211, 102, .8);
        transition: transform .4s var(--ease-out), box-shadow .4s, opacity .3s, visibility .3s;
    }
    .ep-wa-float:hover { transform: translateY(-3px) scale(1.04); }
    .ep-wa-float svg { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: #25d366; color: #fff; flex: none; }
    .ep-wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    body:has([data-cmp]:not([hidden])) .ep-wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ---------- Scroll progress (the only one; fun.js no longer adds a second bar) ---------- */
.ep-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none; }
.ep-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--cyan)); box-shadow: 0 0 10px rgba(34, 211, 238, .8); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Reduced motion / lite: nothing ambient moves ---------- */
@media (prefers-reduced-motion: reduce) {
    .nx-aurora, .nx-glow::before, .nx-marquee__track, .nx-badge--live::before { animation: none !important; }
    .ep-menu__list > li { transition: none; opacity: 1; transform: none; }
}
html.ep-lite .nx-aurora, html.ep-lite .nx-glow::before { animation: none; }
@media print { .ep-header, .ep-dock, .ep-wa-float, .ep-progress, .nx-cmd, .nx-aurora, .nx-gridlines { display: none !important; } }

/* Gradient <em> survives data-split: word spans are inline-blocks, so each repaints the gradient */
em .ep-sw > span, em .ep-w > span { background: inherit; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }

/* ==========================================================================
   v4 "WHITE, RESTRAINED" (2026-11-18): owner direction = white canvas, no AI look.
   This layer sits last in epal.css and overrides v1-v3. Page CSS (loaded after) may
   still refine. Tokens: one brand blue, near-black ink, one cool grey scale.
   Deprecated classes are neutralised below (they render clean or not at all).
   ========================================================================== */
:root {
    --brand: #1f5bff; --brand-deep: #1749d6; --brand-50: #eef3ff; --brand-100: #dce6ff;
    --text: #0b1220; --ink: #0b1220; --ink-2: #1a2333; --ink-3: #2a3446; --void: #0b1220;
    --g-50: #f5f7fb; --g-100: #eef1f6; --g-200: #e3e8ef; --g-300: #cfd6e1; --g-400: #9aa4b5; --g-500: #6b7588; --g-600: #4b5466; --g-700: #343c4c;
    --muted: #556070; --muted-on-ink: #a3adbd; --sky: #9cb8ff;
    --cyan: var(--brand); --violet: var(--brand); --warm: #b45309; --warm-deep: #92400e;
    --paper: #ffffff; --paper-2: #f5f7fb;
    --line: #e3e8ef; --line-strong: #cfd6e1; --line-on-ink: rgba(255, 255, 255, .12);
    --ok: #0f8a5f; --err: #d12f35;
    --grad-brand: var(--brand); --grad-aurora: none; --grad-text: none; --grad-text-ink: none; --grad-warm: var(--warm);
    --glass-bg: #ffffff; --glass-bg-light: #ffffff; --glass-line: var(--line); --glass-blur: none;
    --shadow-1: 0 1px 2px rgba(11, 18, 32, .05), 0 1px 1px rgba(11, 18, 32, .03);
    --shadow-2: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px -8px rgba(11, 18, 32, .12);
    --shadow-3: 0 2px 4px rgba(11, 18, 32, .04), 0 24px 48px -16px rgba(11, 18, 32, .18);
    --glow-brand: var(--shadow-1); --glow-cyan: var(--shadow-1);
    --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", sans-serif;
    --serif: var(--display);
    --radius-xs: 8px; --radius-sm: 8px; --radius: 16px; --radius-lg: 16px; /* 2 radii: 8 (controls) + 16 (cards/media) */
    --ease: cubic-bezier(.2, .6, .2, 1); --ease-out: cubic-bezier(.2, .6, .2, 1);
    --dur: 200ms;
    --fs-display: clamp(2.5rem, 1.3rem + 4.2vw, 5rem);
    --fs-h1: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
    --fs-h2: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
    --fs-h3: clamp(1.125rem, 1rem + .4vw, 1.375rem);
    --header-h: 64px;
}
@media (min-width: 1200px) { :root { --header-h: 72px; } }
@media (max-height: 760px) and (min-width: 960px) {
    :root { --fs-display: clamp(2.25rem, 1rem + 3vw, 3.5rem); --fs-h1: clamp(2rem, 1rem + 2.2vw, 3rem); --fs-h2: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); }
}
body { background: #fff; color: var(--text); line-height: 1.6; }
::selection { background: var(--brand-100); color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; box-shadow: none; }
kbd { background: var(--g-50); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* ---- Surfaces: no dark full-width bands. .ep-dark/.nx-dark now render white. ---- */
.ep-dark, .nx-dark, .ep-section.ep-dark:not(.ep-cteam-sec) { background: #fff; background-image: none; color: var(--text); }
.ep-paper-2 { background: var(--paper-2); }
.ep-dark .ep-eyebrow, .nx-dark .ep-eyebrow, .ep-hero .ep-eyebrow, .nx-dark .nx-eyebrow, .nx-ph .ep-eyebrow { color: var(--brand-deep); }
.ep-dark .ep-lead, .nx-dark .ep-lead, .nx-dark .nx-lead, .nx-dark .nx-small, .ep-dark .nx-small, .nx-dark .nx-stat__l, .ep-dark .nx-stat__l { color: var(--muted); }
.ep-dark .ep-link, .nx-dark .ep-link { color: var(--brand-deep); }
.ep-dark .ep-btn--ghost, .nx-dark .ep-btn--ghost, .nx-ph .ep-btn--ghost { --fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ep-dark .ep-btn:not(.ep-btn--light):not(.ep-btn--ghost):hover { color: #fff; }
.ep-dark .ep-field input, .ep-dark .ep-field textarea { background: #fff; color: var(--text); }
.ep-dark .ep-field label { color: var(--muted); }
.ep-dark .ep-pills li { background: var(--g-50); box-shadow: inset 0 0 0 1px var(--line); }
.nx-dark .nx-iconbtn, .ep-dark .nx-iconbtn { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.nx-dark .nx-badge, .ep-dark .nx-badge { background: var(--brand-50); color: var(--brand-deep); box-shadow: none; }
.nx-dark button.nx-chip, .nx-dark .nx-chip > span { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.nx-card--dark { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
a.nx-card--dark:hover, .nx-card--dark.nx-card--hover:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.nx-card--dark .nx-card__meta { color: var(--muted); }

/* ---- Neutralised AI-look utilities (deprecated: do not use in new markup) ---- */
.nx-aurora, .nx-aurora--soft, .nx-aurora--warm, .nx-mesh, .nx-orb, .ep-blob, .nx-gridlines, .ep-hover-img { display: none !important; animation: none !important; }
.nx-noise::after, .nx-spot::after, .nx-ph::after, .nx-ctab__card::after, .nx-glare::after, .nx-glow::before, .ep-fun-spot::after, .ep-dark.ep-fun-spot::after, .ep-cta::before { content: none !important; display: none !important; }
.nx-glowline { background: var(--line); }
.nx-grad-text, .nx-dark .nx-grad-text, .ep-dark .nx-grad-text, .nx-dark .nx-stat__n,
.ep-display em, .ep-h2 em, .ep-h3 em, .nx-display em, .nx-h2 em, .nx-ft__line em,
.ep-dark .ep-display em, .ep-dark .ep-h2 em, .ep-hero .ep-display em, .ep-hero .ep-h2 em, .nx-dark .ep-display em, .nx-dark .ep-h2 em, .nx-dark .nx-display em, .nx-dark .nx-h2 em, .nx-ph .ep-display em, .nx-ph--light .ep-display em,
em .ep-sw > span, em .ep-w > span {
    background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; font-style: normal;
}
.nx-grad-text, .nx-dark .nx-stat__n { color: inherit; }
.ep-display em, .ep-h2 em, .nx-display em, .nx-h2 em, .ep-dark .ep-display em, .ep-dark .ep-h2 em, .nx-dark .ep-display em, .nx-dark .ep-h2 em, .nx-ph .ep-display em { color: var(--brand); }
.nx-glass, .nx-glass--light { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
[data-tilt] { transform: none !important; }

/* ---- Type ---- */
.ep-display, .nx-display { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.ep-h2, .nx-h2 { font-weight: 600; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.ep-h3, .nx-h3 { font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.ep-lead, .nx-lead { color: var(--muted); line-height: 1.55; max-width: 60ch; }
/* Eyebrow: plain sentence-case label in brand blue. No mono, no glowing square. */
.ep-eyebrow, .nx-eyebrow { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand-deep); gap: 0; }
.ep-eyebrow::before, .nx-eyebrow::before, .ep-eyebrow.ep-fun-line::before { content: none; display: none; }
.nx-mono, .ep-mono { font-family: var(--sans); letter-spacing: 0; }
.nx-num, .nx-stat__n, .ep-figure__n, [data-count], td { font-variant-numeric: tabular-nums; }
.nx-num { font-family: var(--display); letter-spacing: -.02em; }

/* ---- Buttons: 48px default, 40px small; solid fills; 150-200ms ---- */
.ep-btn {
    --bg: var(--brand); --fg: #fff;
    min-height: 48px; padding: 0 22px; gap: 8px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; letter-spacing: -.005em;
    background: var(--bg); color: var(--fg); box-shadow: var(--shadow-1);
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform 150ms var(--ease-out);
}
.ep-btn::before { content: none; display: none; }
.ep-btn:hover { --bg: var(--brand-deep); transform: none; box-shadow: var(--shadow-2); }
.ep-btn:active { transform: translateY(1px); box-shadow: none; }
.ep-btn:hover svg:last-child { transform: translateX(2px); }
.ep-btn[disabled], .ep-btn[aria-disabled="true"], .ep-btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.ep-btn--glow { background: var(--bg); box-shadow: var(--shadow-1); }
.ep-btn--glow:hover { --bg: var(--brand-deep); box-shadow: var(--shadow-2); }
.ep-btn--light { --bg: #fff; --fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ep-btn--light:hover { --bg: var(--g-50); color: var(--text); box-shadow: inset 0 0 0 1px var(--g-400); }
.ep-btn--ghost { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ep-btn--ghost:hover { --bg: var(--g-50); box-shadow: inset 0 0 0 1px var(--g-400); }
.ep-btn--warm { --bg: var(--text); --fg: #fff; background: var(--bg); box-shadow: var(--shadow-1); }
.ep-btn--warm:hover { --bg: var(--ink-3); }
.ep-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ep-btn--lg { min-height: 48px; padding: 0 26px; font-size: 16px; }
.ep-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nx-iconbtn { width: 40px; height: 40px; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background var(--dur), box-shadow var(--dur); }
.nx-iconbtn:hover { background: var(--g-50); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ep-link { color: var(--brand-deep); text-underline-offset: 3px; }
.ep-link:hover { text-decoration: underline; }

/* ---- Fields, selects, chips, tabs, badges, tables ---- */
.nx-input, .nx-select, .nx-textarea {
    border-radius: var(--radius-sm); background-color: #fff; color: var(--text);
    border: 1px solid var(--line-strong); box-shadow: none; transition: border-color var(--dur), box-shadow var(--dur);
}
.nx-input, .nx-select { min-height: 48px; }
.nx-input:hover, .nx-select:hover, .nx-textarea:hover { border-color: var(--g-400); }
.nx-input:focus, .nx-select:focus, .nx-textarea:focus, .ep-field input:focus, .ep-field textarea:focus, .ep-field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.nx-input:disabled, .nx-select:disabled, .nx-textarea:disabled { background: var(--g-50); color: var(--g-500); cursor: not-allowed; }
.nx-label { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
button.nx-chip, .nx-chip > span { border-radius: var(--radius-pill); background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background var(--dur), box-shadow var(--dur), color var(--dur); }
button.nx-chip:hover, .nx-chip:hover > span { background: var(--g-50); }
button.nx-chip[aria-pressed="true"], .nx-chip input:checked + span, button.nx-chip.is-on { background: var(--text); color: #fff; box-shadow: none; }
.nx-tab { color: var(--muted); font-weight: 600; transition: color var(--dur), background var(--dur), box-shadow var(--dur); }
.nx-tab:hover { color: var(--text); }
.nx-tab[aria-selected="true"], .nx-tab.is-active { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
.nx-badge--live, .nx-badge--ok { background: #e7f6ef; color: var(--ok); box-shadow: none; }
.nx-badge--warm { background: #fdf2e3; color: var(--warm); box-shadow: none; }
.nx-badge--muted, .ep-badge--muted { background: var(--g-100); color: var(--g-600); box-shadow: none; }
.nx-table-wrap { border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.nx-table th { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); background: var(--g-50); }
.nx-table td, .nx-table th { border-color: var(--line); }

/* ---- Cards: hairline; soft shadow only on hover for links. No tilt/lift theatrics. ---- */
.nx-card { background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
a.nx-card:hover, .nx-card--hover:hover, .nx-lift:hover, a.ep-card:hover, .ep-card:hover, .ep-bcard:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.ep-card:hover img, .ep-bcard:hover img, .ep-photo:hover img { transform: none; }
.ep-photo { background: var(--g-100); border-radius: var(--radius); }

/* ---- Dialogs ---- */
.nx-dialog { border-radius: var(--radius); background: #fff; color: var(--text); box-shadow: var(--shadow-3); border: 0; }
.nx-dialog::backdrop { background: rgba(11, 18, 32, .45); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- Header: white bar, hairline bottom, dark text ---- */
.ep-header { color: var(--text); }
.ep-header__row, .ep-header.is-scrolled .ep-header__row {
    background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: inset 0 -1px 0 var(--line);
}
.ep-header.is-scrolled .ep-header__row { box-shadow: inset 0 -1px 0 var(--line), 0 4px 16px -12px rgba(11, 18, 32, .25); }
.ep-burger { color: var(--text); background: #fff; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.is-menu-open .ep-burger { background: var(--g-50); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nx-hd__search { color: var(--muted); background: var(--g-50); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.nx-hd__search:hover { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.ep-cur select { color: var(--text); font-family: var(--sans); border-radius: var(--radius-sm); background-color: #fff; box-shadow: inset 0 0 0 1px var(--line);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23556070' stroke-width='1.6'/%3E%3C/svg%3E"); }
.ep-cur select:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.ep-header__portal { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius-sm); }
.ep-header__portal:hover { color: var(--text); background: var(--g-50); }
@media (min-width: 1200px) {
    .ep-header, .ep-header { padding: 0; pointer-events: auto; }
    .ep-header__row { height: var(--header-h); max-width: none; border-radius: 0; }
    .ep-header__bar { max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
    .ep-logo { padding-left: 0; }
    .ep-nav > a, .ep-nav__more-btn { color: var(--g-600); border-radius: var(--radius-sm); min-height: 40px; }
    .ep-nav > a:hover, .ep-nav__more-btn:hover, .ep-nav__more-btn[aria-expanded="true"] { color: var(--text); background: var(--g-50); }
    .ep-nav > a[aria-current="page"], .ep-nav__more-btn[data-current] { color: var(--text); }
    .ep-nav > a[aria-current="page"]::after, .ep-nav__more-btn[data-current]::after { background: var(--brand); box-shadow: none; bottom: 2px; }
}
@media (min-width: 1200px) and (max-height: 760px) { .ep-header { padding-top: 0; } .ep-header__row { height: var(--header-h); } }

/* Mega panels */
.ep-nav__panel { color: var(--text); background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-3); }
.nx-mega__card { color: var(--text); border-radius: var(--radius-sm); }
.nx-mega__card:hover, .nx-mega__card[aria-current="page"] { background: var(--g-50); }
.nx-mega__card small { color: var(--muted); }
.nx-mega__ic, .nx-mega__card:hover .nx-mega__ic, .nx-mega__card[aria-current="page"] .nx-mega__ic { background: var(--g-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius-sm); }
.nx-mega__no { font-family: var(--sans); }
.nx-mega__foot { border-top-color: var(--line); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand-deep); }
.nx-mega__foot:hover, .nx-mega__foot[aria-current="page"] { color: var(--text); }
.nx-mega__tile { border-radius: var(--radius-sm); }
.nx-mega__tile:hover, .nx-mega__tile[aria-current="page"] { box-shadow: 0 0 0 2px var(--brand); }
.nx-mega__links a { color: var(--text); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.nx-mega__links a:hover, .nx-mega__links a[aria-current="page"] { background: var(--g-50); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nx-mega__links svg { color: var(--brand); }

/* Phone menu: white sheet */
.ep-menu { color: var(--text); background: #fff; }
.nx-menu__search { color: var(--muted); background: var(--g-50); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.nx-menu__search svg { color: var(--muted); }
.ep-menu__list > li { border-bottom-color: var(--line); }
.ep-menu__list > li > a[aria-current="page"] { color: var(--brand-deep); }
.ep-menu__list > li > a[aria-current="page"]::before { background: var(--brand); box-shadow: none; border-radius: 50%; width: 6px; height: 6px; }
.ep-menu__head { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ep-menu__list .ep-menu__sub a { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ep-menu__list .ep-menu__sub a[aria-current="page"] { color: #fff; background: var(--text); }
.ep-menu__foot a:not(.ep-btn) { color: var(--muted); }
.ep-menu__foot .ep-menu__quick a { color: var(--text); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ep-menu__row .ep-socials a { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }

/* Command palette */
.nx-cmd { color: var(--text); background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: var(--radius); box-shadow: var(--shadow-3); }
.nx-cmd::backdrop { background: rgba(11, 18, 32, .4); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nx-cmd__bar { border-bottom-color: var(--line); }
.nx-cmd__bar > svg, .nx-cmd__item > svg:first-child, .nx-cmd__item .ep-arrow { color: var(--muted); }
.nx-cmd__input { color: var(--text); }
.nx-cmd__input::placeholder, .nx-cmd__close, .nx-cmd__item small, .nx-cmd__note, .nx-cmd__empty { color: var(--muted); }
.nx-cmd__head { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.nx-cmd__item { color: var(--text); border-radius: var(--radius-sm); }
.nx-cmd__item:hover, .nx-cmd__item.is-active { background: var(--g-50); box-shadow: none; }

/* ---- Page hero (partials/page-hero): white, crumbs + big title + one line ---- */
.ep-ph.nx-ph, .nx-ph--light.ep-ph { background: #fff; color: var(--text); padding: calc(var(--header-h) + clamp(32px, 6vh, 64px)) 0 clamp(32px, 5vh, 56px); border-bottom: 1px solid var(--line); }
.nx-ph::before { content: none; display: none; }
.nx-ph .ep-ph__title, .nx-ph--light .ep-ph__title { color: var(--text); max-width: 18ch; }
.nx-ph .ep-lead { color: var(--muted); }
.nx-ph .ep-crumbs { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.nx-ph .ep-crumbs a { color: var(--muted); }
.nx-ph .ep-crumbs a:hover { color: var(--text); }
.nx-ph .ep-ph__photos img { box-shadow: 0 0 0 3px #fff; }

/* ---- CTA band: the one dark accent card (flat ink, no aurora/glow/photo) ---- */
.ep-cta, .ep-cta.nx-ctab__card { background: var(--ink); background-image: none; color: #fff; border-radius: var(--radius); box-shadow: none; }
.ep-cta .ep-h2 { color: #fff; }
.ep-cta .ep-eyebrow { color: var(--sky); }
.ep-cta .ep-lead { color: var(--muted-on-ink); }
.ep-cta .ep-h2 em { color: var(--sky); }
.ep-cta .ep-btn--ghost { --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.ep-cta .ep-btn--ghost:hover { --bg: rgba(255, 255, 255, .08); }
.ep-cta .ep-btn:not(.ep-btn--ghost):not(.ep-btn--light) { --bg: #fff; --fg: var(--text); }
.ep-cta .ep-btn:not(.ep-btn--ghost):not(.ep-btn--light):hover { --bg: var(--g-100); color: var(--text); }

/* ---- Footer: solid ink, quiet. No aurora, no flight path. ---- */
.ep-footer { background: var(--ink); }
.ep-footer .ep-fun-fly { display: none; }
.nx-ft__line { letter-spacing: -.035em; line-height: 1.05; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); }
.nx-ft__line em, .ep-footer em { color: var(--sky); }
.ep-footer h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; }
.ep-footer__links a { color: var(--muted-on-ink); }
.ep-footer__links a:hover { color: #fff; transform: none; }
.ep-socials a { border-radius: var(--radius-sm); }
.ep-socials a:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); transform: none; }
.ep-footer__bottom { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.ep-footer .ep-btn:not(.ep-btn--ghost) { --bg: #fff; --fg: var(--text); }
.ep-footer .ep-btn:not(.ep-btn--ghost):hover { --bg: var(--g-100); color: var(--text); }

/* ---- Progress bar: thin brand line ---- */
.ep-progress i { background: var(--brand) !important; box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) { .ep-btn, .nx-card, .ep-card { transition: none; } }
.nx-dark .nx-label, .ep-dark .nx-label { color: var(--text); }
.nx-dark .nx-input, .nx-dark .nx-select, .nx-dark .nx-textarea, .ep-dark .nx-input, .ep-dark .nx-select, .ep-dark .nx-textarea { background-color: #fff; color: var(--text); box-shadow: none; }
/* v4 safety net: titles inside any page hero read dark on the white band */
.ep-ph.nx-ph :is(h1, h2), .ep-ph.nx-ph :is(h1, h2) * { color: var(--text); -webkit-text-fill-color: currentColor; }
.ep-ph.nx-ph :is(h1, h2) em, .ep-ph.nx-ph :is(h1, h2) em * { color: var(--brand); }

/* v4 QA: CTA card emphasis is always solid and readable (no gradient/transparent text). */
.ep-cta h2 em, .nx-ctab h2 em { color: var(--sky); -webkit-text-fill-color: currentColor; background: none; }
/* v4 QA: no gradient text anywhere. The legacy gradient tokens become solid fills, so every
   background-clip:text rule still renders as one flat colour (sky on dark, brand on light). */
:root { --grad-text: linear-gradient(var(--sky), var(--sky)); --grad-text-ink: linear-gradient(var(--brand), var(--brand)); }
.nx-ph:not(.nx-dark) .ep-display em, .nx-ph:not(.nx-dark) .ep-h2 em { color: var(--brand); background: none; -webkit-text-fill-color: currentColor; }

/* ==========================================================================
   v5 "PASSPORT COLOURS" (2026-11-18, design lead). Supersedes v4 (the flat pass).
   White base; brand blue anchors; every destination owns one colour (field + tint);
   sun-yellow stamps; Bricolage Grotesque display + Inter UI. Depth = layered photos,
   ticket corners, tinted bands, dotted DAC routes, boarding-pass tickets.
   Spec: scratchpad/old-design-system.md "v5 — Passport Colours".
   ========================================================================== */
:root {
    --brand: #1240c8; --brand-deep: #0d32a3; --brand-50: #eef2fd; --brand-100: #dbe4fb; --sky: #ffc83d;
    --ink: #111318; --text: #111318; --ink-2: #2a2e38; --ink-3: #3a3f4b; --void: #111318;
    --muted: #4a4f5c; --line: #e6e7eb; --line-strong: #cfd2d9;
    --sun: #ffc83d; --sun-tint: #fff4d1;
    --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", sans-serif;
    --serif: var(--display);
    --radius-xs: 10px; --radius-sm: 10px; --radius: 18px; --radius-lg: 32px; --radius-pill: 999px;
    --shadow-1: 0 1px 2px rgba(17, 19, 24, .06);
    --shadow-2: 0 10px 30px -12px rgba(17, 19, 24, .22);
    --shadow-3: 0 24px 48px -20px rgba(17, 19, 24, .35);
    --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur: 220ms;
    --fs-display: clamp(2.75rem, 1.2rem + 5vw, 6rem);
    --fs-h1: clamp(2.5rem, 1.2rem + 4vw, 5rem);
    --fs-h2: clamp(2rem, 1.1rem + 2.8vw, 3.5rem);
    --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.75rem);
    /* country colour system: field (--c), tint (--c-tint), text on field (--c-on) */
    --c: var(--brand); --c-tint: var(--brand-50); --c-on: #fff;
}
@media (max-height: 760px) and (min-width: 960px) {
    :root { --fs-display: clamp(2.5rem, 1rem + 3.8vw, 4.5rem); --fs-h1: clamp(2.25rem, 1rem + 3vw, 3.75rem); --fs-h2: clamp(1.9rem, 1rem + 2vw, 3rem); }
}
.v5-c--malaysia, [data-country="malaysia"] { --c: #0e7c5a; --c-tint: #e3f4ec; --c-on: #fff; }
.v5-c--cyprus, [data-country="cyprus"] { --c: #e2552b; --c-tint: #fde9e1; --c-on: #111318; }
.v5-c--uk, [data-country="uk"] { --c: #1f2a6b; --c-tint: #e6e8f5; --c-on: #fff; }
.v5-c--canada, [data-country="canada"] { --c: #c8102e; --c-tint: #fbe4e7; --c-on: #fff; }
.v5-c--usa, [data-country="usa"] { --c: #2b5bd7; --c-tint: #e5ecfb; --c-on: #fff; }
.v5-c--korea, [data-country="korea"] { --c: #7a3fb0; --c-tint: #f0e8f8; --c-on: #fff; }
.v5-c--brand { --c: var(--brand); --c-tint: var(--brand-50); --c-on: #fff; }
.v5-c--sun { --c: var(--sun); --c-tint: var(--sun-tint); --c-on: var(--ink); }

body { background: #fff; color: var(--text); font-family: var(--sans); }
::selection { background: var(--sun); color: var(--ink); }

/* ---- Type: big, short, heavy display ---- */
.ep-display, .nx-display, .ep-h2, .nx-h2, .ep-h3, .nx-h3 { font-family: var(--display); font-optical-sizing: auto; }
.ep-display, .nx-display { font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.ep-h2, .nx-h2 { font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.ep-h3, .nx-h3 { font-weight: 700; letter-spacing: -.015em; }
/* emphasis word: solid brand with a sun marker underneath (never gradient text) */
.ep-display em, .ep-h2 em, .nx-display em, .nx-h2 em, .nx-ph .ep-display em, .ep-ph.nx-ph :is(h1, h2) em {
    font-style: normal; color: var(--brand); -webkit-text-fill-color: currentColor;
    background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 88% / 100% .16em; padding-inline: .04em;
}
.ep-eyebrow, .nx-eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--brand)); display: inline-flex; align-items: center; gap: 8px; }
.ep-eyebrow::before, .nx-eyebrow::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 2px dotted currentColor; }
.nx-num, .nx-stat__n, .ep-figure__n { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; }

/* ---- Buttons: pill, 52px, arrow slides, press squish ---- */
.ep-btn { min-height: 52px; padding: 0 24px; border-radius: var(--radius-pill); font-weight: 600; box-shadow: none;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 160ms var(--ease); }
.ep-btn:hover { --bg: var(--brand-deep); box-shadow: 0 8px 20px -10px rgba(18, 64, 200, .55); }
.ep-btn:active { transform: scale(.97); }
.ep-btn svg { transition: transform var(--dur) var(--ease); }
.ep-btn:hover svg:last-child { transform: translateX(4px); }
.ep-btn--ghost { --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ep-btn--ghost:hover { --bg: var(--ink); --fg: #fff; color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ep-btn--light { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ep-btn--warm { --bg: var(--sun); --fg: var(--ink); }
.ep-btn--warm:hover { --bg: #f5b81c; color: var(--ink); }
.ep-btn--sm { min-height: 40px; padding: 0 16px; }
.ep-btn--lg { min-height: 56px; padding: 0 28px; }
.ep-link { color: var(--brand); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size var(--dur) var(--ease); }
.ep-link:hover { text-decoration: none; background-size: 100% 2px; }

/* ---- Fields, chips, tabs ---- */
.nx-input, .nx-select { min-height: 52px; }
.nx-input, .nx-select, .nx-textarea { border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.nx-input:focus, .nx-select:focus, .nx-textarea:focus, .ep-field input:focus, .ep-field textarea:focus, .ep-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
button.nx-chip, .nx-chip > span { box-shadow: inset 0 0 0 1.5px var(--line); transition: background var(--dur), box-shadow var(--dur), transform 160ms var(--spring); }
button.nx-chip:hover, .nx-chip:hover > span { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
button.nx-chip:active, .nx-chip:active > span { transform: scale(.95); }
button.nx-chip[aria-pressed="true"], .nx-chip input:checked + span, button.nx-chip.is-on { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.nx-tab[aria-selected="true"], .nx-tab.is-active { color: var(--c-on, #fff); background: var(--c, var(--brand)); box-shadow: none; }
.nx-table tbody tr { transition: background var(--dur); }
.nx-table tbody tr:hover { background: var(--c-tint, var(--brand-50)); }

/* ---- Cards: alive again. Lift + photo zoom ---- */
.nx-card { border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
a.nx-card, .nx-card--hover, .nx-lift, a.ep-card, .ep-card, .ep-bcard { transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
a.nx-card:hover, .nx-card--hover:hover, .nx-lift:hover, a.ep-card:hover, .ep-card:hover, .ep-bcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-3); }
.ep-card img, .ep-bcard img, .ep-photo img { transition: transform 600ms var(--ease); }
.ep-card:hover img, .ep-bcard:hover img, .ep-photo:hover img { transform: scale(1.05); }
.ep-photo { border-radius: var(--radius-lg); overflow: hidden; }

/* ---- v5 primitives (new markup) ---- */
/* Tinted band: a soft colour panel on the white page (rounded inset, never full-bleed dark) */
.v5-band { background: var(--c-tint); border-radius: var(--radius-lg); margin-inline: clamp(8px, 1.5vw, 24px); padding-block: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.v5-band--dots { background-image: radial-gradient(color-mix(in srgb, var(--c) 22%, transparent) 1.2px, transparent 1.4px); background-size: 18px 18px; background-color: var(--c-tint); }
/* Colour field: a full-strength country/brand block with text in --c-on */
.v5-field { background: var(--c); color: var(--c-on); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
/* Ticket corner media: radius on three corners, one square (graft from "The Atlas") */
.v5-tc { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px; overflow: hidden; }
/* Layered photo stack: up to 3 photos fanned with white frames */
.v5-stack { position: relative; display: grid; place-items: center; min-height: clamp(180px, 22vw, 300px); }
.v5-stack img { grid-area: 1 / 1; width: min(46%, 220px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 5px #fff, var(--shadow-3); transition: transform 500ms var(--spring); }
.v5-stack img:nth-child(1) { transform: rotate(-7deg) translateX(-42%); }
.v5-stack img:nth-child(2) { transform: rotate(5deg) translateX(42%) translateY(6%); }
.v5-stack img:nth-child(3) { transform: rotate(-1deg) translateY(-4%); }
.v5-stack:hover img:nth-child(1) { transform: rotate(-11deg) translateX(-56%); }
.v5-stack:hover img:nth-child(2) { transform: rotate(9deg) translateX(56%) translateY(4%); }
/* Passport stamp: sun or country colour, rotated, thumps in once */
.v5-stamp { display: inline-grid; place-items: center; min-width: 108px; min-height: 108px; padding: 14px; border-radius: 50%; background: var(--sun); color: var(--ink);
    font: 800 12px/1.15 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-align: center; transform: rotate(-10deg);
    box-shadow: inset 0 0 0 3px var(--sun), inset 0 0 0 5px var(--ink), inset 0 0 0 8px var(--sun); }
.v5-stamp--c { background: var(--c); color: var(--c-on); box-shadow: inset 0 0 0 3px var(--c), inset 0 0 0 5px var(--c-on), inset 0 0 0 8px var(--c); }
.v5-stamp--pill { min-height: 0; min-width: 0; border-radius: var(--radius-pill); padding: 8px 14px; transform: rotate(-4deg); font-size: 12px; }
.ep-mo .is-in .v5-stamp, .ep-mo .v5-stamp.is-in, .v5-stamp.v5-thump { animation: v5-thump 520ms var(--spring) both; }
@keyframes v5-thump { 0% { transform: rotate(-10deg) scale(1.8); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-10deg) scale(1); opacity: 1; } }
/* Boarding-pass ticket: main part + stub split by a perforated tear line with punched notches */
.v5-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-3); }
.v5-ticket__main { padding: clamp(16px, 2vw, 24px); min-width: 0; }
.v5-ticket__stub { position: relative; padding: clamp(16px, 2vw, 24px); display: grid; align-content: center; gap: 8px; border-left: 2px dashed var(--line-strong); }
.v5-ticket__stub::before, .v5-ticket__stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--notch, #fff); }
.v5-ticket__stub::before { top: -10px; }
.v5-ticket__stub::after { bottom: -10px; }
.v5-code { font: 800 clamp(1.5rem, 1rem + 1.4vw, 2.25rem)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
    .v5-ticket { grid-template-columns: 1fr; }
    .v5-ticket__stub { border-left: 0; border-top: 2px dashed var(--line-strong); }
    .v5-ticket__stub::before, .v5-ticket__stub::after { top: -11px; bottom: auto; }
    .v5-ticket__stub::before { left: -10px; }
    .v5-ticket__stub::after { left: auto; right: -10px; }
}
/* Dotted DAC route: an SVG path (pathLength="1") with a dotted stroke */
.v5-route path, .v5-ph__route path, .v5-block__route path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 .016; }
.ep-mo .v5-ph__route path, .ep-mo .v5-block__route path, .ep-mo .v5-route path { animation: v5-dash 26s linear infinite; }
@keyframes v5-dash { to { stroke-dashoffset: -1; } }
/* Country pill (flag + name, fills with the country colour on hover) */
.v5-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none;
    box-shadow: inset 0 0 0 1.5px var(--line); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 200ms var(--spring); }
.v5-pill img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }
.v5-pill:hover, .v5-pill[aria-current="page"] { background: var(--c); color: var(--c-on); box-shadow: none; transform: translateY(-2px); }
/* Giant faded code behind a field (e.g. "MY") */
.v5-ghost { position: absolute; right: -.06em; bottom: -.18em; font: 800 clamp(6rem, 18vw, 16rem)/1 var(--display); letter-spacing: -.05em; color: currentColor; opacity: .12; pointer-events: none; user-select: none; }
/* Fanned photo pair (CTA blocks): fans apart on hover */
.v5-fan { position: relative; display: grid; place-items: center; min-height: 220px; }
.v5-fan img { grid-area: 1 / 1; width: clamp(130px, 13vw, 190px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 5px #fff, var(--shadow-3); transition: transform 520ms var(--spring); }
.v5-fan img:nth-child(1) { transform: rotate(-8deg) translateX(-30%); }
.v5-fan img:nth-child(2) { transform: rotate(6deg) translateX(30%) translateY(8%); }
.v5-fan .v5-stamp { position: absolute; right: 0; top: 0; z-index: 2; }
.v5-block:hover .v5-fan img:nth-child(1) { transform: rotate(-12deg) translateX(-44%); }
.v5-block:hover .v5-fan img:nth-child(2) { transform: rotate(10deg) translateX(44%) translateY(4%); }

/* ---- Header: white, pill hovers, sun underline on the current page ---- */
.ep-header__row, .ep-header.is-scrolled .ep-header__row { background: rgba(255, 255, 255, .98); }
@media (min-width: 1200px) {
    .ep-nav > a, .ep-nav__more-btn { color: var(--ink-2); font-weight: 500; border-radius: var(--radius-pill); }
    .ep-nav > a:hover, .ep-nav__more-btn:hover, .ep-nav__more-btn[aria-expanded="true"] { background: var(--brand-50); color: var(--brand); }
    .ep-nav > a[aria-current="page"]::after, .ep-nav__more-btn[data-current]::after { background: var(--sun); height: 3px; border-radius: 3px; }
}
.ep-nav__panel { border-radius: 22px; }
.nx-mega__tile { border-radius: var(--radius-sm); transition: transform 240ms var(--spring), box-shadow var(--dur); }
.nx-mega__tile:hover, .nx-mega__tile[aria-current="page"] { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--sun); }
.nx-mega__ic, .nx-mega__card:hover .nx-mega__ic { border-radius: 12px; background: var(--brand-50); color: var(--brand); box-shadow: none; transition: transform 240ms var(--spring), background var(--dur); }
.nx-mega__card:hover .nx-mega__ic { transform: rotate(-6deg) scale(1.08); background: var(--sun); color: var(--ink); }
.ep-menu__list .ep-menu__sub a[aria-current="page"] { background: var(--brand); }

/* ---- Page hero: white page, tinted rounded band, dotted route, photo stack ---- */
.ep-ph.nx-ph.v5-ph { background: #fff; border-bottom: 0; padding: calc(var(--header-h) + clamp(10px, 2vh, 20px)) clamp(8px, 1.5vw, 24px) clamp(16px, 3vh, 32px); position: relative; }
.v5-ph > .ep-container { position: relative; background: var(--c-tint); border-radius: var(--radius-lg); padding: clamp(28px, 5vh, 64px) clamp(20px, 4vw, 56px); max-width: none; overflow: hidden; }
.v5-ph .ep-ph__grid { display: grid; gap: 24px; align-items: center; max-width: var(--max, 1240px); margin-inline: auto; position: relative; z-index: 1; }
@media (min-width: 900px) { .v5-ph.v5-ph--photos .ep-ph__grid, .v5-ph.ep-ph--side .ep-ph__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.v5-ph .ep-ph__title { max-width: 16ch; margin: 8px 0 0; }
.v5-ph .ep-lead { margin-top: 12px; color: var(--ink-2); }
.v5-ph .ep-crumbs a { color: var(--ink-2); }
.v5-ph__route { position: absolute; z-index: 2; pointer-events: none; color: var(--c); opacity: .5; left: 38%; right: 3%; top: calc(var(--header-h) + 14px); height: clamp(110px, 18vh, 190px); width: auto; }
.nx-ph--light.v5-ph > .ep-container { padding-block: clamp(24px, 4vh, 44px); }
@media (max-width: 899px) { .v5-ph__route { left: 30%; opacity: .3; } .v5-ph .v5-stack { min-height: 170px; } }

/* ---- CTA band + footer CTA: brand-blue colour block with fanned photos ---- */
.ep-cta.v5-block, .ep-footer__big.v5-block { position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); box-shadow: none; text-align: left; }
@media (min-width: 900px) { .ep-cta.v5-block, .ep-footer__big.v5-block { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.v5-block .ep-h2, .v5-block .nx-ft__line { color: #fff; margin: 8px 0 12px; }
.v5-block .ep-h2 em, .v5-block .nx-ft__line em, .ep-cta.v5-block h2 em { color: var(--ink); -webkit-text-fill-color: currentColor; background: var(--sun); padding: 0 .12em; border-radius: 6px; font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.v5-block .ep-eyebrow { color: var(--sun); }
.v5-block .ep-lead { color: rgba(255, 255, 255, .88); margin-bottom: 20px; }
.v5-block .ep-btn:not(.ep-btn--ghost) { --bg: var(--sun); --fg: var(--ink); color: var(--ink); }
.v5-block .ep-btn:not(.ep-btn--ghost):hover { --bg: #fff; color: var(--ink); }
.v5-block .ep-btn--ghost { --fg: #fff; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.v5-block .ep-btn--ghost:hover { --bg: #fff; --fg: var(--brand); color: var(--brand); }
.v5-block__route { position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; color: rgba(255, 255, 255, .4); pointer-events: none; }
.v5-block > :not(.v5-block__route) { position: relative; z-index: 1; }
@media (max-width: 899px) { .v5-block .v5-fan { min-height: 190px; } }
@media (max-width: 599px) { .v5-block .v5-fan { display: none; } }

/* ---- Footer: white, blue CTA block, country pills, hairline columns, big faint wordmark ---- */
.ep-footer.nx-ft { background: #fff; color: var(--ink); padding-top: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; border-top: 0; }
.ep-footer.nx-ft::after { content: "Epal Global"; position: absolute; left: 50%; bottom: -.2em; transform: translateX(-50%); white-space: nowrap; font: 800 clamp(4rem, 15vw, 15rem)/1 var(--display); letter-spacing: -.05em; color: var(--brand-50); pointer-events: none; z-index: 0; }
.ep-footer.nx-ft > .ep-container { position: relative; z-index: 1; }
.nx-ft__line { font-family: var(--display); font-weight: 800; }
.v5-ft__pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: clamp(20px, 3vw, 32px) 0 0; }
.ep-footer h4 { color: var(--ink); font-family: var(--display); font-size: 16px; font-weight: 700; }
.ep-footer__cols { border-top: 1px solid var(--line); margin-top: clamp(24px, 3vw, 40px); }
.ep-footer__brand p, .nx-ft__addr { color: var(--muted); }
.ep-footer__links a { color: var(--ink-2); }
.ep-footer__links a:hover { color: var(--brand); }
.ep-footer .ep-socials a { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 200ms var(--spring), background var(--dur), color var(--dur); }
.ep-footer .ep-socials a:hover { background: var(--brand); color: #fff; box-shadow: none; transform: translateY(-2px) rotate(-6deg); }
.ep-footer__bottom { color: var(--muted); border-top-color: var(--line); }
.ep-footer__bottom a { color: var(--muted); }
.ep-footer__bottom a:hover { color: var(--ink); }
.ep-footer .ep-btn:not(.ep-btn--ghost) { --bg: var(--sun); --fg: var(--ink); color: var(--ink); }

/* ---- Progress + phone dock ---- */
.ep-progress i { background: var(--sun) !important; }

@media (prefers-reduced-motion: reduce) {
    .v5-stack img, .v5-fan img, .v5-pill, .nx-mega__tile, .nx-mega__ic, .ep-card, .nx-card, .ep-btn { transition: none !important; }
    .v5-stamp, .v5-ph__route path, .v5-block__route path, .v5-route path { animation: none !important; }
    a.nx-card:hover, .ep-card:hover, .ep-bcard:hover, .v5-pill:hover, .ep-card:hover img, .ep-photo:hover img { transform: none; }
}
.v5-stamp:not(.v5-stamp--pill) { aspect-ratio: 1; }
.v5-fan .v5-stamp { width: 112px; height: 112px; min-width: 0; min-height: 0; font-size: 11px; }
.ep-cta.v5-block .ep-btn:not(.ep-btn--ghost):not(.ep-btn--light), .ep-footer .v5-block .ep-btn:not(.ep-btn--ghost) { --bg: var(--sun); --fg: var(--ink); color: var(--ink); }
.ep-cta.v5-block .ep-btn:not(.ep-btn--ghost):not(.ep-btn--light):hover { --bg: #fff; }
.v5-block .ep-btn { white-space: nowrap; }

/* Titling: title | brand bar | subtitle (owner direction 2026-11-18) */
@media (min-width: 900px) {
    .nx-head--split, .hm-head { display: flex !important; justify-content: flex-start !important; align-items: center !important; flex-wrap: nowrap; gap: clamp(24px, 3vw, 40px) !important; }
    .nx-head--split > :first-child, .hm-head > :first-child { flex: 0 1 auto; }
    .nx-head--split > .ep-lead, .hm-head > .ep-lead { flex: 0 1 44ch; max-width: 44ch !important; margin: 0; padding: 6px 0 6px clamp(20px, 2.4vw, 32px); border-left: 4px solid var(--brand, #1240c8); color: var(--text, #111318); font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; line-height: 1.45; align-self: center; }
}
@media (max-width: 899px) {
    .nx-head--split > .ep-lead, .hm-head > .ep-lead { padding-left: 14px; border-left: 3px solid var(--brand, #1240c8); }
}
