/* =========================================================
   ASCENT TRAINING WALES — ULTRA-MODERN STYLESHEET v2
   Navy + electric blue · Bricolage Grotesque · Cardiff · 2026
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — deep navy + electric blue */
  --ink: #060B14;
  --navy: #0B1F3A;             /* primary brand navy */
  --navy-deep: #050E1F;
  --navy-mid: #163358;
  --blue: #2563EB;             /* electric accent */
  --blue-bright: #3B82F6;
  --blue-soft: #DBEAFE;
  --blue-haze: #EFF4FB;
  --paper: #FAFBFC;
  --paper-warm: #F1F4F8;
  --paper-deep: #E5EAF0;
  --rule: rgba(6, 11, 20, 0.10);
  --rule-strong: rgba(6, 11, 20, 0.22);
  --muted: #5E6B7E;
  --ink-soft: #2A3340;

  /* Typography */
  --display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --sans: "Geist", "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --max: 1360px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --radius: 8px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ----- Typography ------------------------------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "wdth" 100;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.display-xl {
  font-family: var(--display);
  font-size: clamp(54px, 9.5vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "wdth" 100;
}
.display-xl em {
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}

.display-l { font-size: clamp(42px, 6.5vw, 92px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 600; }
.display-m { font-size: clamp(32px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.display-s { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.05; letter-spacing: -0.022em; font-weight: 600; }

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  font-weight: 400;
}

p { color: var(--ink-soft); }

/* ----- Container ------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- Topbar ---------------------------------------------- */
.topbar {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar a { color: var(--blue-bright); transition: color .2s; }
.topbar a:hover { color: var(--paper); }
.topbar .marquee { overflow: hidden; flex: 1; min-width: 0; }
.topbar .marquee-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.topbar .marquee-track span { opacity: 0.7; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Nav (sticky, single-line) --------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--blue-bright);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s ease;
}
.brand:hover .brand-mark { background: var(--blue); color: var(--paper); transform: rotate(-6deg); }
.brand-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 4px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}
.nav-menu li { white-space: nowrap; }
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: all .2s ease;
  white-space: nowrap;
  display: inline-block;
  color: var(--ink-soft);
}
.nav-menu a:hover { background: var(--blue-haze); color: var(--navy); }
.nav-menu .current a {
  background: var(--navy);
  color: var(--paper);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--blue);
  color: var(--paper) !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all .25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta::after {
  content: "→";
  transition: transform .25s ease;
  font-family: var(--mono);
}
.nav-cta:hover { background: var(--navy); }
.nav-cta:hover::after { transform: translateX(3px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink);
  position: relative; display: block;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

/* Hide brand text first at tablet to free space, then collapse */
@media (max-width: 1200px) {
  .brand-text { display: none; }
}
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-text { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 16px var(--gutter) 28px;
    border-bottom: 1px solid var(--rule);
    gap: 2px;
    align-items: stretch;
  }
  .nav-menu.open li { width: 100%; }
  .nav-menu.open a { display: block; width: 100%; }
}

/* ----- Hero ------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 940px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--paper);
  isolation: isolate;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.45;
  filter: contrast(1.05) saturate(0.85);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(37, 99, 235, 0.30), transparent 55%),
    radial-gradient(ellipse at 90% 80%, rgba(59, 130, 246, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(5,14,31,0.45) 0%, rgba(5,14,31,0.70) 60%, rgba(5,14,31,0.92) 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(250,251,252,0.04) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(250,251,252,0.04) 79px 80px);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  padding: 130px 0 90px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) .2s forwards;
}
.hero-eyebrow::before {
  content: ""; width: 36px; height: 1px; background: currentColor;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(50px, 8.5vw, 134px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 14ch;
  color: var(--paper);
  font-variation-settings: "opsz" 96, "wdth" 100;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue-bright);
  font-weight: 500;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: .35s; }
.hero h1 .word:nth-child(2) { animation-delay: .45s; }
.hero h1 .word:nth-child(3) { animation-delay: .55s; }
.hero h1 .word:nth-child(4) { animation-delay: .65s; }
.hero h1 .word:nth-child(5) { animation-delay: .75s; }
.hero h1 .word:nth-child(6) { animation-delay: .85s; }
.hero h1 .word:nth-child(7) { animation-delay: .95s; }
.hero h1 .word:nth-child(8) { animation-delay: 1.05s; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-lede {
  margin-top: 32px;
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: rgba(250, 251, 252, 0.80);
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) 1.15s forwards;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) 1.3s forwards;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--blue);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--paper);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}
.btn-primary .arrow { display: inline-block; transition: transform .3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  border: 1.5px solid rgba(250,251,252,0.30);
  color: var(--paper);
  background: rgba(250,251,252,0.04);
}
.btn-ghost:hover {
  background: rgba(250,251,252,0.10);
  border-color: var(--paper);
}

/* Hero side meta panel */
.hero-meta {
  position: absolute;
  right: var(--gutter);
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,251,252,0.70);
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) 1.4s forwards;
}
.hero-meta-item { max-width: 210px; text-align: right; }
.hero-meta-item strong {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 42px;
  letter-spacing: -0.035em;
  text-transform: none;
  font-weight: 500;
  color: var(--blue-bright);
  margin-bottom: 6px;
  line-height: 1;
}
@media (max-width: 1080px) { .hero-meta { display: none; } }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,251,252,0.55);
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) 1.6s forwards;
}
.scroll-hint .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.4; }
}

/* ----- Sections -------------------------------------------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(60px, 7vw, 100px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head .col-left { display: flex; flex-direction: column; gap: 18px; }
.section-head .col-right { color: var(--ink-soft); }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

.section-number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ----- Reveal animations ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .05s; }
.reveal[data-d="2"] { transition-delay: .1s; }
.reveal[data-d="3"] { transition-delay: .15s; }
.reveal[data-d="4"] { transition-delay: .2s; }
.reveal[data-d="5"] { transition-delay: .25s; }
.reveal[data-d="6"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1 .word, .hero-eyebrow, .hero-lede, .hero-actions, .hero-meta, .scroll-hint {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .topbar .marquee-track { animation: none; }
}

/* ----- Category cards (homepage, TSW-style bold) ----------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -20px rgba(11, 31, 58, 0.35);
}
.category-card .cat-image {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper-deep);
  position: relative;
}
.category-card .cat-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.category-card:hover .cat-image img { transform: scale(1.08); }
.category-card .cat-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,31,58,0.55) 100%);
  pointer-events: none;
}
.category-card .cat-number {
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(11,31,58,0.65);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 1;
}
.category-card .cat-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.category-card .cat-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
}
.category-card h3 {
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 600;
}
.category-card h3 em { color: var(--blue); font-style: italic; font-weight: 500; }
.category-card .cat-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.category-card .cat-link::after { content: "→"; transition: transform .3s; font-family: var(--mono); }
.category-card:hover .cat-link::after { transform: translateX(5px); }

/* ----- Values block (video panel) -------------------------- */
.values {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(80px, 11vw, 150px) 0;
  position: relative;
  overflow: hidden;
}
.values::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(59,130,246,0.20), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(37,99,235,0.15), transparent 45%);
  pointer-events: none;
}
.values .wrap { position: relative; z-index: 1; }
.values-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) { .values-grid { grid-template-columns: 1fr; } }
.values h2 {
  color: var(--paper);
  font-size: clamp(38px, 5.2vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 26px;
  font-weight: 600;
}
.values h2 em { color: var(--blue-bright); font-style: italic; font-weight: 500; }
.values-list { margin-top: 44px; display: flex; flex-direction: column; gap: 0; }
.values-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid rgba(250,251,252,0.16);
  align-items: start;
}
.values-item:last-child { border-bottom: 1px solid rgba(250,251,252,0.16); }
.values-item .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--blue-bright);
  padding-top: 6px;
}
.values-item h4 {
  font-family: var(--display);
  font-size: 24px;
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.values-item p {
  color: rgba(250,251,252,0.72);
  font-size: 15.5px;
  line-height: 1.55;
}

.values-video {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
}
.values-video video {
  width: 100%; height: 100%; object-fit: cover;
}
.values-video::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11,31,58,0.40) 100%);
  pointer-events: none;
}
.values-video-tag {
  position: absolute;
  bottom: 20px; left: 22px; right: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex; justify-content: space-between;
  z-index: 1;
}

/* ----- Course grid ----------------------------------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 980px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .course-grid { grid-template-columns: 1fr; } }

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -22px rgba(11,31,58,0.30);
}
.course-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.course-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.course-card:hover .thumb img { transform: scale(1.07); }

.course-card .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.course-card .duration {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.course-card .duration::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.course-card h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
}
.course-card .foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(6,11,20,0.08);
}
.course-card .price {
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  color: var(--navy);
  letter-spacing: -0.025em;
  font-weight: 500;
}
.course-card .more {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .25s ease;
  font-weight: 500;
}
.course-card .more::after { content: "→"; transition: transform .25s; }
.course-card:hover .more { color: var(--blue); }
.course-card:hover .more::after { transform: translateX(3px); }

/* ----- Page banner ----------------------------------------- */
.page-banner {
  position: relative;
  padding: clamp(80px, 10vw, 150px) 0 clamp(60px, 7vw, 96px);
  background: linear-gradient(180deg, var(--blue-haze) 0%, var(--paper) 100%);
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 20%, rgba(37,99,235,0.10), transparent 40%);
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.page-banner .crumbs a { color: var(--ink-soft); }
.page-banner .crumbs a:hover { color: var(--blue); }
.page-banner .crumbs span { color: var(--blue); }
.page-banner h1 {
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 28px;
}
.page-banner h1 em { color: var(--blue); font-style: italic; font-weight: 500; }
.page-banner .lede { max-width: 68ch; }
.page-banner .stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) { .page-banner .stats { grid-template-columns: repeat(2, 1fr); } }
.page-banner .stat .num {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1;
  color: var(--blue);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.page-banner .stat .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Split sections -------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split h2 {
  font-size: clamp(34px, 4.8vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 600;
}
.split h2 em { color: var(--blue); font-style: italic; font-weight: 500; }
.split p { margin-bottom: 14px; max-width: 58ch; }
.split-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
  position: relative;
}
.split-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.split-img:hover img { transform: scale(1.05); }

/* ----- Pillars (4-up) -------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper-warm);
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform .4s ease, box-shadow .4s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(11,31,58,0.25);
}
.pillar .pillar-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper-deep);
}
.pillar .pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.pillar:hover .pillar-img img { transform: scale(1.05); }
.pillar h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.pillar p { font-size: 14.5px; line-height: 1.55; }

/* ----- Partners / Client wall (BIG, proper grid) ----------- */
.partners {
  padding: clamp(80px, 11vw, 150px) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.partners .partners-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.partners .partners-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}
.partners h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 18ch;
}
.partners h2 em { color: var(--blue); font-style: italic; font-weight: 500; }
.partners-sub {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.partners-wall {
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-warm);
  padding: clamp(24px, 4vw, 48px);
}
.partners-wall img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.partners-meta {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}
.partners-meta-item {
  text-align: center;
}
.partners-meta-item .num {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--blue);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.partners-meta-item .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- CTA block ------------------------------------------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 11vw, 150px) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 80%, rgba(37,99,235,0.30), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.18), transparent 50%);
}
.cta .wrap { position: relative; z-index: 1; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; align-items: start; } }
.cta h2 {
  color: var(--paper);
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.cta h2 em { color: var(--blue-bright); font-style: italic; font-weight: 500; }
.cta-right { display: flex; flex-direction: column; gap: 24px; }
.cta-right p { color: rgba(250,251,252,0.78); font-size: 16.5px; line-height: 1.55; }

/* ----- Footer ---------------------------------------------- */
.footer {
  background: var(--paper-warm);
  color: var(--ink);
  padding-top: clamp(80px, 9vw, 120px);
  border-top: 1px solid var(--rule);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand-mark { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
.footer-brand p {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.55;
}
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-size: 15px;
  color: var(--navy);
  transition: all .25s ease;
  font-weight: 600;
}
.footer-social a:hover {
  background: var(--navy);
  color: var(--blue-bright);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.footer-col h6 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .2s ease;
  position: relative;
  display: inline-block;
}
.footer-col ul a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width .25s ease;
}
.footer-col ul a:hover { color: var(--blue); }
.footer-col ul a:hover::after { width: 100%; }

.footer-courses {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 980px) { .footer-courses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .footer-courses { grid-template-columns: 1fr; } }
.footer-courses-col h6 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.footer-courses-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-courses-col a {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  transition: color .2s, transform .2s;
  display: block;
}
.footer-courses-col a:hover { color: var(--blue); transform: translateX(3px); }

.copyright {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.copyright a { color: var(--ink-soft); }
.copyright a:hover { color: var(--blue); }

/* ----- Cookie banner --------------------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--paper);
  padding: 20px 22px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 24px 60px -10px rgba(0,0,0,0.4);
  font-size: 13px;
  line-height: 1.5;
  animation: rise .6s cubic-bezier(.2,.8,.2,1) .8s both;
}
#cookie-banner a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
#cookie-banner .cookie-buttons { display: flex; gap: 10px; }
#cookie-banner button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all .2s;
}
#cookie-banner #accept { background: var(--blue); color: var(--paper); }
#cookie-banner #accept:hover { background: var(--blue-bright); }
#cookie-banner #reject {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250,251,252,0.3);
}
#cookie-banner #reject:hover { background: rgba(250,251,252,0.08); }

/* ----- Iframe panels --------------------------------------- */
.iframe-panel {
  background: var(--paper-warm);
  padding: clamp(40px, 5vw, 64px) 0;
}
.iframe-panel iframe {
  border: 0;
  display: block;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

/* ----- Contact info card ----------------------------------- */
.contact-card {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(40px, 5vw, 64px);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(59,130,246,0.20), transparent 50%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-block .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
  display: block;
}
.contact-block h4 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.contact-block p, .contact-block address {
  color: rgba(250,251,252,0.78);
  font-size: 15px;
  line-height: 1.55;
  font-style: normal;
}
.contact-block a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ----- Course search --------------------------------------- */
#course-search {
  width: 100%;
  max-width: 420px;
  padding: 14px 20px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .25s ease;
}
#course-search:focus { border-color: var(--blue); }

/* ----- Utility --------------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-l { margin-top: clamp(32px, 5vw, 64px); }
.serif { font-family: var(--display); font-style: italic; }

/* =========================================================
   COURSE DETAIL PAGES — booking sidebar, key pills, etc.
   ========================================================= */

/* Course hero (compact, focused) */
.course-hero {
  padding: clamp(80px, 9vw, 130px) 0 clamp(40px, 5vw, 70px);
  background: linear-gradient(180deg, var(--blue-haze) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}
.course-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(37,99,235,0.12), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(11,31,58,0.06), transparent 50%);
  pointer-events: none;
}
.course-hero .wrap { position: relative; z-index: 1; }
.course-hero h1 {
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 22ch;
  margin-bottom: 22px;
}
.course-hero h1 em { color: var(--blue); font-style: italic; font-weight: 500; }
.course-hero .lede { max-width: 64ch; }

/* Key info pills row */
.key-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.key-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.key-pill .pill-icon {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  color: var(--blue);
  font-size: 13px;
}
.key-pill strong {
  color: var(--ink);
  font-weight: 600;
}

.course-hero .hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 1;
  transform: none;
  animation: none;
}
.course-hero .btn-primary {
  padding: 16px 28px;
  font-size: 15px;
}
.course-hero .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--paper);
  border: 1.5px solid var(--rule-strong);
  color: var(--navy);
  transition: all .25s ease;
  font-family: var(--sans);
}
.course-hero .btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* Course body — main content + sticky booking sidebar */
.course-body {
  padding: clamp(48px, 6vw, 88px) 0;
}
.course-body .wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 980px) {
  .course-body .wrap { grid-template-columns: 1fr; }
}

.course-main h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: clamp(40px, 4vw, 56px) 0 18px;
}
.course-main h2:first-child { margin-top: 0; }
.course-main h2 em { color: var(--blue); font-style: italic; font-weight: 500; }
.course-main p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 70ch;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.module-card {
  background: var(--paper-warm);
  border-radius: 16px;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  transition: transform .3s ease, box-shadow .3s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -18px rgba(11,31,58,0.20);
}
.module-card .mod-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--blue-bright);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.module-card h4 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--ink);
}
.module-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* Sticky booking sidebar */
.book-card {
  position: sticky;
  top: 96px;
  background: var(--navy);
  color: var(--paper);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  z-index: 5;
}
.book-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 8%, rgba(59,130,246,0.20), transparent 55%);
  pointer-events: none;
}
.book-card > * { position: relative; }
.book-card .book-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.book-card .book-price {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 6px;
}
.book-card .book-price small {
  font-size: 18px;
  color: rgba(250,251,252,0.65);
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: -0.02em;
}
.book-card .book-tag {
  font-size: 13.5px;
  color: rgba(250,251,252,0.70);
  margin-bottom: 24px;
}

.book-meta {
  border-top: 1px solid rgba(250,251,252,0.16);
  padding-top: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.book-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.book-meta-row span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,251,252,0.55);
}
.book-meta-row span:last-child {
  color: var(--paper);
  font-weight: 500;
}

.book-dates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  border-top: 1px solid rgba(250,251,252,0.16);
  padding-top: 20px;
}
.book-dates .book-dates-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,251,252,0.55);
  margin-bottom: 8px;
}
.book-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(250,251,252,0.06);
  font-size: 13.5px;
  color: rgba(250,251,252,0.85);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.book-date:hover {
  background: rgba(59,130,246,0.18);
  transform: translateX(2px);
}
.book-date .book-date-arrow {
  font-family: var(--mono);
  color: var(--blue-bright);
  transition: transform .2s ease;
}
.book-date:hover .book-date-arrow { transform: translateX(3px); }

.book-card .btn-book {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  background: var(--blue);
  color: var(--paper);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all .25s ease;
  font-family: var(--sans);
}
.book-card .btn-book:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.45);
}
.book-card .btn-book::after { content: "→"; font-family: var(--mono); transition: transform .25s ease; }
.book-card .btn-book:hover::after { transform: translateX(4px); }

.book-card .book-secondary {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,251,252,0.65);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.book-card .book-secondary:hover { color: var(--blue-bright); }

/* Date grid — large date cards */
.date-strip {
  background: var(--paper-warm);
  padding: clamp(60px, 8vw, 110px) 0;
}
.date-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(32px, 4vw, 56px);
}
@media (max-width: 1080px) { .date-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .date-grid { grid-template-columns: 1fr; } }
.date-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rule);
  transition: all .3s ease;
  position: relative;
}
.date-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(37,99,235,0.30);
}
.date-card .date-month {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}
.date-card .date-big {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.date-card .date-meta {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.date-card .date-book {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.date-card .date-book::after {
  content: "→";
  font-family: var(--mono);
  color: var(--blue);
  transition: transform .25s ease;
}
.date-card:hover .date-book::after { transform: translateX(4px); }

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  font-family: var(--sans);
  font-size: 20px;
  color: var(--blue);
  transition: transform .3s ease;
  font-weight: 300;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-haze);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-item .faq-body {
  padding: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 70ch;
}

/* Related courses */
.related {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--paper);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* Venue tile (course pages) */
.venue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  background: var(--navy);
  color: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
@media (max-width: 880px) { .venue { grid-template-columns: 1fr; } }
.venue::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 12%, rgba(59,130,246,0.18), transparent 55%);
  pointer-events: none;
}
.venue-body {
  padding: clamp(36px, 5vw, 64px);
  position: relative;
}
.venue h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 20px;
}
.venue h3 em { color: var(--blue-bright); font-style: italic; font-weight: 500; }
.venue p, .venue address {
  color: rgba(250,251,252,0.78);
  font-size: 15.5px;
  line-height: 1.65;
  font-style: normal;
  margin-bottom: 14px;
}
.venue .venue-perks {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(250,251,252,0.18);
  flex-wrap: wrap;
}
.venue .venue-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 500;
}
.venue .venue-perk::before {
  content: "✓";
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: rgba(59,130,246,0.18);
  color: var(--blue-bright);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}
.venue-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy-deep);
  position: relative;
}
.venue-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .venue-img { aspect-ratio: 16 / 10; } }

/* =========================================================
   FORMS — Booking & Contact (replaces Office Form iframes)
   ========================================================= */
.form-card {
  background: var(--paper);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--rule);
  box-shadow: 0 32px 80px -40px rgba(11,31,58,0.20);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 0%, rgba(37,99,235,0.06), transparent 50%);
  pointer-events: none;
}
.form-card > * { position: relative; }

.form-card .form-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}
.form-card h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.form-card h2 em { color: var(--blue); font-style: italic; font-weight: 500; }
.form-card .form-sub {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 60ch;
}

form.ascent-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
form.ascent-form .field-full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  form.ascent-form { grid-template-columns: 1fr; }
  form.ascent-form .field-full { grid-column: auto; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field label .req { color: var(--blue); margin-left: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  font-weight: 400;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230B1F3A'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--sans); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #C5333F;
  box-shadow: 0 0 0 4px rgba(197,51,63,0.08);
}
.field .field-error {
  font-size: 12.5px;
  color: #C5333F;
  font-weight: 500;
  display: none;
}
.field.has-error .field-error { display: block; }
.field .field-hint {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

/* Checkbox + radio rows — reset the inherited .field label styling */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
  background: var(--paper);
  /* Reset inherited label styling */
  font-family: var(--sans);
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--ink);
}
.check-row:hover { border-color: var(--rule-strong); }
.check-row input { margin-top: 2px; accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.check-row input:checked + .check-content { color: var(--ink); }
.check-row:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-haze);
}
.check-content {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.check-content strong {
  font-family: var(--sans);
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 2px;
  text-transform: none;
  letter-spacing: normal;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) { .radio-grid { grid-template-columns: 1fr; } }

/* Honeypot — hidden from humans, irresistible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--blue);
  color: var(--paper);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all .25s ease;
  font-family: var(--sans);
  cursor: pointer;
  border: none;
}
.btn-submit::after { content: "→"; font-family: var(--mono); transition: transform .25s ease; }
.btn-submit:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(37,99,235,0.30); }
.btn-submit:hover::after { transform: translateX(4px); }
.btn-submit:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn-submit.is-loading::after {
  content: "";
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-foot {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 50ch;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.form-foot a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Success state */
.form-success {
  display: none;
  text-align: left;
  padding: 24px 0;
}
.form-success.visible { display: block; }
.form-success .success-tick {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-haze);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}
.form-success h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 12px;
}
.form-success p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 14px; max-width: 56ch; }

/* Error banner at top of form */
.form-error-banner {
  display: none;
  padding: 14px 16px;
  background: rgba(197,51,63,0.06);
  border: 1px solid rgba(197,51,63,0.30);
  border-radius: 12px;
  color: #882029;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
  grid-column: 1 / -1;
}
.form-error-banner.visible { display: block; }
.funded-ribbon {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 60%, #60A5FA 100%);
  color: var(--paper);
  padding: clamp(40px, 5vw, 64px);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) { .funded-ribbon { grid-template-columns: 1fr; } }
.funded-ribbon::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.funded-ribbon > * { position: relative; }
.funded-ribbon h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 12px;
}
.funded-ribbon p {
  color: rgba(255,255,255,0.85);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 56ch;
}
.funded-ribbon .funded-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}
.funded-ribbon .btn-funded {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--paper);
  color: var(--navy);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all .25s ease;
  white-space: nowrap;
  font-family: var(--sans);
}
.funded-ribbon .btn-funded:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.funded-ribbon .btn-funded::after { content: "→"; font-family: var(--mono); transition: transform .25s; }
.funded-ribbon .btn-funded:hover::after { transform: translateX(4px); }

/* =========================================================
   TESTIMONIALS — for FAQ page + future use
   ========================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper-warm);
  border-radius: 20px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(11,31,58,0.22);
}
.testimonial-card .quote-mark {
  font-family: var(--display);
  font-size: 72px;
  line-height: 0.5;
  color: var(--blue);
  font-style: italic;
  font-weight: 500;
  height: 30px;
  display: block;
}
.testimonial-card blockquote {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.012em;
  font-style: italic;
  flex: 1;
}
.testimonial-card .ts-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.testimonial-card .ts-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-deep);
  flex-shrink: 0;
}
.testimonial-card .ts-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card .ts-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card .ts-meta .ts-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.testimonial-card .ts-meta .ts-course {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}

/* =========================================================
   COOKIE CONSENT BANNER — GDPR / PECR compliant
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--paper);
  border-radius: 22px;
  box-shadow: 0 24px 64px -16px rgba(11,31,58,0.45), 0 8px 24px -8px rgba(11,31,58,0.25);
  padding: 26px 28px 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  font-family: var(--sans);
}
.cookie-banner.is-visible {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
.cookie-banner-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cookie-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37,99,235,0.18);
  color: var(--blue-bright, #60a5fa);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(37,99,235,0.32);
}
.cookie-banner-text { flex: 1; }
.cookie-banner h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--paper);
  margin: 0 0 6px;
  line-height: 1.2;
}
.cookie-banner p {
  color: rgba(250,251,252,0.74);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.cookie-banner p a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner p a:hover { color: var(--paper); }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.cookie-btn-primary {
  background: var(--blue);
  color: var(--paper);
}
.cookie-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(37,99,235,0.5);
}
.cookie-btn-ghost {
  background: transparent;
  color: rgba(250,251,252,0.88);
  border: 1.5px solid rgba(250,251,252,0.22);
}
.cookie-btn-ghost:hover {
  background: rgba(250,251,252,0.06);
  color: var(--paper);
  border-color: rgba(250,251,252,0.35);
}
.cookie-btn-link {
  background: transparent;
  color: rgba(250,251,252,0.68);
  padding: 12px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.cookie-btn-link:hover { color: var(--paper); }

/* Expanded preferences panel */
.cookie-panel {
  display: none;
  border-top: 1px solid rgba(250,251,252,0.14);
  padding-top: 18px;
  margin-top: 4px;
  flex-direction: column;
  gap: 4px;
}
.cookie-banner.is-expanded .cookie-panel { display: flex; }
.cookie-banner.is-expanded .cookie-collapsed { display: none; }

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(250,251,252,0.08);
}
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category-info { flex: 1; }
.cookie-category h4 {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.cookie-category h4 .cookie-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(250,251,252,0.10);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(250,251,252,0.65);
  vertical-align: middle;
}
.cookie-category p {
  font-size: 13px;
  color: rgba(250,251,252,0.62);
  line-height: 1.5;
  margin: 0;
  max-width: 56ch;
}

.cookie-toggle {
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  border-radius: 14px;
  background: rgba(250,251,252,0.18);
  position: relative;
  cursor: pointer;
  border: none;
  transition: background .25s ease;
  padding: 0;
  outline: none;
}
.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.cookie-toggle[aria-checked="true"] { background: var(--blue); }
.cookie-toggle[aria-checked="true"]::after { transform: translateX(20px); }
.cookie-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(96,165,250,0.5); }
.cookie-toggle[disabled] { opacity: 0.55; cursor: not-allowed; }

.cookie-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid rgba(250,251,252,0.14);
}

@media (max-width: 560px) {
  .cookie-banner { padding: 22px 22px 20px; bottom: 12px; left: 12px; right: 12px; border-radius: 18px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-primary, .cookie-btn-ghost { flex: 1 1 auto; min-width: 0; text-align: center; }
  .cookie-btn-link { width: 100%; text-align: center; }
}
