/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --ink: #0A1633;
  --ink-2: #101F45;
  --ink-3: #1A2B5E;
  --azure: #2F6BFF;
  --azure-ink: #1D4ED8;
  --sky: #5CC8FF;
  --coral: #FF6A3D;
  --coral-ink: #C93D12;
  --apricot: #FFB357;
  --violet: #7B61FF;
  --teal: #12B5A6;

  --paper: #F5F7FC;
  --paper-2: #EBF0F8;
  --white: #FFFFFF;
  --text: #0E1A36;
  --muted: #55627E;
  --line: #DDE4F0;
  --line-strong: #C9D3E6;
  --on-dark: #E9EEFA;
  --on-dark-muted: #A9B6D3;

  --grad-warm: linear-gradient(120deg, var(--coral) 0%, var(--apricot) 100%);
  --grad-cool: linear-gradient(120deg, var(--azure) 0%, var(--sky) 100%);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(10, 22, 51, .05), 0 10px 30px -12px rgba(10, 22, 51, .12);
  --shadow-lg: 0 2px 4px rgba(10, 22, 51, .04), 0 30px 60px -24px rgba(10, 22, 51, .30);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;

  color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: var(--azure-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azure); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }

.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.01em;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}

::selection { background: rgba(255, 179, 87, .45); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 17px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: progress; }

.btn-primary {
  background: var(--grad-warm);
  color: var(--ink);
  box-shadow: 0 12px 30px -12px rgba(255, 106, 61, .75);
}
.btn-primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(255, 106, 61, .85); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .28);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--ink-3); transform: translateY(-2px); }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); }

.btn-sm { padding: 12px 18px; font-size: .92rem; }
.btn-sm svg { width: 16px; height: 16px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--azure-ink);
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .25s ease;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 22, 51, .92);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.site-header.is-scrolled::before, .site-header.is-open::before { background: rgba(10, 22, 51, .98); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  display: block;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-tag {
  display: block;
  margin-top: 3px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.nav-menu { display: flex; align-items: center; gap: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--on-dark);
  font-size: .96rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(7px); }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: rotate(45deg); }
.is-open .nav-toggle span::after { transform: rotate(-45deg); }

/* ==========================================================================
   Sections & shared pieces
   ========================================================================== */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-white { background: #fff; }
.section-dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--azure-ink);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-warm);
}
.on-dark .eyebrow, .section-dark .eyebrow { color: var(--sky); }

.section-head { max-width: 740px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 32px 64px;
  align-items: end;
}
.section-head h2 { margin-bottom: 0; }
.section-head .lead { margin: 20px 0 0; }
.section-head.split .lead { margin: 0; }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
}
.section-dark .lead { color: var(--on-dark-muted); }

.small { font-size: .92rem; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: var(--azure-ink);
  background: linear-gradient(135deg, rgba(47, 107, 255, .12), rgba(92, 200, 255, .22));
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.warm { color: var(--coral-ink); background: linear-gradient(135deg, rgba(255, 106, 61, .14), rgba(255, 179, 87, .26)); }
.icon-badge.violet { color: #5536E0; background: linear-gradient(135deg, rgba(123, 97, 255, .14), rgba(167, 139, 250, .24)); }
.icon-badge.teal { color: #0B7F75; background: linear-gradient(135deg, rgba(18, 181, 166, .14), rgba(94, 234, 212, .26)); }

.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(47, 107, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section-dark .checklist li::before {
  background: rgba(92, 200, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235CC8FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
}
.chip.light { color: var(--azure-ink); background: rgba(47, 107, 255, .08); border-color: rgba(47, 107, 255, .18); }

/* Tone gradients used on course cards */
.tone-azure { background: radial-gradient(120% 120% at 100% 0%, #5CC8FF 0%, transparent 55%), linear-gradient(135deg, #1D4ED8 0%, #2F6BFF 60%, #3B8BFF 100%); }
.tone-coral { background: radial-gradient(120% 120% at 100% 0%, #FFD08A 0%, transparent 55%), linear-gradient(135deg, #E64A1F 0%, #FF6A3D 55%, #FF8F4F 100%); }
.tone-violet { background: radial-gradient(120% 120% at 100% 0%, #C4B5FD 0%, transparent 55%), linear-gradient(135deg, #4C2FD8 0%, #7B61FF 60%, #9B7BFF 100%); }
.tone-teal { background: radial-gradient(120% 120% at 100% 0%, #8FF5E1 0%, transparent 55%), linear-gradient(135deg, #087A70 0%, #12B5A6 60%, #2FD1BF 100%); }
.tone-ink { background: radial-gradient(120% 120% at 100% 0%, rgba(92, 200, 255, .55) 0%, transparent 55%), linear-gradient(135deg, #0A1633 0%, #1A2B5E 100%); }
.tone-sunset { background: radial-gradient(120% 120% at 0% 100%, rgba(255, 106, 61, .9) 0%, transparent 60%), radial-gradient(100% 100% at 100% 0%, rgba(92, 200, 255, .7) 0%, transparent 55%), linear-gradient(135deg, #1A2B5E 0%, #4C2FD8 100%); }

/* ==========================================================================
   Hero (home) and page hero (inner pages)
   ========================================================================== */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 65% at 88% 105%, rgba(255, 106, 61, .42), transparent 62%),
    radial-gradient(40% 45% at 66% 92%, rgba(255, 179, 87, .22), transparent 62%),
    radial-gradient(50% 60% at 8% -5%, rgba(47, 107, 255, .5), transparent 62%),
    radial-gradient(35% 40% at 40% 30%, rgba(123, 97, 255, .16), transparent 70%),
    linear-gradient(180deg, #0A1633 0%, #111F48 55%, #1B2252 100%);
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 35%, #000 25%, transparent 80%);
  mask-image: radial-gradient(75% 70% at 50% 35%, #000 25%, transparent 80%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 48px;
  align-items: center;
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(110px, 12vw, 150px);
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero .lead { max-width: 580px; margin-bottom: 36px; color: var(--on-dark-muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--on-dark);
}
.hero-points li { display: inline-flex; align-items: center; gap: 9px; }
.hero-points svg { width: 18px; height: 18px; color: var(--sky); }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  aspect-ratio: 1 / 1;
}
.hero-visual > svg { width: 100%; height: 100%; overflow: visible; }

.glass {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 16px 16px;
  color: #fff;
  max-width: 300px;
  animation: float 7s ease-in-out infinite;
}
.float-card .fc-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--grad-warm);
  color: var(--ink);
}
.float-card .fc-icon.cool { background: var(--grad-cool); color: #fff; }
.float-card .fc-icon svg { width: 22px; height: 22px; }
.float-card small {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
}
.float-card strong { display: block; font-size: .98rem; line-height: 1.3; letter-spacing: -0.01em; }
.float-card span { display: block; font-size: .82rem; color: var(--on-dark-muted); }
.float-card.fc-1 { top: 6%; left: -6%; }
.float-card.fc-2 { right: -2%; bottom: 8%; animation-delay: -3.5s; }

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

.orbit { animation: spin 40s linear infinite; transform-box: view-box; transform-origin: 260px 260px; }
@keyframes spin { to { transform: rotate(360deg); } }

.twinkle { animation: twinkle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.twinkle.t2 { animation-delay: -1.1s; }
.twinkle.t3 { animation-delay: -2.2s; }
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.75); }
  50% { opacity: 1; transform: scale(1.1); }
}

.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(64px, 8vw, 100px); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 860px; margin-bottom: 20px; color: #fff; }
.page-hero .lead { max-width: 680px; margin: 0; color: var(--on-dark-muted); }
.page-hero.compact { padding: clamp(56px, 7vw, 84px) 0 clamp(48px, 6vw, 72px); }
.page-hero.compact h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero .hero-points { margin-top: 32px; }

/* ==========================================================================
   Home: facts strip
   ========================================================================== */
.facts { position: relative; z-index: 2; margin-top: -64px; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.fact { padding: 30px 30px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fact:nth-child(even) strong { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }
.fact span { display: block; font-size: .95rem; line-height: 1.45; color: var(--muted); }

/* ==========================================================================
   Course cards (home, featured)
   ========================================================================== */
.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.course-card:hover { color: inherit; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 168px;
  padding: 22px;
  overflow: hidden;
  color: #fff;
}
.course-top .deco {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 150px;
  height: 150px;
  color: rgba(255, 255, 255, .22);
  transition: transform .5s ease;
}
.course-card:hover .deco { transform: rotate(-8deg) scale(1.06); }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.course-body h3 { margin-bottom: 10px; }
.course-body p { color: var(--muted); margin-bottom: 22px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
  list-style: none;
}
.meta li { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { width: 16px; height: 16px; color: var(--azure-ink); }

/* ==========================================================================
   Steps (how it works)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { position: relative; padding-top: 76px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  background: var(--grad-warm);
  box-shadow: 0 0 0 8px rgba(255, 106, 61, .12);
}
.step::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 74px;
  right: -12px;
  border-top: 2px dashed rgba(255, 255, 255, .2);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--on-dark-muted); }

.section-dark .glow {
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .5;
  pointer-events: none;
}
.glow.g-azure { top: -320px; left: -200px; background: radial-gradient(circle, rgba(47, 107, 255, .55), transparent 65%); }
.glow.g-coral { bottom: -360px; right: -160px; background: radial-gradient(circle, rgba(255, 106, 61, .45), transparent 65%); }

/* ==========================================================================
   Audience / split layouts
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split.top { align-items: start; }

.audience { display: grid; gap: 16px; }
.audience-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.audience-item:hover { transform: translateX(6px); border-color: var(--line-strong); }
.audience-item .icon-badge { margin: 0; }
.audience-item h3 { margin-bottom: 4px; font-size: 1.12rem; }
.audience-item p { margin: 0; color: var(--muted); font-size: .97rem; }

.quote-panel {
  position: relative;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.quote-panel p { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; }
.quote-panel .accent { color: transparent; }
.quote-panel small { display: block; color: rgba(255, 255, 255, .78); font-size: .92rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1633' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease, background-color .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(255, 179, 87, .35); }
.faq summary:hover { color: var(--azure-ink); }
.faq details > div { padding: 0 56px 24px 4px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px 48px;
  align-items: center;
  padding: clamp(40px, 6vw, 76px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--ink);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(255, 106, 61, .55), transparent 60%),
    radial-gradient(50% 100% at 0% 0%, rgba(47, 107, 255, .55), transparent 60%),
    radial-gradient(40% 80% at 60% 0%, rgba(123, 97, 255, .3), transparent 60%);
}
.cta-band h2 { margin-bottom: 14px; color: #fff; }
.cta-band p { margin: 0; color: var(--on-dark); font-size: 1.1rem; max-width: 600px; }
.cta-band .hero-actions { justify-content: flex-end; }

/* ==========================================================================
   Trainings page
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filters-label { margin-right: 6px; font-weight: 700; font-size: .92rem; color: var(--muted); }
.filter {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters-count { margin-left: auto; font-size: .92rem; color: var(--muted); }

.programs { display: grid; gap: 28px; }
.program {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.program[hidden] { display: none; }
.program-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 30px;
  overflow: hidden;
  color: #fff;
}
.program-side .deco {
  position: absolute;
  right: -30px;
  top: 40px;
  width: 190px;
  height: 190px;
  color: rgba(255, 255, 255, .16);
  pointer-events: none;
}
.program-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
}
.program-icon svg { width: 28px; height: 28px; }
.program-facts { position: relative; display: grid; gap: 14px; margin: auto 0 0; }
.program-facts div { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .24); }
.program-facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.program-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.02rem; }

.program-main { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); }
.program-kicker { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-ink); }
.program-main h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.program-main > p { color: var(--muted); font-size: 1.04rem; }
.program-main h3 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 18px 0 16px; }
.checklist.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.program-includes { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.program-includes li {
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
}
.program-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.program-foot p { margin: 0; font-size: .94rem; color: var(--muted); max-width: 440px; }
.program-foot strong { color: var(--text); }
.program-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.no-results { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.format-card { display: flex; flex-direction: column; }
.format-card .checklist { margin-top: 20px; font-size: .96rem; }
.format-card .checklist li { color: var(--muted); }

/* ==========================================================================
   About page
   ========================================================================== */
.story { font-size: 1.08rem; }
.story p { color: var(--muted); }
.story p strong { color: var(--text); }
.big-quote {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.values .card { padding: 28px; }
.values .card h3 { font-size: 1.15rem; }

.standard-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: std; }
.standard-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.standard-list li:first-child { border-top: 1px solid rgba(255, 255, 255, .12); }
.standard-list li::before {
  counter-increment: std;
  content: "0" counter(std);
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.standard-list h3 { margin-bottom: 6px; }
.standard-list p { margin: 0; color: var(--on-dark-muted); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.form-card {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 700; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #FBFCFE;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: #FBFCFE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355627E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9B6D3; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--azure);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .16);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--coral-ink); }
.field-hint { font-size: .84rem; color: var(--muted); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--azure); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-actions .small { margin: 0; color: var(--muted); }

.form-status { display: none; margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-weight: 600; }
.form-status.success { display: block; background: rgba(18, 181, 166, .1); border: 1px solid rgba(18, 181, 166, .4); color: #0B6B62; }
.form-status.error { display: block; background: rgba(255, 106, 61, .08); border: 1px solid rgba(255, 106, 61, .4); color: var(--coral-ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { display: grid; gap: 20px; }
.info-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.info-card h3 { color: #fff; margin-bottom: 20px; }
.info-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.info-list .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
}
.info-list .ic svg { width: 20px; height: 20px; }
.info-list small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.info-list a, .info-list span { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.info-list a:hover { text-decoration: underline; }

.next-steps { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.next-steps h3 { margin-bottom: 18px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: ns; }
.next-steps li { position: relative; padding-left: 44px; color: var(--muted); font-size: .97rem; }
.next-steps li strong { display: block; color: var(--text); }
.next-steps li::before {
  counter-increment: ns;
  content: counter(ns);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 800;
  color: var(--azure-ink);
  background: rgba(47, 107, 255, .1);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.legal-toc p { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: toc; }
.legal-toc a {
  display: block;
  padding: 6px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}
.legal-toc a:hover { background: var(--paper); color: var(--azure-ink); }

.legal-body { max-width: 780px; }
.legal-body h2 { margin: 2.4em 0 .6em; font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { margin: 1.6em 0 .5em; font-size: 1.08rem; }
.legal-body p, .legal-body li { color: #33405C; }
.legal-body ul { margin: 0 0 1.2em; padding-left: 1.25em; }
.legal-body li { margin-bottom: .5em; }
.legal-body li::marker { color: var(--coral); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .92rem; color: var(--on-dark-muted); }
.notice {
  margin: 0 0 2.2em;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 12px;
  background: #fff;
}
.notice p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 32px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: .96rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azure), var(--sky) 30%, var(--violet) 55%, var(--coral) 80%, var(--apricot));
}
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -200px;
  bottom: -320px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .28), transparent 65%);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand p { max-width: 340px; margin: 22px 0 26px; }
.footer-col h2 {
  margin: 6px 0 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s ease; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: var(--on-dark-muted); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   Reveal on scroll (content stays visible without JS)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .twinkle, .orbit { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .program { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a { padding: 16px 18px; border-radius: 14px; font-size: 1.15rem; }
  .nav-menu .btn { width: 100%; }

  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 120px; }
  .hero-inner > div:first-child { max-width: 680px; }
  .hero-visual { justify-self: center; max-width: 460px; }
  .float-card.fc-1 { left: 0; }
  .float-card.fc-2 { right: 0; }

  .section-head.split { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .hero-actions { justify-content: flex-start; }
  .contact-layout { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .program { grid-template-columns: 1fr; }
  .program-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .program-side .deco { top: -20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }

  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.05rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step { padding-top: 0; padding-left: 76px; min-height: 54px; }
  .step::after { display: none; }

  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { gap: 10px 18px; font-size: .9rem; }
  .hero-visual { max-width: 380px; }
  .float-card { padding: 10px 14px 10px 10px; max-width: 200px; gap: 10px; border-radius: 14px; }
  .float-card .fc-icon { width: 34px; height: 34px; border-radius: 10px; }
  .float-card .fc-icon svg { width: 18px; height: 18px; }
  .float-card small { font-size: .6rem; }
  .float-card strong { font-size: .82rem; }
  .float-card span { display: none; }
  .float-card.fc-1 { top: 1%; left: 0; }
  .float-card.fc-2 { bottom: 1%; right: 0; }

  .facts { margin-top: -72px; }
  .fact { padding: 22px 18px; }

  .card { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .checklist.cols-2 { grid-template-columns: 1fr; }
  .program-actions, .program-actions .btn { width: 100%; }
  .filters-count { margin-left: 0; width: 100%; }
  .faq details > div { padding-right: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.contact-col { grid-column: 1 / -1; }
  .audience-item { grid-template-columns: 1fr; gap: 14px; }
  .standard-list li { grid-template-columns: 48px 1fr; gap: 14px; }
}

.nowrap { white-space: nowrap; }

/* Where we train (home) */
.pt-0 { padding-top: 0; }
.location-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px 56px;
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.location-band h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.location-band p:not(.eyebrow) { margin: 0; color: var(--muted); }
.places { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.places li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.places .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--grad-cool); }
.places li:nth-child(2) .ic { color: var(--ink); background: var(--grad-warm); }
.places .ic svg { width: 22px; height: 22px; }
.places small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azure-ink); }
.places strong { display: block; font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.01em; }
.places .desc { display: block; margin-top: 2px; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .location-band { grid-template-columns: 1fr; } }

/* ==========================================================================
   Photos
   ========================================================================== */
.has-photo { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.media-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.media-tone { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.course-top .media-tone { opacity: .9; mix-blend-mode: multiply; }
.course-top.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 51, .35) 0%, rgba(10, 22, 51, 0) 55%);
}
.course-card:hover .media-photo { transform: scale(1.05); }
.program-side .media-tone { opacity: .95; mix-blend-mode: multiply; }
.program-side.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 51, .1) 0%, rgba(10, 22, 51, .45) 100%);
}

/* Home photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}
.ps-item {
  position: relative;
  height: clamp(280px, 30vw, 420px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.ps-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ps-item:hover img { transform: scale(1.04); }
.ps-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(10, 22, 51, .78), transparent);
  pointer-events: none;
}
.ps-item figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ps-item figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 4px rgba(255, 179, 87, .25); }

/* About: inline classroom photo */
.inline-photo {
  margin: 40px 0 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.inline-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* Trainings: format cards with a photo header */
.format-card { padding: 0; overflow: hidden; }
.format-card .format-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s ease; }
.format-card:hover .format-photo { transform: scale(1.04); }
.format-card .icon-badge {
  position: relative;
  margin: -30px 0 18px 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.format-card h3, .format-card > p, .format-card .checklist { margin-left: 30px; margin-right: 30px; }
.format-card .checklist { margin-bottom: 32px; }

/* CTA band with photo */
.cta-band.has-photo::before {
  background:
    linear-gradient(90deg, rgba(10, 22, 51, .96) 0%, rgba(10, 22, 51, .86) 42%, rgba(10, 22, 51, .45) 75%, rgba(10, 22, 51, .25) 100%),
    radial-gradient(60% 120% at 100% 100%, rgba(255, 106, 61, .45), transparent 60%),
    radial-gradient(50% 100% at 0% 0%, rgba(47, 107, 255, .4), transparent 60%);
}

@media (max-width: 960px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .ps-a { grid-column: 1 / -1; }
  .cta-band.has-photo::before {
    background:
      linear-gradient(180deg, rgba(10, 22, 51, .92) 0%, rgba(10, 22, 51, .8) 60%, rgba(10, 22, 51, .55) 100%),
      radial-gradient(80% 60% at 100% 100%, rgba(255, 106, 61, .4), transparent 60%);
  }
}
@media (max-width: 640px) {
  .ps-item { height: 220px; }
  .ps-a { height: 240px; }
  .ps-item figcaption { left: 14px; bottom: 12px; font-size: .86rem; }
  .format-card .icon-badge { margin-left: 26px; }
  .format-card h3, .format-card > p, .format-card .checklist { margin-left: 26px; margin-right: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .media-photo, .ps-item img, .format-card .format-photo { transition: none; }
}
