/* ==========================================================================
   Impetus Training Academy: course landing page
   Palette comes from the Impetus logo (saffron, leaf, sky, red) on the
   brand navy already used across impetustrainingacademy.com.
   ========================================================================== */

:root {
  --navy-950: #0a1240;
  --navy-900: #0d1747;
  --navy: #13205e;
  --navy-600: #2a3a8c;
  --saffron: #f4a51c;
  --saffron-600: #dd8f08;
  --saffron-100: #fff3dc;
  --sky: #3b6fb6;
  --leaf: #5f8a14;
  --red: #c8202f;
  --paper: #ffffff;
  --mist: #eef1f8;
  --line: #d9deec;
  --text: #141a33;
  --muted: #4f5877;
  --on-dark: #e8ecfa;
  --on-dark-muted: #aab3d6;

  --font-sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-deva: "Tiro Devanagari Marathi", "Noto Sans Devanagari", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 6vw, 88px);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;

  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
small { font-size: 0.8125em; }

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

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--saffron);
  color: var(--navy-950);
  font-weight: 700;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type scale (1.333 ratio) ---------- */
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.02;
  font-weight: 800;
  font-variation-settings: "wdth" 74;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { color: var(--btn-fg); }
.btn--saffron { --btn-bg: var(--saffron); --btn-fg: var(--navy-950); }
.btn--saffron:hover { --btn-bg: #ffb83a; }
.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--navy:hover { --btn-bg: var(--navy-600); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn--ghost-light:hover { --btn-bd: #fff; --btn-bg: rgba(255,255,255,.06); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sky);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.brand img { width: 158px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.site-nav a:not(.btn) {
  color: var(--text);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--sky); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { top: 22px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(59,111,182,.32), transparent 60%),
    var(--navy-900);
  color: var(--on-dark);
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__kicker {
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(3rem, 1.4rem + 6.4vw, 6.25rem);
  line-height: .9;
  font-weight: 850;
  font-variation-settings: "wdth" 66;
  letter-spacing: -0.012em;
  color: #fff;
}
.hero__lede {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--on-dark-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Ticket: next workshop summary in the hero */
.ticket {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 14px 28px;
  margin: 40px 0 0;
  padding: 18px 22px;
  max-width: 640px;
  border: 1px dashed rgba(244,165,28,.6);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.03);
}
.ticket > div { min-width: 0; }
.ticket__head { grid-column: 1 / -1; }
.ticket__head dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #fff; }
.ticket__status {
  font-size: .8125rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--saffron);
  color: var(--navy-950);
}
.ticket dt { font-size: .8125rem; color: var(--on-dark-muted); }
.ticket dd { margin: 2px 0 0; font-weight: 700; color: #fff; }

/* Reel: the hero testimonial video */
.reel {
  margin: 0;
  justify-self: center;
  width: min(100%, 380px);
  position: relative;
}
.reel__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 22px 22px 0 0 var(--saffron), 0 30px 60px -20px rgba(0,0,0,.6);
}
.reel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel__controls {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  display: flex;
  gap: 8px;
}
.reel__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(10,18,64,.82);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  backdrop-filter: blur(6px);
}
.reel__btn:hover { background: var(--navy-600); }
.reel__btn--sound { flex: 1; justify-content: center; }
.reel__btn--icon { width: 44px; padding: 0; justify-content: center; }
.reel__btn [data-wave] { display: none; }
.reel__btn[aria-pressed="true"] [data-wave] { display: inline; }
.reel__btn[aria-pressed="true"] [data-mute] { display: none; }
.reel__btn [data-play] { display: none; }
.reel.is-paused [data-play] { display: inline; }
.reel.is-paused [data-pause] { display: none; }

.reel__caption {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  font-size: .9375rem;
  color: var(--on-dark-muted);
}
.reel__caption a { color: #fff; font-weight: 700; }

/* ---------- Companies ---------- */
.companies {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}
.companies__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}
.companies__logos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.logo-tile {
  height: 84px;
  display: grid;
  place-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.logo-tile img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* drops the white backgrounds some logo files have */
}
/* White artwork (Pooja Castings) is inverted so it shows on the white tile. */
.logo-tile--invert img { filter: invert(1); }
@media (max-width: 900px) {
  .companies__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .logo-tile { height: 58px; padding: 8px 10px; }
  .logo-tile img { max-height: 36px; }
}

/* With JavaScript the logos scroll slowly in one row (main.js doubles the list so it loops).
   Without it, or with reduced motion, they stay in the grid above. */
.companies__marquee.is-moving {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.companies__marquee.is-moving .companies__logos {
  display: flex;
  gap: 0;
  width: max-content;
  animation: logo-marquee var(--marquee-time, 120s) linear infinite;
}
/* Spacing is a margin, not a gap, so half the doubled list is exactly one loop */
.companies__marquee.is-moving .logo-tile { flex: none; width: 184px; margin-right: 12px; }
.companies__marquee.is-moving:hover .companies__logos,
.companies__marquee.is-moving:focus-within .companies__logos { animation-play-state: paused; }
@keyframes logo-marquee { to { transform: translateX(-50%); } }
@media (max-width: 900px) {
  .companies__marquee.is-moving .logo-tile { width: 136px; margin-right: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--navy .h2 { color: #fff; }
.section--navy .lede { color: var(--on-dark-muted); }
.section--saffron { background: var(--saffron); }
.section--saffron .lede { color: #3a2a06; }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: 32px 56px;
  align-items: end;
}

/* ---------- Challenges ---------- */
.challenges {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.challenges__result {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 4px solid var(--line);
  font-weight: 700;
  color: var(--muted);
  transition: border-color .2s ease, color .2s ease;
}
.challenges__result.is-hot { border-color: var(--saffron); color: var(--navy); }
.challenges__result a { color: var(--navy); }

.checklist {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checklist label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  line-height: 1.45;
  transition: border-color .15s ease, background-color .15s ease;
}
.checklist label:hover { border-color: var(--sky); }
.checklist input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 24px; height: 24px;
  margin: 0;
  border: 2px solid var(--muted);
  border-radius: var(--r-sm);
  background: #fff;
  display: grid;
  place-content: center;
}
.checklist input::after {
  content: "";
  width: 12px; height: 7px;
  border-left: 3px solid var(--navy-950);
  border-bottom: 3px solid var(--navy-950);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .12s ease;
}
.checklist input:checked { background: var(--saffron); border-color: var(--saffron); }
.checklist input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checklist label:has(input:checked) { border-color: var(--saffron); background: var(--saffron-100); }
.checklist input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- Gears (signature) ---------- */
.gears__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.gears__marathi {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.gears__marathi [lang="mr"] {
  font-family: var(--font-deva);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--navy);
}
.gears__marathi-en { color: var(--muted); font-style: italic; font-family: var(--font-serif); font-size: 1.125rem; }

.gearbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.shifter {
  position: relative;
  aspect-ratio: 300 / 260;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  background:
    radial-gradient(circle at 50% 40%, #1d2b72, var(--navy-950) 70%);
  border-radius: 32px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(13,23,71,.7);
}
.shifter__gate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shifter__gate path {
  fill: none;
  stroke: #050a2a;
  stroke-width: 22;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shifter__slot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.28);
  background: transparent;
  color: var(--on-dark-muted);
  font-weight: 800;
  font-size: clamp(1rem, .8rem + .8vw, 1.5rem);
  font-variation-settings: "wdth" 80;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: border-color .15s ease, color .15s ease;
}
.shifter__slot:hover { border-color: var(--saffron); color: #fff; }
.shifter__slot[aria-checked="true"] { border-color: transparent; color: transparent; }
.shifter__slot:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; }

.shifter__knob {
  position: absolute;
  left: 0; top: 0;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffd27a, var(--saffron) 45%, #c47c04 100%);
  box-shadow: 0 10px 20px rgba(0,0,0,.45), inset 0 -4px 8px rgba(0,0,0,.2);
  display: grid;
  place-items: center;
  color: var(--navy-950);
  font-weight: 900;
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-variation-settings: "wdth" 80;
  pointer-events: none;
  z-index: 3;
  will-change: transform;
}

.gear-panel {
  padding: clamp(24px, 3vw, 36px);
  border: 2px solid var(--navy);
  border-radius: var(--r-lg);
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.gear-panel__level { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.gear-panel__name {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1;
  font-weight: 850;
  font-variation-settings: "wdth" 70;
  color: var(--navy);
  margin-bottom: 18px;
}
.gear-panel__body { font-size: 1.0625rem; }
.gear-panel__warn {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #fdecee;
  color: #7c1420;
  font-size: .9688rem;
}
.gear-panel__warn:empty { display: none; }
.gear-panel__fit {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}
.gear-panel__fit p { margin: 0; color: var(--muted); }
.gear-panel__fit a { font-weight: 800; font-size: 1.125rem; color: var(--navy); }

/* ---------- Programmes ---------- */
.programme {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 16px 36px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.programme__gears { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.programme__gears span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--saffron);
  color: var(--saffron);
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.programme__name {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.1;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  color: #fff;
}
.programme__desc { margin: 10px 0 0; max-width: 62ch; color: var(--on-dark-muted); }
.programme__link {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 6px;
}
.programme__link:hover { color: var(--saffron); }

.programme--flagship {
  margin: 14px 0;
  padding: clamp(24px, 3vw, 36px);
  border: 0;
  border-radius: var(--r-lg);
  background: var(--navy-900);
  box-shadow: inset 0 0 0 2px var(--saffron);
}
.programme--flagship .programme__gears span { background: var(--saffron); color: var(--navy-950); }
.programme--flagship .programme__name { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); }
.programme__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px;
  color: var(--on-dark-muted);
}
.programme__facts strong {
  display: block;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 850;
  font-variation-settings: "wdth" 72;
}
.programme__cta { align-self: center; }
.programme--flagship { margin: 0 0 16px; }

.programme-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.programme-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg);
}
.programme-card .programme__desc { margin: 0 0 4px; }
.programme-card .programme__link { margin-top: auto; }

/* ---------- Workshop ---------- */
.workshop {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.workshop .h2 { color: var(--navy-950); }
.workshop__sub {
  margin-top: 28px;
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--navy-950);
}
.workshop__topics {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 2px;
  counter-reset: topic;
}
.workshop__topics li {
  position: relative;
  padding: 10px 0 10px 44px;
  border-top: 1px solid rgba(10,18,64,.18);
  color: #2b2208;
  counter-increment: topic;
}
.workshop__topics li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 22px; height: 12px;
  border-left: 3.5px solid var(--navy-950);
  border-bottom: 3.5px solid var(--navy-950);
  transform: rotate(-45deg);
  transform-origin: center;
}
.workshop__topics strong { color: var(--navy-950); }

.event-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,18,64,.55);
  display: grid;
  grid-template-columns: 0.8fr 1fr;
}
.event-card__poster { width: 100%; height: 100%; object-fit: cover; }
.event-card__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.event-card__when { margin: 0; font-weight: 700; color: var(--red); }
.event-card__facts { margin: 0; display: grid; gap: 10px; }
.event-card__facts div { display: grid; grid-template-columns: 54px 1fr; gap: 10px; }
.event-card__facts dt { color: var(--muted); font-size: .9375rem; }
.event-card__facts dd { margin: 0; font-weight: 700; color: var(--navy-950); line-height: 1.35; }
.event-card__alt { margin: 0; font-size: .9375rem; color: var(--muted); }

.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.countdown div {
  padding: 10px 6px 8px;
  border-radius: var(--r-sm);
  background: var(--mist);
  text-align: center;
}
.countdown span {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 850;
  font-variation-settings: "wdth" 70;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.countdown small { color: var(--muted); }
.countdown[hidden] { display: none; }

/* ---------- Results / videos ---------- */
.ledger {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0;
  border: 1.5px solid var(--navy);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ledger div { padding: 14px 18px; border-left: 1.5px solid var(--navy); }
.ledger div:first-child { border-left: 0; }
.ledger dt { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.ledger dd {
  margin: 6px 0 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 850;
  font-variation-settings: "wdth" 70;
  color: var(--navy);
}

.videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.video-card { margin: 0; }
.video-card__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy-950);
  aspect-ratio: 16 / 9;
}
.video-card__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .2s ease;
}
.video-card__btn:hover img { transform: scale(1.03); opacity: .88; }
.video-card__play {
  position: absolute;
  left: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(10,18,64,.85);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
}
.video-card__play::before {
  content: "";
  width: 20px; height: 20px;
  border-radius: 50%;
  background:
    var(--saffron)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230a1240' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.video-card figcaption { margin-top: 12px; line-height: 1.35; }
.video-card__name { display: block; font-weight: 750; color: var(--text); }
.video-card__company { display: block; color: var(--muted); font-size: .9375rem; }

.video-card--feature { grid-column: span 2; grid-row: span 2; }
.video-card--feature .video-card__name { font-size: 1.375rem; font-variation-settings: "wdth" 80; }

.video-card.is-extra { display: none; }
.videos.is-expanded .video-card.is-extra { display: block; }

.videos__more { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- Coach ---------- */
.coach__grid {
  display: grid;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.coach__photo { margin: 0; position: relative; }
.coach__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--r-lg);
}
.coach__role { margin-top: 10px; font-weight: 700; color: var(--sky); }
.coach__copy > p:not(.coach__role) { max-width: 60ch; }
.coach__quote {
  margin: 22px 0;
  padding: 0;
}
.coach__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  line-height: 1.25;
  color: var(--navy);
  max-width: 30ch;
  margin: 0;
}
.coach__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.coach__links a { font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--mist);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(10,18,64,.88), transparent);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq__list { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 750;
  font-size: 1.125rem;
  color: var(--navy);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 22px; max-width: 64ch; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final {
  background: var(--navy-900);
  color: #fff;
  padding: var(--section-y) 0;
  text-align: left;
}
.final__quote { margin: 0 0 22px; }
.final__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.2;
  max-width: 28ch;
  margin: 0;
  color: var(--on-dark);
}
.final__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: 20px;
}
.final__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-muted);
  padding: 56px 0 28px;
  font-size: .9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr .8fr;
  gap: 32px;
}
.site-footer__brand img { width: 180px; margin-bottom: 16px; }
.site-footer__brand p { max-width: 40ch; }
.site-footer__title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.site-footer__list { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.site-footer__address { font-style: normal; }
.site-footer__address strong { color: #fff; }
.site-footer__legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a + a { margin-left: 16px; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
}
.action-bar .btn { flex: 1; }
.action-bar__wa {
  flex: none;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: #1fa855;
  color: #fff;
}
.action-bar__wa:hover { color: #fff; background: #168a45; }

/* ---------- Video dialog ---------- */
.player {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
}
.player::backdrop { background: rgba(5,9,35,.82); }
.player__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 20px;
}
.player__title { margin: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__close {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.player__close:hover { background: rgba(255,255,255,.2); }
.player__frame { aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .site-nav a:not(.btn) { font-size: .875rem; }
  .programme { grid-template-columns: 140px minmax(0, 1fr); }
  .programme__cta, .programme__link { grid-column: 2; justify-self: start; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  /* Give the workshop card's details the full width when space is tight. */
  .event-card { grid-template-columns: 1fr; }
  .event-card__poster { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(10,18,64,.3);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav .btn { margin-top: 14px; }

  /* On phones the reel sits right under the headline so the video is in the first screen. */
  .hero__grid { display: flex; flex-direction: column; gap: 0; }
  .hero__copy { display: contents; }
  .hero__kicker { order: 1; }
  .hero__title { order: 2; }
  .reel { order: 3; width: min(68%, 280px); align-self: center; margin: 24px 0 4px; }
  .hero__lede { order: 4; }
  .hero__actions { order: 5; }
  .ticket { order: 6; grid-template-columns: repeat(2, auto); }
  .reel__caption { margin-top: 30px; text-align: center; }

  .challenges,
  .gearbox,
  .workshop,
  .coach__grid,
  .faq { grid-template-columns: 1fr; }

  .section-head--split { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item { aspect-ratio: 1; }
  .programme-row { grid-template-columns: 1fr; gap: 12px; }
  .programme-card { padding: 18px 20px; }
  .coach__photo { max-width: 260px; }
  .action-bar { display: flex; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .hero__title br { display: none; }
  .ticket { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px 18px; }
  .hero__actions .btn { width: 100%; }
  .reel__frame { box-shadow: 12px 12px 0 0 var(--saffron), 0 20px 40px -20px rgba(0,0,0,.6); }

  .checklist { grid-template-columns: 1fr; }
  .programme { grid-template-columns: 1fr; padding: 24px 0; }
  .programme__cta, .programme__link { grid-column: 1; }
  .programme--flagship { padding: 22px; }
  .event-card { grid-template-columns: 1fr; }
  .event-card__poster { display: none; }
  .ledger { grid-template-columns: 1fr; }
  .ledger div { border-left: 0; border-top: 1.5px solid var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .ledger div:first-child { border-top: 0; }
  .ledger dd { margin: 0; }
  .videos { grid-template-columns: 1fr; }
  .video-card--feature { grid-column: auto; grid-row: auto; }
  .gallery { gap: 8px; }
  .gallery__item span { font-size: .8125rem; padding: 22px 10px 8px; }
  .site-footer { padding: 40px 0 24px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .site-footer__brand, .site-footer__offices { grid-column: 1 / -1; }
  .site-footer__offices { order: 1; }
  .site-footer__legal { margin-top: 28px; }
  .final__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Registration + Razorpay payment form ---------- */
.ita-reg__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.ita-reg .lede { margin-bottom: 1.25em; }
.ita-event { list-style: none; margin: 0 0 24px; }
.ita-event li { position: relative; padding: 4px 0 4px 22px; }
.ita-event li::before {
  content: ""; position: absolute; left: 4px; top: .8em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--saffron);
}
.ita-price, .ita-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(19, 32, 94, .07);
}
.ita-price { padding: 20px 24px; }
.ita-price__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--muted); }
.ita-price__row--total {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px;
  color: var(--navy); font-weight: 700; font-size: 1.2rem;
}
.ita-price__note { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.ita-card { padding: clamp(20px, 3vw, 32px); }
.ita-field { margin-bottom: 16px; }
.ita-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; color: var(--text); }
.ita-field label span { color: var(--muted); font-weight: 400; }
.ita-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 1rem; color: var(--text); background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.ita-field input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42, 58, 140, .15); }
.ita-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ita-submit { margin-top: 6px; }
.ita-submit:disabled { opacity: .7; cursor: progress; }
.ita-secure { margin: 12px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.ita-msg { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 9px; font-size: .92rem; line-height: 1.5; }
.ita-msg--error   { display: block; background: #fdecec; color: #8c1d1d; border: 1px solid #f3c9c9; }
.ita-msg--success { display: block; background: #e9f7ef; color: #1c5c38; border: 1px solid #bfe5cf; }
@media (max-width: 860px) {
  .ita-reg__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ita-grid-2 { grid-template-columns: 1fr; }
}
