/* ============================================================
   Diligent Safety Training & Consultancy — "Never Lose Anyone™"
   Brand identity: Coal / Amber / Cream — dark-first editorial.
   Type: Cormorant Garamond (display) · Barlow Condensed (labels) · Barlow (body)
   ============================================================ */

:root {
  /* brand palette */
  --coal: #111111;       /* primary background, all major surfaces */
  --coal-2: #1a1a1a;     /* secondary surfaces, section variation */
  --amber: #c47a0a;      /* accent: rules, labels, highlights, CTAs */
  --amber-light: #e8971a;/* hover states, active elements */
  --cream: #fdf3e0;      /* body text on dark, write-in areas */
  --white: #ffffff;      /* headlines on dark, high-contrast */
  --amber-pale: #f5e6c8; /* callout backgrounds */
  --amber-dim: #5a3705;  /* borders, dividers, tag outlines */

  /* working tokens (dark context) */
  --bg: var(--coal);
  --ink: var(--cream);
  --head: var(--white);
  --muted: rgba(253, 243, 224, 0.62);
  --faint: rgba(253, 243, 224, 0.42);
  --line: rgba(253, 243, 224, 0.14);
  --line-strong: rgba(253, 243, 224, 0.22);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-label: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(1.25rem, 4vw, 4rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

::selection { background: var(--amber); color: var(--coal); }

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

/* ---- type helpers ---- */
.mono {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  line-height: 1.4;
}
.mono-sm { font-size: 12px; letter-spacing: 0.16em; }
.muted { color: var(--muted); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER / SUB-NAV
   ============================================================ */
.site { position: relative; width: 100%; }

header.hero-head {
  position: relative;
  z-index: 20;
  padding: clamp(1.25rem, 3vw, 1.75rem) var(--pad-x) 0;
}

/* animated wordmark — Cormorant serif */
.wordmark {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2vw;
  line-height: 0.82;
}
.wordmark .wm-letters { display: flex; overflow: hidden; }
.wordmark .wm-letters span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.84375rem, 3.375vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--head);
  transform: translateY(0);
  will-change: transform;
}
.wordmark.run .wm-letters span { animation: letterUp 1.2s var(--ease-smooth) backwards; }
.wordmark .wm-letters span:nth-child(2) { animation-delay: 0.07s; }
.wordmark .wm-letters span:nth-child(3) { animation-delay: 0.14s; }
.wordmark .wm-letters span:nth-child(4) { animation-delay: 0.21s; }
.wordmark .wm-tail {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  text-align: right; line-height: 1.6;
  padding-bottom: clamp(0.6rem, 1.5vw, 1.6rem);
  opacity: 1;
}
.wordmark .wm-tail b { color: var(--amber); font-weight: 600; }
.wordmark.run .wm-tail { animation: fadeIn 0.9s ease 0.5s backwards; }
@keyframes letterUp { from { transform: translateY(120%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wordmark.run .wm-letters span, .wordmark.run .wm-tail { animation: none; }
}
@media (max-width: 700px) { .wordmark .wm-tail { display: none; } }

.subnav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.subnav .col-brand { width: 16%; min-width: 110px; }
.subnav .col-brand p { line-height: 1.45; color: var(--muted); }
.subnav .sep { color: var(--amber); display: flex; align-items: center; padding-top: 2px; }
.subnav .col-mission {
  flex: 1; max-width: 38ch;
  color: var(--ink);
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: 15px; letter-spacing: 0; text-transform: none;
}
.subnav .col-links { width: 16%; min-width: 120px; display: flex; flex-direction: column; gap: 0.4rem; }
.subnav .col-links a { color: var(--ink); width: fit-content; white-space: nowrap; transition: color 0.2s; }
.subnav .col-links a:hover { color: var(--amber-light); }

/* hamburger */
.burger { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 6px 12px; z-index: 60; }
.burger span { display: block; height: 1.5px; background: var(--cream); transition: all 0.3s var(--ease-smooth); }
.burger span:nth-child(1) { width: 32px; }
.burger span:nth-child(2) { width: 32px; }
.burger:hover span:nth-child(1) { width: 24px; }
.burger:hover span:nth-child(2) { width: 40px; }
.burger.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); width: 32px; }
.burger.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); width: 32px; }

@media (max-width: 860px) {
  .subnav .sep, .subnav .col-links { display: none; }
  .subnav .col-brand { width: auto; }
}

/* mobile menu overlay */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--coal-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  padding: 1.5rem var(--pad-x) 2rem;
  z-index: 40;
  flex-direction: column;
  gap: 1.1rem;
  opacity: 0; transform: translateY(-20px);
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  pointer-events: none;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 18px; }
@media (max-width: 860px) { .mobile-menu { display: flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-media.show { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17,17,17,0.86) 0%, rgba(17,17,17,0.44) 32%, rgba(17,17,17,0.2) 58%, rgba(17,17,17,0.6) 100%),
    linear-gradient(180deg, rgba(17,17,17,0.36) 0%, rgba(17,17,17,0.05) 32%, rgba(17,17,17,0.26) 62%, rgba(17,17,17,0.86) 100%);
}
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) sepia(0.13) saturate(1.16) brightness(1.12) contrast(1.03); opacity: 1; }

.hero-body {
  position: relative; z-index: 10; flex: 1;
  display: flex; justify-content: space-between; gap: 2rem;
  padding: clamp(1.5rem, 3.5vh, 3.5rem) var(--pad-x) 0;
}
.hero-left { width: min(560px, 86vw); }
.hero-topline { position: relative; z-index: 10; text-align: center; padding: clamp(1rem, 3vh, 2.5rem) var(--pad-x) 0; }
.hero-topline h1 {
  max-width: 24ch; margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 600; letter-spacing: 0; line-height: 1.04; color: var(--head);
  text-wrap: balance;
}
.hero-topline h1 em { font-style: italic; color: var(--amber); }
.hero-topline .sub {
  max-width: 52ch; margin: clamp(0.8rem, 1.6vh, 1.2rem) auto 0;
  color: var(--ink);
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6;
  text-wrap: pretty;
}
.section-tag { display: flex; align-items: center; gap: 0.9rem; }
.section-tag .num { color: var(--amber); font-family: var(--font-label); font-weight: 600; }
.section-tag .rule { width: 64px; height: 1.5px; background: var(--line-strong); }
.section-tag .rule.accent { background: var(--amber); }

.hero-left .kicker { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: clamp(13px,1.3vw,15px); color: var(--amber); margin: 1.4rem 0 0.4rem; }
.hero-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
  color: var(--head);
  margin: 0 0 1rem;
}
.hero-left h2 .tm { font-size: 0.35em; vertical-align: super; color: var(--amber); font-weight: 600; }
.hero-left .lead {
  max-width: 42ch; color: var(--ink);
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6;
}

/* CTA — amber */
.cta {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: 1.7rem; padding: 0.85rem 1.5rem;
  background: var(--amber); border: 1px solid var(--amber);
  border-radius: 3px; overflow: hidden; isolation: isolate;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}
.cta .slide {
  position: absolute; inset: 0; background: var(--amber-light);
  transform: translateX(-101%); transition: transform 0.7s var(--ease-smooth); z-index: -1;
}
.cta:hover { transform: translateY(-1px); box-shadow: 3px 3px 0 var(--amber-dim); }
.cta:active { transform: none; box-shadow: none; }
.cta:hover .slide { transform: translateX(0); }
.cta .label { color: var(--coal); font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; white-space: nowrap; }
.cta .ico { color: var(--coal); transition: transform 0.4s; display: flex; }
.cta:hover .ico { transform: scale(1.1) rotate(-12deg) translateY(-1px); }

/* featured course card */
.hero-right { width: 220px; display: flex; flex-direction: column; gap: 1.6rem; padding-top: clamp(1rem, 3vh, 3rem); }
.spec h3 { font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.spec .sub { font-family: var(--font-display); font-size: 22px; color: var(--head); line-height: 1.2; margin-top: 0.5rem; }
.spec .sub small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: 4px; }
.spec-stats { display: flex; flex-direction: column; gap: 1rem; }
.spec-stat .k { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.spec-stat .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--head); margin-top: 1px; }
.view-details { display: inline-flex; align-items: center; gap: 0.7rem; }
.view-details .circle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--amber-dim);
  display: grid; place-items: center; transition: all 0.25s; color: var(--amber);
}
.view-details:hover .circle { border-color: var(--amber); background: var(--amber); color: var(--coal); }
.view-details span { font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }

@media (max-width: 860px) { .hero-right { display: none; } }

.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.8rem; z-index: 10; }
.scroll-cue .circle { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; gap: 4px; align-items: center; justify-content: center; }
.scroll-cue .circle i { width: 1px; height: 12px; background: var(--amber); display: block; }
.scroll-cue span { font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .scroll-cue { display: none; } }

/* ============================================================
   SECTION 2 — TRAIN
   ============================================================ */
.train {
  position: relative; z-index: 20;
  background: var(--coal-2);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(4rem, 9vh, 8rem) var(--pad-x) 0;
}
.label-row { display: flex; align-items: center; gap: 0.55rem; margin-bottom: clamp(2rem, 4vh, 3rem); font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; }
.label-row .br { color: var(--amber); }
.label-row strong { color: var(--head); font-weight: 600; }
.train h2 {
  max-width: 24ch; font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600; letter-spacing: 0; line-height: 1.06; color: var(--head);
  text-wrap: balance;
}
.train h2 em { font-style: italic; color: var(--amber); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: clamp(2.5rem, 5vh, 3.5rem); }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid var(--amber-dim);
  background: transparent;
  font-family: var(--font-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); transition: all 0.25s var(--ease-smooth);
}
.pill svg { width: 15px; height: 15px; color: var(--amber); transition: color 0.25s; }
.pill:hover { border-color: var(--amber); background: var(--amber); color: var(--coal); }
.pill:hover svg { color: var(--coal); }

.train-foot { width: 100%; display: flex; justify-content: space-between; padding: clamp(1.5rem, 3vh, 2.5rem) 0 clamp(2rem, 4vh, 3rem); margin-top: clamp(2rem, 4vh, 3rem); font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; }
.train-foot span { color: var(--faint); }
@media (max-width: 700px) { .train-foot { display: none; } }

/* ============================================================
   UNIFIED SITE NAV BAR (shared across all pages)
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 64px;
  padding: 0.75rem clamp(1.25rem, 4vw, 4rem);
  background: rgba(17,17,17,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.01em; color: var(--head); line-height: 1; flex: 0 0 auto; display: inline-flex; align-items: center; }
.site-nav__brand span { color: var(--amber); }
.site-nav__logo { height: 42px; width: auto; display: block; }
@media (max-width: 1120px) { .site-nav__logo { height: 36px; } }
.site-nav__links { display: flex; align-items: center; gap: clamp(0.55rem, 1.1vw, 1rem); }
.site-nav__links a:not(.enquiry-btn) {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 13px; color: var(--ink); transition: color 0.2s; white-space: nowrap; position: relative; padding: 0.25rem 0;
}
.site-nav__links a:not(.enquiry-btn):hover { color: var(--amber-light); }
.site-nav__links a.active { color: var(--amber); }
.site-nav__links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--amber); }
.site-nav__toggle, .site-nav__burger { display: none; }

@media (max-width: 1320px) {
  .site-nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; cursor: pointer; flex: 0 0 auto;
  }
  .site-nav__burger span { height: 2px; width: 100%; background: var(--cream); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
  .site-nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(17,17,17,0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease-smooth);
  }
  .site-nav__links a:not(.enquiry-btn) { padding: 1rem clamp(1.25rem, 4vw, 4rem); border-top: 1px solid var(--line); font-size: 14px; }
  .site-nav__links a.active::after { display: none; }
  .site-nav__links .enquiry-btn { margin: 1rem clamp(1.25rem, 4vw, 4rem); justify-content: center; }
  .site-nav__toggle:checked ~ .site-nav__links { max-height: 75vh; }
  .site-nav__toggle:checked ~ .site-nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav__toggle:checked ~ .site-nav__burger span:nth-child(2) { opacity: 0; }
  .site-nav__toggle:checked ~ .site-nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   LOGIN / FREE TRIAL — Videotile action buttons (all pages)
   ============================================================ */
.login-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.login-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px;
  padding: 0.7rem 1.1rem; border-radius: 4px;
  border: 1px solid var(--amber-dim); color: var(--cream); background: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.login-btn:hover { border-color: var(--amber); color: var(--amber-light); transform: translateY(-1px); }
.login-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.login-btn.primary { background: var(--amber); border-color: var(--amber); color: var(--coal); }
.login-btn.primary:hover { background: var(--amber-light); border-color: var(--amber-light); color: var(--coal); }

/* ============================================================
   SEND ENQUIRY — buttons + floating action button
   ============================================================ */
.enquiry-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px;
  background: var(--amber); color: var(--coal); border: 1px solid var(--amber);
  padding: 0.6rem 1.05rem; border-radius: 3px; white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.enquiry-btn:hover { background: var(--amber-light); border-color: var(--amber-light); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.enquiry-btn svg { width: 15px; height: 15px; }

.enquiry-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px;
  background: var(--amber); color: var(--coal);
  padding: 0.85rem 1.3rem; border-radius: 999px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.5);
  transition: background 0.2s, transform 0.2s, opacity 0.25s;
}
.enquiry-fab:hover { background: var(--amber-light); transform: translateY(-2px); }
.enquiry-fab svg { width: 17px; height: 17px; flex: 0 0 auto; }
/* hide the FAB while a course detail modal is open (FAB sits after .modal in DOM) */
.modal.open ~ .enquiry-fab { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .enquiry-fab span { display: none; } .enquiry-fab { padding: 0.95rem; border-radius: 50%; } }
/* home hero: button shows on desktop; mobile uses the menu + FAB */
.hero-head .subnav .hero-enquiry { align-self: flex-start; }
@media (max-width: 860px) { .hero-head .subnav .hero-enquiry { display: none; } }

/* ============================================================
   VIDEO SHOWCASE — Videotile embed
   ============================================================ */
.showcase {
  position: relative; z-index: 30;
  background: var(--coal);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x) clamp(4rem, 9vh, 7rem);
}
.showcase-head { max-width: 1280px; margin: 0 auto clamp(2rem, 4vh, 3rem); }
.showcase-head .mono { color: var(--amber); }
.showcase-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.05; color: var(--head);
  margin: 0.8rem 0 0.9rem; max-width: 18ch;
}
.showcase-head p { font-family: var(--font-body); color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; max-width: 52ch; }
.showcase-frame {
  max-width: 1280px; margin: 0 auto;
  border: 1px solid var(--amber-dim); border-radius: 6px;
  background: var(--coal-2); padding: clamp(0.5rem, 1.5vw, 1rem);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.showcase .login-actions { justify-content: center; margin: 1.75rem auto 0; max-width: 1280px; }

/* ============================================================
   CALLOUT — "The Human Safety Gap" (Amber Pale band)
   ============================================================ */
.callout {
  position: relative; z-index: 25;
  background: var(--amber-pale); color: var(--coal);
  padding: clamp(4rem, 10vh, 7rem) var(--pad-x);
}
.callout .wrap { max-width: 1100px; margin: 0 auto; display: grid; gap: 1.75rem; }
.callout .ck { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 15px; color: var(--amber); }
.callout h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.1; max-width: 20ch; }
.callout h2 .tm { font-size: 0.32em; vertical-align: super; }
.callout p { font-family: var(--font-body); font-size: clamp(17px, 2vw, 22px); line-height: 1.55; max-width: 56ch; color: #3a2c12; }
.callout .by { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--amber-dim); }

/* ============================================================
   SECTION 3 — COURSE LIBRARY
   ============================================================ */
.library { position: relative; z-index: 30; background: var(--coal); color: var(--cream); display: flex; flex-direction: column; }
.lib-head { padding: clamp(3rem, 8vh, 6rem) var(--pad-x) clamp(2.5rem, 5vh, 4rem); display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1100px) { .lib-head { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.lib-head h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: 0; line-height: 1.12; color: var(--head); max-width: 22ch; }
.lib-head h2 em { font-style: italic; color: var(--amber); }
.lib-head h2 .chips { display: inline-flex; gap: 0.6rem; vertical-align: middle; margin: 0 0.6rem; transform: translateY(-6px); }
.lib-chip { width: clamp(44px, 4vw, 58px); height: clamp(44px, 4vw, 58px); border-radius: 50%; border: 1px solid var(--amber-dim); background: var(--coal-2); color: var(--amber); display: grid; place-items: center; transition: all 0.25s; }
.lib-chip:hover { background: var(--amber); color: var(--coal); border-color: var(--amber); }
.lib-chip svg { width: 22px; height: 22px; }
.lib-head .tagline { max-width: 360px; }
.lib-head .tagline p { font-family: var(--font-label); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); line-height: 1.7; margin-bottom: 1.4rem; }
.lib-head .tagline .pills { justify-content: flex-start; margin: 0; }
.lib-head .tagline .pill { background: transparent; border-color: var(--amber-dim); color: var(--ink); }

.lib-panel { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .lib-panel { flex-direction: row; } }
.lib-left { position: relative; border-bottom: 1px solid var(--line); min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem var(--pad-x); }
@media (min-width: 900px) { .lib-left { width: 36%; border-bottom: none; border-right: 1px solid var(--line); min-height: 520px; } }
.lib-left .stars { color: var(--amber); font-size: 20px; letter-spacing: 0.3em; }
.lib-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 2.5rem; }
.lib-stage .frame { width: 78%; aspect-ratio: 4/3; max-width: 360px; border: 1px solid var(--amber-dim); border-radius: 4px; overflow: hidden; background: linear-gradient(150deg, #241a0c 0%, #14100a 55%, #0c0905 100%); position: relative; }
.lib-stage .frame::before { content: "Video Lesson"; position: absolute; top: 0.85rem; left: 1rem; z-index: 2; font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.lib-stage .frame .ph { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; display: grid; place-items: center; text-align: center; padding: 1.5rem; pointer-events: none; }
.lib-stage .frame .ph.active { opacity: 1; pointer-events: auto; z-index: 1; }
.lib-stage .frame .ph-video { padding: 0; }
.lib-stage .frame .ph-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lib-stage .frame:has(.ph-video.active)::before { display: none; }
.lib-stage .frame .ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 1rem; font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); border-top: 1px solid var(--line); display: flex; justify-content: space-between; background: rgba(0,0,0,0.4); }
.play-badge { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--amber); background: rgba(196,122,10,0.12); display: grid; place-items: center; color: var(--amber); transition: transform 0.3s; }
.lib-stage .frame:hover .play-badge { transform: scale(1.08); }
.play-badge svg { margin-left: 3px; }

.lib-counter { font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: baseline; gap: 0.4rem; }
.lib-counter .cur { color: var(--amber); font-size: 16px; }
.lib-counter .div { color: var(--amber-dim); }
.lib-playing { margin-left: 0.9rem; color: var(--amber); font-size: 11px; letter-spacing: 0.14em; opacity: 0; transform: translateY(1px); transition: opacity 0.3s ease; pointer-events: none; }
.lib-playing::first-letter { font-size: 8px; }
.library.is-watching .lib-playing { opacity: 1; animation: libPulse 1.6s ease-in-out infinite; }
@keyframes libPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

.lib-right { display: flex; flex-direction: column; flex: 1; }
.lib-right .bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 1.5rem var(--pad-x); font-family: var(--font-label); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lib-right .bar [data-chap] { color: var(--amber); }
.lib-list { display: flex; flex-direction: column; }
.lib-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: clamp(1.1rem, 2.4vh, 1.7rem) var(--pad-x); color: var(--faint); cursor: pointer; transition: color 0.35s, background 0.35s; text-align: left; width: 100%; }
.lib-item:hover { color: var(--muted); }
.lib-item.active { color: var(--head); }
.lib-item .meta { display: flex; align-items: baseline; gap: 1rem; }
.lib-item .idx { font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--amber-dim); }
.lib-item.active .idx { color: var(--amber); }
.lib-item .name { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: 0; }
.lib-item .cat { font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 3px; display: block; }
.lib-item.active .cat { color: var(--amber); }
.lib-item .arrow { opacity: 0; transform: translate(-6px, 6px); transition: all 0.3s var(--ease-smooth); color: var(--amber); }
.lib-item.active .arrow { opacity: 1; transform: none; }
.lib-foot { border-top: 1px solid var(--line); padding: 1.6rem var(--pad-x); font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; gap: 1rem; background: var(--coal); }
.lib-foot .em { color: var(--amber); }

/* ============================================================
   PARTNERS / ACCREDITATIONS
   ============================================================ */
.partners { background: var(--coal-2); padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x); }
.partners .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2.75rem, 5vh, 4rem); flex-wrap: wrap; }
.partners h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: 0; line-height: 1.12; max-width: 22ch; color: var(--head); }
.partners .head .mono { color: var(--amber); }
.partner-marquee { position: relative; overflow: hidden; border: 1px solid var(--line); }
.partner-marquee::before, .partner-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 6vw, 90px); z-index: 2; pointer-events: none; }
.partner-marquee::before { left: 0; background: linear-gradient(90deg, var(--coal-2), transparent); }
.partner-marquee::after { right: 0; background: linear-gradient(270deg, var(--coal-2), transparent); }
.partner-track { display: flex; width: max-content; animation: partnerScroll 60s linear infinite; will-change: transform; }
.partner-marquee:hover .partner-track { animation-play-state: paused; }
@keyframes partnerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partner-marquee { overflow-x: auto; }
  .partner-track { animation: none; }
}
.partner-track .partner-cell { flex: 0 0 clamp(200px, 21vw, 250px); border-right: 1px solid var(--line); }
.partner-cell { background: var(--coal); padding: clamp(1.4rem, 2.6vw, 2.1rem); display: flex; flex-direction: column; gap: 0.5rem; min-height: 178px; transition: background 0.3s; }
.partner-cell:hover { background: var(--coal-2); }
.partner-cell .pname { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; margin-top: auto; color: var(--head); }
.partner-cell .pkind { font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.partner-cell .pmark { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--amber-dim); display: grid; place-items: center; color: var(--amber); }
.partner-cell .pmark--img { border-radius: 10px; border: none; overflow: hidden; padding: 5px; background: #fff; }
.partner-cell .pmark--img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--coal); padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x); }
.testimonials .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2.75rem, 5vh, 4rem); flex-wrap: wrap; }
.testimonials .head .eyebrow { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 14px; color: var(--amber); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.7rem; }
.testimonials .head .eyebrow::before { content: ""; width: 42px; height: 1.5px; background: var(--amber); display: inline-block; }
.testimonials h3 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: 0; line-height: 1.1; max-width: 24ch; color: var(--head); }
.testimonials .head .mono { color: var(--amber); font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.4rem; }
.t-marquee { position: relative; overflow: hidden; border: 1px solid var(--line); }
.t-marquee::before, .t-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 6vw, 90px); z-index: 2; pointer-events: none; }
.t-marquee::before { left: 0; background: linear-gradient(90deg, var(--coal), transparent); }
.t-marquee::after { right: 0; background: linear-gradient(270deg, var(--coal), transparent); }
.t-track { display: flex; align-items: stretch; width: max-content; animation: tScroll 80s linear infinite; will-change: transform; }
.t-marquee:hover .t-track { animation-play-state: paused; }
@keyframes tScroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .t-marquee { overflow-x: auto; }
  .t-track { animation: none; }
}
.t-track .tcard { flex: 0 0 clamp(290px, 31vw, 350px); border-right: 1px solid var(--line); }
.tcard { background: var(--coal-2); padding: clamp(1.6rem, 2.6vw, 2.1rem); display: flex; flex-direction: column; gap: 1.3rem; transition: background 0.3s; }
.tcard:hover { background: #201813; }
.tcard .qmark { font-family: var(--font-display); font-size: 3rem; line-height: 0.5; color: var(--amber-dim); height: 1.1rem; }
.tcard blockquote { font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.4; color: var(--cream); font-style: italic; margin: 0; }
.tcard .who { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; padding-top: 0.4rem; }
.tcard .avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--amber-pale); color: #3a2c12; display: grid; place-items: center; font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.tcard .who .name { display: block; font-family: var(--font-label); font-weight: 600; font-size: 15px; color: var(--head); line-height: 1.2; }
.tcard .who .org { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: 2px; }
.tcard .who > span:last-child { min-width: 0; }

/* clients marquee */
.clients { background: var(--coal); padding: clamp(3rem, 7vh, 5rem) 0; overflow: hidden; }
.clients .head { padding: 0 var(--pad-x); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.clients .head h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: 0; line-height: 1.12; color: var(--head); }
.clients .head span { font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.marquee { display: flex; gap: 0; width: max-content; animation: scrollx 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.client { display: flex; flex-direction: column; gap: 0.3rem; justify-content: center; padding: 0 clamp(1.5rem, 3vw, 2.75rem); min-width: max-content; border-left: 1px solid var(--line); height: 96px; }
.client .cn { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; white-space: nowrap; color: var(--head); }
.client .cc { font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
@keyframes scrollx { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact { background: var(--coal); color: var(--cream); padding: clamp(4rem, 9vh, 7rem) var(--pad-x) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: 0; line-height: 1.04; max-width: 14ch; color: var(--head); }
.contact h2 em { font-style: italic; color: var(--amber); }
.contact .sub { color: var(--ink); max-width: 44ch; margin-top: 1.5rem; line-height: 1.6; font-size: clamp(15px,1.5vw,18px); }
.contact-meta { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2.5rem; }
.cmeta-row { display: flex; flex-direction: column; gap: 3px; }
.cmeta-row .k { font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.cmeta-row .v { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; color: var(--head); }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.field input, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--amber-dim);
  color: var(--cream); font-family: var(--font-body); font-size: 16px; padding: 0.6rem 0; outline: none;
  transition: border-color 0.25s;
}
.field input:focus, .field textarea:focus { border-color: var(--amber); }
.field textarea { resize: vertical; min-height: 70px; }
.form .cta { align-self: flex-start; padding: 0.85rem 1.75rem; }
.form-status { font-family: var(--font-body); font-size: 14px; line-height: 1.5; margin: 0; min-height: 1em; }
.form-status.is-success { color: var(--amber-light); }
.form-status.is-error { color: #ff9d7a; }
.form-privacy { margin: 0.75rem 0 0; font-family: var(--font-body); font-size: 13px; }
.form-privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; opacity: 0.85; transition: opacity 0.2s ease; }
.form-privacy a:hover { opacity: 1; color: var(--amber-light); }

footer.site-foot {
  margin-top: clamp(3.5rem, 8vh, 6rem);
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad-x) 2.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
footer.site-foot .legal { font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
footer.site-foot .socials { display: flex; gap: 1.25rem; }
footer.site-foot .socials a { font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
footer.site-foot .socials a:hover { color: var(--amber-light); }

/* footer legal links (shared) */
.foot-legal { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.foot-legal a, .foot-legal-btn { font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; background: none; border: none; padding: 0; cursor: pointer; }
.foot-legal a:hover, .foot-legal-btn:hover { color: var(--amber-light); }
.foot-legal a[aria-current="page"] { color: var(--amber); }
.cat-foot .foot-legal { gap: 1.1rem; }

/* ============================================================
   MEGA FOOTER (shared — built by site-footer.js, all pages)
   ============================================================ */
.mega-foot { background: var(--coal); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) var(--pad-x) 0; }
.mf-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 1000px) { .mf-inner { grid-template-columns: 1fr 1fr; row-gap: 2.75rem; } }
@media (max-width: 560px) { .mf-inner { grid-template-columns: 1fr; } }

.mf-brand { display: flex; flex-direction: column; }
.mf-logo { display: inline-block; width: fit-content; }
.mf-logo img { height: 52px; width: auto; }
.mf-tagline { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 36ch; margin-top: 1.3rem; }
.mf-contact { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.6rem; }
.mf-c { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-size: 14.5px; width: fit-content; transition: color 0.2s; }
.mf-c::before { content: ""; width: 1.05em; height: 1.05em; flex: 0 0 auto; background: var(--amber); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.mf-c:hover { color: var(--amber-light); }
.mf-mail { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.mf-phone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.mf-socials { display: flex; gap: 0.6rem; margin-top: 1.9rem; flex-wrap: wrap; }
.mf-socials a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.mf-socials a:hover { border-color: var(--amber); color: var(--amber-light); transform: translateY(-2px); }
.mf-socials svg { width: 17px; height: 17px; fill: currentColor; }

.mf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.mf-col h3 { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; color: var(--amber); margin-bottom: 0.5rem; }
.mf-col a, .mf-link-btn { color: var(--ink); font-size: 14.5px; line-height: 1.3; white-space: nowrap; transition: color 0.2s; text-align: left; }
.mf-col a:hover, .mf-link-btn:hover { color: var(--amber-light); }
.mf-col a[aria-current="page"] { color: var(--amber); }

.mf-bottom { max-width: 1280px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; border-top: 1px solid var(--line); padding: 1.6rem 0 2.2rem; }
.mf-note { color: var(--faint); font-size: 12px; line-height: 1.6; margin-bottom: 0.9rem; }
.mf-reg { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
