/* ==========================================================================
   OxNeural: cinematic layer (loaded after styles.css)
   Brief section 06 tokens + new components + motion. Existing production
   styles stay in styles.css untouched; this file only extends and re-tokens.
   Progressive enhancement: CSS first, small JS second, the canvas hero last.
   ========================================================================== */

:root {
  /* Brief design tokens */
  --deep-navy:  #071426;   /* hero, footer, high-contrast sections */
  --navy:       #0D2038;   /* nav surfaces, cards, panels */
  --cyan:       #22D3EE;
  --blue:       #3B82F6;
  --violet:     #8B5CF6;
  --canvas:     #F2F7FB;   /* readable light sections */

  --bg:         var(--deep-navy);
  --surface:    #0a1a30;
  --surface-2:  var(--navy);
  --surface-3:  #132a48;
  --border:     #1a3050;
  --border-lit: #284468;

  --faint:      #828fa5;   /* was #78869c: 4.44:1 on navy, below AA; now >= 4.5:1 on every surface */

  --ink:        #0b1a2e;   /* text on light canvas */
  --ink-soft:   #33475f;
  --glass:      rgba(13, 32, 56, .55);
  --glass-line: rgba(148, 190, 235, .14);
  --glow:       0 0 0 1px rgba(34, 211, 238, .28), 0 18px 50px -24px rgba(34, 211, 238, .45);
}

body { background: var(--bg); }
.site-header { background: rgba(7, 20, 38, .72); }
.site-header.is-stuck { background: rgba(7, 20, 38, .94); }
.inline-link { color: var(--cyan); border-bottom: 1px solid rgba(34, 211, 238, .35); }
.pad { padding: 30px 32px; }

/* --- glass + glow surfaces ------------------------------------------------ */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  transition: border-color var(--t4) var(--ease), box-shadow var(--t5) var(--ease-out), transform var(--t5) var(--ease-out);
}
.glass::before {      /* pointer light, positioned by app.js (--mx/--my) */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .10), transparent 60%);
  opacity: 0; transition: opacity var(--t5) var(--ease);
}
.glass:hover, .glass:focus-within { border-color: rgba(34, 211, 238, .35); box-shadow: var(--glow); }
.glass:hover::before, .glass:focus-within::before { opacity: 1; }
.tilt { will-change: transform; transform-style: preserve-3d; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.js .reveal.stagger-item.in { transition-delay: var(--d, 0ms); }

/* --- navigation: drawer below 1080px (seven items + CTA need the room) ---- */
@media (max-width: 1080px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; max-height: calc(100dvh - 76px); overflow-y: auto;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px var(--gut) 22px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px 4px; font-size: 16px; border-radius: 0; display: flex; justify-content: space-between; align-items: center; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .caret { display: block; width: 14px; height: 14px; }
  #navlinks li.has-sub > ul.sub { display: none !important; position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
    box-shadow: none; background: none; border: 0; border-left: 1px solid var(--border); border-radius: 0; margin: 0 0 6px 6px; padding: 0 0 0 12px; }
  #navlinks li.has-sub.mobile-open > ul.sub { display: block !important; }
  #navlinks li.has-sub.mobile-open .caret { transform: rotate(180deg); }
  .has-sub:hover .caret, .has-sub:focus-within .caret { transform: none; }
  .sub a { padding: 11px 4px; font-size: 14.5px; }
  .nav-cta-m { display: block; margin-top: 14px; }
  #navlinks > li.nav-cta-m > a { display: flex; justify-content: center; padding: 14px 20px; border-radius: var(--r-md); }
  .nav-cta-m a { display: flex; align-items: center; justify-content: center; padding: 14px 20px;
    border-radius: var(--r-md); font-weight: 600; color: #04121a;
    background: linear-gradient(110deg, var(--cyan) 0%, #38bdf8 46%, var(--blue) 100%); }
}
@media (min-width: 1081px) {
  .nav-links a { padding: 8px 11px; font-size: 14px; }
  .nav-links .sub a { padding: 10px 13px; }
}

/* --- cinematic hero -------------------------------------------------------- */
.hero-cine { min-height: min(100svh, 920px); padding-bottom: 96px; }
.hero-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero3d-on .hero-canvas { opacity: 1; }
.hero-fallback { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; right: -6vw; top: 8%;
  background: radial-gradient(circle, rgba(34, 211, 238, .38), transparent 65%); animation: drift 18s var(--ease) infinite alternate; }
.orb-b { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; right: 18vw; top: 38%;
  background: radial-gradient(circle, rgba(139, 92, 246, .34), transparent 65%); animation: drift 22s var(--ease) infinite alternate-reverse; }
.orb-c { width: 28vw; height: 28vw; max-width: 380px; max-height: 380px; left: -8vw; bottom: -6%;
  background: radial-gradient(circle, rgba(59, 130, 246, .30), transparent 65%); animation: drift 26s var(--ease) infinite alternate; }
.hero3d-on .orb { opacity: .32; }
@keyframes drift { to { transform: translate3d(-3vw, 2vw, 0) scale(1.08); } }
.hero-inner-cine { grid-template-columns: minmax(0, 1fr); }
.hero-inner-cine .hero-copy { max-width: 880px; }
.hero-title { font-size: clamp(40px, 6.6vw, 84px) !important; line-height: 1.02; letter-spacing: -.045em !important; }
.ht-line { display: inline-block; }
.js body.ready .hero-title .ht-line { animation: lineIn 900ms var(--ease-out) both; }
.js body.ready .hero-title .ht-line:nth-child(2) { animation-delay: 120ms; }
.js body.ready .hero-title .ht-line:nth-child(3) { animation-delay: 240ms; }
.js body.ready .hero-title .ht-line:nth-child(4) { animation-delay: 360ms; }
@keyframes lineIn { from { opacity: 0; transform: translateY(.35em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-cine .hero-sub { max-width: 58ch; }
.hero-cine::after { background: linear-gradient(90deg, rgba(7, 20, 38, .92) 0%, rgba(7, 20, 38, .55) 48%, rgba(7, 20, 38, 0) 75%),
  linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid var(--border-lit); border-radius: 14px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--cyan); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 1000px) {
  .hero-cine::after { background: linear-gradient(180deg, rgba(7, 20, 38, .35) 0%, rgba(7, 20, 38, .82) 55%, var(--bg) 100%); }
  .hero-cine .hero-canvas { opacity: .55; }
}

/* --- ticker ------------------------------------------------------------------ */
.ticker { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--border); background: rgba(13, 32, 56, .45);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 16px 0; gap: 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft);
  animation: tick 42s linear infinite; }
.ticker-track li { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker-track li::after { content: ""; width: 5px; height: 5px; margin: 0 26px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* --- proof strip (rendered only when metrics are verified) ---------------- */
.proof-strip { list-style: none; margin: 0 auto; padding: 0 var(--gut); max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.proof-strip li { padding: 28px 18px; text-align: center; }
.proof-strip strong { display: block; font-size: clamp(28px, 3.4vw, 40px); background: linear-gradient(100deg, var(--cyan), var(--blue) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof-strip span { font-size: 13px; color: var(--muted); }

/* --- grids of cards --------------------------------------------------------- */
.path-grid, .family-grid, .track-grid, .course-grid, .prod-grid, .ref-grid, .quote-grid, .stu-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.path-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.family-grid, .track-grid, .course-grid, .prod-grid, .ref-grid, .quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path-card, .family-card, .track-card, .course-card, .prod-card, .ref-card { display: flex; flex-direction: column; padding: 28px 26px 24px; }
.path-card h3, .family-card h3, .track-card h3, .course-card h3 { font-size: 19px; margin-bottom: 10px; }
.path-card p, .family-card p, .track-card p, .course-card p, .prod-card p, .ref-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.path-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--faint); margin-bottom: 18px; }
.path-ico, .course-ico svg { width: 34px; height: 34px; color: var(--cyan); margin-bottom: 18px; }
.course-ico { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .14)); border: 1px solid var(--glass-line); }
.course-ico svg { margin: 0; width: 28px; height: 28px; }
.family-card { overflow: hidden; }
.fam-glow { position: absolute; z-index: -1; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .25), transparent 70%); transition: transform var(--t5) var(--ease-out); }
.family-card:hover .fam-glow { transform: scale(1.5); }
.family-card .svc-cta, .track-card .svc-cta { align-self: flex-start; }

/* --- split layout ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; text-wrap: balance; }
.split .lede { margin-bottom: 28px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--r-md);
  background: #fff; border: 1px solid #dbe6f0; box-shadow: 0 10px 30px -24px rgba(7, 20, 38, .4); }
.flow span { font-family: var(--font-mono); font-size: 12px; color: #0e7490; padding-top: 3px; }
.flow h3 { font-size: 16px; margin-bottom: 4px; color: var(--ink); }
.flow p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* --- light canvas sections (brief: #F2F7FB) -------------------------------- */
.section-lit { background: var(--canvas); color: var(--ink); border-top: 0 !important; }
.section-lit + section { border-top: 0; }
.section-lit h2, .section-lit h3, .section-lit h4 { color: var(--ink); }
.section-lit .section-head p, .section-lit .lede, .section-lit p { color: var(--ink-soft); }
.section-lit .eyebrow { color: #0e7490; }
.section-lit .btn-ghost { color: var(--ink); border-color: #b9c8d8; }
.section-lit .btn-ghost:hover { border-color: #0e7490; background: rgba(14, 116, 144, .06); }
.section-lit .glass { background: rgba(255, 255, 255, .78); border-color: #dbe6f0; box-shadow: 0 16px 40px -30px rgba(7, 20, 38, .45); }
.section-lit .glass:hover { border-color: #7dd3e6; box-shadow: 0 0 0 1px rgba(14, 116, 144, .25), 0 20px 50px -28px rgba(14, 116, 144, .5); }
.section-lit .glass::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .14), transparent 60%); }
.section-lit .course-card p, .section-lit .quote-card p { color: var(--ink-soft); }
.section-lit .course-ico svg { color: #0e7490; }
.section-lit .cap-note { background: #fff; border-color: #dbe6f0; }
.section-lit .cap-note p { color: var(--ink-soft); }
.section-lit .cap-note p + p { margin-top: 12px; }
.section-lit .grad { background: linear-gradient(100deg, #0e7490, #1d4ed8 55%, #6d28d9); -webkit-background-clip: text; background-clip: text; }

/* --- academy ------------------------------------------------------------------ */
.academy-band { background: radial-gradient(900px 420px at 85% 50%, rgba(139, 92, 246, .16), transparent 70%),
  radial-gradient(700px 380px at 10% 20%, rgba(34, 211, 238, .10), transparent 70%); }
.academy-orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.academy-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--glass-line); }
.academy-orbit .r2 { inset: 14%; border-color: rgba(34, 211, 238, .22); }
.academy-orbit .r3 { inset: 30%; border-color: rgba(139, 92, 246, .3);
  background: radial-gradient(circle, rgba(59, 130, 246, .22), transparent 70%); }
.academy-orbit .node { position: absolute; display: inline-flex; align-items: center; justify-content: center; min-width: 74px; height: 38px;
  padding: 0 14px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--text);
  background: rgba(13, 32, 56, .85); border: 1px solid var(--glass-line); box-shadow: var(--glow); }
.academy-orbit .n1 { left: 50%; top: 0; transform: translate(-50%, -50%); }
.academy-orbit .n2 { right: 2%; bottom: 18%; transform: translate(30%, 0); }
.academy-orbit .n3 { left: 2%; bottom: 18%; transform: translate(-30%, 0); }
.academy-orbit { animation: orbit 60s linear infinite; }
.academy-orbit .node { animation: orbit 60s linear infinite; }   /* counter-rotates (keyframes below go to -360deg) */
.academy-orbit .n1 { animation-name: orbitN1; } .academy-orbit .n2 { animation-name: orbitN2; } .academy-orbit .n3 { animation-name: orbitN3; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbitN1 { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbitN2 { from { transform: translate(30%, 0) rotate(0); } to { transform: translate(30%, 0) rotate(-360deg); } }
@keyframes orbitN3 { from { transform: translate(-30%, 0) rotate(0); } to { transform: translate(-30%, 0) rotate(-360deg); } }

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500;
  color: var(--text); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .28); }
.pills-lg .pill { font-size: 14px; padding: 8px 16px; }
.pill-ico { width: 14px; height: 14px; color: var(--cyan); }
.section-lit .pill { color: var(--ink); background: #e6f6fa; border-color: #a5dfeb; }

/* student showcase */
.stu-group { margin-bottom: 52px; }
.stu-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.stu-group-head h3 { font-size: 20px; }
.group-ico { width: 26px; height: 26px; color: var(--cyan); }
.stu-pending { color: var(--muted); font-size: 15px; padding: 22px 24px; border: 1px dashed var(--border-lit); border-radius: var(--r-md); margin: 0; max-width: 70ch; }
.stu-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.stu-card { display: flex; flex-direction: column; padding: 22px; outline: none; }
.stu-card:hover, .stu-card:focus-visible { transform: translateY(-4px); }
.stu-card:focus-visible { box-shadow: 0 0 0 2px var(--cyan), var(--glow); }
.stu-card:active { transform: translateY(-1px) scale(.995); }
.stu-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.stu-head h4 { font-size: 17px; margin-bottom: 4px; }
.stu-media { position: relative; flex: 0 0 96px; width: 96px; height: 96px; }
.stu-photo, .stu-avatar { position: absolute; inset: 0; width: 96px; height: 96px; border-radius: 22px; object-fit: cover; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-line); background: linear-gradient(160deg, var(--surface-3), var(--surface)); }
.stu-photo { z-index: 1; }
.stu-photo[hidden] { display: none; }
.stu-avatar-ico { width: 40px; height: 40px; color: var(--cyan); opacity: .85; }
.stu-badge { position: absolute; right: -6px; bottom: -6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--navy); border: 1px solid var(--glass-line); }
.stu-badge-ico { width: 17px; height: 17px; color: var(--cyan); }
.stu-focus { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--text-soft); }
.stu-focus li:not(:last-child)::after { content: "·"; margin: 0 7px; color: var(--faint); }
.stu-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.stu-quote { margin: 2px 0 16px; padding: 14px 0 0; border-top: 1px solid var(--border); }
.stu-quote p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.6; }
.stu-quote p::before { content: "\201C"; color: var(--cyan); font-size: 22px; line-height: 0; vertical-align: -6px; margin-right: 2px; }
.stu-li { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: #9ccfff; background: rgba(10, 102, 194, .14); border: 1px solid rgba(10, 102, 194, .5);
  transition: background var(--t2) var(--ease), border-color var(--t2) var(--ease); }
.stu-li svg { width: 15px; height: 15px; }
.stu-li:hover, .stu-li:focus-visible { background: rgba(10, 102, 194, .28); border-color: #0a66c2; }
.stu-review { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(240, 180, 41, .1); border: 1px solid rgba(240, 180, 41, .45);
  font-size: 12px; color: #f5d27a; }
.stu-review strong { display: block; margin-bottom: 4px; }
.stu-review ul { margin: 6px 0 0; padding-left: 16px; }
.review-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 600;
  background: #f0b429; color: #1a1300; }

/* testimonials */
.quote-card { margin: 0; padding: 28px 26px; display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0 0 20px; }
.quote-card p { font-size: 15px; line-height: 1.65; margin: 0; }
.quote-card figcaption strong { display: block; font-size: 15px; }
.quote-card figcaption span { font-size: 13px; color: var(--muted); }
.section-lit .quote-card figcaption span { color: #52657d; }

/* --- products ----------------------------------------------------------------- */
.prod-family { margin-bottom: 44px; }
.prod-family > h2, .prod-family > h3 { font-size: 22px; margin-bottom: 6px; }
.prod-intro { color: var(--muted); margin-bottom: 20px; }
.prod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.prod-top h3, .prod-top h4 { font-size: 17px; }

/* team page: heading promoted to h1 (production had no h1); same look as the original h2 */
.ox-team-heading h1 { margin: 14px 0 0; max-width: 760px; font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.045em; }
.ox-team-heading h1 span { background: linear-gradient(90deg, #fff, #72ddff 45%, #a18cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 720px) { .ox-team-heading h1 { font-size: 40px; } }
.prod-mods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.prod-mods > span:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.prod-note { padding: 18px 22px; border-left: 2px solid var(--cyan); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--text-soft); max-width: 78ch; }
.status { flex-shrink: 0; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; border: 1px solid; }
.status-available { color: #86efac; border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .1); }
.status-pilot { color: #67e8f9; border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .1); }
.status-in-development { color: #fcd34d; border-color: rgba(240, 180, 41, .5); background: rgba(240, 180, 41, .1); }
.status-concept { color: #c4b5fd; border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .12); }
#products-preview .prod-family { margin-bottom: 26px; }
#products-preview .arrow-link { margin-top: 6px; }

/* portfolio labels */
.type { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: #fcd34d; border: 1px solid rgba(240, 180, 41, .45); background: rgba(240, 180, 41, .08); }
.ref-cat { font-size: 13px !important; color: var(--faint) !important; margin-bottom: 8px !important; }

/* --- process variants --------------------------------------------------------- */
.process-6 { grid-template-columns: repeat(6, 1fr); }
.process-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .process-6 { grid-template-columns: repeat(3, 1fr); } }

/* --- contact ------------------------------------------------------------------ */
.contact-paths-wrap { padding-top: 0; border-top: 0 !important; }
.contact-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cpath { padding: 30px 30px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.cpath-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.cpath-edu .cpath-kicker { color: #a78bfa; }
.cpath h2 { font-size: 22px; margin-bottom: 10px; }
.cpath p { color: var(--muted); font-size: 15px; }
.cpath-mail { font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--text); border-bottom: 1px solid rgba(34, 211, 238, .4); margin: 4px 0 20px; word-break: break-word; }
.cpath-edu .cpath-mail { border-bottom-color: rgba(139, 92, 246, .55); }
.cpath-mail:hover { color: var(--cyan); }
button.btn-ghost { background: transparent; color: var(--text); }
.route-note { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.route-note strong { color: var(--cyan); font-weight: 600; word-break: break-word; }
.field select optgroup { font-weight: 600; }

/* --- footer -------------------------------------------------------------------- */
.footer-top-5 { grid-template-columns: 1.4fr 1fr .9fr .9fr 1.2fr; }
.footer-mail li { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.footer-mail span { font-size: 12px; color: var(--faint); }
.footer-mail a { word-break: break-word; }
@media (max-width: 1100px) { .footer-top-5 { grid-template-columns: 1fr 1fr 1fr; } }

/* --- misc -------------------------------------------------------------------- */
.band-routes { flex-wrap: wrap; justify-content: flex-end; max-width: 520px; }
.band-routes .btn { padding: 12px 18px; font-size: 14.5px; }
.markets { margin-top: 20px; }
.market-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 8px; padding: 0; }
.market-list li { padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-lit); font-size: 13px; }
.market-note { font-size: 12.5px; color: var(--faint); margin: 0; }
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 20px; line-height: 1; transition: transform var(--t3) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); padding-bottom: 18px; margin: 0; }
.faq a, .prose a { color: var(--cyan); border-bottom: 1px solid rgba(34, 211, 238, .35); }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.page-head-cine { background: radial-gradient(800px 360px at 80% 30%, rgba(59, 130, 246, .14), transparent 70%),
  radial-gradient(600px 300px at 10% 0%, rgba(139, 92, 246, .10), transparent 70%); }
.err-hero { min-height: 80svh; text-align: center; }
.err-hero .hero-actions { justify-content: center; }
.err-hero .err-mark { margin: 0 auto 18px; }
.err-hero .hero-sub { margin-inline: auto; }

/* --- responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-grid, .track-grid, .course-grid, .prod-grid, .ref-grid, .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .band-routes { justify-content: flex-start; max-width: none; }
}
@media (max-width: 820px) {
  .process-4 { grid-template-columns: 1fr; }
  .contact-paths { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .path-grid, .family-grid, .track-grid, .course-grid, .prod-grid, .ref-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-cine { min-height: auto; padding-top: 120px; }
  .scroll-cue { display: none; }
  .academy-orbit { width: min(78%, 320px); }
  .cpath, .pad { padding: 24px 22px; }
  .footer-top-5 { grid-template-columns: 1fr 1fr; }
  .stu-card:hover { transform: none; }          /* tap feedback via :active only */
  .stu-media, .stu-photo, .stu-avatar { width: 80px; height: 80px; flex-basis: 80px; }
}
@media (max-width: 480px) { .footer-top-5 { grid-template-columns: 1fr; } }

/* --- reduced motion: everything still visible, nothing moves ----------------- */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track li:nth-child(n+10) { display: none; }
  .orb, .academy-orbit, .academy-orbit .node, .scroll-cue i { animation: none !important; }
  .js body.ready .hero-title .ht-line { animation: none !important; }
  .tilt, .stu-card, .glass { transform: none !important; }
}
/* --- proof strip (owner-supplied figures; verify before production) -------- */
.proof { padding: 0 0 40px; border-top: 0 !important; margin-top: -56px; z-index: 2; }
.proof + section { border-top: 0; }
.proof .proof-strip { padding: 0; gap: 14px; }
.proof .proof-strip li { padding: 22px 16px; border-radius: var(--r-lg); background: rgba(13, 32, 56, .72); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.proof .proof-strip span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-soft); }
.review-flag { margin: 10px 0 0; font-size: 12.5px; color: #f5d27a; text-align: center; }

/* --- case study card (Work / Selected work) -------------------------------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(18px, 2.4vw, 28px); }
.case-visual { display: block; width: 100%; max-width: 560px; justify-self: center; border-radius: var(--r-md); overflow: hidden; }
.hero-cine:has(+ .proof) .scroll-cue { display: none; }
.case-browser { display: block; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-md); overflow: hidden; background: #0b0e15;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8); transition: transform var(--t5) var(--ease-out); }
.case:hover .case-browser { transform: translateY(-3px); }
.case-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #080a0f; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.case-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.case-bar small { margin-left: 8px; font: 500 10px/1 var(--font-mono); color: rgba(255, 255, 255, .55); }
.case-screen { display: block; aspect-ratio: 16 / 9; padding: clamp(16px, 2.4vw, 26px); background: #f4f1e9; color: #111318; }
.case-screen-nav { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; }
.case-screen-nav b { font: 500 15px/1 Georgia, serif; }
.case-screen-nav em { font-style: normal; color: #4a4f57; }
.case-screen-title { display: block; margin-top: clamp(26px, 5vw, 56px); max-width: 15ch; font: 500 clamp(22px, 2.6vw, 36px)/1 Georgia, serif; letter-spacing: -.03em; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 11px/1.2 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-n { color: var(--cyan); }
.case-body h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 12px; }
.case-body > p { color: var(--text-soft); font-size: 15.5px; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 18px 0 12px; border-radius: var(--r-md); overflow: hidden;
  background: var(--border); border: 1px solid var(--border); }
.case-facts div { background: var(--surface); padding: 12px 14px; }
.case-facts dt { font: 500 10px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-size: 13px; color: var(--text); }
.case-body > p.case-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- academy structure ---------------------------------------------------------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.subnav a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 13.5px; color: var(--text-soft); border: 1px solid var(--border-lit);
  background: rgba(13, 32, 56, .5); transition: border-color var(--t2) var(--ease), color var(--t2) var(--ease); }
.subnav a:hover, .subnav a:focus-visible { color: var(--text); border-color: var(--cyan); }
.track-ico { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .14)); border: 1px solid var(--glass-line); }
.track-ico svg { width: 24px; height: 24px; color: var(--cyan); }
.lpath-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lpath { padding: 28px; }
.lpath-kicker { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.lpath h3 { font-size: 21px; margin-bottom: 8px; }
.lpath > p { color: var(--muted); }
.lpath-steps { list-style: none; counter-reset: s; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0; }
.lpath-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--r-pill);
  font-size: 13.5px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .28); }
.lpath-steps li::before { content: counter(s); font: 600 11px/1 var(--font-mono); color: var(--cyan); }
.flow-dark li { background: var(--surface); border-color: var(--border); box-shadow: none; }
.flow-dark h3 { color: var(--text); }
.flow-dark p { color: var(--muted); }
.flow-dark span { color: var(--cyan); }
.section-lit .cap-note a { color: #0e7490; border-bottom: 1px solid rgba(14, 116, 144, .35); }
.section-lit .path-card p { color: var(--ink-soft); }
.section-lit .path-n { color: #52657d; }
.section-lit .path-ico { color: #0e7490; }
.section-lit .arrow-link { color: #0e7490; }
@media (max-width: 1000px) { .case { grid-template-columns: 1fr; } .lpath-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .case-facts { grid-template-columns: 1fr; } .proof .proof-strip { gap: 10px; } .proof { margin-top: -20px; } }

@media print { .hero-stage, .ticker, .scroll-cue, .review-banner { display: none; } }

/* inner-page hero: space between lede and actions */
.page-head .hero-actions { margin-top: 28px; margin-bottom: 0; }

/* --- sample demo cards (portfolio) -------------------------------------------- */
#selected-work .case + .smp-grid { margin-top: 22px; }
.case-facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smp-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smp { display: flex; flex-direction: column; overflow: hidden; }
.smp-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.smp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font: 500 10.5px/1.3 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.smp h3 { font-size: 17.5px; margin-bottom: 8px; }
.smp-body > p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.smp-body > p.smp-out { font-size: 12.5px; color: var(--faint); font-style: italic; margin-bottom: 14px; }
.smp-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.smp-tech .chip { padding: 4px 9px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 12px; color: var(--text-soft); }
.smp .arrow-link { margin-top: auto; padding-top: 4px; }
.smp-more { margin: 26px 0 0; }
.sv { position: relative; display: block; aspect-ratio: 16 / 8; padding: 16px; background: linear-gradient(160deg, var(--surface-3), var(--surface));
  border-bottom: 1px solid var(--glass-line); overflow: hidden; }
.sv i { display: block; border-radius: 4px; background: rgba(148, 190, 235, .16); }
.sv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sv-kpis i { height: 22px; background: rgba(34, 211, 238, .16); }
.sv-chart { display: flex; align-items: flex-end; gap: 6px; height: 58%; margin-top: 10px; }
.sv-chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, rgba(34, 211, 238, .55), rgba(59, 130, 246, .25)); }
.sv-erp { display: grid; grid-template-columns: 22% 1fr; gap: 10px; }
.sv-side { display: block; border-radius: 6px; background: rgba(139, 92, 246, .16); }
.sv-table { display: grid; gap: 7px; align-content: start; }
.sv-table i { height: 14px; }
.sv-table i:first-child { background: rgba(34, 211, 238, .22); }
.sv-healthcare { display: grid; grid-template-columns: 30% 1fr; gap: 14px; align-items: center; }
.sv-cross { position: relative; display: block; width: 56px; height: 56px; margin: auto; }
.sv-cross::before, .sv-cross::after { content: ""; position: absolute; border-radius: 4px; background: rgba(34, 211, 238, .5); }
.sv-cross::before { left: 20px; top: 0; width: 16px; height: 56px; }
.sv-cross::after { left: 0; top: 20px; width: 56px; height: 16px; }
.sv-lines { display: grid; gap: 9px; }
.sv-lines i { height: 12px; }
.sv-lines i:nth-child(2) { width: 80%; } .sv-lines i:nth-child(4) { width: 60%; }
.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; }
.sv-grid i { background: rgba(59, 130, 246, .18); }
.sv-grid i:nth-child(2), .sv-grid i:nth-child(6) { background: rgba(139, 92, 246, .2); }
.sv-website { display: flex; flex-direction: column; gap: 12px; }
.sv-nav { display: flex; justify-content: flex-end; gap: 8px; }
.sv-nav i { width: 34px; height: 8px; }
.sv-hero { display: grid; gap: 8px; width: 62%; }
.sv-hero i { height: 14px; background: rgba(232, 237, 245, .22); }
.sv-hero i:last-child { width: 70%; height: 10px; background: rgba(148, 190, 235, .14); }
.sv-cta { display: block; width: 84px; height: 20px; border-radius: 6px; background: rgba(34, 211, 238, .45); }
@media (max-width: 1100px) { .smp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .smp-grid { grid-template-columns: 1fr; } .case-facts-2 { grid-template-columns: 1fr; } }


/* --- Work page filters --------------------------------------------------- */
.work-filter-section { padding: 8px 0 0; }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.work-filter { appearance: none; border: 1px solid var(--border-lit); border-radius: var(--r-pill); background: rgba(13,32,56,.55); color: var(--text-soft); padding: 9px 14px; font: inherit; font-size: 13px; cursor: pointer; transition: border-color var(--t2) var(--ease-out), background var(--t2) var(--ease-out), color var(--t2) var(--ease-out); }
.work-filter:hover, .work-filter:focus-visible { border-color: var(--cyan); color: var(--text); }
.work-filter:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.work-filter.is-active { background: rgba(34,211,238,.12); border-color: var(--cyan); color: var(--text); }
.work-filter-status { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
[data-work-card][hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .work-filter { transition: none; } }
