/* ════════════════════════════════════════════════════════════════════
   IYA V10 — v10.css  ·  structure-first redesign (Audience Router × Journey)
   Loads AFTER deepsea.css and reuses its deep-sea palette + components.
   New structural pieces only: persistent audience switcher, fork hero,
   the reconfiguring view region, the certification ladder, browse grid.
   Same perf rules: native scroll, no backdrop-filter, transform/opacity.
   ════════════════════════════════════════════════════════════════════ */

/* ── LOAD SCREEN (home entry gate) ────────────────────────────────── */
/* scroll lock only while the gate is showing (set pre-paint by inline head script) */
html.gating{overflow:hidden}
html.gating.unlocked{overflow:auto}
.load-gate{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;
  text-align:center;padding:clamp(24px,6vw,64px);overflow:hidden;background:var(--abyss);
  transition:opacity .7s var(--ease),visibility .7s var(--ease)}
html.gating .load-gate{display:flex}
.load-gate.hide{opacity:0;visibility:hidden}
.load-gate-bg{position:absolute;inset:0;z-index:-2;background:url('../images/intro-hero-new.webp') center/cover no-repeat;
  transform:scale(1.06);animation:kenburns 26s ease-in-out infinite alternate;will-change:transform}
.load-gate-tint{position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(3,16,31,.62),rgba(3,16,31,.42) 40%,rgba(3,16,31,.88))}
.load-gate-inner{position:relative;max-width:780px}
.load-gate-logo{height:clamp(110px,17vh,196px);width:auto;margin:0 auto clamp(22px,4vh,40px)}
.load-gate-title{font-family:var(--display);font-weight:600;color:#fff;font-size:clamp(38px,7vw,82px);
  line-height:1.04;letter-spacing:-.035em;margin-bottom:clamp(16px,2.4vh,26px)}
.load-gate-sub{font-size:clamp(16px,1.7vw,20px);line-height:1.6;color:rgba(255,255,255,.84);
  max-width:560px;margin:0 auto clamp(26px,4vh,40px)}
html.anim-ready .load-gate-logo,html.anim-ready .load-gate-title,
html.anim-ready .load-gate-sub,html.anim-ready #exploreBtn{opacity:0;animation:fadeUp 1s var(--ease) both}
html.anim-ready .load-gate-title{animation-delay:.14s}
html.anim-ready .load-gate-sub{animation-delay:.28s}
html.anim-ready #exploreBtn{animation-delay:.42s}

/* ── HERO: the fork (Audience Router entry) ───────────────────────── */
.hero--fork{min-height:auto;padding-bottom:clamp(40px,5vw,64px)}
.hero--fork .hero-inner{max-width:1040px}
/* V13 fix C: HOME hero shows the compass (index-hero), NOT the new intro wallpaper.
   The new wallpaper (intro-hero-new.webp) lives ONLY on the load/entry gate (.load-gate-bg). */
.hero--fork .hero-bg{background-image:url('../images/index-hero.webp')}
.hero-sub--fork{margin-bottom:clamp(34px,4vw,48px)}
.fork-kicker{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--glow);margin-bottom:12px}

.fork{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.6vw,20px)}
.fork-card{display:flex;flex-direction:column;text-align:left;background:var(--glass-2);
  border:1px solid var(--glass-line);border-radius:var(--radius);padding:26px 24px 24px;
  transition:transform .45s var(--spring),border-color .4s var(--smooth),box-shadow .4s var(--smooth),background .4s var(--smooth);
  will-change:transform}
/* V14: hover lift now unified (deepsea). Keep a keyboard-focus affordance only. */
.fork-card:focus-visible{border-color:rgba(95,178,245,.5);background:rgba(95,178,245,.08);outline:none}
.fork-card-ico{width:46px;height:46px;border-radius:13px;display:flex;align-items:center;justify-content:center;
  background:rgba(95,178,245,.14);color:var(--glow);margin-bottom:18px}
.fork-card-ico svg{width:24px;height:24px}
.fork-card h2{font-family:var(--display);font-weight:600;font-size:clamp(19px,1.7vw,22px);letter-spacing:-.02em;
  color:#fff;margin-bottom:9px}
.fork-card p{font-size:14px;line-height:1.6;color:var(--text);margin-bottom:20px;flex:1}
.fork-card-go{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:13.5px;color:var(--glow);
  transition:gap .35s var(--spring)}
.fork-card-go::after{content:'\2192';transition:transform .35s var(--spring)}
.fork-card:hover .fork-card-go{gap:13px}

.hero-utility{margin-top:26px;font-size:14px;color:var(--text-soft)}
.hero-utility a{color:#fff;font-weight:600;border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:2px;
  transition:border-color .2s}
.hero-utility a:hover{border-color:var(--glow)}

/* ── PERSISTENT AUDIENCE SWITCHER (sticky, never a gate) ──────────── */
.router{position:sticky;top:var(--nav-stuck);z-index:80;background:rgba(4,13,26,.92);border-bottom:1px solid var(--line-soft)}
.router-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:60px;
  padding-top:10px;padding-bottom:10px}
.router-label{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--text-soft);
  white-space:nowrap}
.seg{display:inline-flex;gap:5px;background:rgba(255,255,255,.05);border:1px solid var(--line);
  border-radius:999px;padding:5px}
.seg-btn{position:relative;border:0;background:transparent;color:var(--text);font-family:var(--sans);
  font-weight:500;font-size:14px;padding:10px 20px;border-radius:999px;white-space:nowrap;
  transition:color .25s var(--smooth),background .25s var(--smooth)}
.seg-btn:hover{color:#fff}
.seg-btn[aria-selected="true"]{background:var(--blue);color:#fff;box-shadow:0 6px 20px rgba(27,108,168,.4)}
.router-cta{white-space:nowrap}

/* ── THE VIEW REGION (reconfigures by audience) ──────────────────── */
.views{position:relative}
.view{display:none}
.view.is-active{display:block}
.view-head{max-width:680px;margin-bottom:clamp(40px,5vw,64px)}
.view-head .h-sec{margin-bottom:16px}

/* force content visible the moment a view is activated (reveals may have already passed) */
.view:not(.is-active) .reveal{opacity:0}

/* ── SELF VIEW: recreational browse (not a ladder) ───────────────── */
.browse-bar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:clamp(28px,3vw,40px)}
.chip{border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);font-family:var(--sans);
  font-weight:500;font-size:13.5px;padding:9px 18px;border-radius:999px;display:inline-flex;align-items:center;gap:8px;
  transition:color .2s,background .2s,border-color .2s}
.chip:hover{color:#fff;border-color:rgba(255,255,255,.3)}
.chip[aria-pressed="true"]{background:#fff;color:var(--abyss);border-color:#fff}
/* ── boat-console light bulbs (level dots + filter chip dots share one look) ──
   Tiny bright filament core + soft coloured bloom that gently pulses, like a
   console indicator light. GPU-only (transform/opacity on the bloom pseudo). */
.chip-dot,.lvl-dot{position:relative;display:inline-block;border-radius:50%;flex:0 0 auto;
  background:var(--bulb-core,#cfe9ff)}
.chip-dot{width:6px;height:6px;
  box-shadow:0 0 4px 1px var(--bulb-glow,rgba(95,178,245,.95)),0 0 9px 2px var(--bulb-halo,rgba(95,178,245,.4))}
.chip-dot::after,.lvl-dot::after{content:'';position:absolute;left:50%;top:50%;width:320%;height:320%;
  border-radius:50%;transform:translate(-50%,-50%) scale(.8);pointer-events:none;opacity:.5;
  background:radial-gradient(circle,var(--bulb-halo,rgba(95,178,245,.5)) 0%,transparent 65%);
  animation:bulbPulse 3.4s ease-in-out infinite}
@keyframes bulbPulse{0%,100%{opacity:.38;transform:translate(-50%,-50%) scale(.78)}
  50%{opacity:.82;transform:translate(-50%,-50%) scale(1.28)}}
.dot-beginner{--bulb-core:#c9f5e4;--bulb-glow:rgba(94,209,168,.95);--bulb-halo:rgba(94,209,168,.5)}
.dot-intermediate{--bulb-core:#cfe9ff;--bulb-glow:rgba(95,178,245,.95);--bulb-halo:rgba(95,178,245,.5)}
.dot-advanced{--bulb-core:#f6dcb4;--bulb-glow:rgba(224,164,88,.95);--bulb-halo:rgba(224,164,88,.5)}

.grid-courses{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(16px,1.6vw,22px)}
.cc{display:flex;flex-direction:column;background:var(--glass);border:1px solid var(--glass-line);
  border-radius:18px;overflow:hidden;transition:transform .45s var(--spring),border-color .4s var(--smooth),box-shadow .4s var(--smooth)}
/* V14: .cc hover unified (deepsea); media zoom folded into the unified block */
.cc-media{overflow:hidden;aspect-ratio:4/3}
.cc-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.cc-body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1}
.cc-badge{align-self:flex-start;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  padding:4px 11px;border-radius:999px;margin-bottom:12px}
.b-beginner{background:rgba(94,209,168,.16);color:#7fe0bf}
.b-intermediate{background:rgba(95,178,245,.16);color:var(--glow)}
.b-advanced{background:rgba(224,164,88,.16);color:#f0c389}
/* level shown as a small glowing bulb beside the title (half the old size, no text badge) */
.lvl-dot{width:5px;height:5px;margin-left:10px;vertical-align:middle;
  box-shadow:0 0 4px 1px var(--bulb-glow,rgba(95,178,245,.95)),0 0 10px 3px var(--bulb-halo,rgba(95,178,245,.42))}
.cc-body h3{font-family:var(--display);font-weight:600;font-size:18px;letter-spacing:-.015em;color:#fff;margin-bottom:8px}
.cc-body p{font-size:13.5px;line-height:1.55;color:var(--text-soft);margin-bottom:18px;flex:1}
.cc-link{font-weight:600;font-size:13.5px;color:var(--glow);display:inline-flex;align-items:center;gap:7px;
  transition:gap .35s var(--spring)}
.cc-link::after{content:'\2192';transition:transform .3s var(--spring)}
.cc:hover .cc-link{gap:12px}

.view-footrow{margin-top:clamp(40px,5vw,60px);padding-top:32px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.view-footrow p{font-size:15px;color:var(--text);max-width:48ch}
.view-footrow strong{color:#fff;font-weight:600}
.footrow-actions{display:flex;gap:12px;flex-wrap:wrap}

/* professional view: flat grid, five courses centred (3 + 2) */
.grid-pro{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(16px,1.6vw,22px)}
.grid-pro .cc{flex:1 1 280px;max-width:340px}

/* tighten the stacked home sections so the sticky router doesn't float in dead space;
   trimmed top padding closes the gap under "Where are you headed" (client note B3) */
#process{padding-top:clamp(40px,5vw,68px);padding-bottom:clamp(46px,6vw,78px)}
.views .view.sec{padding-top:clamp(44px,5vw,74px)}

/* ── CAREER VIEW: the certification journey IS the navigation ────── */
.ladder{display:grid;grid-template-columns:34px 1fr;gap:clamp(18px,2vw,30px)}
.ladder-rail{display:flex;flex-direction:column;align-items:center;padding-top:30px}
.rail-node{width:15px;height:15px;border-radius:50%;background:var(--glow);flex:0 0 auto;
  box-shadow:0 0 0 5px rgba(95,178,245,.14)}
.rail-line{width:2px;flex:1;min-height:60px;background:linear-gradient(var(--glow),var(--line));opacity:.5}
.ladder-stages{display:flex;flex-direction:column;gap:16px}
.stage{background:var(--glass);border:1px solid var(--glass-line);border-radius:18px;overflow:hidden;
  transition:border-color .4s var(--smooth)}
.stage.open{border-color:rgba(95,178,245,.45)}
.stage-head{width:100%;text-align:left;background:transparent;border:0;color:inherit;display:flex;
  align-items:center;gap:20px;padding:22px 24px}
.stage-step{font-family:var(--display);font-weight:600;font-size:15px;color:var(--glow);opacity:.85;
  min-width:64px;letter-spacing:.04em}
.stage-meta{flex:1}
.stage-meta h3{font-family:var(--display);font-weight:600;font-size:clamp(19px,1.9vw,24px);letter-spacing:-.02em;
  color:#fff;margin-bottom:4px}
.stage-meta p{font-size:14px;color:var(--text-soft);line-height:1.5}
.stage-chev{flex:0 0 auto;color:var(--text-soft);transition:transform .35s var(--spring)}
.stage.open .stage-chev{transform:rotate(180deg)}
.stage-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s var(--smooth)}
.stage.open .stage-body{grid-template-rows:1fr}
.stage-body-inner{overflow:hidden}
.stage-courses{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 24px 22px}
.scourse{display:flex;flex-direction:column;background:rgba(255,255,255,.04);border:1px solid var(--line-soft);
  border-radius:14px;padding:18px 18px 16px;transition:background .3s,border-color .3s}
.scourse:hover{background:rgba(95,178,245,.08);border-color:rgba(95,178,245,.3)}
.scourse-lvl{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--text-soft);margin-bottom:8px}
.scourse h4{font-family:var(--display);font-weight:600;font-size:16px;letter-spacing:-.01em;color:#fff;margin-bottom:7px}
.scourse p{font-size:13px;line-height:1.5;color:var(--text-soft);margin-bottom:16px;flex:1}
.scourse-link{font-size:13px;font-weight:600;color:var(--glow);display:inline-flex;align-items:center;gap:6px;
  transition:gap .3s var(--spring)}
.scourse-link::after{content:'\2192'}
.scourse:hover .scourse-link{gap:11px}
.stage-cta{padding:0 24px 24px}
.stage--soft{background:rgba(255,255,255,.025);border-style:dashed}
.stage--soft .stage-body-inner{padding:0 24px 24px}
.stage--soft p.stage-soft-copy{font-size:14.5px;line-height:1.65;color:var(--text);max-width:60ch;margin-bottom:18px}

/* ── PARTNER VIEW reuses .academy-grid / .panel from deepsea.css ─── */
.partner-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:10px}
.partner-stats>div{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:16px;padding:22px 20px;text-align:center}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width:1024px){
  .grid-courses{grid-template-columns:repeat(2,1fr)}
  .stage-courses{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .fork{grid-template-columns:1fr;max-width:460px}
  .router-label{display:none}
  .router-cta{display:none}
  .router-inner{justify-content:center}
  .seg{width:100%;justify-content:center}
  .seg-btn{flex:1;padding:10px 6px;font-size:13px}
}
@media (max-width:640px){
  .grid-courses{grid-template-columns:1fr;max-width:380px;margin:0 auto}
  .stage-courses{grid-template-columns:1fr}
  .partner-stats{grid-template-columns:1fr}
  .stage-head{gap:12px;padding:18px}
  .stage-step{min-width:48px;font-size:13px}
  .ladder{gap:12px}
  .view-footrow{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .stage-body{transition:none}
  .fork-card,.cc{transition:none}
  .chip-dot::after,.lvl-dot::after{animation:none}
  .load-gate-bg{animation:none;transform:scale(1.04)}
  html.anim-ready .load-gate-logo,html.anim-ready .load-gate-title,
  html.anim-ready .load-gate-sub,html.anim-ready #exploreBtn{animation:none;opacity:1}
}

/* ════════════════════ ELEVATION PASS (home router + cards) ════════════════════ */
/* sticky router: frosted glass bar */
.router{background:rgba(6,16,30,.6);
  -webkit-backdrop-filter:blur(16px) saturate(160%);backdrop-filter:blur(16px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 14px 40px rgba(0,0,0,.4)}
.seg{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}

/* fork cards: real frost over the hero image (hover lift now unified in deepsea) */
.fork-card{background:linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,.05));
  -webkit-backdrop-filter:blur(13px) saturate(150%);backdrop-filter:blur(13px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 22px 54px rgba(0,0,0,.42);will-change:transform}
.fork-card:focus-visible{border-color:rgba(95,178,245,.42);
  background:linear-gradient(160deg,rgba(95,178,245,.12),rgba(255,255,255,.05));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 30px 66px rgba(0,0,0,.5)}

/* course cards: brighter glass gradient (hover lift now unified in deepsea) */
.cc{background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.025));will-change:transform}

/* certification stage panels: subtle glass */
.stage{background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.03))}

@media (prefers-reduced-transparency:reduce){
  .router{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(6,16,30,.95)}
  .fork-card,.seg{backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media (prefers-reduced-motion:reduce){
  .fork-card:hover,.fork-card:focus-visible,.cc:hover{transform:none}
  .cc:hover .cc-media img{transform:none}
}

/* ════════════════════════════════════════════════════════════════════
   V13 — consolidated mobile pass + straight fixes (8 Jul 2026).
   Appended to v10.css (present on every page). Additive; loads on top.
   ════════════════════════════════════════════════════════════════════ */

/* ── B1 · logos keep aspect ratio on any screen (never forced-width, never stretch) ── */
.nav-logo img,.load-gate-logo,.footer-logo{width:auto;max-width:100%;object-fit:contain}

/* V14: desktop .cc hover removed — the unified card hover (deepsea) now covers it. */

/* V14: M1 mobile page-title strip REMOVED entirely (CSS + JS). No .pagestrip rules. */

/* ── M5 · pinned bottom "Book a course" CTA (mobile) ──────────────── */
/* injected by mobile.js only where the audience router exists (homepage); the router's
   own Book-a-course CTA is hidden on mobile, so this is its thumb-reachable home. */
.book-dock{display:none}

@media (max-width:860px){
  /* V14: clean single-row mobile header — logo LEFT, hamburger RIGHT, vertically centred.
     Reverts the removed two-row strip layout; --nav-h back to the 78px base. */
  .nav{display:flex;align-items:center;justify-content:space-between;height:var(--nav-h)}
  .nav-actions{gap:0}
  .nav-burger span{margin-left:auto;margin-right:auto}
  /* V14 rev: pin the fork pill bar FLUSH to the scrolled mobile nav (no gap).
     was calc(var(--nav-h) - 4px)=74px, but the nav is .scrolled (64px) by the
     time this bar sticks, leaving a ~10px gap — pin to --nav-stuck instead. */
  .router{top:var(--nav-stuck)}
  /* M5 dock */
  .book-dock{display:block;position:fixed;left:0;right:0;bottom:0;z-index:95;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    background:linear-gradient(180deg,rgba(3,16,31,.35),rgba(3,16,31,.94) 45%);border-top:1px solid var(--line-soft)}
  .book-dock .btn{width:100%;padding:13px;font-size:15px}
  body.has-book-dock{padding-bottom:76px}
}
/* re-assert reduced-motion AFTER the V13 hover rule so it still wins */
@media (prefers-reduced-motion:reduce){
  .cc:hover{transform:none}
}
