/* =========================================================
   TapGlobe Academy landing page
   Brand colours come from the TapGlobe logo. Change them here.
   ========================================================= */
:root {
  --navy-900: #0b3550;
  --navy-800: #0e4a66;
  --teal-600: #1f7a8c;
  --teal-500: #17a2b8;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-tint: #f3f7f9;
  --line: #dbe6ec;
  --ok: #16a34a;

  --grad: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--teal-600) 75%, var(--teal-500) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 53, 80, .25);
  --shadow-lg: 0 24px 50px -20px rgba(11, 53, 80, .45);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 1.2em; }
p { margin: 0 0 1em; }
a { color: var(--teal-600); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
/* border-box: paint the gradient under the transparent border too, or it repeats there and shows a seam at the corners */
.btn--primary { background: var(--grad) border-box; color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--light { background: #fff; color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: .88rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal-600); margin-bottom: .8em;
}
.eyebrow--light { color: #bdeaf2; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11,53,80,.5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 30px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; border-left: 2px solid var(--line); padding-left: 10px; }
.brand__text strong { font-family: var(--font-head); color: var(--navy-900); font-size: 1rem; }
.brand__text small { color: var(--muted); font-size: .68rem; }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 11px; border: 0; border-radius: 10px;
  background: var(--bg-tint); cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 16px 20px; box-shadow: var(--shadow);
  display: none;
}
.nav__menu.is-open { display: block; }
.nav__menu ul a {
  display: block; padding: 14px 4px; text-decoration: none;
  color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--bg-tint);
}
.nav__menu .btn { margin-top: 14px; width: 100%; }

@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; display: flex !important; align-items: center; gap: 28px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav__menu ul { display: flex; gap: 24px; }
  .nav__menu ul a { padding: 6px 0; border: 0; font-size: .93rem; position: relative; }
  .nav__menu ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--teal-500); transform: scaleX(0); transition: transform .2s;
  }
  .nav__menu ul a:hover::after { transform: scaleX(1); }
  .nav__menu .btn { margin: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad); color: #fff;
  padding: 56px 0 72px;
}
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; z-index: -1; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: #bdeaf2; }
.hero__sub { font-size: 1.08rem; color: #e2f2f6; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero__actions .btn { flex: 1 1 200px; }
.hero__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero__chips li:not(.arrow) {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
}
.hero__chips .arrow { color: #bdeaf2; }

.hero__visual { position: relative; padding: 18px 0 26px; }

/* Hero photo (assets/hero-students.jpg) with a lab-terminal fallback */
.hero-photo {
  position: relative; margin: 0; border-radius: 24px; overflow: hidden;
  aspect-ratio: 4 / 3; background: #072536;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 40px 80px -24px rgba(0,0,0,.55);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { /* brand tint over the photo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(11,53,80,.05) 40%, rgba(11,53,80,.45));
}
.hero-photo__fallback { display: none; position: absolute; inset: 0; padding: 18px; background:
  radial-gradient(circle at 80% 10%, rgba(23,162,184,.35), transparent 55%),
  linear-gradient(160deg, #0a2f47, #06202f); }
.hero-photo.is-missing img { display: none; }
.hero-photo.is-missing .hero-photo__fallback { display: grid; place-items: center; }

.term { width: 100%; max-width: 460px; border-radius: 14px; overflow: hidden; background: rgba(3,17,26,.85); border: 1px solid rgba(189,234,242,.25); }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255,255,255,.06); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.term__bar i:nth-child(2) { background: #f59e0b; }
.term__bar i:nth-child(3) { background: #22c55e; }
.term__bar span { margin-left: 8px; font: 500 .72rem ui-monospace, Consolas, monospace; color: #9fc3cf; }
.term__body {
  margin: 0; padding: 14px 16px 18px; white-space: pre-wrap;
  font: .78rem/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; color: #cfe8ee;
}
.term__body .p { color: #5eead4; }
.term__body .ok { color: #4ade80; }
.term__body .warn { color: #fbbf24; }
.cursor { display: inline-block; width: .6em; height: 1em; vertical-align: -2px; background: #5eead4; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: .82rem; line-height: 1.3;
}
.float-card strong { display: block; font-family: var(--font-head); color: var(--navy-900); }
.float-card small { color: var(--muted); }
.float-card--a { left: -6px; bottom: 0; animation: float 6s ease-in-out infinite .5s; }
.float-card--b { right: -6px; top: 0; animation: float 8s ease-in-out infinite 1s; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.badge-mini { font-family: var(--font-head); font-weight: 800; font-size: .7rem; color: #fff; background: var(--grad); padding: 5px 8px; border-radius: 8px; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 900px) {
  .hero { padding: 96px 0 110px; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .float-card--a { left: -28px; }
  .float-card--b { right: -20px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section__head p:last-child { color: var(--muted); }
@media (min-width: 900px) { .section { padding: 100px 0; } }

/* ---------- Progression path ---------- */
.path {
  list-style: none; padding: 0; margin: 0 auto 36px; max-width: 760px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.path__step { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--navy-900); }
.path__step > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.path__step small { font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); }
.path__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; font-size: .95rem; box-shadow: var(--shadow);
}
.path__bar { flex: 1; height: 3px; min-width: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--navy-800), var(--teal-500)); }
@media (max-width: 520px) {
  .path__step { flex-direction: column; gap: 6px; text-align: center; font-size: .9rem; }
  .path__step > span:last-child { align-items: center; }
  .path__bar { margin-bottom: 34px; }
}

/* ---------- Program cards ---------- */
.cards { display: grid; gap: 22px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.program { display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.program::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad); }
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program--featured { border-color: var(--teal-500); }
.program__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.program__code {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pill { font-size: .74rem; font-weight: 600; color: var(--navy-800); background: #e3f3f6; padding: 4px 10px; border-radius: 999px; }
.program__for { color: var(--muted); font-size: .95rem; }
.program__for strong { color: var(--ink); }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: #e3f3f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.program__get {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 20px; padding: 12px 14px;
  background: var(--bg-tint); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; color: var(--navy-900);
  margin-top: auto;
}
.program .btn { margin-top: 0; }
.program__actions { display: grid; gap: 10px; }
.btn--soft { background: #e3f3f6; color: var(--navy-900); }
.btn--soft:hover { background: #cdeaf0; }
.programs__note { text-align: center; color: var(--muted); font-size: .88rem; max-width: 640px; margin: 28px auto 0; }
.qr-ico {
  width: 22px; height: 22px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3550' stroke-width='2'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3zM14 14h3v3h-3zM18 18h3v3h-3z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Why tiles ---------- */
/* Dark "live lab" section with scrolling terminal output behind the cards */
.why { position: relative; overflow: hidden; isolation: isolate; background: #061c2a; color: #fff; }
.why h2 { color: #fff; }
.why__bg { position: absolute; inset: 0; z-index: -1; display: flex; align-items: flex-start; gap: 6%; padding: 0 3%; overflow: hidden; }
.why__bg::after { /* fade + brand tint so the cards stay readable */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #061c2a 0%, rgba(6,28,42,.55) 18%, rgba(6,28,42,.55) 82%, #061c2a 100%),
    radial-gradient(ellipse at 50% 50%, rgba(23,162,184,.18), transparent 70%);
}
.why__code {
  flex: 1; min-width: 0; margin: 0; white-space: pre; overflow: hidden visible;
  font: .78rem/1.75 ui-monospace, "Cascadia Code", Consolas, monospace;
  color: rgba(94,234,212,.55);
  animation: code-scroll 70s linear infinite;
}
.why__code--b { color: rgba(125,211,252,.42); animation-duration: 95s; animation-direction: reverse; }
@media (max-width: 700px) { .why__code--b { display: none; } }
@keyframes code-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.why__inner { position: relative; }
.tiles { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 940px; margin-inline: auto; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.tile {
  background: rgba(10, 46, 68, .62); border: 1px solid rgba(189,234,242,.2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius); padding: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(94,234,212,.55); box-shadow: 0 20px 40px -20px rgba(23,162,184,.6); }
.tile h3 { color: #fff; }
.tile p { color: #c4dde5; margin: 0; font-size: .95rem; }
.tile__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); margin-bottom: 16px; }
.tile__ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Mentor ---------- */
.mentor { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .mentor { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.photo-placeholder {
  aspect-ratio: 6 / 7; max-width: 420px; margin-inline: auto; border-radius: 24px;
  background: var(--grad); color: #fff; position: relative; overflow: hidden;
  display: grid; place-content: center; text-align: center; box-shadow: var(--shadow-lg);
}
.photo-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(130deg, transparent 49.6%, rgba(255,255,255,.25) 50%, transparent 50.4%),
    linear-gradient(0deg, transparent 69.6%, rgba(255,255,255,.2) 70%, transparent 70.4%);
}
.photo-placeholder span { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; letter-spacing: .05em; }
.photo-placeholder small { opacity: .8; }
.mentor__photo img { border-radius: 24px; box-shadow: var(--shadow-lg); max-width: 420px; margin-inline: auto; }
.mentor__role { font-weight: 600; color: var(--teal-600); }
.placeholder-text { background: #fff7e0; border: 1px dashed #e0b84a; border-radius: 8px; padding: 2px 8px; color: #6b5310; }
p.placeholder-text { padding: 12px 14px; }

/* ---------- Image + checklist feature rows ---------- */
.feature { display: grid; background: #061c2a; color: #fff; overflow: hidden; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .feature--flip .feature__copy { order: 0; }
}
.feature__media { position: relative; min-height: 340px; }
.feature__media .photo-slot { position: absolute; inset: 0; border-radius: 0; }
.feature__copy { padding: 48px 16px 56px; align-self: center; max-width: 640px; }
@media (min-width: 900px) {
  .feature__copy { padding: 72px 56px; }
  .feature--flip .feature__copy { justify-self: end; }
}
@media (min-width: 1240px) { .feature--flip .feature__copy { padding-left: calc((100vw - 1160px) / 2); max-width: none; } }
.feature h2 { color: #fff; }
.feature .hl { color: #5eead4; }
.feature p { color: #c4dde5; font-size: 1.04rem; }
.checklist { margin-top: 22px; padding: 22px 24px; border-radius: 14px; background: rgba(23,162,184,.1); border: 1px solid rgba(94,234,212,.18); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: #e8f4f7; font-weight: 500; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.checklist svg circle { fill: #17a2b8; }
.checklist svg path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stat { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; }
.stat strong { font: 800 clamp(2.2rem, 5vw, 3rem)/1 var(--font-head); color: #fff; letter-spacing: -.02em; }
.stat span:last-child { color: #9fc3cf; font-weight: 600; }

/* Photo slot: shows the image, or a branded placeholder if the file isn't there yet */
.photo-slot { position: relative; margin: 0; overflow: hidden; background:
  linear-gradient(rgba(189,234,242,.07) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, rgba(189,234,242,.07) 1px, transparent 1px) 0 0 / 40px 40px,
  radial-gradient(circle at 50% 35%, #0e4a66, #061c2a 75%); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.photo-slot__empty { display: none; position: absolute; inset: 0; place-content: center; text-align: center; padding: 16px; }
.photo-slot__empty span { display: block; font: 800 1.8rem var(--font-head); color: #fff; }
.photo-slot__empty small { color: #9fc3cf; font-size: .75rem; word-break: break-all; }
.photo-slot.is-missing img { display: none; }
/* Cut-out portraits sit on the slot's own grid background */
.photo-slot img[src$="abimel.webp"] { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 0 22px rgba(23,162,184,.4)); }
.photo-slot--mentor img[src$="abimel.webp"] { filter: grayscale(1) drop-shadow(0 0 22px rgba(23,162,184,.4)); }
.mentor-card:hover .photo-slot--mentor img[src$="abimel.webp"] { filter: drop-shadow(0 0 22px rgba(23,162,184,.5)); }
.photo-slot.is-missing .photo-slot__empty { display: grid; }

/* ---------- Mentors ---------- */
.mentor-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mentor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.mentor-card:hover { box-shadow: var(--shadow-lg); }
.photo-slot--mentor { aspect-ratio: 6 / 7; }
.photo-slot--mentor img { transition: filter .4s, transform .4s; }
.mentor-card:hover .photo-slot--mentor img { filter: none; transform: scale(1.03); }
.photo-slot--mentor .photo-slot__empty span { font-size: 2.6rem; }
.mentor-card__body { padding: 18px 20px 22px; }
.mentor-card__body h3 { margin-bottom: .25em; }
.mentor-card__body p { color: var(--muted); font-size: .9rem; margin-bottom: .8em; }
.mentor-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mentor-card__tags li { font-size: .74rem; font-weight: 600; color: var(--navy-800); background: #e3f3f6; padding: 4px 10px; border-radius: 999px; }

/* Hero stat */
.hero__stat { margin: 0 0 18px; color: #e2f2f6; font-weight: 500; }
.hero__stat strong { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin-right: 4px; }

/* Directional reveal for feature rows */
.js .reveal[data-from="left"]:not(.tile) { transform: translateX(-50px); }
.js .reveal[data-from="right"]:not(.tile) { transform: translateX(50px); }
.js .reveal[data-from].is-visible:not(.tile) { transform: none; }

/* ---------- From the CEO's desk ---------- */
.desk { background: #061c2a; color: #fff; overflow-x: clip; }
.desk__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .desk__inner { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.desk__photo { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(189,234,242,.18);
  background:
    linear-gradient(rgba(189,234,242,.07) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(189,234,242,.07) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 50% 35%, #0e4a66, #061c2a 70%);
}
.desk__photo::before, .desk__photo::after { /* corner crosshairs */
  content: "+"; position: absolute; top: 14px; font: 300 1.4rem/1 var(--font-body); color: rgba(189,234,242,.45);
}
.desk__photo::before { left: 18px; } .desk__photo::after { right: 18px; }
.desk__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* CEO desk: 3D stage with the cut-out portrait */
.desk__stage { perspective: 1100px; }
.desk__scene { position: relative; aspect-ratio: 8 / 9; max-width: 520px; margin: 0 auto; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.desk__floor { position: absolute; left: -12%; right: -12%; bottom: -4%; height: 48%; transform: rotateX(72deg); transform-origin: bottom;
  background:
    linear-gradient(rgba(94,234,212,.32) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(94,234,212,.32) 1px, transparent 1px) 0 0 / 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 70%);
  animation: floorMove 6s linear infinite; }
@keyframes floorMove { to { background-position: 0 36px, 0 0; } }
.desk__orb { position: absolute; left: 50%; top: 40%; width: 78%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(94,234,212,.55), rgba(23,162,184,.35) 35%, rgba(14,74,102,.25) 58%, transparent 70%);
  filter: blur(6px); }
.desk__ring { position: absolute; left: 50%; top: 52%; width: 92%; aspect-ratio: 1; margin: -46% 0 0 -46%; border-radius: 50%;
  border: 1.5px solid rgba(94,234,212,.45); box-shadow: 0 0 22px rgba(23,162,184,.35), inset 0 0 22px rgba(23,162,184,.2); }
.desk__ring--a { transform: rotateX(74deg) rotateZ(0); animation: ringSpin 18s linear infinite; border-style: dashed; }
.desk__ring--b { width: 70%; margin: -35% 0 0 -35%; top: 40%; transform: rotateY(68deg) rotateZ(0); animation: ringSpinB 24s linear infinite; border-color: rgba(189,234,242,.25); }
@keyframes ringSpin { to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes ringSpinB { to { transform: rotateY(68deg) rotateX(360deg); } }
.desk__portrait { position: absolute; left: 50%; bottom: 0; width: 86%; height: auto; translate: -50% 0; transform: translateZ(40px);
  filter: drop-shadow(0 0 1px rgba(189,234,242,.6)) drop-shadow(0 0 28px rgba(23,162,184,.45)); }
/* Rotating TapGlobe cube */
.cube { --s: 62px; position: absolute; top: 6%; right: 4%; width: var(--s); height: var(--s); transform-style: preserve-3d;
  animation: cubeSpin 14s linear infinite, bob 6s ease-in-out infinite; }
.cube__f { position: absolute; inset: 0; border-radius: 10px; border: 1px solid rgba(189,234,242,.5);
  background: rgba(189,234,242,.14) url(assets/tapglobe-icon-solid.png) center / 72% no-repeat; box-shadow: inset 0 0 18px rgba(94,234,212,.35); backdrop-filter: blur(2px); }
.cube__f--front { transform: translateZ(calc(var(--s) / 2)); }
.cube__f--back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube__f--right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube__f--left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube__f--top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube__f--bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes cubeSpin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
@keyframes bob { 50% { translate: 0 -10px; } }
/* Floating glass chips */
.chip3d { position: absolute; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; color: #e6f6fa; font-size: .78rem;
  background: rgba(6,28,42,.62); border: 1px solid rgba(189,234,242,.28); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: bob 7s ease-in-out infinite; }
.chip3d--term { left: -2%; top: 18%; transform: translateZ(90px) rotateY(14deg); font-family: ui-monospace, Menlo, Consolas, monospace; }
.chip3d--term code { font-size: .74rem; color: #bdeaf2; }
.chip3d--term .ok { color: #5eead4; }
.chip3d__dots { display: flex; gap: 4px; margin-bottom: 4px; }
.chip3d__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(189,234,242,.4); }
.chip3d__dots i:first-child { background: #f87171; }
.chip3d--shield { right: -2%; top: 46%; grid-auto-flow: column; align-items: center; gap: 8px; transform: translateZ(110px) rotateY(-16deg); animation-delay: -2.5s; font-weight: 600; }
.chip3d--shield svg { width: 22px; height: 22px; fill: rgba(23,162,184,.35); stroke: #5eead4; stroke-width: 1.6; stroke-linejoin: round; }
.chip3d--shield .tick { fill: none; stroke-linecap: round; }
.chip3d--stat { left: 2%; bottom: 12%; transform: translateZ(70px) rotateY(10deg); animation-delay: -4.5s; }
.chip3d--stat strong { font: 700 .86rem var(--font-head); color: #fff; letter-spacing: .02em; }
.chip3d--stat span { color: #9fc3cf; font-size: .74rem; }
@media (max-width: 480px) {
  .chip3d { font-size: .7rem; padding: 8px 10px; }
  .chip3d--term { left: 0; top: 14%; transform: translateZ(70px); }
  .chip3d--shield { right: 0; transform: translateZ(70px); }
  .chip3d--stat { left: 0; transform: translateZ(70px); }
  .chip3d--term code { font-size: .66rem; }
  .cube { --s: 46px; }
}
.desk__placeholder { aspect-ratio: 8 / 9; display: grid; place-content: center; text-align: center; }
.desk__placeholder span { font-family: var(--font-head); font-weight: 800; font-size: 3.6rem; letter-spacing: .05em; color: #fff; }
.desk__placeholder small { color: #9fc3cf; }
.desk__pill { display: inline-block; font-size: .85rem; font-weight: 600; color: #5eead4; background: rgba(23,162,184,.16); border: 1px solid rgba(94,234,212,.3); padding: 6px 14px; border-radius: 999px; }
.desk__quote { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.25; margin: .5em 0 .7em; }
.desk__text { color: #c4dde5; font-size: 1.04rem; }
.desk__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin: 1.4em 0 .1em; }
.desk__role { color: #5eead4; font-weight: 600; font-size: .9rem; }
.desk__social { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.desk__social a:not(.desk__link) { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; transition: transform .2s, background-color .2s; }
.desk__social a:not(.desk__link):hover { transform: translateY(-2px); background: #bdeaf2; }
.desk__social svg { width: 20px; height: 20px; fill: var(--navy-900); }
.desk__link { color: #bdeaf2; font-weight: 600; text-decoration: none; padding: 8px 4px; }
.desk__link:hover { text-decoration: underline; }

/* ---------- Tools strip (two rows, opposite directions) ---------- */
.tools { background: #061c2a; padding: 10px 0 64px; overflow: hidden; border-top: 1px solid rgba(189,234,242,.1); }
.tools__title { text-align: center; color: #e2f2f6; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 600; margin: 48px 16px 28px; }
.marquee { overflow: hidden; margin-bottom: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 16px; animation: marquee 45s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.tool {
  display: flex; align-items: center; gap: 12px; flex: none;
  min-width: 220px; height: 92px; padding: 0 26px; border-radius: 12px;
  background: #fff; color: var(--ink);
}
.tool__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--c); color: #fff; font: 800 1.15rem var(--font-head);
}
.tool__name { font: 800 1.2rem var(--font-head); letter-spacing: -.01em; color: var(--c); filter: saturate(.9) brightness(.8); white-space: nowrap; }
.tools__note { text-align: center; color: #6f8f9c; font-size: .75rem; margin: 18px 16px 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* The track holds two copies, so -50% plus half a gap keeps the loop seamless */
.marquee__track { padding-right: 16px; }

/* ---------- Thin terms ticker ---------- */
.ticker { background: var(--grad); overflow: hidden; padding: 11px 0; border-block: 1px solid rgba(255,255,255,.15); }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker li {
  flex: none; display: flex; align-items: center; white-space: nowrap;
  font: 700 .82rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.ticker li::after { content: "◆"; margin: 0 22px; font-size: .55rem; color: #5eead4; }
@media (max-width: 600px) { .tool { min-width: 180px; height: 76px; padding: 0 18px; } .tool__name { font-size: 1.02rem; } }

/* ---------- Verify ---------- */
.verify { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.verify::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px;
  border: 1.5px solid rgba(255,255,255,.15); border-radius: 50%;
}
.verify h2 { color: #fff; }
.verify p { color: #e2f2f6; }
.verify__inner { display: grid; gap: 28px; align-items: center; position: relative; }
@media (min-width: 900px) { .verify__inner { grid-template-columns: 1fr 1fr; gap: 56px; } }
.verify__action {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.verify__action .btn { width: 100%; max-width: 320px; }
.btn--lg { min-height: 56px; font-size: 1.05rem; }
.verify__hint { font-size: .85rem; margin: 10px 0 0; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #b9dce4; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--teal-600); font-size: 1.2rem; transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 80px; }
.cta__inner {
  background: var(--grad); color: #fff; text-align: center; border-radius: 28px;
  padding: 52px 24px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0; opacity: .15;
  background: linear-gradient(130deg, transparent 49.7%, #fff 50%, transparent 50.3%);
}
.cta__inner > * { position: relative; }
.cta__icon { width: 72px; margin: 0 auto 16px; }
.cta h2 { color: #fff; }
.cta p { color: #e2f2f6; margin-bottom: 24px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer { background: #08283d; color: #c7dbe4; padding: 56px 0 24px; font-size: .93rem; }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer h3 { color: #fff; font-size: .95rem; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: #c7dbe4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__logo { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 14px; }
.footer__logo img { height: 28px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; }
.footer__bottom p { margin: 0; font-size: .85rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .tile.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s; }
.js .tile.reveal[data-from="left"] { transform: translateX(-70px); }
.js .tile.reveal[data-from="right"] { transform: translateX(70px); }
.js .tile.reveal[data-from="right"].is-visible { transition-delay: .12s; }
.js .tile.reveal.is-visible { transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal[data-from] { opacity: 1 !important; transform: none !important; }
  .marquee, .ticker { overflow-x: auto; }
}
.js .tile.reveal.is-visible:hover { transform: translateY(-3px); }
@media (max-width: 899px) { .feature--flip .feature__media { order: -1; } }

/* ---------- Programs dropdown in the navbar ---------- */
.sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
  padding: 14px 4px; border: 0; border-bottom: 1px solid var(--bg-tint); background: none; cursor: pointer;
  font: 600 1rem var(--font-body); color: var(--ink); text-align: left;
}
.sub-toggle svg { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.nav__menu .sub { display: none; padding: 4px 0 8px 10px; }
.has-sub.is-open .sub { display: block; }
.nav__menu .sub a { display: block; padding: 10px 4px; border-bottom: 0; }
.nav__menu .sub a::after { display: none; }
.sub strong { display: block; font-family: var(--font-head); color: var(--navy-900); }
.sub small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.sub a:hover strong, .sub a[aria-current="page"] strong { color: var(--teal-600); }
.sub__all a { color: var(--teal-600) !important; font-weight: 700; font-size: .9rem; }
@media (max-width: 959px) {
  .nav__menu { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
}
@media (min-width: 960px) {
  .nav__list { align-items: center; }
  .has-sub { position: relative; }
  .sub-toggle { width: auto; padding: 6px 0; border: 0; font-size: .93rem; }
  .sub-toggle:hover { color: var(--teal-600); }
  .nav__menu .sub {
    position: absolute; top: calc(100% + 14px); left: -18px; min-width: 300px; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
    box-shadow: 0 20px 40px -18px rgba(11,53,80,.35); flex-direction: column; gap: 0;
  }
  .nav__menu .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { display: flex; }
  .nav__menu .sub a { padding: 10px 12px; border-radius: 10px; }
  .nav__menu .sub a:hover { background: var(--bg-tint); }
  .sub__all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
}

/* Announcement banner set from the admin page */
.site-banner { background: var(--grad); color: #fff; text-align: center; font-weight: 600; font-size: .95rem; padding: 10px 16px; }
.btn.is-closed { opacity: .55; pointer-events: none; }
[data-program][hidden] { display: none !important; }
