/* ─────────────────────────────────────────DESIGN TOKENS───────────────────────────────────────── */
:root {
  --navy-deep: #001a4d;
  --navy: #002c80;
  --royal: #1e40af;
  --mid-blue: #3b64cc;
  --accent-gold: #f59e0b;
  --accent-teal: #0891b2;
  --success: #10b981;
  --error: #ef4444;
  --warn: #f97316;
  --bg-light: #f8fafc;
  --bg-mid: #e2e8f0;
  --bg-muted: #cbd5e1;
  --white: #ffffff;
  --ink: #0f172a;
  --ink-mid: #334155;
  --ink-soft: #64748b;
  --font-display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif;
  --font-body: 'Familjen Grotesk', Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 44, 128, .08), 0 1px 2px rgba(0, 44, 128, .06);
  --shadow-md: 0 4px 16px rgba(0, 44, 128, .12), 0 2px 6px rgba(0, 44, 128, .08);
  --shadow-lg: 0 16px 40px rgba(0, 44, 128, .16), 0 4px 12px rgba(0, 44, 128, .10);
  --shadow-glow: 0 0 0 3px rgba(0, 44, 128, .18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (min-width: 1024px) {
  html {
    font-size: 17px;
  }
}

@media (min-width: 1440px) {
  html {
    font-size: 18px;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
select,
textarea {
  font-size: 16px;
}

/* ─────────────────────────────────────────ANNOUNCEMENT BAR───────────────────────────────────────── */
.announce-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1rem;
  background: linear-gradient(135deg, var(--navy-deep), var(--royal));
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.3;
  text-align: center;
  transition: filter var(--duration-standard) var(--ease-standard);
}

.announce-bar:hover {
  filter: brightness(1.12);
}

.announce-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  flex-shrink: 0;
  animation: announcePulse 2s var(--ease-standard) infinite;
}

.announce-text strong {
  color: var(--accent-gold);
  font-weight: 700;
}

.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.announce-cta i {
  transition: transform var(--duration-standard) var(--ease-standard);
}

.announce-bar:hover .announce-cta i {
  transform: translateX(4px);
}

@keyframes announcePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .announce-dot { animation: none; }
}

/* ─────────────────────────────────────────SITE HEADER───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
}

/* ─────────────────────────────────────────NAV───────────────────────────────────────── */
.nav {
  height: 70px;
  background: rgba(248, 250, 252, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bg-mid);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
}

.nav-logo img {
  height: 32px;
}

.nav-hamburger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--ink);
}

.nav-hamburger i {
  font-size: 1.4rem;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  height: calc(100vh - 70px);
  background: var(--navy-deep);
  flex-direction: column;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 499;
}

.nav-drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  letter-spacing: .08em;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  transition: color .2s, padding-left .2s;
  position: relative;
  z-index: 1;
}

.nav-drawer a:hover {
  color: var(--white);
  padding-left: .5rem;
}

@media (min-width: 768px) {
  .nav {
    padding: 0 3rem;
    height: 80px;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav-hamburger {
    display: none;
  }

  .nav-drawer {
    display: flex !important;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.5rem;
    margin-left: auto;
    overflow: visible;
    z-index: auto;
  }

  .nav-drawer::before {
    display: none;
  }

  .nav-drawer a {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink-soft);
    padding: 0;
    border-bottom: none;
    min-height: unset;
    display: block;
  }

  .nav-drawer a:hover {
    color: var(--navy);
  }
}

@media (min-width: 1024px) {
  .nav {
    padding: 0 4rem;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-drawer a {
    font-size: .95rem;
  }
}

/* ─────────────────────────────────────────LAYOUT───────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section.s {
  padding: 3.5rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.divider {
  border: none;
  border-top: 1px solid var(--bg-mid);
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ─────────────────────────────────────────BUTTONS───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: .75rem 1.5rem;
  min-height: 44px;
  transition: transform .22s, box-shadow .22s;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 44, 128, .32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 44, 128, .42);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .07);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: .55rem 1.1rem;
  font-size: .78rem;
  min-height: 44px;
}

.btn-lg {
  padding: .9rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ─────────────────────────────────────────CARDS───────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 44, 128, .06);
  display: flex;
  flex-direction: column;
  transition: transform .28s, box-shadow .28s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: .4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}

/* Value Cards — simpler cards for features, values, etc. */
.value-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 44, 128, .06);
  transition: transform .28s, box-shadow .28s;
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-card-icon {
  font-size: 2.75rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .value-card-icon {
    font-size: 3rem;
  }
}

.value-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: .65rem;
}

@media (min-width: 768px) {
  .value-card-title {
    font-size: 1.3rem;
  }
}

.value-card-desc {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ─────────────────────────────────────────FORMS───────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.field-label {
  font-size: .78rem;
  font-weight: 600;
}

.field-input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: .75rem 1rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--bg-muted);
  background: var(--white);
  outline: none;
}

.field-input:focus {
  border-color: var(--navy);
  box-shadow: var(--shadow-glow);
}

/* ─────────────────────────────────────────AVATARS───────────────────────────────────────── */
.av {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
}

.av-xs {
  width: 28px;
  height: 28px;
  font-size: .58rem;
}

.av-sm {
  width: 36px;
  height: 36px;
  font-size: .72rem;
}

.av-md {
  width: 48px;
  height: 48px;
  font-size: .88rem;
}

.av-lg {
  width: 64px;
  height: 64px;
  font-size: 1.1rem;
}

/* ─────────────────────────────────────────PROGRESS───────────────────────────────────────── */
.prog-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-mid);
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  background: var(--navy);
}

/* ─────────────────────────────────────────TOAST───────────────────────────────────────── */
.toast {
  display: flex;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.toast-s {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.toast-e {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.toast-i {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.toast-w {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

/* ─────────────────────────────────────────SCROLLBAR───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

/* ─────────────────────────────────────────ANIMATION───────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.fu {
  animation: fadeUp .6s cubic-bezier(0, 0, .2, 1) both;
}

.d1 {
  animation-delay: .08s;
}

.d2 {
  animation-delay: .18s;
}

.d3 {
  animation-delay: .28s;
}

.d4 {
  animation-delay: .38s;
}

/* ─────────────────────────────────────────HERO───────────────────────────────────────── */
.hero {
  min-height: 90svh;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 2rem 5% 5rem;
    min-height: 100svh;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-content {
  max-width: 720px;
}

.hero-image-container {
  display: none;
}

@media (min-width: 1024px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .hero-image-container {
    display: block;
    position: relative;
    animation: floating 6s ease-in-out infinite;
  }

  .hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    filter: drop-shadow(0 0 50px rgba(30, 64, 175, 0.25));
  }
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-eyebrow {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 3.2rem, 4rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-title .gold {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  color: rgba(255, 255, 255, .5);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

@media (min-width: 480px) {
  .hero-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-cta-group .btn {
    width: auto;
  }
}

/* ─────────────────────────────────────────STACKS───────────────────────────────────────── */
.stacks {
  padding: 5rem 1.25rem;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .stacks {
    padding: 6rem 2rem;
  }
}

.stacks-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.75rem);
  text-align: center;
  margin-bottom: 4rem;
}

.stacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stack-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 44, 128, .06);
  transition: transform .28s, box-shadow .28s;
}

.stack-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stack-icon {
  font-size: 2.75rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .stack-icon {
    font-size: 3rem;
  }
}

.stack-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  background: var(--bg-light);
  border: 1px solid rgba(0, 44, 128, .04);
}

.stack-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: .65rem;
}

@media (min-width: 768px) {
  .stack-title {
    font-size: 1.3rem;
  }
}

.stack-desc {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.stack-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}

/* The struck list price beside an early-bird figure. Lighter and smaller so the
   price that is actually charged stays the one the eye lands on. */
.stack-price-was,
.sidebar-price-was {
  font-weight: 600;
  font-size: .82em;
  color: var(--ink-soft);
  margin-left: .35rem;
}

/* Countdown under the sidebar price. Filled in by cohort_register.php only after
   the live API confirms the promo, so it is never a stale deadline. */
.sidebar-price-note {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--warn);
  margin-top: .35rem;
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────FUSELEARN───────────────────────────────────────── */
.fuselearn {
  padding: 4rem 1.25rem;
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .fuselearn {
    padding: 5rem 2rem;
  }
}

.fuselearn::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .04) 0,
      rgba(255, 255, 255, .04) 1px,
      transparent 0,
      transparent 50%);
  background-size: 20px 20px;
}

.fuselearn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .fuselearn-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.fuselearn-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.fuselearn-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 2rem;
}

.fuselearn-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .fuselearn-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fuselearn-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
}

.fuselearn-visual {
  position: relative;
}

.fuselearn-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ─────────────────────────────────────────PARTNERS───────────────────────────────────────── */
.partners {
  padding: 5rem 1.25rem;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .partners {
    padding: 6rem 2rem;
  }
}

.partners-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.75rem);
  text-align: center;
  margin-bottom: 4rem;
}

.partners-slider {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  white-space: nowrap;
}

.partners-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: partners-marquee 40s linear infinite;
  align-items: center;
}

.partners-slider:hover .partners-track {
  animation-play-state: paused;
}

.partner-logo {
  flex-shrink: 0;
  height: 48px;
  width: auto;
  max-width: 160px;
  transition: all 0.3s var(--ease-standard);
  object-fit: contain;
}

.partner-logo:hover {
  transform: scale(1.1);
}

@keyframes partners-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .partner-logo {
    height: 60px;
  }

  .partners-track {
    gap: 6rem;
  }
}

.partner-logo {
  transition: all .3s;
  width: 100%;
  height: auto;
  max-width: 180px;
  object-fit: contain;
}

.partner-logo:hover {
  transform: scale(1.05);
}

/* ─────────────────────────────────────────TESTIMONIALS───────────────────────────────────────── */
.testimonials {
  padding: 3rem 1.25rem 2rem;
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .testimonials {
    padding: 3.5rem 2rem 2rem;
  }
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .04) 0,
      rgba(255, 255, 255, .04) 1px,
      transparent 0,
      transparent 50%);
  background-size: 20px 20px;
}

.testimonials-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.testimonials-track {
  display: flex;
  transition: transform .5s ease;
}

.testimonial-card {
  min-width: 100%;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: center;
  transition: background .2s;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, .09);
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
}

.testimonial-role {
  font-size: .8rem;
  color: rgba(255, 255, 255, .4);
  margin-top: .25rem;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.testimonials-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: none;
  cursor: pointer;
  transition: all .3s;
}

.testimonials-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ─────────────────────────────────────────ABOUT───────────────────────────────────────── */
.about-hero {
  padding: 5rem 1.25rem;
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-hero {
    padding: 6rem 2rem;
  }
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.about-hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-content {
  padding: 5rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-content {
    padding: 6rem 2rem;
  }
}

.about-section {
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-section {
    margin-bottom: 5rem;
  }
}

.about-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .about-section h2 {
    font-size: 2.25rem;
  }
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-mid);
}

/* ─────────────────────────────────────────BOOTCAMP───────────────────────────────────────── */
.bootcamp-hero {
  padding: 5rem 1.25rem;
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .bootcamp-hero {
    padding: 6rem 2rem;
  }
}

.bootcamp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bootcamp-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.bootcamp-hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bootcamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

/* ─────────────────────────────────────────BLOG───────────────────────────────────────── */
.blog-hero {
  padding: 5rem 1.25rem;
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-hero {
    padding: 6rem 2rem;
  }
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.blog-hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s, box-shadow .28s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  position: relative;
}

.blog-thumb .date-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}

.blog-body {
  padding: 1.25rem;
}

.blog-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.blog-desc {
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

/* ─────────────────────────────────────────FOOTER───────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 4rem 1.25rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .footer {
    padding: 5rem 2rem;
  }
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.footer-brand p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: .5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .95rem;
  transition: color .15s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .4);
}

/* ─────────────────────────────────────────MODAL───────────────────────────────────────── */
/* Sits above the sticky header (.site-header is z-index 500) and the mobile nav
   drawer (499). At the old value of 400 the fixed header painted over the top of
   every modal, hiding its heading and close button. */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-soft);
}

/* ─────────────────────────────────────────TAGS───────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: var(--radius-full);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tag-navy {
  background: var(--navy);
  color: var(--white);
}

.tag-gold {
  background: var(--accent-gold);
  color: var(--ink);
}

.tag-teal {
  background: var(--accent-teal);
  color: var(--white);
}

.tag-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

/* ─────────────────────────────────────────BADGE───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  font-size: .65rem;
  font-weight: 700;
  padding: 0 .4rem;
}

.badge-navy {
  background: var(--navy);
  color: var(--white);
}

.badge-gold {
  background: var(--accent-gold);
  color: var(--ink);
}

/* ─────────────────────────────────────────INPUTS───────────────────────────────────────── */
.input-group {
  display: flex;
  gap: .5rem;
}

.input-group .field-input {
  flex: 1;
}

.input-group .btn {
  white-space: nowrap;
}

/* ─────────────────────────────────────────GRID───────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─────────────────────────────────────────UTILITIES───────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: .5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 2.5rem;
}

.mb-1 {
  margin-bottom: .5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 2.5rem;
}

.hidden {
  display: none;
}

/* ─────────────────────────────────────────ACCESSIBILITY───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ─────────────────────────────────────────LINE CLAMP───────────────────────────────────────── */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

/* ─────────────────────────────────────────COURSE CATALOGUE (FUSELearn)───────────────────────────────────────── */
.courses {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .courses {
    padding: 5rem 2rem;
  }
}

.courses-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.courses-head h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: .75rem;
}

.courses-head p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* Search */
.courses-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.courses-search .ph {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--ink-soft);
  pointer-events: none;
}

.courses-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: .85rem 1rem .85rem 2.85rem;
  min-height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--bg-muted);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.courses-search input:focus {
  border-color: var(--navy);
  box-shadow: var(--shadow-glow);
}

/* Grid */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Course card */
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 44, 128, .06);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.course-thumb {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
}

.course-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.course-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
}

.course-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .65rem;
}

.course-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bg-muted);
  flex-shrink: 0;
}

.course-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-desc {
  flex: 1;
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.65em * 3);
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-shrink: 0;
}

.course-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Keeps the button on the right when a free course has no price beside it. */
.course-footer .btn {
  margin-left: auto;
}

/* Hidden state for "view more" reveal and search filtering */
.course-card.is-hidden {
  display: none;
}

.courses-actions {
  text-align: center;
  margin-top: 2.5rem;
}

.courses-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.courses-empty .ph {
  display: block;
  font-size: 2.5rem;
  color: var(--bg-muted);
  margin-bottom: .75rem;
}

/* ─────────────────────────────────────────BLOG INDEX ADDITIONS───────────────────────────────────────── */
/* The BLOG section above styles the hero, grid and card shell. These additions
   turn the card into a whole-card link, give the thumbnail a real image, and
   add the empty state. Mobile-first throughout. */

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

/* Thumbnail keeps its navy gradient as the backdrop while the image loads, so
   there is never a white flash or a collapsed box. */
/* Card thumbnails fill their band and are allowed to crop. A grid needs even
   rows, and a letterboxed square inside a wide card reads as a bug. Showing the
   illustration in full is the job of the article body, not the listing.
   Cloudinary already delivers these pre-cropped to 640x400 (see fuse_card_thumb),
   so `cover` here is only a safety net for any odd-ratio cover added later.
   Overrides the fixed `height: 180px` set on .blog-thumb further up. */
.blog-thumb {
  display: block;
  overflow: hidden;
  height: auto;
  aspect-ratio: 16 / 10;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s var(--ease-standard, cubic-bezier(.4, 0, .2, 1));
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.04);
}

.blog-thumb .date-badge {
  z-index: 1;
}

/* Body is a flex column so the footer sits on the baseline of every card in a
   row, no matter how long the title or excerpt runs. */
.blog-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .5rem;
}

.blog-card .blog-title {
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-title {
  color: var(--royal);
}

.blog-card .blog-desc {
  flex: 1;
}

.blog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1rem;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.blog-foot i {
  color: var(--navy);
  font-size: 1rem;
  transition: transform .25s var(--ease-standard, cubic-bezier(.4, 0, .2, 1));
}

.blog-card:hover .blog-foot i {
  transform: translateX(4px);
}

.blog-grid-tight {
  padding: 0;
  max-width: none;
}

/* Empty state — spans the grid rather than sitting in one column. */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.blog-empty i {
  font-size: 2.25rem;
  color: var(--bg-muted);
  display: block;
  margin-bottom: .75rem;
}

.blog-empty h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: .5rem;
}

.blog-empty p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ink-mid);
}

.blog-empty a {
  color: var(--navy);
  font-weight: 600;
}

/* ─────────────────────────────────────────ARTICLE───────────────────────────────────────── */
/* Single blog post. The measure is capped at 65ch per the brand system, which
   lands around 38-50ch on a 375px screen — the readable range on a phone. */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

@media (min-width: 768px) {
  .article {
    padding: 3rem 2rem 4rem;
  }
}

/* Breadcrumb */
.article-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.article-crumbs a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.article-crumbs a:hover {
  text-decoration: underline;
}

/* Title block */
.article-head {
  margin-bottom: 1.75rem;
}

.article-category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: .35rem .75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.article-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--navy);
  margin-bottom: .85rem;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

.article-byline strong {
  color: var(--ink-mid);
  font-weight: 600;
}

/* Cover image */
/* Cover and inline figures both honour the asset's real ratio (square or
   landscape; see width/height from fuse_blog_image_size()) — no aspect-ratio
   override, no object-fit, so nothing is ever cropped. The
   tradeoff is that a full-width square would be ~712px tall on desktop and a
   whole screenful on a phone, so the figure is capped and centred instead of
   run full-bleed. Losing the wide "hero" look is worth keeping the diagram. */
.article-cover {
  margin: 0 auto 2.25rem;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-mid);
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Prose ──
   Bare-tag styling scoped to .article-prose only, so it can never leak into
   the rest of the site. */

.article-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-mid);
}

.article-prose>*+* {
  margin-top: 1.35rem;
}

.article-prose p,
.article-prose ul,
.article-prose ol {
  max-width: 65ch;
}

.article-prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 1.95rem);
  line-height: 1.2;
  color: var(--navy);
  margin-top: 2.75rem;
  scroll-margin-top: 6rem;
}

.article-prose h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.35;
  color: var(--navy);
  margin-top: 2rem;
  scroll-margin-top: 6rem;
}

/* A heading immediately after a heading should not carry the full gap. */
.article-prose h2+h3 {
  margin-top: 1rem;
}

.article-prose strong {
  color: var(--ink);
  font-weight: 700;
}

.article-prose em {
  font-style: italic;
}

.article-prose a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.article-prose a:hover {
  color: var(--royal);
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.35rem;
}

.article-prose li+li {
  margin-top: .6rem;
}

.article-prose li::marker {
  color: var(--navy);
  font-weight: 600;
}

.article-prose blockquote {
  border-left: 3px solid var(--navy);
  padding: .25rem 0 .25rem 1.25rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-style: italic;
}

.article-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--bg-mid);
  padding: .15rem .4rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.article-prose hr {
  border: 0;
  border-top: 1px solid var(--bg-mid);
  margin-top: 2.5rem;
}

/* Same rule as the cover: real ratio, capped width, centred. */
.article-figure {
  margin: 2.25rem auto;
  max-width: 560px;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  background: var(--bg-mid);
}

.article-figure figcaption {
  margin-top: .75rem;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Closing CTA */
.article-cta {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .article-cta {
    padding: 2.75rem 2rem;
  }
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.article-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin-bottom: .75rem;
  position: relative;
  z-index: 1;
}

.article-cta p {
  font-size: .98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .75);
  max-width: 48ch;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.article-cta .btn {
  position: relative;
  z-index: 1;
}

/* Read next */
.article-next {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

@media (min-width: 768px) {
  .article-next {
    padding: 0 2rem 5rem;
  }
}

.article-next>h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-align: center;
}

.article-next-all {
  text-align: center;
  margin-top: 2rem;
}

/* ─────────────────────────────────────────JOLA WIDGET───────────────────────────────────────── */
/* The floating skills check (includes/jola_widget.php). Mobile first: the panel
   is full screen on a phone and becomes a side panel from 768px. The launcher
   sits above the page and header (500) and below modals (600). */
.jola-launcher {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 550;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 56px;
  padding: .375rem 1rem .375rem .375rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--bg-mid);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
}

.jola-launcher:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.jola-launcher:active {
  transform: translateY(0);
}

.jola-launcher:focus-visible,
.jola-panel-close:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow);
}

/* Decorative mascot (480x480 source), drawn as a background so it carries no
   alt text: the button and dialog already say "Jola" in words. */
.jola-avatar {
  display: block;
  background-image: url("/assets/jola/jola-wave.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.jola-launcher-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  flex-shrink: 0;
}

.jola-launcher-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.jola-launcher-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

.jola-launcher-sub {
  font-size: .78rem;
  color: var(--ink-soft);
}

.jola-widget.is-open .jola-launcher {
  display: none;
}

/* Phone: the panel owns the screen. */
.jola-panel {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
}

.jola-panel[hidden] {
  display: none;
}

.jola-panel-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .5rem .5rem 1rem;
  padding-top: max(.5rem, env(safe-area-inset-top));
  background: var(--navy-deep);
  color: #ffffff;
  flex-shrink: 0;
}

.jola-panel-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, .12);
  flex-shrink: 0;
}

.jola-panel-heading {
  flex: 1;
  min-width: 0;
}

.jola-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.jola-panel-sub {
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
  margin: 0;
}

.jola-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  cursor: pointer;
}

.jola-panel-close:hover {
  background: rgba(255, 255, 255, .08);
}

.jola-panel-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--bg-light);
}

.jola-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .25s;
}

.jola-frame.is-ready {
  opacity: 1;
}

.jola-panel-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-mid);
}

.jola-panel-state[hidden] {
  display: none;
}

.jola-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--bg-mid);
  border-top-color: var(--navy);
  border-radius: var(--radius-full);
  animation: jolaSpin .8s linear infinite;
}

@keyframes jolaSpin {
  to { transform: rotate(360deg); }
}

/* Stop the page behind scrolling while the full-screen panel is open. */
html.jola-lock,
html.jola-lock body {
  overflow: hidden;
}

/* Tablet and up: a side panel, page still visible and scrollable. */
@media (min-width: 768px) {
  .jola-launcher {
    right: 24px;
    bottom: 24px;
  }

  .jola-panel {
    inset: auto 24px 24px auto;
    width: 420px;
    height: min(720px, calc(100vh - 48px));
    height: min(720px, calc(100dvh - 48px));
    border: 1px solid var(--bg-mid);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }

  .jola-panel-head {
    padding-top: .5rem;
  }

  html.jola-lock,
  html.jola-lock body {
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jola-launcher,
  .jola-frame {
    transition: none;
  }

  .jola-spinner {
    animation-duration: 2s;
  }
}
