/* ==========================================================================
   Aathmik Yoga — site styles
   Mobile-first. Breakpoints: 640px (sm), 900px (md), 1200px (container).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --indigo: #1c3a95;
  --indigo-deep: #1f2a6b;
  --teal: #1b5e8a;
  --teal-soft: #2f5d6e;
  --mint: #7fc8a9;
  --mint-soft: #bfe3d2;
  --sage: #e3f2ec;
  --sage-light: #f3faf7;
  --cream: #fbfdfc;
  --ink: #1f3a5f;
  --ink-soft: #4a5f7a;
  --muted: #7a8aa0;
  --line: #d9e6e0;
  --white: #ffffff;
  --rose: #9b5d73;
  --rose-soft: #d9a7b6;
  --whatsapp: #25a26b;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-accent: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 1rem;
  --radius-sm: 0.6rem;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(31, 58, 95, 0.08);
  --shadow: 0 14px 34px rgba(31, 58, 95, 0.14);
  --shadow-lg: 0 24px 60px rgba(31, 58, 95, 0.22);

  --header-h: 4.75rem;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 8vw, 5.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--indigo-deep);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal);
  text-decoration-color: var(--mint);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--indigo);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
}

.sr-only {
  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;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--indigo);
  color: var(--white);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.75rem;
}

.site-main {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: linear-gradient(180deg, var(--sage-light), var(--sage));
}

.section--tight {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.section__head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 5vw, 3.25rem);
}

.section__head--left {
  text-align: left;
  margin-inline: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

.muted {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur), color var(--dur), border-color var(--dur);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 1.3em;
  height: 1.3em;
}

.btn--primary {
  background: var(--indigo);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--indigo-deep);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--indigo);
}

.btn--light:hover {
  background: var(--sage-light);
  color: var(--indigo-deep);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--teal);
  background: var(--white);
}

.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--indigo);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #3fb98a 0%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(27, 94, 138, 0.22);
}

.btn--whatsapp:hover {
  color: var(--white);
  box-shadow: 0 14px 30px rgba(27, 94, 138, 0.3);
}

.btn--lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.08rem;
}

.btn--block {
  width: 100%;
  max-width: 32rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link .icon {
  transition: transform var(--dur) var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Theme gradients and image placeholders
   -------------------------------------------------------------------------- */
.theme-indigo {
  --th-a: var(--indigo);
  --th-b: var(--teal-soft);
  --th-fg: var(--white);
  --th-dot: var(--indigo);
}

.theme-teal {
  --th-a: var(--teal);
  --th-b: var(--mint);
  --th-fg: var(--white);
  --th-dot: var(--teal);
}

.theme-mint {
  --th-a: #5fb493;
  --th-b: var(--sage);
  --th-fg: var(--indigo-deep);
  --th-dot: var(--mint);
}

.theme-rose {
  --th-a: var(--rose);
  --th-b: var(--rose-soft);
  --th-fg: var(--white);
  --th-dot: var(--rose);
}

.theme-amber {
  --th-a: #b9782a;
  --th-b: #ecc98a;
  --th-fg: var(--white);
  --th-dot: #c98a35;
}

.theme-lavender {
  --th-a: #5f5aa8;
  --th-b: #bdb6e4;
  --th-fg: var(--white);
  --th-dot: #7a74c2;
}

.theme-sky {
  --th-a: #2f7fb3;
  --th-b: #a8d4ec;
  --th-fg: var(--white);
  --th-dot: #3f93c9;
}

.theme-forest {
  --th-a: #2f6b4f;
  --th-b: #9fcdb3;
  --th-fg: var(--white);
  --th-dot: #3c8a66;
}

.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--th-fg, var(--white));
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.14), transparent 50%),
    linear-gradient(135deg, var(--th-a, var(--indigo)), var(--th-b, var(--teal)));
}

.ph .icon {
  width: clamp(2.5rem, 20%, 4.5rem);
  height: auto;
  opacity: 0.85;
}

.ph__label {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* The blurred background lives on a pseudo-element: a backdrop-filter on the
   header itself would become the containing block for the fixed mobile nav. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 253, 252, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur);
}

.site-header.is-scrolled::before {
  border-color: var(--line);
  box-shadow: 0 6px 20px rgba(31, 58, 95, 0.06);
}

body.nav-open .quiz-fab,
body.lightbox-open .quiz-fab {
  opacity: 0;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--indigo-deep);
}

.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--teal);
}

/* Hamburger */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  transition: background-color var(--dur);
  z-index: 61;
}

.nav-toggle:hover {
  background: var(--sage);
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 22px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--indigo-deep);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav: slide-in panel */
.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(22rem, 86vw);
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  z-index: 60;
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__item {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.site-nav__item.has-dropdown {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.site-nav__link {
  display: block;
  padding: 0.95rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--indigo-deep);
  text-decoration: none;
  position: relative;
}

.site-nav__link.is-active {
  color: var(--teal);
}

.site-nav__caret {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--teal);
  transition: transform var(--dur) var(--ease), background-color var(--dur);
}

.site-nav__caret:hover {
  background: var(--sage);
}

.site-nav__caret[aria-expanded="true"] {
  transform: rotate(180deg);
}

/* Mobile: the dropdown is an accordion. The 0fr -> 1fr grid trick animates
   height without knowing it in advance. */
.dropdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.dropdown__inner {
  overflow: hidden;
  min-height: 0;
}

.has-dropdown.is-open .dropdown {
  grid-template-rows: 1fr;
}

.dropdown__group {
  padding-bottom: 0.5rem;
}

.dropdown__label {
  display: block;
  padding: 0.6rem 0.5rem 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.5rem;
  margin-bottom: 0.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--dur);
}

.dropdown__link:hover,
.dropdown__link:focus-visible {
  background: var(--sage-light);
  color: var(--indigo-deep);
}

.dropdown__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--th-dot, var(--mint));
  flex: 0 0 auto;
}

.dropdown__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.dropdown__title {
  font-weight: 700;
}

.dropdown__short {
  font-size: 0.84rem;
  color: var(--muted);
}

.dropdown__link--all {
  margin: 0.25rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-weight: 700;
  color: var(--teal);
  justify-content: space-between;
}

/* Scrim behind the mobile panel */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(31, 42, 107, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur), visibility var(--dur);
}

body.nav-open .nav-scrim {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 900px) {

  .nav-toggle,
  .nav-scrim {
    display: none;
  }

  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav__item {
    border-bottom: 0;
  }

  .site-nav__item.has-dropdown {
    display: flex;
    align-items: center;
  }

  .site-nav__link {
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--mint);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }

  .site-nav__link:hover::after,
  .site-nav__link.is-active::after,
  .has-dropdown:hover .site-nav__link::after,
  .has-dropdown.is-open .site-nav__link::after {
    transform: scaleX(1);
  }

  .site-nav__caret {
    width: 1.75rem;
    height: 1.75rem;
    margin-left: -0.6rem;
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    display: block;
    width: 44rem;
    max-width: calc(100vw - 2 * var(--gutter));
    padding: 0.75rem 0.9rem 0.25rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }

  .dropdown__inner {
    overflow: visible;
  }

  /* Groups stack; inside each group the items fill two columns top-to-bottom
     (items 1-2 in column 1, items 3-4 in column 2). --rows is set inline. */
  .dropdown__groups {
    display: block;
  }

  .dropdown__group {
    padding-bottom: 0.35rem;
  }

  .dropdown__group ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(var(--rows, 2), auto);
    grid-auto-flow: column;
    gap: 0 1rem;
  }

  .dropdown__group+.dropdown__group {
    border-top: 1px solid var(--line);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
  }

  .dropdown__link {
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.1rem;
    align-items: flex-start;
  }

  .dropdown__dot {
    margin-top: 0.45rem;
  }

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

  .dropdown__label {
    padding-left: 0.5rem;
  }

  /* Invisible bridge so the pointer can travel from the link to the menu. */
  .dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.9rem;
    height: 0.9rem;
  }

  .dropdown::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: translateX(-50%) rotate(45deg);
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* Keep the wide dropdown inside the viewport on narrow desktops: anchor it to
   the right edge of the nav instead of centring under the link. */
@media (min-width: 900px) and (max-width: 1100px) {
  .dropdown {
    left: auto;
    right: -6rem;
    transform: translate(0, 10px);
  }

  .dropdown::after {
    left: auto;
    right: 9rem;
    transform: rotate(45deg);
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.is-open .dropdown {
    transform: translate(0, 0);
  }
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color var(--dur);
}

.site-footer a:hover {
  color: var(--mint);
}

.site-footer__inner {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-footer__brand img {
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
}

.site-footer__name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.site-footer__tagline {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--mint);
}

.site-footer__heading {
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.site-footer__list {
  display: grid;
  gap: 0.5rem;
}

.site-footer__list--contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer__list--contact .icon {
  width: 1.15em;
  height: 1.15em;
  opacity: 0.85;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem 4.5rem;
  /* bottom padding keeps the credit clear of the floating quiz button */
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }

  .site-footer__bottom {
    padding-bottom: 1.25rem;
    padding-right: calc(var(--gutter) + 13rem);
  }
}

/* --------------------------------------------------------------------------
   8. Hero carousel (home)
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(0.75rem, 2vw, 1.5rem) var(--gutter) 0;
}

.carousel {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.carousel__track {
  display: grid;
}

.carousel__slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: clamp(26rem, 64vh, 40rem);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.carousel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s linear;
}

.carousel__slide.is-active .carousel__media img {
  transform: scale(1);
}

.carousel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 42, 107, 0.05) 0%, rgba(31, 42, 107, 0.25) 45%, rgba(31, 42, 107, 0.78) 100%);
}

.carousel__slide.has-image .carousel__media::after {
  background: linear-gradient(90deg, rgba(31, 42, 107, 0.72) 0%, rgba(31, 42, 107, 0.3) 50%, rgba(31, 42, 107, 0.02) 100%),
    linear-gradient(180deg, transparent 45%, rgba(31, 42, 107, 0.5) 100%);
}

.carousel__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--white);
}

.carousel__content .eyebrow {
  color: var(--mint-soft);
  font-size: 1.4rem;
}

.carousel__title {
  color: var(--white);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.carousel__text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.carousel__content>* {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.carousel__slide.is-active .carousel__content>* {
  opacity: 1;
  transform: none;
}

.carousel__slide.is-active .carousel__content> :nth-child(1) {
  transition-delay: 0.15s;
}

.carousel__slide.is-active .carousel__content> :nth-child(2) {
  transition-delay: 0.25s;
}

.carousel__slide.is-active .carousel__content> :nth-child(3) {
  transition-delay: 0.35s;
}

.carousel__slide.is-active .carousel__content> :nth-child(4) {
  transition-delay: 0.45s;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--indigo-deep);
  transform: translateY(-50%);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur), transform var(--dur) var(--ease);
}

.carousel__arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.06);
}

.carousel__arrow--prev {
  left: 1rem;
}

.carousel__arrow--next {
  right: 1rem;
}

.carousel__arrow .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: width var(--dur) var(--ease), background-color var(--dur);
}

.carousel__dot.is-active {
  width: 1.8rem;
  border-radius: var(--radius-pill);
  background: var(--mint);
}

@media (max-width: 639px) {
  .carousel__arrow {
    display: none;
  }

  .carousel__content {
    padding-bottom: 3rem;
  }
}

/* --------------------------------------------------------------------------
   9. Home: about columns
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 2rem;
}

.about-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.about-card {
  text-align: justify;
}

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

.about-card .text-link {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .about-card--right {
    text-align: justify;
  }

  .about-card--right .text-link {
    flex-direction: row-reverse;
  }

  .about-card--right .text-link:hover .icon {
    transform: translateX(3px);
  }
}

/* --------------------------------------------------------------------------
   10. Offerings grid
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  gap: 1.5rem;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--white);
}

.tile__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31, 42, 107, 0) 35%, rgba(31, 42, 107, 0.82) 100%);
  transition: opacity 0.5s var(--ease);
}

.tile__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--th-a, var(--indigo)), var(--th-b, var(--teal)));
}

.tile__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.tile__title {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  transition: transform 0.5s var(--ease);
}

.tile__gist {
  margin: 0.6rem 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.55;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin 0.5s var(--ease);
}

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--mint-soft);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s;
}

.tile:hover .tile__media,
.tile:focus-visible .tile__media,
.tile.is-revealed .tile__media {
  opacity: 0.22;
  transform: scale(1.04);
}

.tile:hover .tile__scrim,
.tile:focus-visible .tile__scrim,
.tile.is-revealed .tile__scrim {
  opacity: 0;
}

.tile:hover .tile__gist,
.tile:focus-visible .tile__gist,
.tile.is-revealed .tile__gist {
  max-height: 12rem;
  opacity: 1;
}

.tile:hover .tile__more,
.tile:focus-visible .tile__more,
.tile.is-revealed .tile__more {
  opacity: 1;
  transform: none;
}

/* Touch devices have no hover: show the gist on tap via .is-revealed (JS) and
   keep the image slightly dimmed so white text stays readable. */
@media (hover: none) {
  .tile__media {
    opacity: 0.6;
  }
}

.tiles__hint {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* Smaller tiles for "More ways to practise". */
.tile--sm {
  aspect-ratio: 4 / 3;
}

.tile--sm .tile__title {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
}

.tile--sm .tile__gist {
  font-size: 0.94rem;
}

.tile--sm .tile__body {
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.tile--sm .tile__media .ph .icon {
  width: 2.6rem;
}

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

@media (min-width: 900px) {
  .tiles--more {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .tile--sm {
    aspect-ratio: 3 / 4;
  }

  .tile--sm:hover .tile__gist,
  .tile--sm:focus-visible .tile__gist,
  .tile--sm.is-revealed .tile__gist {
    max-height: 16rem;
  }
}

/* --------------------------------------------------------------------------
   11. Offering detail
   -------------------------------------------------------------------------- */
.offering-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.offering-head h1 {
  margin-bottom: 0.4rem;
}

.offering-subtitle {
  margin: 0 0 0.9rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  color: var(--teal);
}

/* Style chips ("Includes: Vinyasa, Chair Yoga, ...") */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.chip::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--th-dot, var(--mint));
}

.point__list {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.point__list li {
  margin-bottom: 0.3rem;
}

.point__list li::marker {
  color: var(--mint);
}

.offering-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.offering-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.offering-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.points {
  display: grid;
  gap: 1.1rem;
}

.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.point__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--teal);
}

.point__icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.point h3 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}

.point p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.offering-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.offering-nav {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.offering-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}

.offering-nav a:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
}

.offering-nav small {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.offering-nav strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--indigo-deep);
}

.offering-nav__next {
  justify-content: flex-end;
  text-align: right;
}

@media (min-width: 640px) {
  .offering-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .offering-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   12. Resources: playlists
   -------------------------------------------------------------------------- */
.playlists {
  display: grid;
  gap: 1.75rem;
}

.playlist {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.playlist__frame {
  aspect-ratio: 16 / 9;
  background: var(--indigo-deep);
}

.playlist__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist__body {
  padding: 1rem 1.25rem 1.25rem;
}

.playlist__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.playlist__head .icon {
  color: var(--teal);
}

.playlist__title {
  margin: 0;
  font-size: 1.2rem;
}

.playlist__text {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.playlist__link {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.channel-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(127, 200, 169, 0.35), transparent 45%),
    linear-gradient(135deg, var(--indigo-deep), var(--teal));
  box-shadow: var(--shadow);
}

.channel-band h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0.3rem;
}

.channel-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

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

@media (min-width: 900px) {
  .channel-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   13. About: timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
}

.timeline__list {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 1.75rem;
}

.timeline__list::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--mint-soft);
  border-radius: 2px;
}

.timeline__item {
  position: relative;
}

.timeline__dot {
  position: absolute;
  left: -1.75rem;
  top: 0.3rem;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--mint);
  transition: transform var(--dur) var(--ease), border-color var(--dur), background-color var(--dur);
}

.timeline__dot::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
  transition: background-color var(--dur);
}

.timeline__year {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal);
  text-align: left;
}

.timeline__trigger {
  display: block;
  width: 100%;
  text-align: left;
}

.timeline__card {
  margin-top: 0.4rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.timeline__card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.timeline__card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.timeline__card .timeline__year {
  display: none;
}

.timeline__hint {
  display: none;
}

@media (min-width: 900px) {
  .timeline__hint {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
  }

  .timeline__list {
    grid-template-columns: repeat(var(--count, 6), 1fr);
    gap: 0;
    padding: 0 0 13.5rem;
  }

  /* The line runs from the centre of the first column to the centre of the last. */
  .timeline__list::before {
    left: calc(100% / var(--count, 6) / 2);
    right: calc(100% / var(--count, 6) / 2);
    top: 2.9rem;
    bottom: auto;
    height: 2px;
    width: auto;
  }

  .timeline__year {
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    white-space: nowrap;
  }

  .timeline__item {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .timeline__trigger {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.6rem;
    width: auto;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .timeline__dot {
    position: static;
    width: 1.5rem;
    height: 1.5rem;
  }

  .timeline__year {
    text-align: center;
    color: var(--ink-soft);
    transition: color var(--dur), transform var(--dur) var(--ease);
  }

  .timeline__trigger:hover .timeline__dot,
  .timeline__item.is-active .timeline__dot {
    transform: scale(1.25);
    border-color: var(--teal);
  }

  .timeline__item.is-active .timeline__dot {
    background: var(--teal);
  }

  .timeline__item.is-active .timeline__dot::after {
    background: var(--white);
  }

  .timeline__trigger:hover .timeline__year,
  .timeline__item.is-active .timeline__year {
    color: var(--indigo-deep);
    transform: translateY(-2px);
  }

  .timeline__card {
    position: absolute;
    left: 50%;
    top: 6rem;
    width: min(100%, 38rem);
    margin: 0;
    padding: 1.6rem 2rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }

  .timeline__card::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: translateX(-50%) rotate(45deg);
  }

  .timeline__card .timeline__year {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--teal);
  }

  .timeline__card h3 {
    font-size: 1.4rem;
  }

  .timeline__item.is-active .timeline__card {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* --------------------------------------------------------------------------
   14. About: gallery carousels and lightbox
   -------------------------------------------------------------------------- */
.gallery {
  position: relative;
}

.gallery__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 min(100%, 20rem);
  scroll-snap-align: start;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery__item:hover .gallery__media img {
  transform: scale(1.04);
}

.gallery__caption {
  display: block;
  padding: 0.9rem 1.1rem 1.1rem;
}

.gallery__caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--indigo-deep);
}

.gallery__caption span {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
}

.gallery__caption .gallery__issuer {
  color: var(--ink-soft);
  margin: 0.15rem 0 0.1rem;
}

/* Credential card: a designed face for qualifications shown without a scan. */
.credential {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--th-fg, var(--white));
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(135deg, var(--th-a, var(--indigo)), var(--th-b, var(--teal)));
}

.credential__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.credential__icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.credential__issuer {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.credential__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
}

.credential__validity {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  opacity: 0.9;
}

.lightbox__media .credential {
  width: min(80vw, 36rem);
  height: min(60vh, 26rem);
}

.lightbox__media .credential__title {
  font-size: 1.8rem;
}

.gallery__arrows {
  display: none;
}

@media (min-width: 900px) {
  .gallery__arrows {
    display: flex;
    gap: 0.5rem;
  }

  .gallery__arrow {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--indigo-deep);
    transition: border-color var(--dur), background-color var(--dur);
  }

  .gallery__arrow:hover {
    border-color: var(--mint);
    background: var(--sage-light);
  }

  .gallery__arrow .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .gallery__item {
    flex-basis: calc((100% - 2.5rem) / 3);
  }
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-head h2 {
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(31, 42, 107, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur), visibility var(--dur);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 70rem);
  text-align: center;
  color: var(--white);
}

.lightbox__media {
  max-height: 78vh;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox__media img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
}

.lightbox__media .ph {
  width: min(80vw, 40rem);
  height: min(60vh, 28rem);
}

.lightbox__caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
}

.lightbox__caption span {
  display: block;
}

.lightbox__caption .gallery__issuer {
  color: var(--mint-soft);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background-color var(--dur);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   15. About: milestones
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--indigo);
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

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

  .stat__value {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  }
}

/* --------------------------------------------------------------------------
   15b. About: founder
   -------------------------------------------------------------------------- */
.founder {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.founder__portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  max-width: 22rem;
  justify-self: center;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__body h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

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

.chips--left {
  justify-content: flex-start;
}

.founder__quote {
  margin: 1.5rem 0 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--mint);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--teal);
}

@media (min-width: 900px) {
  .founder {
    grid-template-columns: 20rem 1fr;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   16. Books
   -------------------------------------------------------------------------- */
.books {
  display: grid;
  gap: 2rem;
}

.book {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.book__cover {
  display: block;
  text-decoration: none;
  aspect-ratio: 2 / 3;
  max-width: 16rem;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 8px 10px 26px rgba(31, 58, 95, 0.22);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.book__cover:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 12px 16px 34px rgba(31, 58, 95, 0.28);
}

.book__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book__cover .ph {
  padding: 1.5rem;
  text-align: center;
}

.book__cover .ph strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.25;
}

.book__body {
  text-align: center;
}

.book__body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

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

.book__meta {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.books-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.books-cta p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .books {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .book {
    grid-template-columns: 11rem 1fr;
    align-items: center;
  }

  .book__cover {
    max-width: none;
  }

  .book__body {
    text-align: left;
  }

  .book__actions {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   17. Quiz: floating button and modal
   -------------------------------------------------------------------------- */
.quiz-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem 0.85rem 1.05rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--mint) 0%, var(--teal) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 14px 30px rgba(27, 94, 138, 0.35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.quiz-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(27, 94, 138, 0.42);
}

.quiz-fab .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.quiz-fab::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  opacity: 0.35;
  animation: quiz-pulse 2.8s ease-out infinite;
}

@keyframes quiz-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.45;
  }

  70% {
    transform: scale(1.18);
    opacity: 0;
  }

  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (max-width: 639px) {
  .quiz-fab {
    right: 1rem;
    bottom: 1rem;
    padding: 0.8rem 1.1rem 0.8rem 0.95rem;
    font-size: 0.92rem;
  }
}

.quiz-dialog {
  width: min(94vw, 36rem);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) * 1.25);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quiz-dialog::backdrop {
  background: rgba(31, 42, 107, 0.6);
  backdrop-filter: blur(3px);
}

.quiz-dialog[open] {
  animation: quiz-in 0.35s var(--ease);
}

@keyframes quiz-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.quiz__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0 1.5rem;
}

.quiz__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal);
}

.quiz__brand .icon {
  color: var(--mint);
}

.quiz__close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color var(--dur);
}

.quiz__close:hover {
  background: var(--sage);
}

.quiz__progress {
  height: 4px;
  margin: 0.9rem 1.5rem 0;
  background: var(--sage);
  border-radius: 4px;
  overflow: hidden;
}

.quiz__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--teal));
  border-radius: inherit;
  transition: width 0.45s var(--ease);
}

.quiz__body {
  padding: 1.25rem 1.5rem 1.5rem;
  min-height: 20rem;
}

.quiz__step {
  animation: quiz-step 0.35s var(--ease);
}

@keyframes quiz-step {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.quiz__step--back {
  animation-name: quiz-step-back;
}

@keyframes quiz-step-back {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.quiz__count {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz__question {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-bottom: 1.1rem;
}

.quiz__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.quiz__intro {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.quiz__options {
  display: grid;
  gap: 0.7rem;
}

.quiz__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  background: var(--sage-light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--dur), background-color var(--dur), transform var(--dur) var(--ease);
}

.quiz__option:hover {
  border-color: var(--mint);
  background: var(--white);
  transform: translateX(3px);
}

.quiz__option .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--teal);
  opacity: 0;
  transition: opacity var(--dur);
}

.quiz__option.is-selected {
  border-color: var(--teal);
  background: var(--white);
}

.quiz__option.is-selected .icon {
  opacity: 1;
}

.quiz__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quiz__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--muted);
}

.quiz__back:hover {
  color: var(--indigo);
}

.quiz__back .icon {
  width: 1rem;
  height: 1rem;
}

.quiz__result {
  text-align: center;
}

.quiz__result .eyebrow {
  font-size: 1.25rem;
}

.quiz__result-title {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--indigo);
  margin-bottom: 0.4rem;
}

.quiz__result-short {
  color: var(--ink-soft);
  max-width: 28rem;
  margin-inline: auto;
}

.quiz__result-badge {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--th-a, var(--mint)), var(--th-b, var(--teal)));
  color: var(--th-fg, var(--white));
}

.quiz__result-badge .icon {
  width: 2.1rem;
  height: 2.1rem;
}

.quiz__result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quiz__countdown {
  font-size: 0.92rem;
  color: var(--muted);
}

.quiz__also {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--sage-light);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--dur), background-color var(--dur);
}

.quiz__also:hover {
  border-color: var(--mint);
  background: var(--white);
  color: var(--indigo-deep);
}

.quiz__also-label {
  color: var(--muted);
}

.quiz__also-title {
  font-weight: 700;
}

.quiz__also .icon {
  width: 1rem;
  height: 1rem;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   18. Error page
   -------------------------------------------------------------------------- */
.error-page {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.error-page__code {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--mint);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   19. Scroll reveal and motion preferences
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js .reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

html.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

html.js .reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .carousel__media img {
    transform: none;
  }
}