/* ==========================================================================
   EdgeBefore, theme X: dark cinematic look
   A layer on top of style.css. Delete the <link> to css/theme-x.css (and js/hero3d.js) in src/layout.html to go back
   to the earlier light look. Inspired by the structure of modern AI-education sites: near-black canvas, slim left icon
   rail, a full-bleed 3D hero, poster banners, white form cards that pop against black. No third-party assets.
   ========================================================================== */
:root {
  --cream: #060607; --cream-2: #0c0d10; --paper: #101216;
  --ink: #f4f4f2; --ink-2: #cfd0d3; --muted: #8e9199;
  --line: rgba(255,255,255,.1); --line-strong: rgba(255,255,255,.2);
  --acc: #3b6dff; --acc-2: #6f95ff; --rail: 86px;
  --sky-deep: #8db9e6;           /* readable on dark */
  --olive-deep: #b6c98a;
  --forest: #bfe0cc;             /* was a dark green used for text/accents */
}
body { background: #060607; color: var(--ink); }
body::before { mix-blend-mode: screen; opacity: .05; }
::selection { background: var(--gold); color: #0c0d0e; }
:focus-visible { outline-color: var(--acc-2); }

/* ----- light islands: forms, dialogs and the demo mock keep the paper look so they pop on black ----- */
.form-card, dialog.enrol .form-card, .site-mock {
  --cream: #fbf9f3; --cream-2: #f4f0e6; --paper: #fff; --ink: #0c0d0e; --ink-2: #2b2d2c; --muted: #6a6e68;
  --line: rgba(12,13,14,.12); --line-strong: rgba(12,13,14,.18); --sky-deep: #2c74b3; --olive-deep: #4e5b2e; --forest: #2c4a3b;
  color: #0c0d0e;
}
.form-card .btn-primary { background: #0c0d0e; box-shadow: none; }
.form-card .btn-primary:hover { background: #26282b; }
.form-card .btn-ghost { background: #fff; color: #0c0d0e; border-color: rgba(12,13,14,.18); }

/* ----- buttons ----- */
.btn-primary { background: var(--acc); color: #fff; box-shadow: 0 12px 34px -12px rgba(59,109,255,.75), 0 0 0 1px rgba(255,255,255,.08) inset; }
.btn-primary:hover { background: var(--acc-2); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.13); }
.btn-light { background: #fff; color: #0c0d0e; }

/* ----- text accents ----- */
.grad-text { background-image: linear-gradient(95deg, #a9cdf0 0%, #f5b84a 55%, #cfe09f 100%) !important; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.eyebrow { color: #aeb3bd; }
.lead { color: var(--ink-2); }

/* ----- surfaces that were white are now glass ----- */
.pill, .chip, .strip, .compare, .chip-f, .trk, .follow-row, .featured-cta, .stack-chips span, .tool-grid > div, .comm,
.callout, .table-wrap, .contact-list a, .contact-list div.c, .sess, .steps-list li, .tools-row span, .who-line span,
.news-card, .course, .compare .r, .x-card, .m-tab.on, .nav-more-menu, .bar, .marquee-wrap, .card {
  background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink);
}
.card { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); }
.card:hover { box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(59,109,255,.4); border-color: rgba(111,149,255,.55); }
.chip-f:hover, .btn-ghost:hover { background: rgba(255,255,255,.12); }
.chip-f.on { background: #fff; color: #0c0d0e; border-color: #fff; }
.news-card:hover { border-color: rgba(111,149,255,.6); box-shadow: 0 24px 60px -28px rgba(0,0,0,.9); }
.compare .r.h > div, .prose th { background: rgba(255,255,255,.05); color: var(--ink); }
.compare .r.total { background: rgba(245,184,74,.1); }
.marquee-wrap { background: rgba(255,255,255,.025); border-color: var(--line); }
.tint { background: linear-gradient(180deg, #0a0b0e, #0c0e12); }
.dark { background: #040405; }
.mobile-menu { background: #060607; }
.faq summary i { border-color: var(--line-strong); } .faq summary i::before, .faq summary i::after { background: var(--ink); }
.faq details[open] summary i { background: #fff; } .faq details[open] summary i::before, .faq details[open] summary i::after { background: #0c0d0e; }
.badge { background: rgba(255,255,255,.07); color: var(--ink); border-color: var(--line-strong); }
.badge.green { background: rgba(165,200,120,.14); color: #c3dc98; border-color: rgba(165,200,120,.35); }
.badge.blue { background: rgba(111,149,255,.16); color: #b5c9ff; border-color: rgba(111,149,255,.4); }
.pill { background: rgba(255,255,255,.07); color: #fff; backdrop-filter: blur(10px); }
.pill .tag { background: #fff; color: #0c0d0e; }
.hero-trust { color: #9a9ea6; }
.hero-trust svg, .hero-trust svg.i { color: #9fd08a; }
.prose h2, .prose p, .prose li { color: var(--ink-2); } .prose h2 { color: var(--ink); }
.prose code { background: rgba(255,255,255,.08); }
.preview-note { background: rgba(245,184,74,.12); color: #f0c878; }
.news-time, .news-card p { color: var(--muted); }
.news-src { color: #9fc4ff; }
.tool-tag { background: rgba(245,184,74,.2); color: #f5cf86; }
.nav-more-menu a:hover, .nav-more-menu a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.track-hero .track-badge { background: rgba(255,255,255,.06); }

/* ----- announcement bar ----- */
.announce { background: #0a0b0d; border-bottom: 1px solid var(--line); }

/* ----- top nav (phones / tablets: the earlier pill, now dark) ----- */
.nav { background: rgba(10,11,14,.78); border-color: var(--line); }
.nav.scrolled { background: rgba(10,11,14,.92); box-shadow: 0 14px 44px -18px rgba(0,0,0,.9); }
.nav-links a, .nav-more-btn { color: #b4b7bf; }
.nav-links a:hover, .nav-more-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a[aria-current="page"], .nav-more.open .nav-more-btn { background: rgba(255,255,255,.1); color: #fff; }
.nav-links a svg.i { display: none; }
.nav-more-btn svg.i:not(.chev) { display: none; }
.brand svg { filter: drop-shadow(0 0 10px rgba(245,184,74,.4)); }
.nav .is-cta { background: var(--acc); color: #fff; }

/* ----- left icon rail (desktop) ----- */
@media (min-width: 1021px) {
  body { padding-left: var(--rail); }
  .nav-shell { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); padding: 0; z-index: 95; }
  .nav {
    width: 100%; height: 100%; border-radius: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    padding: 16px 9px 14px; background: #040405; border: 0; border-right: 1px solid var(--line); box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; overflow-y: auto; overflow-x: visible; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .brand { flex-direction: column; gap: 5px; align-items: center; margin-bottom: 14px; }
  .brand svg { height: 30px; }
  .brand span { font-size: 11.5px; font-weight: 650; letter-spacing: -0.02em; color: #fff; }
  .nav-links { flex-direction: column; gap: 2px; flex: none; }
  .nav-links a, .nav-more-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 11px 2px 9px; width: 100%;
    border: 1px solid transparent; border-radius: 16px; font-size: 11px; font-weight: 500; line-height: 1.1; text-align: center; color: #a3a6ae;
  }
  .nav-links a svg.i, .nav-more-btn svg.i:not(.chev) { display: block; width: 22px; height: 22px; stroke-width: 1.7; }
  .nav-more-btn .chev { display: none; }
  .nav-links a:hover, .nav-more-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav-links a[aria-current="page"] { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.42); color: #fff; font-weight: 600; }
  .nav-more.open .nav-more-btn { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
  .nav-more { width: 100%; }
  .nav-links .nav-more-menu { left: calc(100% + 14px); top: auto; bottom: 0; transform: translate(-6px, 0); }
  .nav-links .nav-more.open .nav-more-menu { transform: translate(0, 0); }
  .nav-cta { position: fixed; top: 14px; right: 20px; z-index: 96; }
  .nav-cta .nav-more-btn { flex-direction: row; width: auto; gap: 8px; padding: 10px 18px; border-radius: 999px; }
  .nav-cta .is-cta { padding: 10px 18px; font-size: 14.5px; white-space: nowrap; display: inline-flex; flex-wrap: nowrap; }
  .burger { display: none; }
  .nav-enrol-menu { left: auto; right: 0; transform: translate(0, -8px); }
  .nav-enrol.open .nav-enrol-menu { transform: translate(0, 0); }
  .announce { padding-right: 180px; }
  .footer-grid, .footer .wrap { max-width: 100%; }
}

/* ----- 3D hero ----- */
.hero { background: radial-gradient(1100px 560px at 78% 88%, rgba(59,109,255,.16), transparent 62%), #060607; overflow: hidden; padding-top: clamp(56px, 8vw, 110px); }
.hero .glow { opacity: .14 !important; }
canvas.galaxy { position: absolute; left: 0; top: 0; width: 100%; height: min(100%, max(100vh, 760px)); z-index: 0; pointer-events: none; }
.hero::after, .ev-hero::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: min(100%, max(100vh, 760px)); z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,6,7,.55) 0%, rgba(6,6,7,0) 26%, rgba(6,6,7,0) 62%, #060607 100%); }
.hero .wrap, .ev-hero .wrap { position: relative; z-index: 2; }
.hero .slabs { z-index: 1; opacity: .75; }
.hero-inner { min-height: clamp(460px, 60vh, 620px); align-content: center; }
.hero h1.display { font-size: clamp(44px, 6.6vw, 98px); text-shadow: 0 6px 40px rgba(0,0,0,.55); }
.hero .lead { color: #d3d5da; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.rotator { color: #e6e7ea; } .rotator .swap span.on, .rotator .swap > .on { color: var(--gold); }
.marquee-wrap { position: relative; z-index: 2; background: rgba(255,255,255,.03); border-block: 1px solid var(--line); }
.marquee-label { color: #aeb3bd; }
.chip { background: rgba(255,255,255,.06); color: #e8e9ec; border-color: var(--line-strong); }
.ev-hero { background: #050507; }
.ev-hero .glow { opacity: .18 !important; }

/* ----- poster banners ----- */
.posters { padding: clamp(48px, 7vw, 96px) 0 0; }
.poster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); perspective: 1400px; }
.poster {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 40%;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: clamp(340px, 38vw, 520px);
  padding: clamp(22px, 3vw, 40px); border-radius: 30px; overflow: hidden; isolation: isolate; color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95);
}
.poster:hover { box-shadow: 0 50px 110px -40px rgba(59,109,255,.45); }
.poster::before { content: ""; position: absolute; inset: 0; z-index: -2; }
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx) var(--gy), rgba(255,255,255,.2), transparent 55%), linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55)); }
.poster-a::before { background:
  radial-gradient(90% 70% at 50% 108%, #ffb347 0%, #ff7a3d 18%, rgba(255,122,61,0) 55%),
  radial-gradient(70% 60% at 85% 10%, rgba(111,149,255,.75), rgba(111,149,255,0) 60%),
  linear-gradient(160deg, #0a1030 0%, #1a2a7a 45%, #050816 100%); }
.poster-b::before { background:
  radial-gradient(80% 70% at 15% 105%, #c9dd8c 0%, rgba(201,221,140,.0) 55%),
  radial-gradient(70% 60% at 90% 0%, rgba(141,185,230,.8), rgba(141,185,230,0) 62%),
  linear-gradient(200deg, #0b1f18 0%, #1d4a38 50%, #06100c 100%); }
.poster-mark { position: absolute; right: -4%; top: 6%; width: clamp(140px, 22vw, 320px); height: auto; z-index: -1; opacity: .95;
  filter: drop-shadow(0 0 40px rgba(245,184,74,.55)) drop-shadow(0 40px 50px rgba(0,0,0,.5)); transform: translateZ(60px) rotate(8deg); animation: bob 8s ease-in-out infinite; }
.poster-b .poster-mark { transform: translateZ(60px) rotate(-10deg) scaleX(-1); right: auto; left: -5%; top: 10%; }
.poster-kicker { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.poster-flag { align-self: flex-start; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 13px; border-radius: 99px; background: #fff; color: #0c0d0e; }
.poster-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.9vw, 66px); overflow-wrap: anywhere; line-height: .88; letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; text-shadow: 0 8px 40px rgba(0,0,0,.45); transform: translateZ(40px); }
.poster-title i { font-style: italic; color: #ffe0a3; }
.poster-sub { max-width: 40ch; font-size: 15.5px; line-height: 1.45; color: rgba(255,255,255,.88); }
.poster .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 860px) { .poster-grid { grid-template-columns: 1fr; } .poster { min-height: 360px; } }

/* ----- "build all of this" pills (the way a city list reads on a community site) ----- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 920px; margin-inline: auto; }
.pill-row span { padding: 11px 22px; border-radius: 99px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); font-size: 15px; font-weight: 500; color: #e8e9ec; }
.band-title { text-align: center; font-size: clamp(34px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 28px; }

/* ----- footer ----- */
.footer { background: #040405; border-top: 1px solid var(--line); }
.footer .big { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; }

/* ----- page heads on inner pages: a little depth ----- */
.page-head { background: radial-gradient(900px 340px at 85% 0%, rgba(59,109,255,.14), transparent 70%); }

@media (prefers-reduced-motion: reduce) { .poster, .poster-mark { transition: none; animation: none; } }

/* keep headline + lead readable over the stars */
.hero-inner { position: relative; }
.hero-inner::before { content: ""; position: absolute; inset: -6% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 48%, rgba(6,6,7,.72), rgba(6,6,7,0) 100%); }

.nav .is-cta, .nav .is-cta:hover { color: #fff; }
.compare .r.h > div { background: rgba(255,255,255,.05); }
.nav-enrol-menu a small { color: var(--muted); }
.ev-hero-in { position: relative; }
.ev-hero-in::before { content: ""; position: absolute; inset: -5% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(62% 60% at 38% 50%, rgba(5,5,7,.7), rgba(5,5,7,0) 100%); }

/* ==========================================================================
   UX layer: path finder, page transitions, ambient motion, accessibility
   ========================================================================== */

/* ----- smooth page-to-page transitions (cross-document View Transitions; ignored by browsers without them) ----- */
@view-transition { navigation: auto; }
.nav-shell { view-transition-name: rail; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.22,1,.36,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
html { scroll-padding-top: 24px; }

/* ----- skip link + clearer focus ----- */
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: #fff; color: #0c0d0e; font-weight: 650; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; }
.nav-links a:focus-visible, .nav-more-btn:focus-visible { outline-offset: -2px; border-radius: 16px; }

/* ----- path finder ----- */
.path { max-width: 1040px; margin-inline: auto; }
.path-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.path-tabs button { padding: 12px 22px; border-radius: 99px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: #d8d9dd; font-size: 15.5px; font-weight: 550; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.path-tabs button:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.path-tabs button[aria-selected="true"] { background: #fff; color: #0c0d0e; border-color: #fff; box-shadow: 0 14px 40px -14px rgba(255,255,255,.35); }
.path-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 3.4vw, 44px); border-radius: 30px; border: 1px solid var(--line-strong);
  background: radial-gradient(90% 120% at 0% 0%, rgba(59,109,255,.18), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(245,184,74,.12), transparent 60%), rgba(255,255,255,.03); }
.path-panel[hidden] { display: none; }
.path-panel.pp-in { animation: ppIn .5s var(--ease) both; }
@keyframes ppIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.pp-main { display: grid; gap: 16px; align-content: start; }
.pp-main h3 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.pp-main p { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.pp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pp-steps { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; align-content: center; }
.pp-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.ps-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, #3b6dff, #7da5ff); color: #fff; font: 700 15px var(--font); }
.pp-steps b { display: block; font-size: 15.5px; font-weight: 650; }
.pp-steps small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; } .pp-steps small b { display: inline; color: var(--ink); }
@media (max-width: 860px) { .path-panel { grid-template-columns: 1fr; } .path-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width: none; } .path-tabs button { white-space: nowrap; } }

/* ----- ambient motion ----- */
.grad-text { background-size: 220% 100%; animation: shimmer 9s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.page-head { overflow: hidden; }
.page-head::before { content: ""; position: absolute; left: 50%; top: -40%; width: 120%; height: 160%; z-index: 0; pointer-events: none; transform: translateX(-50%);
  background: radial-gradient(34% 34% at 22% 40%, rgba(59,109,255,.22), transparent 70%), radial-gradient(30% 30% at 78% 30%, rgba(245,184,74,.16), transparent 70%), radial-gradient(28% 30% at 60% 80%, rgba(141,185,230,.14), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-50%) translateY(0) scale(1); } to { transform: translateX(-47%) translateY(4%) scale(1.06); } }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.reveal { transition-duration: .8s; }

/* ----- cursor glow + back to top ----- */
.aura { position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 0; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(59,109,255,.13), rgba(59,109,255,0) 62%); will-change: transform; }
.aura.on { opacity: 1; }
main, .footer, .announce { position: relative; z-index: 1; }
.to-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,22,28,.85); border: 1px solid var(--line-strong); color: #fff; backdrop-filter: blur(10px); box-shadow: 0 16px 40px -14px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), background .2s; }
.to-top.show { opacity: 1; transform: none; } .to-top:hover { background: var(--acc); }
.to-top svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1020px) { .to-top { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); right: 14px; } }
@media (prefers-reduced-motion: reduce) { .grad-text, .page-head::before, .path-panel.pp-in { animation: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } .aura { display: none; } }

/* ==========================================================================
   Round 3: phone tab bar, section nav, 3D orbit, facts band
   ========================================================================== */

/* ----- phone tab bar ----- */
.tabbar { display: none; }
@media (max-width: 1020px) {
  .tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 96; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px; border-radius: 24px; background: rgba(12,13,17,.9); border: 1px solid var(--line-strong); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 20px 50px -16px rgba(0,0,0,.9); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 18px; font-size: 10.5px; font-weight: 550; color: #9ea1a9; text-align: center; }
  .tabbar svg.i { width: 22px; height: 22px; stroke-width: 1.7; }
  .tabbar a[aria-current="page"], .tabbar button.on { color: #fff; background: rgba(255,255,255,.1); }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  body.has-sticky .to-top { bottom: calc(158px + env(safe-area-inset-bottom, 0px)); }
  .mobile-menu { padding-bottom: 110px; overflow-y: auto; }
  .cookie-bar { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ----- sticky section nav (desktop, long pages) ----- */
.subnav { position: fixed; top: 0; left: var(--rail); right: 0; z-index: 60; display: flex; justify-content: center; padding: 14px 190px 0 20px; pointer-events: none; }
.subnav-in { pointer-events: auto; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(10,11,15,.8); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.85); opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .35s var(--ease); }
.subnav.stuck .subnav-in { opacity: 1; transform: none; }
.subnav a { padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 550; color: #b5b8c0; transition: background .2s, color .2s; white-space: nowrap; }
.subnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.subnav a.on { background: #fff; color: #0c0d0e; }

/* ----- 3D orbit ----- */
.sr-only-chips { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0 !important; }
.orbit { --tilt: 64deg; position: relative; height: clamp(300px, 38vw, 470px); perspective: 1200px; display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.orbit::before { content: ""; position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,109,255,.18), rgba(245,184,74,.06) 55%, transparent 72%); }
.orbit-core { position: relative; z-index: 2; width: clamp(64px, 8vw, 104px); filter: drop-shadow(0 0 30px rgba(245,184,74,.7)) drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: bob 7s ease-in-out infinite; }
.orbit-core svg { width: 100%; height: auto; }
.orbit-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt)); animation: orbitSpin 60s linear infinite; z-index: 1; --r: clamp(150px, 26vw, 370px); }
.orbit-item { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateZ(var(--a)) translateX(var(--r)); }
.orbit-item span { position: absolute; left: 0; top: 0; display: block; white-space: nowrap; padding: 9px 18px; border-radius: 99px; font-size: clamp(12.5px, 1.2vw, 15px); font-weight: 600; color: #fff;
  background: rgba(20,22,30,.82); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); backdrop-filter: blur(6px);
  transform: rotateZ(calc(var(--a) * -1)) rotateX(calc(var(--tilt) * -1)) translate(-50%, -50%); animation: orbitFace 60s linear infinite; }
@keyframes orbitSpin { to { transform: rotateX(var(--tilt)) rotateZ(360deg); } }
@keyframes orbitFace { to { transform: rotateZ(calc(var(--a) * -1 - 360deg)) rotateX(calc(var(--tilt) * -1)) translate(-50%, -50%); } }
.orbit:hover .orbit-ring, .orbit:hover .orbit-item span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .orbit-ring, .orbit-item span, .orbit-core { animation: none; } }

/* ----- facts band ----- */
.facts { padding: clamp(40px, 6vw, 80px) 0 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.facts-grid > div { padding: clamp(22px, 3vw, 38px); display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--line); }
.facts-grid > div:last-child { border-right: 0; }
.facts-grid b { font-size: clamp(44px, 6vw, 84px); font-weight: 600; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #9fb4e8); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.facts-grid span { color: var(--ink-2); font-size: 15px; line-height: 1.45; max-width: 26ch; }
@media (max-width: 860px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-grid > div:nth-child(2) { border-right: 0; } .facts-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ==========================================================================
   Round 4: proper logo lockup (mark + name side by side), header bar + rail, quick search
   ========================================================================== */
.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.brand svg { height: 34px; width: auto; flex: none; filter: drop-shadow(0 0 8px rgba(245,184,74,.5)); }
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 5px; line-height: 1; }
.brand .brand-name { font-weight: 650; font-size: 22px; letter-spacing: -0.035em; color: #fff; line-height: 1; }
.brand .brand-tag { display: none; font-size: 8.6px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #8fb199; line-height: 1; white-space: nowrap; }
.footer .brand .brand-tag { display: block; }

.searchbtn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.06); color: #c7c9cf; font-size: 14px; font-weight: 500; backdrop-filter: blur(10px); transition: background .2s, color .2s; }
.searchbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.searchbtn svg.i { width: 17px; height: 17px; }
.searchbtn kbd { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 7px; background: rgba(255,255,255,.1); color: #aeb2ba; }
@media (max-width: 1020px) { .searchbtn { padding: 0; width: 44px; height: 44px; justify-content: center; } .searchbtn span, .searchbtn kbd { display: none; } .nav-cta { gap: 8px; } }

@media (min-width: 1021px) {
  :root { --head: 68px; }
  body { padding-top: var(--head); }
  /* header bar: logo left, search + enrol right; fades to a blurred bar once you scroll */
  .nav-shell { position: fixed; left: 0; top: 0; right: 0; bottom: auto; width: auto; height: var(--head); padding: 0; pointer-events: none; z-index: 95; }
  .nav-shell::before { content: ""; position: absolute; inset: 0; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
  body:has(.nav.scrolled) .nav-shell::before { background: rgba(5,5,7,.84); border-bottom-color: var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
  .nav { display: contents; }
  .brand { position: fixed; left: 22px; top: 0; height: var(--head); margin: 0; pointer-events: auto; z-index: 97; }
  .brand .brand-tag { display: block; }
  .nav-links { position: fixed; left: 0; top: var(--head); bottom: 0; width: var(--rail); padding: 10px 9px; display: flex; flex-direction: column; gap: 2px; background: #040405; border-right: 1px solid var(--line); overflow: visible; pointer-events: auto; z-index: 94; }
  .nav-cta { position: fixed; top: 12px; right: 20px; display: flex; align-items: center; gap: 10px; pointer-events: auto; z-index: 97; }
  .announce { padding-right: var(--gutter); }
  .subnav { top: var(--head); padding-top: 10px; padding-right: 20px; }
}
@media (min-width: 1021px) and (max-height: 760px) { .nav-links a { padding: 8px 2px 6px; font-size: 10.5px; } .nav-links a svg.i, .nav-more-btn svg.i:not(.chev) { width: 20px; height: 20px; } }

/* ----- quick search ----- */
dialog.palette { border: 0; padding: 0; background: transparent; width: min(640px, calc(100% - 24px)); max-height: 80vh; margin: 12vh auto auto; color: var(--ink); overflow: visible; }
dialog.palette::backdrop { background: rgba(2,2,4,.72); backdrop-filter: blur(6px); }
.pal-box { border-radius: 22px; background: #0e1015; border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -30px rgba(0,0,0,.95); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pal-in svg.i { width: 20px; height: 20px; color: #8e9199; flex: none; }
.pal-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 17px; }
.pal-in input::placeholder { color: #6f727a; }
.pal-in kbd { font: 600 11px var(--mono); padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.08); color: #9a9da5; }
.pal-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.pal-list li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; padding: 11px 12px; border-radius: 14px; cursor: pointer; }
.pal-list li[aria-selected="true"], .pal-list li:hover { background: rgba(59,109,255,.2); }
.pal-k { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8fa6e8; }
.pal-t b { display: block; font-size: 15.5px; font-weight: 600; color: #fff; }
.pal-t small { display: block; color: #8e9199; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.pal-none { display: block !important; color: #8e9199; cursor: default !important; }
.pal-foot { margin: 0; padding: 10px 18px 14px; font-size: 12px; color: #6f727a; border-top: 1px solid var(--line); }
.nav-more-menu { background: #0e1015 !important; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -20px rgba(0,0,0,.95); }
.nav-more-menu a { color: #cfd1d6; } .nav-more-menu a small { color: #8e9199; } .nav-more-menu a b { color: #fff; }
