/* ==========================================================================
   ACHIEVERS MIND ACADEMY — DESIGN SYSTEM
   Blue-dominant brand (logo-anchored royal blue) + restrained gold accent.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand blues — anchored to the AMA logo royal blue (#0038E0 family) */
  --blue-950: #0a1233;
  --blue-900: #101d52;
  --blue-800: #15279a;
  --blue-700: #1e3bd8;
  --blue-600: #2b4be0;
  --blue-500: #4461ea;
  --blue-200: #b9c6f7;
  --blue-100: #dfe6fb;
  --blue-50:  #f2f5fe;

  /* Restrained gold accent — achievement, excellence */
  --gold-700: #8a6a1f;
  --gold-600: #a88426;
  --gold-500: #c49a2f;
  --gold-100: #f6eed6;

  /* Neutrals */
  --navy:   #0e1a44;
  --ink:    #1c2547;
  --ink-muted: rgba(28, 37, 71, 0.74);
  --ink-soft:  rgba(28, 37, 71, 0.52);

  --bg:        #ffffff;
  --bg-soft:   #f4f7fe;
  --paper:     #ffffff;

  --line:        rgba(28, 37, 71, 0.12);
  --line-strong: rgba(28, 37, 71, 0.22);

  /* Typography */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(10, 18, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 26, 68, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 26, 68, 0.16);

  --nav-h: 72px;
  --container-w: 1320px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 700;
}

::selection { background: var(--blue-200); color: var(--blue-950); }

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 3rem, var(--container-w));
  margin-inline: auto;
}

.section { padding-block: clamp(3.4rem, 6.5vw, 5.25rem); }
.section.tone-light { background: var(--bg-soft); }
.section.tone-navy {
  background: linear-gradient(165deg, var(--navy) 0%, #0b1440 100%);
  color: rgba(255, 255, 255, 0.88);
}
.section.tone-navy h1, .section.tone-navy h2, .section.tone-navy h3, .section.tone-navy h4 { color: #fff; }

.lede-block { max-width: 46rem; }
.lede-block.center { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.display-1 {
  font-size: clamp(2.35rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.display-2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
  flex: none;
}

.tone-navy .eyebrow { color: #d8b85e; }
.tone-navy .eyebrow::before { background: #d8b85e; }

.prose p + p { margin-top: 1.1rem; }
.prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.45rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease,
              transform 0.18s ease;
}

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(43, 75, 224, 0.28);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 8px 22px rgba(43, 75, 224, 0.34); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }

.btn-white {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 6px 18px rgba(5, 12, 40, 0.25);
}
.btn-white:hover { background: var(--blue-50); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; border-radius: 12px; }

.btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(10, 18, 51, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
}

/* Brand lockup */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
  margin-right: auto;
}
.brand img { width: 42px; height: 42px; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name small {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: 1.7rem; margin-inline: auto; }
.nav-links a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 0.35rem 0.1rem;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--blue-700); }
.nav-links a.active { color: var(--blue-700); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0.1rem;
  right: 0.1rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
}

.nav-cta { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; flex: none; }

/* Language selector (dropdown) */
.lang-select { position: relative; flex: none; }

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.lang-current:hover { border-color: var(--blue-600); background: var(--blue-50); }
.lang-current svg { width: 0.85rem; height: 0.85rem; color: var(--ink-soft); transition: transform 0.18s ease; }
.lang-select.open .lang-current svg { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 12.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 120;
}
.lang-select.open .lang-menu { opacity: 1; visibility: visible; transform: none; }

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.14s ease;
}
.lang-menu button:hover { background: var(--blue-50); }
.lang-menu button.current { font-weight: 700; color: var(--blue-700); background: var(--blue-50); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--blue-600); background: var(--blue-50); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(10, 18, 51, 0.14);
  padding: 1.1rem 1.5rem 1.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.drawer.open { opacity: 1; visibility: visible; transform: none; }

.drawer-links { display: grid; gap: 0.15rem; }
.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease;
}
.drawer-links a:hover { color: var(--blue-700); }
.drawer-links a.active { color: var(--blue-700); }
.drawer-links a:last-child { border-bottom: 0; }

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

.drawer-overlay {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 105;
  background: rgba(10, 18, 51, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

body.drawer-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  overflow-x: clip;
  background:
    radial-gradient(52rem 30rem at 85% -10%, rgba(30, 59, 216, 0.08), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(196, 154, 47, 0.07), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-content .lead { margin-top: 1.3rem; max-width: 36rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; margin-top: 2.3rem; }
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.hero-trust svg { width: 1.05rem; height: 1.05rem; color: var(--blue-600); flex: none; }

/* Hero media — framed editorial photo */
.hero-media { position: relative; }
.hero-media picture {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.frame-note {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(10, 18, 51, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   8. STATS BAND (verified facts only)
   -------------------------------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-700);
  line-height: 1.15;
}
.stat .stat-label { margin-top: 0.35rem; font-size: 0.88rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   9. CARDS / FEATURES / PROGRAMME
   -------------------------------------------------------------------------- */
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}
.feature .num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue-600);
  margin-bottom: 0.85rem;
}
.feature h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.feature p { font-size: 0.94rem; color: var(--ink-muted); }

/* Programme six areas */
.prog-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.prog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.prog-card:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.prog-card:hover::before { opacity: 1; }
.prog-card .prog-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: 1.1rem;
}
.prog-card .prog-icon svg { width: 1.35rem; height: 1.35rem; }
.prog-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.prog-card p { font-size: 0.92rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   10. JOURNEY
   -------------------------------------------------------------------------- */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.journey-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.journey-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.journey-step h4 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.journey-step p { font-size: 0.88rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   11. TRUST STRIP / RECOGNITION
   -------------------------------------------------------------------------- */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.trust-item > svg { width: 1.6rem; height: 1.6rem; color: var(--blue-600); flex: none; margin-top: 0.15rem; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 0.3rem; }
.trust-item span { font-size: 0.9rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   12. FOUNDER / NAVY SECTION
   -------------------------------------------------------------------------- */
.founder-creds {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.6rem;
}
.founder-creds dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8b85e;
  margin-bottom: 0.25rem;
}
.founder-creds dd { font-size: 0.98rem; font-weight: 600; color: #fff; line-height: 1.5; }

/* --------------------------------------------------------------------------
   13. PHOTO GRID / GALLERY
   -------------------------------------------------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.photo-grid picture {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-grid picture:hover img { transform: scale(1.03); }

/* Split media */
.split-media picture {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

/* Founder portrait — preserve the portrait composition used on Mindathon. */
.split-media.founder-photo {
  max-width: 470px;
  width: 100%;
  justify-self: center;
}
.split-media.founder-photo picture {
  aspect-ratio: 3 / 4;
  background: var(--paper);
}
.split-media.founder-photo img {
  object-position: 50% 18%;
}

/* --------------------------------------------------------------------------
   14. CENTRES ROUTE
   -------------------------------------------------------------------------- */
.route-panel {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(2rem, 3.5vw, 2.6rem) clamp(1.2rem, 3vw, 2.2rem) clamp(1.4rem, 2.5vw, 1.8rem);
  margin-top: 3rem;
  overflow: hidden;
}
.route { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.route::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--blue-200), var(--blue-600) 55%, var(--gold-500));
  border-radius: 999px;
}
.route li { position: relative; flex: 1; display: flex; justify-content: center; height: 7.4rem; }
.route-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--blue-600);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
  z-index: 1;
  transition: background 0.18s ease, color 0.18s ease;
}
.route li:hover .route-dot { background: var(--blue-600); color: #fff; }
.route-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.route li:nth-child(odd) .route-name { bottom: calc(50% + 1.55rem); }
.route li:nth-child(even) .route-name { top: calc(50% + 1.55rem); }
.route-hq {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-100);
  border: 1px solid rgba(196, 154, 47, 0.45);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}
.route-note { margin-top: 1.2rem; text-align: center; font-size: 0.86rem; color: var(--ink-soft); }

@media (max-width: 820px) {
  .route { flex-direction: column; }
  .route::before {
    left: 1.15rem;
    right: auto;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 3px;
    height: auto;
    transform: none;
    background: linear-gradient(180deg, var(--blue-200), var(--blue-600) 55%, var(--gold-500));
  }
  .route li { justify-content: flex-start; height: auto; padding: 0.6rem 0; }
  .route-dot { left: 0; top: 50%; transform: translateY(-50%); }
  .route-name,
  .route li:nth-child(odd) .route-name,
  .route li:nth-child(even) .route-name { position: static; transform: none; margin-left: 3.6rem; }
}

/* --------------------------------------------------------------------------
   15. SOCIAL CARDS
   -------------------------------------------------------------------------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.social-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.social-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.social-card .soc-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.social-card .soc-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: var(--blue-50);
  color: var(--blue-700);
  flex: none;
}
.social-card .soc-icon svg { width: 1.35rem; height: 1.35rem; }
.social-card .soc-meta { display: flex; flex-direction: column; min-width: 0; }
.social-card .soc-platform {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.social-card .handle { font-size: 0.8rem; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card h3 { font-size: 1.1rem; margin-top: 0.4rem; }
.social-card p { font-size: 0.92rem; color: var(--ink-muted); }
.social-card .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-700);
}
.social-card .go svg { width: 1rem; height: 1rem; transition: transform 0.18s ease; }
.social-card:hover .go svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   16. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, #0d1c56 55%, var(--blue-800) 100%);
  border-radius: 20px;
  padding: clamp(2.6rem, 6vw, 4.2rem);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 97, 234, 0.35), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.82); max-width: 40rem; margin-inline: auto; margin-top: 1.1rem; }
.cta-band .eyebrow { justify-content: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2rem; position: relative; }

/* --------------------------------------------------------------------------
   17. PAGE HERO (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
  background:
    radial-gradient(46rem 22rem at 90% -10%, rgba(30, 59, 216, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { max-width: 60rem; }
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero .lead { max-width: 44rem; }

/* --------------------------------------------------------------------------
   18. FORMS
   -------------------------------------------------------------------------- */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  box-shadow: var(--shadow-md);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
.form-grid .full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.form-field textarea { min-height: 8.5rem; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-soft); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(43, 75, 224, 0.16);
}

.form-status { margin-top: 1rem; font-size: 0.92rem; border-radius: 10px; padding: 0.9rem 1.1rem; display: none; }
.form-status.ok { display: block; background: var(--blue-50); color: var(--blue-900); border: 1px solid var(--blue-200); }
.form-status.warn { display: block; background: var(--gold-100); color: var(--gold-700); border: 1px solid rgba(196, 154, 47, 0.35); }
.form-status a { text-decoration: underline; font-weight: 600; }

/* --------------------------------------------------------------------------
   18b. CONTACT PAGE — HERO / METHODS / ENQUIRY / HQ
   -------------------------------------------------------------------------- */
.ct-hero .hero-media picture { aspect-ratio: 4 / 3; }

/* Contact method cards */
.ct-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; margin-top: 3rem; }
.ct-method {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ct-method:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ct-method .chip {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  color: #fff;
  flex: none;
  transition: transform 0.2s ease;
}
.ct-method:hover .chip { transform: scale(1.06); }
.ct-method .chip svg { width: 1.35rem; height: 1.35rem; }
.chip-wa { background: #128c4a; }
.chip-ig { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%); }
.chip-tk { background: #0b1023; }
.chip-fb { background: #1877f2; }
.ct-method h3 { font-size: 1.08rem; }
.ct-method .desc { font-size: 0.9rem; line-height: 1.6; color: var(--ink-muted); }
.ct-method .handle { font-size: 0.84rem; font-weight: 700; color: var(--ink-soft); }
.ct-method .go {
  margin-top: auto;
  padding-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-700);
}
.ct-method .go svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.ct-method:hover .go svg { transform: translateX(3px); }
.ct-method.wa-method { border-color: #cdeeda; background: linear-gradient(180deg, #f2fbf6 0%, var(--paper) 55%); }
.ct-method.wa-method:hover { border-color: #25d366; }
.ct-method.wa-method .go { color: #128c4a; }
.ct-method .badge {
  align-self: flex-start;
  background: #e7f9ef;
  color: #128c4a;
  border: 1px solid #25d366;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ct-method[hidden] { display: none; }

/* Enquiry split */
.ct-enquiry-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.ct-enquiry-grid .form-panel { max-width: none; margin: 0; }
.ct-aside { display: grid; gap: 1rem; }
.ct-aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.ct-aside-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.ct-aside-card p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.65; }
.ct-aside-card .btn { margin-top: 1rem; }
.ct-aside-card.wa-card { border-color: #cdeeda; background: linear-gradient(180deg, #f2fbf6 0%, var(--paper) 55%); }
.ct-aside-card.wa-card .btn-wa { margin-top: 1.1rem; }

/* WhatsApp button */
.btn-wa {
  background: #128c4a;
  color: #fff;
  box-shadow: 0 6px 18px rgba(18, 140, 74, 0.26);
}
.btn-wa:hover { background: #0e733d; box-shadow: 0 8px 22px rgba(18, 140, 74, 0.32); }

/* HQ section */
.ct-hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.hq-facts { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.hq-fact { display: flex; gap: 0.95rem; align-items: flex-start; }
.hq-fact .icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  flex: none;
}
.hq-fact .icon svg { width: 1.15rem; height: 1.15rem; }
.hq-fact .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.hq-fact .value { font-size: 0.96rem; font-weight: 600; color: var(--ink); line-height: 1.6; margin-top: 0.15rem; }
.hq-map-panel {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.6rem);
  box-shadow: var(--shadow-sm);
}
.hq-map { display: block; width: 100%; height: auto; }
.hq-map .land { fill: #ffffff; stroke: var(--blue-200); stroke-width: 2.5; stroke-linejoin: round; }
.hq-region { fill: rgba(196, 154, 47, 0.16); stroke: rgba(196, 154, 47, 0.5); stroke-width: 1.5; stroke-dasharray: 4 3; }
.hq-pin { fill: var(--gold-500); stroke: #ffffff; stroke-width: 2.5; }
.hq-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  fill: var(--gold-700);
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.hq-caption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--ink-muted); text-align: center; }

/* Checklist (register section) — circle+tick drawn as one SVG so they stay
   perfectly centred on every line length and in every dark/light context */
.checklist { display: grid; gap: 0.6rem; }
.checklist li { position: relative; display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; color: var(--ink); padding-left: 0.2rem; }
.checklist li::before {
  content: '';
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.08rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23f2f5fe' stroke='%232b4be0' stroke-width='1.6'/%3E%3Cpath d='M7.4 12.4l3.1 3.1 6.1-6.7' fill='none' stroke='%231e3bd8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Radio row (preferred language) */
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; }
.radio { display: flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; cursor: pointer; }
.radio input { accent-color: var(--blue-700); width: 1rem; height: 1rem; cursor: pointer; }

/* Ask block (contact prompts) */
.ask { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.ask p { color: var(--ink); font-size: 0.92rem; }
.ask p + p { margin-top: 0.3rem; }

/* Section note (lede caption) */
.lede-note { font-size: 0.92rem; color: var(--ink-muted); max-width: 34rem; margin-inline: auto; }

/* Info list / items */
.info-list { display: grid; gap: 1rem; }
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
a.info-item:hover { border-color: var(--blue-100); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.info-item .icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  flex: none;
}
.info-item .icon svg { width: 1.3rem; height: 1.3rem; }
.info-item h4 { font-size: 1.04rem; margin-bottom: 0.25rem; }
.info-item p { font-size: 0.92rem; color: var(--ink-muted); }
.info-item p a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   19. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0.9rem; max-width: 52rem; margin-inline: auto; overflow-anchor: none; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item.open { border-color: var(--blue-200); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.faq-q:hover { color: var(--blue-700); }
.faq-q:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }
.faq-item.open .faq-q { color: var(--blue-700); }
.faq-q .faq-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: none;
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 2px;
}
.faq-q .faq-icon::before {
  width: 1rem;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-q .faq-icon::after {
  width: 2px;
  height: 1rem;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 46rem;
}
.faq-item.open .faq-a p { padding: 0 1.4rem 1.25rem; }

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.footer-grid .brand img { width: 40px; height: 40px; }
.footer-grid .brand-name { color: #fff; }
.footer-grid .brand-name small { color: rgba(255, 255, 255, 0.55); }
.footer-grid p { font-size: 0.92rem; line-height: 1.65; }

.footer-grid h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: #d8b85e;
}
.footer-grid ul { display: grid; gap: 0.55rem; }
.footer-grid ul a {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.16s ease;
}
.footer-grid ul a:hover { color: #fff; }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.footer-social a:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.footer-social a[data-social="fb"]:hover { background: #1877f2; border-color: #1877f2; }
.footer-social a[data-social="ig"]:hover { background: #d62976; border-color: #d62976; }
.footer-social a[data-social="tk"]:hover { background: #111827; border-color: #111827; }
.footer-social a[data-social="wa"]:hover { background: #128c4a; border-color: #128c4a; }
.footer-social svg { width: 1.15rem; height: 1.15rem; }

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.4rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-meta .corp { line-height: 1.6; }

/* --------------------------------------------------------------------------
   21. MOBILE CTA BAR
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.2rem;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(43, 75, 224, 0.38);
}

/* --------------------------------------------------------------------------
   22. LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 13, 35, 0.88);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lb-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 0.16s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.25); }

/* --------------------------------------------------------------------------
   23. REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   24. 404
   -------------------------------------------------------------------------- */
.e404-wrap { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 7rem 1.5rem 4rem; }
.e404-wrap .e404-inner { max-width: 34rem; }
.e404-wrap .e404-logo { width: 92px; height: 92px; margin: 0 auto 1.6rem; }
.e404-wrap h1 { margin-bottom: 1rem; }
.e404-wrap .lead { margin-bottom: 2rem; }
.e404-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* --------------------------------------------------------------------------
   25. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Large tablets → drawer navigation */
@media (max-width: 1100px) {
  .nav-links, .nav-cta .lang-select, .nav-cta .nav-btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: 0; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); }
  .social-grid { grid-template-columns: 1fr; }
  .social-card { flex-direction: row; }
  .social-card .thumb { width: 42%; aspect-ratio: 16 / 11; flex: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .split, .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-media { max-width: 34rem; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .ct-enquiry-grid, .ct-hq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ct-hq-grid .hq-map-panel { max-width: 34rem; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .journey { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .e404-actions .btn { width: 100%; }
  .social-card { flex-direction: column; }
  .social-card .thumb { width: 100%; aspect-ratio: 16 / 9; }
  .drawer-foot { flex-direction: column; align-items: stretch; }
  .drawer-foot .btn { justify-content: center; }
  .brand-name { font-size: 0.98rem; }
  .brand-name small { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 5.2rem; }
  .container { width: min(100% - 2.4rem, var(--container-w)); }
  .founder-creds { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 0.93rem; }
}

/* --------------------------------------------------------------------------
   26. REDUCED MOTION
   -------------------------------------------------------------------------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   28. SERVICES COMPONENTS
   Services pages load css/services.css directly after this file.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   29. ACHIEVEMENTS PAGE COMPONENTS
   -------------------------------------------------------------------------- */

/* Featured world-record student cards */
.record-stack { display: grid; gap: 2rem; margin-top: 3rem; }

.record-feature {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.6rem, 3.4vw, 2.6rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}

.rf-medal { align-self: start; text-align: center; }
.rf-medal .medal {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #fdf7e7 0%, #f6eed6 55%, #efe0b4 100%);
  border: 1px solid rgba(196, 154, 47, 0.35);
  color: var(--gold-600);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.55);
}
.rf-medal .medal svg { width: 44%; height: 44%; }
.rf-medal .medal-cap {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.rf-photo {
  display: block;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-md);
  margin: 1.6rem auto 0;
}

.rf-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.badge-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-rec svg { width: 0.9rem; height: 0.9rem; flex: none; }
.badge-guinness { background: var(--blue-900); color: #fff; }
.badge-wbr { background: linear-gradient(140deg, var(--gold-500), var(--gold-600)); color: #241a04; }
.badge-ambr { background: var(--blue-600); color: #fff; }
.badge-student { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); }

.record-feature h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; }
.rf-tagline { margin-top: 0.25rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }

.rf-quote {
  margin-top: 0.95rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.rf-desc { margin-top: 0.85rem; font-size: 0.95rem; color: var(--ink-muted); }
.rf-desc p + p { margin-top: 0.6rem; }

.rf-facts {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
}
.rf-facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rf-facts dd { margin-top: 0.12rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.45; }

.rf-train {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
}
.rf-train svg { width: 1.25rem; height: 1.25rem; color: var(--blue-700); flex: none; margin-top: 0.12rem; }
.rf-train p { font-size: 0.89rem; color: var(--ink); line-height: 1.6; }
.rf-train strong { color: var(--blue-900); }

/* AMBR sub-headings + record cards */
.ambr-subhead { margin-top: 3.5rem; max-width: 46rem; }
.ambr-subhead h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-top: 0.4rem; }
.ambr-subhead p { margin-top: 0.65rem; color: var(--ink-muted); font-size: 0.98rem; }

.ambr-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.ambr-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ambr-card:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.ambr-top { display: flex; align-items: center; gap: 0.65rem; }
.ambr-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--blue-100);
}
.ambr-num {
  display: grid;
  place-items: center;
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 0.3rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-500), var(--gold-700));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.ambr-card h4 { font-size: 1rem; line-height: 1.3; }
.ambr-rec {
  margin-top: 0.75rem;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.ambr-meta { margin-top: auto; padding-top: 0.85rem; display: grid; gap: 0.18rem; justify-items: start; }
.ambr-meta span { font-size: 0.77rem; color: var(--ink-soft); line-height: 1.45; }
.chip-level {
  margin-top: 0.65rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--gold-100);
  border: 1px solid rgba(196, 154, 47, 0.4);
  color: var(--gold-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Name chips — additional achievers */
.name-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.name-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.name-chip svg { width: 0.85rem; height: 0.85rem; color: var(--gold-600); flex: none; }

/* Sources strip */
.src-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.8rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.src-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.src-strip svg { width: 0.95rem; height: 0.95rem; flex: none; }
.src-note { margin-top: 1.1rem; text-align: center; font-size: 0.86rem; color: var(--ink-soft); }

/* Founder & academy awards */
.aw-subhead { margin-top: 3.5rem; max-width: 46rem; }
.aw-subhead h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-top: 0.4rem; }
.aw-subhead p { margin-top: 0.65rem; color: var(--ink-muted); font-size: 0.98rem; }

.aw-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.aw-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.aw-card:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.aw-photo { position: relative; margin: 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.aw-photo a { display: block; cursor: zoom-in; }
.aw-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.aw-zoom {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 24, 46, 0.74);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.aw-zoom svg { width: 0.85rem; height: 0.85rem; flex: none; }
.aw-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1.3rem; }
.aw-issuer {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--gold-100);
  border: 1px solid rgba(196, 154, 47, 0.4);
  color: var(--gold-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.aw-body h4 { margin-top: 0.8rem; font-size: 1.02rem; line-height: 1.35; }
.aw-facts { margin-top: 0.85rem; display: grid; gap: 0.5rem; }
.aw-facts dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.aw-facts dd { margin-top: 0.05rem; font-size: 0.88rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.aw-desc { margin-top: 0.85rem; font-size: 0.88rem; line-height: 1.6; color: var(--ink-muted); }
.aw-link {
  margin-top: auto;
  padding-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.aw-link svg { width: 0.9rem; height: 0.9rem; flex: none; }

@media (max-width: 1100px) {
  .ambr-grid { grid-template-columns: repeat(2, 1fr); }
  .aw-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .record-feature { grid-template-columns: 1fr; }
  .rf-medal { max-width: 190px; margin-inline: auto; }
  .rf-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .rf-facts { grid-template-columns: 1fr; gap: 0.6rem; }
  .ambr-grid { grid-template-columns: 1fr; }
  .aw-grid { grid-template-columns: 1fr; }
}
/* --------------------------------------------------------------------------
   30. TAMIL SCRIPT SUPPORT
   js/i18n.js sets <html lang="ta"> when தமிழ் is selected. Indic scripts need
   looser metrics than Latin: negative tracking breaks conjunct shaping and
   tight line-heights clip glyphs. Noto Sans Tamil ships on every page.
   -------------------------------------------------------------------------- */
html[lang="ta"] {
  --font-display: "Noto Sans Tamil", "Inter", system-ui, sans-serif;
  --font-body: "Noto Sans Tamil", "Inter", system-ui, -apple-system, sans-serif;
}
html[lang="ta"] body { line-height: 1.8; }

/* Headings: kill negative tracking, open up vertical rhythm */
html[lang="ta"] h1,
html[lang="ta"] h2,
html[lang="ta"] h3,
html[lang="ta"] h4,
html[lang="ta"] .display-1,
html[lang="ta"] .display-2 { letter-spacing: 0; line-height: 1.5; }
html[lang="ta"] .display-1 { line-height: 1.4; }
html[lang="ta"] .lead { line-height: 1.95; }
html[lang="ta"] .prose p { line-height: 1.9; }
html[lang="ta"] .feature p,
html[lang="ta"] .prog-card p,
html[lang="ta"] .journey-step p { line-height: 1.85; }
html[lang="ta"] .faq-a p { line-height: 1.9; }

/* Small caps / tracked labels: uppercase is meaningless in Tamil;
   relax tracking so conjuncts breathe */
html[lang="ta"] .eyebrow,
html[lang="ta"] .medal-cap,
html[lang="ta"] .aw-issuer,
html[lang="ta"] .aw-zoom,
html[lang="ta"] .aw-link,
html[lang="ta"] .badge-rec,
html[lang="ta"] .chip-level,
html[lang="ta"] footer h4,
html[lang="ta"] .founder-creds dt,
html[lang="ta"] .rf-facts dt,
html[lang="ta"] .aw-facts dt,
html[lang="ta"] .rf-train p,
html[lang="ta"] .hq-fact .label,
html[lang="ta"] .ambr-meta span,
html[lang="ta"] .src-strip a,
html[lang="ta"] .lede-note,
html[lang="ta"] .src-note { letter-spacing: 0.02em; text-transform: none; }
html[lang="ta"] .stat-num,
html[lang="ta"] .rf-quote { letter-spacing: 0; }

/* Buttons: keep one line; long labels are shortened per-language instead */
html[lang="bm"] .btn,
html[lang="ta"] .btn { white-space: nowrap; }

/* --------------------------------------------------------------------------
   31. NON-ENGLISH HEADER FIT (Bahasa Melayu / தமிழ் labels run longer)
   Keep the fixed 72px header on a single line: tighter gaps, slightly
   smaller nav type and a compact nav CTA.
   -------------------------------------------------------------------------- */
html[lang="bm"] .nav-inner,
html[lang="ta"] .nav-inner { gap: 1.25rem; }
html[lang="bm"] .nav-links,
html[lang="ta"] .nav-links { gap: 1.1rem; }
html[lang="bm"] .nav-links a,
html[lang="ta"] .nav-links a { font-size: 0.88rem; letter-spacing: 0; white-space: nowrap; }
html[lang="bm"] .nav-cta,
html[lang="ta"] .nav-cta { gap: 0.75rem; }
html[lang="bm"] .nav-btn,
html[lang="ta"] .nav-btn { padding: 0.6rem 0.95rem; font-size: 0.86rem; }
html[lang="ta"] .brand-name small { letter-spacing: 0.02em; text-transform: none; }

/* Mobile drawer rows: same compact rhythm, still comfortable to tap */
html[lang="bm"] .drawer-links a,
html[lang="ta"] .drawer-links a { font-size: 1rem; }

/* --------------------------------------------------------------------------
   32. ENHANCEMENTS — scroll progress, back-to-top, mini flow, founder chips,
       memory challenge, method flow, map sync, hover polish
   -------------------------------------------------------------------------- */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-800) 55%, var(--gold-500));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 220;
  pointer-events: none;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-100);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 95;
}
.to-top svg { width: 1.15rem; height: 1.15rem; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
@media (max-width: 900px) {
  .to-top { bottom: 6.4rem; right: 0.9rem; }
}

/* Mini flow — the free preview in three beats (home) */
.mini-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; counter-reset: mf; }
.mini-flow li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mini-flow li:hover { transform: translateX(4px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.mf-step {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-800));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  flex: none;
}
.mini-flow h3 { font-size: 1.02rem; }
.mini-flow p { margin-top: 0.15rem; font-size: 0.9rem; color: var(--ink-muted); }

/* Founder chips (home teaser) */
.fnd-line { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.fnd-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.fnd-chip-gold {
  border-color: rgba(196, 154, 47, 0.65);
  background: rgba(196, 154, 47, 0.16);
  color: #ecd9a0;
}

/* Method flow — how a technique is taught (about) */
.method-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 52rem; }
.mf-big {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.mf-big::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-800));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mf-big:hover { transform: translateX(5px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.mf-big:hover::after { opacity: 1; }
.mf-num {
  display: grid;
  place-items: center;
  min-width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  flex: none;
}
.mf-big h3 { font-size: 1.15rem; }
.mf-big p { margin-top: 0.35rem; font-size: 0.95rem; color: var(--ink-muted); }

/* Map <-> list sync — colour-only highlight, no movement */

/* Memory challenge */
.mem-game {
  max-width: 46rem;
  margin: 2.8rem auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.mem-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.6rem 1.2rem; }
.mem-status { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.mem-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}
.mem-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
  perspective: 700px;
}
.mem-card {
  position: relative;
  aspect-ratio: 3 / 3.6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}
.mem-card .mem-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) - 2px);
  backface-visibility: hidden;
}
.mem-card .mem-front {
  font-size: clamp(1.4rem, 4vw, 2rem);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  transform: rotateY(180deg);
}
.mem-card .mem-back {
  background:
    radial-gradient(120% 90% at 30% 20%, var(--blue-500), var(--blue-800));
}
.mem-card .mem-back::after {
  content: "?";
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
}
.mem-card.up { transform: rotateY(180deg); }
.mem-card.recall:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mem-card.recall:not(.up):hover .mem-back { filter: brightness(1.15); }
.mem-card.correct .mem-front {
  background: var(--gold-100);
  border-color: rgba(196, 154, 47, 0.55);
  animation: memPop 0.35s ease;
}
.mem-card.wrong .mem-front {
  background: #fdeaea;
  border-color: rgba(200, 60, 60, 0.55);
  animation: memShake 0.4s ease;
}
@keyframes memPop {
  0% { transform: rotateY(180deg) scale(0.85); }
  60% { transform: rotateY(180deg) scale(1.08); }
  100% { transform: rotateY(180deg) scale(1); }
}
@keyframes memShake {
  0%, 100% { transform: rotateY(180deg) translateX(0); }
  25% { transform: rotateY(180deg) translateX(-5px); }
  50% { transform: rotateY(180deg) translateX(5px); }
  75% { transform: rotateY(180deg) translateX(-3px); }
}
.mem-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.mem-actions[hidden], .mem-card[hidden] { display: none; }
@media (max-width: 640px) {
  .mem-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Hover polish */
.prog-card .prog-icon { transition: transform 0.25s ease; }
.prog-card:hover .prog-icon { transform: scale(1.12) rotate(-4deg); }
.social-card .go svg { transition: transform 0.2s ease; }
.social-card:hover .go svg { transform: translateX(4px); }
.ambr-card { position: relative; overflow: hidden; }
.ambr-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.ambr-card:hover::after { left: 130%; }
.btn { transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(30, 59, 216, 0.55); }
.btn-primary:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .mem-card { transition: none; }
  .mem-card.correct .mem-front,
  .mem-card.wrong .mem-front { animation: none; }
  .ambr-card::after { display: none; }
  .mini-flow li:hover, .mf-big:hover { transform: none; }
}
