/* ==========================================================================
   Blue Anchor Academy — global styles
   Sections: 1. Tokens  2. Base  3. Layout  4. Buttons  5. Header  6. Hero
             7. Shared section styles  8. Features ("What Sets Us Apart")
             9. Trust ("Why Aspirants Trust...")  10. FAQ  11. CTA banner  12. Footer
             11b. About page  11c. IMU-CET page  11d. Blog (front page + articles)  11e. Contact page  11f. Plans page
             13. Motion (scroll reveal, page transitions, reduced motion)  14. Touch screens & small screens
   ========================================================================== */

/* 0. Fonts ----------------------------------------------------------------
   Montserrat (headings) and Inter (body), served from this site (assets/fonts/, SIL Open Font
   Licence) instead of Google: no outside connection, no visitor data sent to Google, and the
   two main files are preloaded by every page. Latin-ext covers characters such as the rupee sign.
   The second address (Google's copy of the same file) is only used if the local file can't load,
   e.g. a page opened straight from the folder in a browser that blocks local font files.
   The "Fallback" faces size Arial like each font while it loads, so text barely moves when it swaps in. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2"), url("https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2"), url("https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2"), url("https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2"), url("https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 108%;
  ascent-override: 89.6%;
  descent-override: 23.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107%;
  ascent-override: 90.5%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand (sampled from Figma) */
  --navy-900: #00194d;
  --navy-700: #344d70;
  --navy-500: #45577d;
  --navy-100: #d5e3ff;
  --orange-500: #f56524;
  --orange-600: #e0551a;
  /* Accessible oranges (WCAG AA, user-approved 2026-11-18): white text on --orange-cta is 4.6:1;
     --orange-ink is for small orange text on white or tinted panels (5.2:1). The bright
     --orange-500 stays for icons, lines, large highlights and hover fills. */
  --orange-cta: #cc4a10;
  --orange-cta-hover: #b33f0c;
  --orange-ink: #c2410c;
  --orange-200: #f9b99c;
  --green-500: #74ae6a;
  --white: #ffffff;
  --surface-sea: #eef5fb;
  --navy-800: #21355a;      /* section headings/icons ("What Sets Us Apart") */
  --navy-150: #d8e3fd;      /* icon tiles */
  --orange-100: #ffe3d7;    /* peach icon tiles (matches the peach shape in the artwork) */
  --blue-100: #e0e9fd;      /* light-blue icon tiles (About: core values) */
  --ink-soft: #45474d;      /* About page body copy */
  --slate-600: #4c5566;     /* section body copy */
  --surface-lavender: #f1f3fe;
  --deco-ink: #e4e8f6;      /* faint maritime illustrations (ship wheel, ship) */

  /* Semantic */
  --color-text: var(--navy-900);
  --color-text-muted: var(--navy-500);
  --color-accent: var(--orange-500);
  --color-bg: var(--white);

  /* Type */
  --font-display: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;

  /* Layout */
  --container: 75rem; /* 1200px */
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 6.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;

  --shadow-btn: 0 6px 16px -6px rgb(245 101 36 / 0.55);
  --shadow-card: 0 18px 40px -18px rgb(0 25 77 / 0.35);
  /* Elevation scale for content cards (resting -> hovered), plus small chips on orange */
  --shadow-rest: 0 1px 2px rgb(33 53 90 / 0.07);
  --shadow-lift-warm:                          /* hovered orange card: glow all round + depth below */
    0 0 0 1px rgb(245 101 36 / 0.08),
    0 6px 14px -2px rgb(245 101 36 / 0.25),
    0 18px 36px -6px rgb(245 101 36 / 0.38),
    0 34px 60px -18px rgb(33 53 90 / 0.35);
  --shadow-chip-warm: 0 1px 2px rgb(110 35 0 / 0.22), 0 8px 16px -6px rgb(110 35 0 / 0.42);
  --shadow-panel: 0 1px 2px rgb(33 53 90 / 0.05), 0 3px 6px -1px rgb(33 53 90 / 0.1);       /* FAQ rows */
  --shadow-panel-hover: 0 2px 4px rgb(33 53 90 / 0.06), 0 14px 26px -12px rgb(33 53 90 / 0.25);

  /* Motion: enter decelerates; exit is ~65% as long so hover-out feels responsive */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-enter: 0.45s;
  --dur-exit: 0.3s;
}

@media (max-width: 960px) {
  :root { --header-h: 4.5rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem); /* in-page links land below the sticky header */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  /* Column layout keeps the footer at the bottom even on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}

#main {
  flex: 1 0 auto;
  /* Entrance effects briefly move/scale things past the screen edge (side-slides, image
     unveils); never let that create sideways scrolling. "clip" keeps vertical overflow
     (e.g. the CTA cadet's cap above the banner); "hidden" is the fallback for old browsers. */
  overflow-x: hidden;
  overflow-x: clip;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: 0.5rem 1rem; background: var(--white); color: var(--navy-900);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.625rem;
  border: 0;
  border-radius: var(--radius-sm);
  font: 600 0.875rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 1.125rem; height: 1.125rem; transition: transform 0.2s var(--ease); }

.btn-primary {
  background: var(--orange-cta);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--orange-cta-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 26px -12px rgb(204 74 16 / 0.6); /* soft orange glow */
}
.btn-primary:hover svg { transform: translateX(3px); }
/* Home hero button: the bright brand orange, matching the orange headline beside it (user, 2026-11-18) */
.hero .btn-primary { background: var(--orange-500); box-shadow: var(--shadow-btn); }
.hero .btn-primary:hover { background: var(--orange-600); box-shadow: 0 14px 26px -12px rgb(245 101 36 / 0.7); }
.btn-primary:active {
  transform: translateY(0) scale(0.98); /* press-down */
  box-shadow: 0 4px 10px -6px rgb(245 101 36 / 0.6);
  transition-duration: 0.08s;
}

.btn-sm { min-height: 2.25rem; padding: 0.5rem 2.25rem; font-size: 0.8125rem; box-shadow: none; }

/* White button for dark/gradient panels (CTA banner): fills orange on hover */
.btn-light {
  min-height: 3.125rem;
  padding: 0.75rem 1.9rem;
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--navy-900);
  font: 500 0.9375rem/1.2 var(--font-display);
  box-shadow: 0 10px 22px -12px rgb(0 0 0 / 0.5);
}
.btn-light:hover {
  background: var(--orange-cta);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px -12px rgb(245 101 36 / 0.75);
}
.btn-light:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }
.btn-light:focus-visible { outline-color: var(--white); } /* orange ring would vanish on the banner */

/* Arrow that slides in on hover while the label makes room (button width never changes) */
.btn-arrow-in { position: relative; }
.btn-arrow-in .btn-label { transition: transform 0.3s var(--ease); }
.btn-arrow-in svg {
  position: absolute;
  right: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}
.btn-arrow-in:hover .btn-label,
.btn-arrow-in:focus-visible .btn-label { transform: translateX(-0.625rem); }
.btn-arrow-in:hover svg,
.btn-arrow-in:focus-visible svg { opacity: 1; transform: none; }

/* Arrow CTA (.btn-arrow): the arrow sways back and forth continuously;
   on hover/focus it shoots out to the right and slides back in from the left
   while a light sheen sweeps across. Motion-sensitive users get the static button. */
@media (prefers-reduced-motion: no-preference) {
  .btn-arrow { position: relative; overflow: hidden; isolation: isolate; }
  .btn-arrow svg { animation: arrow-sway 0.9s ease-in-out 1.1s infinite alternate; }
  .btn-arrow:hover svg,
  .btn-arrow:focus-visible svg { transform: none; animation: arrow-loop 0.55s var(--ease); }

  .btn-arrow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1; /* above the orange fill, below the label */
    background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.32) 50%, transparent 65%);
    transform: translateX(-100%);
    pointer-events: none;
  }
  .btn-arrow:hover::after,
  .btn-arrow:focus-visible::after { transform: translateX(100%); transition: transform 0.7s var(--ease); }

  @keyframes arrow-sway {
    from { transform: translateX(0); }
    to   { transform: translateX(6px); }
  }
  @keyframes arrow-loop {
    0%   { transform: translateX(0);     opacity: 1; }
    45%  { transform: translateX(16px);  opacity: 0; }
    46%  { transform: translateX(-12px); opacity: 0; }
    100% { transform: translateX(0);     opacity: 1; }
  }
}

/* 5. Header ---------------------------------------------------------------- */
/* Sticky; motion.js adds .is-scrolled once the page moves, which deepens the shadow. */
site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  min-height: var(--header-h);
  background: var(--navy-900);
  view-transition-name: site-header; /* stays put while the page content cross-fades */
}

.site-header {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
  transition: box-shadow 0.35s var(--ease);
}
site-header.is-scrolled .site-header {
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 12px 32px -14px rgb(0 25 77 / 0.55);
}

/* Scroll progress: thin orange line along the header's bottom edge (motion.js sets scaleX) */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-500) 60%, var(--orange-200));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.brand img { width: 2.75rem; height: 2.75rem; flex: none; }

.primary-nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  text-decoration: none;
  color: rgb(255 255 255 / 0.92);
  transition: color 0.2s var(--ease);
}
.primary-nav ul a:hover,
.primary-nav ul a:focus-visible { color: var(--orange-500); }
.primary-nav a[aria-current="page"] { color: var(--orange-500); font-weight: 600; }

/* Desktop: an orange underline draws in from the left on hover and retracts to the right. */
@media (min-width: 961px) {
  .primary-nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.125rem;
    height: 2px;
    border-radius: 2px;
    background: var(--orange-500);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
  }
  .primary-nav ul a:hover::after,
  .primary-nav ul a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
}

.header-cta { justify-self: end; }
.primary-nav .nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.25rem; height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

site-header { transition: transform 0.35s var(--ease); }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  /* the header tucks away while scrolling down (components.js), leaving the progress line */
  site-header.is-tucked { transform: translateY(calc(-100% + 2px)); }

  .primary-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--navy-900);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: 0 16px 24px -12px rgb(0 0 0 / 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
    /* the page below dims while the menu is open (tapping it closes the menu: components.js);
       the clip keeps the dimming below the header bar */
    box-shadow: 0 16px 24px -12px rgb(0 0 0 / 0.4), 0 0 0 100vmax rgb(2 10 36 / 0.55);
    clip-path: inset(0 0 -100vmax 0);
  }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
  }
  .primary-nav .nav-cta-mobile {
    display: flex;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    border: 0;
    color: var(--white);
    font-weight: 600;
  }
}

/* Mobile menu: links cascade in one after another as the panel opens. */
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .primary-nav li {
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .primary-nav.is-open li {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 45ms + 60ms);
  }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}

/* Ship video behind the hero (hero-video.js starts it; the poster frame shows until then,
   and stays for reduced-motion users). ::after = white wash that keeps the copy readable. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #e6eef5; /* shows while the poster loads */
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(248 250 252 / 0.86) 0%, rgb(248 250 252 / 0.8) 55%, rgb(248 250 252 / 0.74) 100%);
}
@media (max-width: 960px) {
  .hero-video { object-position: 35% center; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgb(255 255 255 / 0.86) 0%, rgb(255 255 255 / 0.74) 100%);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  background: var(--navy-100);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge svg { width: 0.875rem; height: 0.875rem; }

.hero-title {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  /* sized to the text column: on desktop each line stays on one row, so it must never outgrow it */
  font-size: clamp(2.25rem, 3.8vw - 0.125rem, 3.0625rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero-title span { display: block; }
/* Each line sits in a clipping box so the text can rise into view (see Motion). */
.hero-title .line { overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
@media (min-width: 1061px) {
  .hero-title span { white-space: nowrap; }
}
.hero-title em { font-style: normal; color: var(--color-accent); }

.hero-lead {
  max-width: 31rem;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  line-height: 1.6;
}

.hero-actions { margin-top: 2.25rem; }
.hero-actions .btn { min-height: 3.25rem; padding: 0.875rem 1.875rem; font-size: 1rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 3.25rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats li { display: grid; gap: 0.25rem; }
.hero-stats li + li {
  padding-left: 1.75rem;
  border-left: 1px solid var(--navy-700);
}
.hero-stats strong {
  display: inline-block;
  font-variant-numeric: tabular-nums; /* digits keep their width while counting up */
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1vw, 2.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}
.hero-stats span { font-size: 0.8125rem; color: var(--color-text-muted); }

/* Visual: officers image (orange shapes baked in) + floating card */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 34rem;
  justify-self: end;
}

.hero-people {
  width: 100%;
  height: auto;
}

.hero-card {
  position: absolute;
  left: 4%;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem 0.875rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.6);
  border-radius: var(--radius-md);
  background: rgb(232 232 236 / 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.hero-card svg { width: 2.25rem; height: 2.25rem; flex: none; }

/* Entrance motion (hero plays on load; sections further down use [data-reveal], see 9.) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-up 0.8s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(14px); }
  }
  /* Headline: each line rises out of its clipping box, one after the other. */
  .reveal-line {
    animation: line-rise 0.95s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 110ms + 60ms);
  }
  @keyframes line-rise {
    from { transform: translateY(110%); }
  }
  /* Background drifts slower than the page while scrolling (offset set by motion.js). */
  .hero-bg[data-parallax] { will-change: transform; }

  /* Hero picture builds in layers: the cadets settle in from a slight zoom,
     then the "DG Shipping" card slides in on top of them. */
  .hero-visual.reveal { animation-name: reveal-zoom; animation-duration: 1s; }
  @keyframes reveal-zoom {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
  }
  .hero-card { animation: card-in 0.8s var(--ease) 0.75s both; }
  @keyframes card-in {
    from { opacity: 0; transform: translateX(-1.25rem); }
  }
  /* While the hero is scrolled out of sight its entrance is switched off (motion.js adds
     .is-away); switching it back on as the hero returns replays the whole entrance. */
  .is-away .reveal,
  .is-away .reveal-line,
  .is-away .hero-card,
  .is-away .page-hero-bg img { animation: none; }

  /* Inner-page hero photo: settles from a slight zoom as the page opens (and parallax-drifts
     on scroll via data-parallax on its wrapper) */
  .page-hero-bg img { animation: hero-settle 2.6s var(--ease) both; }
  @keyframes hero-settle {
    from { transform: scale(1.08); }
  }
}

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 30rem; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.25rem; }
  .hero-stats li + li { padding-left: 1.25rem; }
  .hero-card { left: 2%; padding: 0.625rem 0.875rem 0.625rem 0.75rem; font-size: 0.8125rem; }
  .hero-card svg { width: 1.875rem; height: 1.875rem; }
}

/* 6b. Inner-page hero (About, IMU-CET, Blog, Contact, articles) -------------- */
/* Centred badge + title + lead in white over the page's photo under a deep-navy wash
   (the look the client chose from the Plans page, 2026-11-13). */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 40vw, 38rem); /* the photo's own proportions at desktop widths */
  padding-block: 2rem 5.375rem; /* content sits a little above centre */
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy-900); /* shows while the photo loads */
}
.page-hero-bg picture,
.page-hero-bg img { width: 100%; height: 100%; }
.page-hero-bg img { object-fit: cover; object-position: 55% 50%; }
.page-hero-bg::after,
.plans-hero-bg::after { /* deep-navy wash: lets the photo show, keeps the white text crisp */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 25 77 / 0.66) 0%, rgb(0 25 77 / 0.82) 55%, var(--navy-900) 100%);
}
.page-hero .hero-badge,
.plans-hero .hero-badge { /* frosted badge on the dark photo */
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.12);
  color: var(--white);
}

.page-hero-inner { display: grid; justify-items: center; }
.page-hero-title {
  margin-top: 1.125rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 0.9rem + 2.7vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
}
.page-hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.page-hero-title .reveal-line { display: block; }
.page-hero-title em { font-style: normal; color: var(--color-accent); }
.page-hero-lead {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: rgb(255 255 255 / 0.84);
  text-wrap: pretty;
}

/* 404 page: two ways back under the lead */
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; margin-top: 2rem; }
.nf-actions .btn { min-height: 3.125rem; padding: 0.75rem 1.75rem; font: 600 0.9375rem/1.2 var(--font-body); } /* the pair match */

/* 7. Shared section styles ------------------------------------------------- */
.section { padding-block: clamp(4rem, 7vw, 6.25rem); }

/* Type scale: section headings ~42px, intros ~17px, body never below 15px on desktop */
.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 4.5vw, 3.5rem);
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 1.2rem + 1.9vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  text-wrap: balance; /* even line lengths when the heading wraps on small screens */
}
.section-lead {
  max-width: 38rem;
  margin: 1rem auto 0;
  text-wrap: pretty; /* avoids a lone word on the last line on phones */
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--slate-600);
}
/* Editorial headers: heading left with its intro beside it, or simply left-aligned */
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  align-items: end;
  gap: 1rem clamp(2rem, 6vw, 5rem);
  max-width: none;
  text-align: left;
}
.section-head--split .section-lead { max-width: none; margin: 0; }
.section-head--left { max-width: 38rem; margin-inline: 0; text-align: left; }
.section-head--left .section-lead { margin-inline: 0; }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}

/* Compass rings behind a photo (Home trust, IMU who + glance): faint concentric rings with a
   dashed outer ring, like a ship's compass card. Decorative; the photo sits on top. */
.photo-halo { position: relative; isolation: isolate; --ring: #dfe5f7; --ring-strong: #c4ceee; }
.photo-halo::before,
.photo-halo::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.photo-halo::before {
  width: 140%;
  background: repeating-radial-gradient(circle, transparent 0 calc(1.75rem - 1.5px), var(--ring) calc(1.75rem - 1.5px) 1.75rem);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
          mask: radial-gradient(circle, #000 30%, transparent 70%);
}
.photo-halo::after { width: 104%; border: 1.5px dashed var(--ring-strong); }

/* 8. Features ("What Sets Us Apart") ---------------------------------------- */
/* The home page's one deep-navy section. Panels ("one surface split by fine lines" instead of
   separate cards) are shared by the home features, About core values and the IMU degree list:
   on hover the orange fill rises behind an item, its text turns white and lifts a touch. */

.feature-grid,
.value-grid,
.course-grid {
  --panel-line: #e3e7f5;
  --panel-bg: var(--white);
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 1.5rem;
  background: var(--panel-line);
  list-style: none;
}
.feature-grid,
.dark-band .value-grid { --panel-line: #213a70; --panel-bg: #03205a; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card,
.value-card,
.course-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--panel-bg);
}
.feature-card { padding: 2.25rem 2.125rem 2.5rem; }
/* Brand-orange fill (same as the hero) that rises from the bottom on hover;
   it sits between the panel and the item's content. */
.feature-card::before,
.value-card::before,
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange-500);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-exit) var(--ease-exit);
}
.feature-card > *,
.value-card > *,
.course-card > * { transition: transform var(--dur-exit) var(--ease-exit), color var(--dur-exit) var(--ease-exit); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.06);
  color: var(--orange-500);
  box-shadow: 0 0 0 rgb(110 35 0 / 0);
  transition: background-color var(--dur-exit) var(--ease-exit), color var(--dur-exit) var(--ease-exit),
              box-shadow var(--dur-exit) var(--ease-exit), transform var(--dur-exit) var(--ease-exit);
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }

.feature-card h3 {
  margin-top: 1.5rem;
  font: 600 1.25rem/1.3 var(--font-display);
  color: var(--white);
}
.feature-card p {
  margin-top: 0.75rem;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.7);
}

/* Hover only on devices that really hover, so taps on phones don't leave items stuck. */
@media (hover: hover) {
  .feature-card:hover::before,
  .value-card:hover::before,
  .course-card:hover::before {
    transform: scaleY(1);
    transition: transform 0.5s var(--ease);
  }
  .feature-card:hover > *,
  .value-card:hover > * {
    transform: translateY(-4px);
    transition: transform var(--dur-enter) var(--ease), color 0.35s var(--ease) 0.08s;
  }
  .feature-card:hover h3,
  .feature-card:hover p,
  .value-card:hover h3,
  .value-card:hover p,
  .course-card:hover h3,
  .course-card:hover p {
    color: var(--white);
    transition: transform var(--dur-enter) var(--ease), color 0.35s var(--ease) 0.08s; /* turns white as the fill passes behind it */
  }
  .feature-card:hover .feature-icon,
  .value-card:hover .value-icon,
  .course-card:hover .course-icon {
    border-color: transparent;
    background: var(--white);
    color: var(--orange-500);
    box-shadow: var(--shadow-chip-warm); /* the tile lifts off the orange */
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
                box-shadow var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease);
  }
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); border-radius: 1.125rem; }
  .feature-card { padding: 1.75rem 1.5rem 2rem; }
  .feature-card h3 { margin-top: 1.125rem; }
}

/* 9. Trust ("Why Aspirants Trust Their Journey With Us") ------------------- */
.trust { overflow-x: clip; } /* side-sliding reveals never cause sideways scrolling */

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 32rem) minmax(0, 36rem); /* the cadet picture is near-square: a wide column keeps it in balance with the list */
  justify-content: center;
  align-items: center;
  column-gap: clamp(2.5rem, 8vw, 7rem);
}
.trust-content .section-head { margin-bottom: 2.75rem; }

.trust-visual { margin: 0; }
.trust-stage { padding: 1rem; }
.trust-visual img { width: 100%; height: auto; }

.trust-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.375rem;
  align-items: start;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-top: 1px solid #e9ecf7;
}
.trust-item:last-child { border-bottom: 1px solid #e9ecf7; }
.trust-item::before,
.who-item::before { /* orange accent that grows on hover */
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--orange-500);
  transform: scaleY(0);
  transition: transform var(--dur-exit) var(--ease-exit);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--orange-100);
  color: var(--orange-500);
  box-shadow: 0 0 0 rgb(110 35 0 / 0);
  transition: background-color var(--dur-exit) var(--ease-exit), color var(--dur-exit) var(--ease-exit),
              box-shadow var(--dur-exit) var(--ease-exit), transform var(--dur-exit) var(--ease-exit);
}
.trust-icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }

.trust-copy { transition: transform var(--dur-exit) var(--ease-exit); }
.trust-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--navy-800);
}
.trust-item p {
  margin-top: 0.5rem;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--slate-600);
}

/* Hover: the tile fills orange and lifts on a soft shadow; the text eases right a touch. */
@media (hover: hover) {
  .trust-item:hover .trust-icon,
  .who-item:hover .who-icon { /* IMU page "Who Should Write" list behaves the same */
    background: var(--orange-500);
    color: var(--white);
    box-shadow: var(--shadow-chip-warm);
    transform: translateY(-2px);
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
                box-shadow var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease);
  }
  .trust-item:hover .trust-copy,
  .who-item:hover .who-copy {
    transform: translateX(4px);
    transition: transform var(--dur-enter) var(--ease);
  }
  .trust-item:hover::before,
  .who-item:hover::before { transform: scaleY(1); transition: transform var(--dur-enter) var(--ease); }
}

@media (max-width: 960px) {
  .trust-layout { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; justify-items: center; }
  .trust-stage { width: min(100%, 24rem); }
  .trust-content { max-width: 36rem; }
  .trust-list { gap: 2rem; }
}
@media (max-width: 600px) {
  .section-lead br { display: none; } /* desktop-only line breaks; let text flow on phones */
}

/* 10. FAQ ------------------------------------------------------------------ */
.faq {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-lavender);
}

/* Faint maritime illustrations behind the content (decorative only) */
.faq-deco {
  position: absolute;
  z-index: -1;
  color: var(--deco-ink);
  pointer-events: none;
}
.faq-helm { top: 0.75rem; right: -7.75rem; width: 15rem; }
.faq-ship { left: -2.75rem; bottom: -0.25rem; width: 12.5rem; }
.faq-ship .ship-cut { stroke: var(--surface-lavender); } /* deck line + anchor "cut out" of the hull */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
  align-items: start;
  gap: 2.5rem clamp(2.5rem, 6vw, 5.5rem);
}
.faq-head { position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; }
.faq-list {
  display: grid;
  gap: 0.875rem;
}

.faq-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: var(--shadow-panel);
  transition: transform var(--dur-exit) var(--ease-exit), box-shadow var(--dur-exit) var(--ease-exit);
}
/* Orange accent bar on the open question */
.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--orange-500);
  transform: scaleY(0);
  transition: transform var(--dur-exit) var(--ease-exit);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 1.75rem;
  font: 600 1rem/1.4 var(--font-display);
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: 0.75rem; }

/* Plus that turns into a minus (the vertical bar folds flat) */
.faq-toggle {
  position: relative;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--navy-900);
  transition: color var(--dur-exit) var(--ease-exit), transform var(--dur-exit) var(--ease-exit);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 1.5px;
  margin: -0.75px 0 0 -0.375rem;
  border-radius: 1px;
  background: currentColor;
}
.faq-toggle::after { transform: rotate(90deg); transition: transform 0.35s var(--ease); }

.faq-answer { overflow: hidden; } /* accordion.js animates its height */
.faq-answer-inner {
  max-width: 44rem;
  padding: 0 1.75rem 1.5rem;
  font-size: 0.96875rem;
  line-height: 1.7;
  color: var(--slate-600);
}
.faq-answer-inner p + p { margin-top: 0.75rem; }
.faq-answer-inner a {
  color: var(--orange-ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Open (but not while it is animating closed) */
.faq-item[open]:not(.is-closing) { box-shadow: var(--shadow-panel-hover); }
.faq-item[open]:not(.is-closing)::before { transform: scaleY(1); transition: transform var(--dur-enter) var(--ease); }
.faq-item[open]:not(.is-closing) .faq-toggle { color: var(--orange-500); transform: rotate(180deg); }
.faq-item[open]:not(.is-closing) .faq-toggle::after { transform: rotate(0deg); }

@media (hover: hover) {
  .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-panel-hover);
    transition: transform var(--dur-enter) var(--ease), box-shadow var(--dur-enter) var(--ease);
  }
  .faq-item:hover .faq-toggle { color: var(--orange-500); }
}

/* Answers still waiting on the academy: clearly marked so they can't go live by accident */
.placeholder {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: #fff4cc;
  color: #6b5200;
  font-style: italic;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .faq-helm { width: 11rem; right: -6rem; }
  .faq-ship { width: 9rem; left: -2.5rem; }
}
@media (max-width: 600px) {
  .faq-item summary { padding: 1.125rem 1.125rem 1.125rem 1.25rem; }
  .faq-answer-inner { padding: 0 1.25rem 1.25rem; }
  .faq-helm { width: 8rem; top: 0.25rem; right: -4.5rem; }
  .faq-ship { width: 7rem; left: -2rem; }
}

/* 11. CTA banner ("Start Your IMU CET Journey Today") ---------------------- */
.cta-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  min-height: 15.875rem;
  border-radius: 1.125rem;
  background: linear-gradient(90deg, #e5642c 0%, #1e2548 100%);
  box-shadow: 0 10px 20px -12px rgb(0 0 0 / 0.18), 0 26px 44px -20px rgb(0 25 77 / 0.4);
}
/* Soft light that drifts slowly across the banner (see Motion) */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(40% 90% at 30% 20%, rgb(255 255 255 / 0.12), transparent 70%);
  pointer-events: none;
}

.cta-copy {
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 3.25rem 1.5rem;
  text-align: center;
}
.cta-title {
  font: 700 clamp(1.75rem, 1.2rem + 1.5vw, 2.375rem)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.cta-lead {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.92);
  text-wrap: pretty;
}
.cta-copy .btn { margin-top: 1.5rem; }

/* Cadet stands on the banner's bottom edge with his cap rising above the top edge.
   The clip trims only the bottom, so he can rise "out of" the banner (see Motion). */
.cta-visual {
  position: absolute;
  right: 4.4rem;
  bottom: 0;
  width: 17.8rem;
  pointer-events: none;
  clip-path: inset(-60% -60% 0 -60%);
}
.cta-visual img { width: 100%; height: auto; }

@media (max-width: 960px) {
  .cta-banner { grid-template-columns: minmax(0, 1fr) 15rem; }
  .cta-visual { right: 0.75rem; width: 14.5rem; }
}
/* Phones: text on top, cadet standing at the bottom of the card */
@media (max-width: 680px) {
  .cta-banner {
    grid-template-columns: minmax(0, 1fr);
    background: linear-gradient(165deg, #e5642c 0%, #b0573a 40%, #1e2548 100%);
  }
  .cta-copy { padding: 2.5rem 1.25rem 1.25rem; }
  .cta-visual { position: relative; right: auto; justify-self: center; width: min(15rem, 78%); }
}

/* 11b. About page ----------------------------------------------------------- */
/* Story: photo left, text right */
.about-intro { padding-block: clamp(4rem, 7vw, 6.25rem); }
.about-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 27rem) minmax(0, 36rem);
  justify-content: center;
  align-items: center;
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
}
.about-visual { margin: 0; }
.about-visual img,
.mvm-visual img { width: 100%; height: auto; }

.split-title {
  font: 700 clamp(1.875rem, 1.2rem + 1.9vw, 2.625rem)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.prose p { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
.prose p + p { margin-top: 1.25rem; }
.split-title + .prose { margin-top: 1.75rem; }

/* Deep-navy sections (one per page: home features, About values, IMU journey) */
.dark-band { background: var(--navy-900); }
.dark-band .section-title { color: var(--white); }
.dark-band .section-lead { color: rgb(255 255 255 / 0.72); }

/* Core values: one navy panel split in three (same hover as the home features) */
.value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-card { padding: 2.25rem 2.125rem 2.5rem; }
.value-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.06);
  color: var(--orange-500);
  box-shadow: 0 0 0 rgb(110 35 0 / 0);
  transition: background-color var(--dur-exit) var(--ease-exit), color var(--dur-exit) var(--ease-exit),
              box-shadow var(--dur-exit) var(--ease-exit);
}
.value-icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.value-card h3 {
  margin-top: 1.5rem;
  font: 600 1.25rem/1.3 var(--font-display);
  color: var(--white);
}
.value-card p {
  margin-top: 0.625rem;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.7);
}

/* Mission + Vision as one story: the mentor holds out the officer's cap and, directly beneath,
   the student reaches up for it. Both photos are 77% of their column; the student's is shifted
   right by 23% so his raised hand (26% across his photo) sits under the cap (56% across the
   mentor's). Proportions, not fixed sizes, so the hand-off lines up at every width. */
.mvm { padding-block: clamp(4rem, 7vw, 6.25rem) clamp(2rem, 4vw, 3rem); }
.mvm-story {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 34rem);
  grid-template-areas: "m-img m-text" "v-img v-text";
  justify-content: center;
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  row-gap: 0.75rem;
}
.mvm-visual { margin: 0; }
.mvm-visual--mission { grid-area: m-img; width: 77%; align-self: end; }    /* cap at the bottom of the row */
.mvm-visual--vision { grid-area: v-img; width: 77%; margin-left: 23%; align-self: start; } /* hand at the top */
.mvm-block--mission { grid-area: m-text; align-self: center; }
.mvm-block--vision { grid-area: v-text; align-self: center; }
.mvm-block h2 {
  font: 700 clamp(1.5rem, 1.15rem + 0.9vw, 1.875rem)/1.2 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--navy-800);
}
.mvm-block p { margin-top: 0.875rem; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
.mvm-block strong { font-weight: 600; color: var(--navy-800); }

.mvm-mentors {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 4.5vw, 3.75rem);
  border-radius: 1.5rem;
  background: var(--surface-lavender);
}
.mvm-stat {
  display: grid;
  gap: 0.5rem;
  padding-right: clamp(2rem, 5vw, 4.5rem);
  border-right: 1px solid #d9dff3;
}
/* the big "15+" counts up when seen (data-count) */
.inline-stat {
  font: 700 clamp(3.5rem, 2rem + 4vw, 5.5rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--orange-600); /* a shade deeper than the bright orange: readable (3:1+) on the lavender panel */
  font-variant-numeric: tabular-nums;
}
.mvm-stat span { font-size: 0.875rem; font-weight: 500; color: var(--slate-600); }
.mvm-mentors .mvm-block p { max-width: 40rem; }

/* About CTA: a student instead of the pointing cadet */
.cta-visual--student { right: 6.75rem; width: 12.25rem; }

@media (max-width: 960px) {
  .about-intro-layout { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .about-visual { width: min(100%, 24rem); justify-self: center; }
  .about-intro-layout .about-copy { max-width: 40rem; justify-self: center; }
  .mvm-mentors { max-width: 40rem; margin-inline: auto; }
  .cta-visual--student { right: 1.5rem; width: 10.5rem; }
}
@media (max-width: 600px) {
  .value-card { padding: 1.75rem 1.5rem 2rem; }
  .prose p, .mvm-block p { font-size: 1rem; }
  .split-title + .prose { margin-top: 1.25rem; }
  .mvm-mentors { grid-template-columns: minmax(0, 1fr); }
  .mvm-stat { padding: 0 0 1.5rem; border-right: 0; border-bottom: 1px solid #d9dff3; }
}
@media (max-width: 680px) {
  .cta-visual--student { right: auto; width: min(11rem, 55%); }
}
/* Phones: the two photos stay together (the hand-off), then Mission and Vision */
@media (max-width: 700px) {
  .value-grid { grid-template-columns: minmax(0, 1fr); } /* three across down to 700px, then stacked */
  .mvm-story { grid-template-columns: minmax(0, 1fr); grid-template-areas: "m-img" "v-img" "m-text" "v-text"; row-gap: 0.5rem; }
  .mvm-visual--mission,
  .mvm-visual--vision { width: 68%; }
  .mvm-visual--vision { margin-left: 20.4%; }
  .mvm-block--mission { margin-top: 2rem; }
  .mvm-block--vision { margin-top: 1.5rem; }
}

/* 11c. IMU-CET page ---------------------------------------------------------- */
/* Sizes measured from the Figma screenshots (sections drawn at ~70% of site scale). */
.imu-page .section-lead { color: var(--ink-soft); }
.imu-page .dark-band .section-lead { color: rgb(255 255 255 / 0.72); }
.page-hero-bg--imu img { object-position: 53% 40%; } /* keeps the student in frame on phones */

/* Gateway: anchor emblem left, text right */
.gateway { padding-block: clamp(3.5rem, 6vw, 5rem) clamp(2.5rem, 4vw, 3.75rem); }
.gateway-layout {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 38rem);
  justify-content: center;
  align-items: center;
  column-gap: clamp(2rem, 9vw, 8.875rem);
}
.gateway-emblem { margin: 0; }
.emblem { width: 100%; height: auto; overflow: visible; }
.gateway-copy .split-title + .prose { margin-top: 2.25rem; }

/* Who should write it: list left, students right */
.who { padding-block: clamp(4rem, 7vw, 6.25rem); background: var(--surface-lavender); }
.who .photo-halo { --ring: #dce3f6; --ring-strong: #c3cdee; }
.who-layout {
  display: grid;
  grid-template-columns: minmax(0, 32rem) minmax(0, 26.5rem);
  justify-content: center;
  align-items: center;
  column-gap: clamp(2.5rem, 7vw, 6.5rem);
}
.who-list {
  display: grid;
  gap: 0;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.who-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 1.125rem;
  align-items: start;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-top: 1px solid #dce2f4;
}
.who-item:last-child { border-bottom: 1px solid #dce2f4; }
.who-item::before { top: 1.25rem; bottom: 1.25rem; }
.who-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--navy-900);
  transition: background-color var(--dur-exit) var(--ease-exit), color var(--dur-exit) var(--ease-exit),
              box-shadow var(--dur-exit) var(--ease-exit), transform var(--dur-exit) var(--ease-exit);
}
.who-icon svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.who-copy { transition: transform var(--dur-exit) var(--ease-exit); }
.who-item h3 { padding-top: 0.125rem; font: 600 1.0625rem/1.35 var(--font-display); color: var(--navy-800); }
.who-item p { margin-top: 0.375rem; font-size: 0.96875rem; line-height: 1.6; color: var(--ink-soft); }
.who-visual { margin: 0; }
.who-stage, .glance-stage { padding: 1.5rem; }
.who-visual img { width: 100%; height: auto; }

/* Journey: four steps in a row, dashed arrows centred between them */
.journey { padding-block: clamp(4rem, 7vw, 6.25rem); }
.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 65.25rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.journey-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  padding-inline: 0.75rem;
  text-align: center;
}
.journey-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange-500);
  box-shadow: 0 0 0 5px rgb(255 255 255 / 0.1), 0 8px 18px -8px rgb(0 0 0 / 0.5);
  transition: background-color var(--dur-exit) var(--ease-exit), color var(--dur-exit) var(--ease-exit),
              box-shadow var(--dur-exit) var(--ease-exit), transform var(--dur-exit) var(--ease-exit);
}
.journey-icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.journey-step h3 { margin-top: 1.5rem; font: 600 1.125rem/1.35 var(--font-display); color: var(--white); }
.journey-step p { max-width: 15rem; margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.6; color: rgb(255 255 255 / 0.7); }
.journey-arrow {
  position: absolute;
  top: 2rem;                   /* level with the circle centres */
  left: 100%;                  /* centred on the boundary with the next step */
  width: clamp(2rem, 5.6vw, 4.05rem);
  height: 0.75rem;
  margin-top: -0.375rem;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 0.55);
}
.journey-arrow::before { /* dashed shaft */
  content: "";
  position: absolute;
  left: 0;
  right: 2px;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px);
}
.journey-arrow::after { /* arrowhead */
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 0.4375rem;
  height: 0.4375rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* At a glance: facts table left, photo right */
.glance { padding-block: clamp(3.5rem, 6vw, 5rem); }
.glance-layout {
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 29rem);
  justify-content: center;
  align-items: center;
  column-gap: clamp(2.5rem, 7vw, 6.5rem);
}
.glance-lead { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.glance-table {
  margin: 1.75rem 0 0;
  border: 1px solid #e6e9f6;
  border-radius: 0.875rem;
  background: #f9f9ff;
}
.glance-row {
  position: relative;
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
}
.glance-row + .glance-row { border-top: 1px solid #e6e9f6; }
.glance-row dt,
.glance-row dd {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color var(--dur-exit) var(--ease-exit), background-color var(--dur-exit) var(--ease-exit);
}
.glance-row dt { gap: 0.75rem; padding: 0.75rem 0.75rem 0.75rem 1.25rem; background: #f2f4ff; font-weight: 600; color: #091c34; }
.glance-icon { flex: none; width: 1.25rem; height: 1.25rem; fill: var(--orange-500); }
.glance-row dd { margin: 0; padding: 0.75rem 1.25rem 0.75rem 1.4rem; color: var(--ink-soft); }
.glance-row:first-child dt { border-top-left-radius: calc(0.875rem - 1px); }
.glance-row:last-child dt { border-bottom-left-radius: calc(0.875rem - 1px); }
.glance-row::before { /* orange accent that slides in on hover */
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--orange-500);
  transform: scaleY(0);
  transition: transform var(--dur-exit) var(--ease-exit);
}
.glance-visual { margin: 0; }
.glance-visual img { width: 100%; height: auto; }

/* Degrees: heading (stays in view) beside one panel listing all five; same orange-fill hover
   as the home features, the row's text steps right */
.courses { background: var(--surface-lavender); }
.courses-layout {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 44rem);
  justify-content: space-between;
  align-items: start;
  gap: 2.5rem clamp(2.5rem, 6vw, 5.5rem);
}
.courses-head { position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; }
.course-grid { grid-template-columns: minmax(0, 1fr); }
.course-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.5rem;
  padding: 1.75rem 2rem;
}
.course-card > .course-icon { grid-row: span 2; }
.course-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--orange-100);
  color: var(--orange-500);
  box-shadow: 0 0 0 rgb(110 35 0 / 0);
  transition: background-color var(--dur-exit) var(--ease-exit), color var(--dur-exit) var(--ease-exit),
              box-shadow var(--dur-exit) var(--ease-exit), transform var(--dur-exit) var(--ease-exit);
}
.course-icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.course-card h3 {
  align-self: end;
  font: 600 1.1875rem/1.35 var(--font-display);
  color: var(--navy-800);
}
.course-card p {
  margin-top: 0.375rem;
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (hover: hover) {
  .course-card:hover > h3,
  .course-card:hover > p { transform: translateX(6px); }
}

/* Why it matters: the four doors it opens, as one strip (a panel split in four) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3e7f5;
  border-radius: 1.5rem;
  background: #e3e7f5;
  list-style: none;
  box-shadow: 0 24px 48px -32px rgb(0 25 77 / 0.35);
}
.why-card {
  position: relative;
  display: grid;
  align-content: start;
  row-gap: 1.25rem;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--white);
  font: 500 1.0625rem/1.5 var(--font-body);
  color: var(--navy-800);
  transition: background-color var(--dur-exit) var(--ease-exit);
}
.why-card::after { /* orange line that draws across the top on hover */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-exit) var(--ease-exit);
}
.why-check {
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border-radius: 0.875rem;
  background: #e6f4e6;
  fill: #3e9b41;
  transition: transform var(--dur-exit) var(--ease-exit);
}

/* Hover (real pointers only, so taps on phones don't leave things stuck) */
@media (hover: hover) {
  .journey-step:hover .journey-icon {
    background: var(--orange-500);
    color: var(--white);
    box-shadow: 0 0 0 5px rgb(245 101 36 / 0.16), var(--shadow-chip-warm);
    transform: translateY(-4px);
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
                box-shadow var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease);
  }
  .glance-row:hover dt,
  .glance-row:hover dd { background: var(--white); color: var(--navy-900); transition-timing-function: var(--ease); }
  .glance-row:hover dt { color: var(--orange-500); }
  .glance-row:hover::before { transform: scaleY(1); transition: transform var(--dur-enter) var(--ease); }
  .why-card:hover { background: #f8f9ff; transition: background-color var(--dur-enter) var(--ease); }
  .why-card:hover::after { transform: scaleX(1); transition: transform var(--dur-enter) var(--ease); }
  .why-card:hover .why-check { transform: translateY(-3px) scale(1.06); transition: transform var(--dur-enter) var(--ease); }
}

/* Motion: emblem builds itself, arrows draw in, then their dashes flow on */
@media (prefers-reduced-motion: no-preference) {
  /* Rings draw round, the anchor drops in and settles, the rope winds on (all inside the
     1.5 s that motion.js keeps .reveal-in). The dash pattern only exists during the
     animation, so the finished emblem is always solid. */
  .reveal-in .emb-ring { animation: emb-draw 0.9s var(--ease) backwards; animation-delay: var(--reveal-delay, 0ms); }
  .reveal-in .emb-ring--inner { animation-delay: calc(var(--reveal-delay, 0ms) + 150ms); }
  .reveal-in .emb-rope path { animation: emb-draw 0.65s ease-in-out backwards; animation-delay: calc(var(--reveal-delay, 0ms) + 750ms); }
  .emb-anchor { transform-box: fill-box; transform-origin: 50% 0; }
  .reveal-in .emb-anchor { animation: emb-drop 0.75s var(--ease) backwards; animation-delay: calc(var(--reveal-delay, 0ms) + 200ms); }
  @keyframes emb-draw {
    from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
    to   { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
  }
  @keyframes emb-drop {
    0%   { opacity: 0; transform: translateY(-12%); }
    65%  { opacity: 1; transform: translateY(1.5%); }
    100% { transform: none; }
  }
  /* Hover: the anchor swings gently on its ring, like one hanging at the bow */
  @media (hover: hover) {
    .gateway-emblem:hover .emb-anchor { animation: emb-swing 1.6s ease-in-out; }
  }
  @keyframes emb-swing {
    20% { transform: rotate(4deg); }
    40% { transform: rotate(-3deg); }
    60% { transform: rotate(1.75deg); }
    80% { transform: rotate(-0.75deg); }
  }

  .journey-arrow::before { animation: dash-flow 0.9s linear infinite; }
  @keyframes dash-flow {
    to { background-position: 6px 0; }
  }
  .reveal-in .journey-arrow { animation: arrow-draw 0.6s var(--ease) both; animation-delay: calc(var(--reveal-delay, 0ms) + 350ms); }
  @keyframes arrow-draw {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
}

@media (max-width: 960px) {
  .gateway-layout,
  .who-layout,
  .glance-layout { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; justify-items: center; }
  .gateway-emblem { width: min(14rem, 60%); }
  .gateway-copy,
  .who-copy-col,
  .glance-copy { width: 100%; max-width: 36rem; }
  .who-stage { width: min(100%, 26rem); }
  .glance-stage { width: min(100%, 30rem); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .courses-layout { grid-template-columns: minmax(0, 1fr); }
  .courses-head { position: static; }
}
/* Phones: the journey becomes a vertical timeline, arrows pointing down */
@media (max-width: 700px) {
  .journey-steps { grid-template-columns: minmax(0, 1fr); max-width: 22rem; }
  .journey-arrow {
    position: relative;
    top: auto;
    left: auto;
    width: 2.75rem;
    margin: 1.75rem 0;          /* room for the arrow once it is turned upright */
    transform: rotate(90deg);
  }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .course-card { column-gap: 1.125rem; padding: 1.5rem 1.25rem; }
  .who-item p, .course-card p, .glance-lead, .why-card { font-size: 0.9375rem; }
  .glance-row dt, .glance-row dd { font-size: 0.875rem; }
  .glance-row { grid-template-columns: 9rem minmax(0, 1fr); }
  .glance-row dt { padding-left: 1rem; }
  .glance-row dd { padding-inline: 1rem; }
  .why-card { grid-template-columns: 3rem minmax(0, 1fr); align-items: center; column-gap: 1rem; padding: 1.25rem; }
}

/* 11d. Blog (front page + article pages) ------------------------------------ */
/* An editorial layout of its own (not the card style of the other pages), in the same
   colours, type and buttons. Articles are listed by blog.js from blog-data.js. */
.blog-page { --rule: #e9ecf7; --muted: #6f7380; --tint: #f0f3ff; }
.nowrap { white-space: nowrap; }

/* Shared pieces: category label, date line, search highlight, heading with a rule */
.story-cat {
  align-self: flex-start;
  margin-block: -0.8125rem; /* 40px tall tap area, same layout */
  padding-block: 0.8125rem;
  font: 600 0.75rem/1.3 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.story-cat:hover { color: var(--navy-900); }
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.78125rem;
  font-weight: 500;
  color: var(--muted);
}
.blog-hit { padding: 0 0.08em; border-radius: 0.2em; background: var(--orange-100); color: inherit; }
.blog-rule-title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font: 700 clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: #1a365d;
}
.blog-rule-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* Outline button (Load more) */
.btn-outline {
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--navy-900);
  background: transparent;
  color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: var(--white); transform: translateY(-2px); }
.btn-outline:active { transform: scale(0.98); transition-duration: 0.08s; }

/* Hero: the shared centred inner-page hero, plus the search box */

.blog-search { position: relative; width: min(34rem, 100%); margin-top: 2rem; text-align: left; }
.blog-search-icon {
  position: absolute;
  top: 50%;
  left: 1.125rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.625rem;
  color: var(--navy-500);
  pointer-events: none;
  transition: color 0.2s var(--ease);
}
.blog-search input {
  width: 100%;
  height: 3.5rem;
  padding: 0 3.25rem;
  border: 1px solid #dde3f4;
  border-radius: 0.875rem;
  background: var(--white);
  font: 500 1rem var(--font-body); /* 16px: phones don't zoom in on tap */
  color: var(--navy-900);
  box-shadow: 0 1px 2px rgb(33 53 90 / 0.05), 0 12px 26px -18px rgb(33 53 90 / 0.35);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.blog-search input::placeholder { color: #8a8f9c; }
.blog-search input::-webkit-search-cancel-button { display: none; }
.blog-search input:hover { border-color: #c8d0ec; }
.blog-search input:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgb(245 101 36 / 0.14), 0 12px 26px -18px rgb(33 53 90 / 0.35);
}
.blog-search:focus-within .blog-search-icon { color: var(--orange-500); }
.blog-search-clear {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: -1.125rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy-500);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.blog-search-clear[hidden] { display: none; }
.blog-search input::placeholder { text-overflow: ellipsis; }
@media (max-width: 600px) {
  .blog-search input { padding: 0 2.5rem 0 2.75rem; }
  .blog-search-icon { left: 0.875rem; }
  .blog-search-clear { right: 0.25rem; }
}
.blog-search-clear svg { width: 1.125rem; height: 1.125rem; }
.blog-search-clear:hover { background: var(--surface-lavender); color: var(--navy-900); }

/* Filters + count */
.blog-browse { padding-block: clamp(1.75rem, 3.5vw, 2.5rem) clamp(4.5rem, 9vw, 7rem); }
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.blog-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.375rem 0.5rem 0.375rem 1rem;
  border: 1px solid #dde3f4;
  border-radius: 999px;
  background: var(--white);
  font: 500 0.875rem/1.2 var(--font-body);
  color: var(--navy-700);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.blog-chip-count {
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-lavender);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.blog-chip:hover { border-color: var(--orange-200); color: var(--navy-900); transform: translateY(-1px); }
.blog-chip[aria-pressed="true"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 8px 18px -10px rgb(0 25 77 / 0.6);
}
.blog-chip[aria-pressed="true"] .blog-chip-count { background: var(--orange-cta); color: var(--white); }
.blog-chip:active { transform: scale(0.97); transition-duration: 0.08s; }
.blog-count { font-size: 0.8125rem; color: var(--muted); }

/* Pictures (featured, list, related): subtle zoom on hover */
.featured-media,
.story-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 1rem;
  background: #e9eef2;
}
.featured-media picture, .featured-media img,
.story-media picture, .story-media img { width: 100%; height: 100%; }
.featured-media img,
.story-media img { object-fit: cover; transition: transform 0.6s var(--ease-exit); }

/* Titles: an orange underline draws in on hover */
.featured-title a,
.story-title a {
  padding-bottom: 0.06em;
  background: linear-gradient(var(--orange-500), var(--orange-500)) 0 100% / 0 2px no-repeat;
  text-decoration: none;
  transition: background-size 0.45s var(--ease), color 0.25s var(--ease);
}
.featured-title a:focus-visible,
.story-title a:focus-visible { background-size: 100% 2px; }

/* Featured article */
.blog-featured { margin-top: clamp(2.25rem, 4vw, 3rem); }
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.featured-body { display: flex; flex-direction: column; align-items: flex-start; }
.featured-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.featured-label::before { content: ""; width: 1.75rem; height: 2px; background: var(--orange-500); }
.featured-title {
  margin-top: 0.625rem;
  font: 700 clamp(1.625rem, 1.1rem + 1.3vw, 2.25rem)/1.22 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--navy-900);
  text-wrap: balance;
}
.featured-excerpt { margin-top: 1rem; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); }
.featured .story-meta { margin-top: 1.125rem; }
.featured-cta { margin-top: 1.75rem; }

/* Latest articles: the first one large (picture beside the text), the rest in a grid */
.blog-latest { margin-top: clamp(3.25rem, 6vw, 4.75rem); }
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
  margin-top: 2rem;
}
.story { display: flex; flex-direction: column; min-width: 0; }
.story-body { display: flex; flex: 1; flex-direction: column; padding-top: 1.125rem; }
.story-title { margin-top: 0.5rem; font: 600 1.1875rem/1.35 var(--font-display); color: var(--navy-900); }
.story-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.story-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.story-more {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3rem;
  margin-block: -0.8125rem; /* 40px+ tall tap area, same layout */
  padding-block: 0.8125rem;
  font: 600 0.8125rem/1.2 var(--font-body);
  color: var(--orange-ink);
  text-decoration: none;
}
.story-more svg { width: 0.9rem; height: 0.9rem; transition: transform 0.3s var(--ease); }
.story--wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
.story--wide:not(:last-child) { padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.story--wide .story-body { padding-top: 0; }
.story--wide .story-title { font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.625rem); line-height: 1.28; }
.story--wide .story-excerpt { -webkit-line-clamp: 4; line-clamp: 4; font-size: 1rem; }

@media (hover: hover) {
  .featured:hover .featured-media img,
  .story:hover .story-media img { transform: scale(1.05); transition: transform 0.9s var(--ease); }
  .featured:hover .featured-title a,
  .story:hover .story-title a { background-size: 100% 2px; }
  .story:hover .story-more svg { transform: translateX(4px); }
}

.blog-empty {
  margin-top: 2rem;
  padding: 2.75rem 1.5rem;
  border: 1px dashed #d3daf0;
  border-radius: 1rem;
  text-align: center;
  color: var(--ink-soft);
}
.blog-empty-text { margin-bottom: 0.375rem; font: 600 1.125rem/1.4 var(--font-display); color: var(--navy-900); }
.blog-empty button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--orange-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.blog-more-wrap { display: flex; justify-content: center; margin-top: 3.5rem; }
.blog-more-wrap[hidden] { display: none; }

/* Article pages ----------------------------------------------------------- */
.article-hero .page-hero-title { max-width: 52rem; font-size: clamp(1.875rem, 0.85rem + 2.2vw, 2.875rem); }
.article-hero .page-hero-lead { max-width: 42rem; }

.article-cat { text-decoration: none; transition: background-color 0.2s var(--ease); }
@media (max-width: 820px) { .article-cat { min-height: 2.5rem; padding-inline: 1rem; } } /* fingertip-sized on touch screens */
.article-cat:hover { background: rgb(255 255 255 / 0.22); }
.article-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.375rem 0.625rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.72);
}

/* Contents list beside the text (sticky); above it on smaller screens */
.article-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 48rem);
  justify-content: center;
  align-items: start;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: clamp(2.75rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5rem);
}
.article-layout--no-toc { grid-template-columns: minmax(0, 48rem); }
.article-toc { position: sticky; top: calc(var(--header-h) + 1.75rem); }
.article-toc[hidden] { display: none; }
.article-toc-title {
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.article-toc-toggle { display: none; }
.article-toc ol { margin: 1rem 0 0; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.article-toc a {
  display: block;
  margin-left: -2px;
  padding: 0.45rem 0 0.45rem 1rem;
  border-left: 2px solid transparent;
  font-size: 0.84375rem;
  line-height: 1.4;
  color: var(--navy-500);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.25s var(--ease);
}
.article-toc a:hover { color: var(--navy-900); border-left-color: var(--orange-200); }
.article-toc a.is-active { font-weight: 600; color: var(--navy-900); border-left-color: var(--orange-500); }

/* Article text */
.flow > * + * { margin-top: 1.25rem; }
.article-content { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); }
.article-content h2 {
  font: 700 clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem)/1.3 var(--font-display);
  letter-spacing: -0.005em;
  color: #1a365d;
}
.article-content h3 {
  font: 600 1.125rem/1.4 var(--font-body);
  color: var(--navy-900);
}
.article-content > * + h2,
.article-content > * + .article-tables,
.article-content > * + .mentor-note { margin-top: 3.25rem; }
.article-content > * + h3 { margin-top: 2.25rem; }
.article-content > h2 + *,
.article-content > h3 + *,
.flow > h3 + * { margin-top: 0.75rem; }
.article-content strong { font-weight: 600; color: var(--navy-900); }
.article-content ul { margin-bottom: 0; padding: 0; list-style: none; }
.article-content ul > li { position: relative; padding-left: 1.5rem; }
.article-content ul > li + li { margin-top: 0.4rem; }
.article-content ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.3rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--orange-500);
}
.article-note { font-size: 0.9375rem; font-style: italic; color: var(--muted); }

/* Two boxed lists side by side (courses) */
.article-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.article-box { display: grid; grid-template-rows: auto 1fr; }
.article-box h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.article-box ul { margin: 0; padding: 1.25rem 1.5rem; border-radius: 0.875rem; background: var(--tint); font-size: 0.9375rem; line-height: 1.6; }

/* Text with a photo beside it */
.article-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem); gap: 2rem; align-items: start; }
.article-figure { overflow: hidden; margin: 0; border-radius: 1rem; background: #e9eef2; }
.article-figure img { width: 100%; height: auto; transition: transform 0.6s var(--ease-exit); }
@media (hover: hover) {
  .article-figure:hover img { transform: scale(1.04); transition: transform 0.9s var(--ease); }
}

/* Tables */
.article-table-wrap { overflow-x: auto; border: 1px solid #e3e7f5; border-radius: 0.875rem; background: var(--white); }
.article-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.45; }
.article-table th,
.article-table td { padding: 0.8rem 1rem; border-bottom: 1px solid #edf0f8; text-align: left; vertical-align: top; }
.article-table th + *, .article-table td + * { border-left: 1px solid #edf0f8; }
.article-table thead th { background: var(--tint); font-weight: 600; color: var(--navy-900); }
.article-table tbody th { font-weight: 500; color: var(--navy-900); }
.article-table tbody tr:last-child > * { border-bottom: 0; }
.article-table tbody tr { transition: background-color 0.2s var(--ease); }
.article-table tbody tr:hover { background: #fafbff; }
.article-table .is-total > * { font-weight: 600; color: var(--navy-900); background: #fbfbfe; }

/* Two tables side by side, headings level with each other (exam pattern) */
.article-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem 1.25rem; align-items: end; }
.article-tables > :nth-child(1) { grid-area: 1 / 1; }
.article-tables > :nth-child(2) { grid-area: 2 / 1; align-self: start; }
.article-tables > :nth-child(3) { grid-area: 1 / 2; }
.article-tables > :nth-child(4) { grid-area: 2 / 2; align-self: start; }

/* Boxed topics (syllabus, subject tips) */
.topic-boxes { display: grid; gap: 0.875rem; }
.topic-box {
  padding: 1.125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  background: var(--tint);
  transition: background-color var(--dur-exit) var(--ease-exit), border-color var(--dur-exit) var(--ease-exit),
              box-shadow var(--dur-exit) var(--ease-exit), transform var(--dur-exit) var(--ease-exit);
}
.topic-box h3 { font-size: 1rem; }
.topic-box p { margin-top: 0.375rem; font-size: 0.9375rem; line-height: 1.65; }
@media (hover: hover) {
  .topic-box:hover {
    transform: translateY(-2px);
    border-color: var(--orange-200);
    background: var(--white);
    box-shadow: var(--shadow-panel-hover);
    transition: background-color var(--dur-enter) var(--ease), border-color var(--dur-enter) var(--ease),
                box-shadow var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease);
  }
}

/* Three rounds as a small timeline */
.round-steps { margin-bottom: 0; padding: 0; list-style: none; }
.round-steps > li { position: relative; padding: 0 0 1.75rem 2.25rem; }
.round-steps > li:last-child { padding-bottom: 0; }
.round-steps > li::before { /* dot */
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--orange-500);
  border-radius: 50%;
  background: var(--white);
}
.round-steps > li::after { /* line to the next round */
  content: "";
  position: absolute;
  top: 1.55rem;
  bottom: 0.25rem;
  left: calc(0.5rem - 1px);
  width: 2px;
  background: #f9d3c1;
}
.round-steps > li:last-child::after { display: none; }
.round-steps p { margin-top: 0.5rem; }

/* Tick list (exam-day tips) */
.article-content .check-list > li { padding-left: 1.85rem; }
.article-content .check-list > li::before {
  top: 0.32em;
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0;
  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='%23e5f3e5'/%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%233e9b41' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Easy -> moderate -> difficult -> revision" as connected steps */
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 0; margin-bottom: 0; padding: 0; list-style: none; }
.flow-steps li { display: flex; align-items: center; }
.flow-steps span {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--tint);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy-900);
}
.flow-steps li:not(:last-child)::after { content: "\2192"; content: "\2192" / ""; margin: 0 0.5rem; font-weight: 700; color: var(--orange-500); }

/* Mentor's note */
.mentor-note {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 4.75rem;
  border: 1px solid #fde0d2;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff3ec, #fffaf7);
}
.mentor-icon {
  position: absolute;
  top: 1.625rem;
  left: 1.5rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-chip-warm);
}
.mentor-icon svg { width: 1.125rem; height: 1.125rem; }
.article-content .mentor-note h2 { font-size: 1.25rem; }
.mentor-note p { margin-top: 0.625rem; color: #4a4d57; }
.article-signoff { font: 600 1.0625rem/1.4 var(--font-display); color: var(--navy-900); }

/* End of article: back link + previous / next */
.article-end { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-block: -0.75rem; /* 40px tall tap area, same layout */
  padding-block: 0.75rem;
  font: 600 0.875rem/1.2 var(--font-body);
  color: var(--navy-700);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.article-back svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.article-back:hover { color: var(--orange-ink); }
.article-back:hover svg { transform: translateX(-4px); }
.article-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.article-pager[hidden] { display: none; }
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid #e3e7f5;
  border-radius: 0.875rem;
  text-decoration: none;
  transition: border-color var(--dur-exit) var(--ease-exit), box-shadow var(--dur-exit) var(--ease-exit),
              transform var(--dur-exit) var(--ease-exit);
}
.pager-link--next { grid-column: 2; align-items: flex-end; text-align: right; }
.pager-dir {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.pager-dir svg { width: 0.9rem; height: 0.9rem; transition: transform 0.3s var(--ease); }
.pager-title { font: 600 0.9375rem/1.4 var(--font-display); color: var(--navy-900); }
@media (hover: hover) {
  .pager-link:hover {
    transform: translateY(-2px);
    border-color: var(--orange-200);
    box-shadow: var(--shadow-panel-hover);
    transition: border-color var(--dur-enter) var(--ease), box-shadow var(--dur-enter) var(--ease),
                transform var(--dur-enter) var(--ease);
  }
  .pager-link--prev:hover svg { transform: translateX(-3px); }
  .pager-link--next:hover svg { transform: translateX(3px); }
}

/* Other blogs */
.article-related {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4.5rem, 9vw, 6.5rem);
  border-top: 1px solid var(--rule);
  background: #f9faff;
}
.article-related[hidden] { display: none; }
.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.related-list > li { display: flex; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  /* Articles shown after a filter / search / "Load more" rise in one after another */
  .story-enter { animation: story-in 0.55s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
  @keyframes story-in {
    from { opacity: 0; transform: translateY(14px); }
  }
  /* As an article scrolls into view its picture settles from a slight zoom */
  .reveal-in .story-media img,
  .reveal-in .featured-media img { animation: blog-photo-settle 1.1s var(--ease) backwards; animation-delay: var(--reveal-delay, 0ms); }
  @keyframes blog-photo-settle {
    from { transform: scale(1.1); }
  }
  .reveal-in .mentor-icon { animation: icon-pop 0.55s var(--ease) both; animation-delay: calc(var(--reveal-delay, 0ms) + 220ms); }
  .reveal-in.round-steps > li::before,
  .round-steps > li.reveal-in::before { animation: icon-pop 0.5s var(--ease) both; animation-delay: calc(var(--reveal-delay, 0ms) + 150ms); }
}

/* Responsive */
@media (max-width: 1100px) {
  .blog-list, .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 48rem); gap: 2rem; }
  .article-toc { position: static; border: 1px solid #e3e7f5; border-radius: 0.875rem; background: #f9faff; }
  .article-toc-title { display: none; }
  .article-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 0;
    background: none;
    font: 600 0.9375rem/1.2 var(--font-body);
    color: var(--navy-900);
    cursor: pointer;
  }
  .article-toc-toggle svg { width: 1.125rem; height: 1.125rem; transition: transform 0.3s var(--ease); }
  .article-toc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .article-toc ol { display: none; margin: 0 1.25rem 1.25rem; }
  .article-toc.is-open ol { display: block; }
}
@media (max-width: 900px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .blog-list, .related-list { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .story--wide { display: flex; }
  .story--wide .story-body { padding-top: 1.125rem; }
  /* filters get the full width (a little more compact); the article count drops below them */
  .blog-toolbar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .blog-chip { min-height: 2.5rem; gap: 0.375rem; padding: 0.3rem 0.4rem 0.3rem 0.8rem; font-size: 0.8125rem; }
  .article-content { font-size: 1rem; line-height: 1.7; }
  .article-boxes,
  .article-tables { grid-template-columns: minmax(0, 1fr); }
  .article-tables > * { grid-area: auto !important; }
  .article-tables > :nth-child(3) { margin-top: 1.25rem; }
  .article-split { grid-template-columns: minmax(0, 1fr); }
  .article-figure { max-width: 26rem; }
  .article-pager { grid-template-columns: minmax(0, 1fr); }
  .pager-link--next { grid-column: auto; }
  .mentor-note { padding: 1.5rem 1.25rem; }
  .mentor-icon { position: static; margin-bottom: 0.875rem; }
}

/* 11e. Contact page ---------------------------------------------------------- */
.page-hero-bg--contact img { object-position: 62% 35%; } /* keeps the student on the phone in frame */
.page-hero--contact .page-hero-lead { max-width: 45rem; } /* two lines, as in Figma */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
}

/* Form panel */
.contact-panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid #e3e7f5;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(33 53 90 / 0.05), 0 34px 64px -42px rgb(0 25 77 / 0.45);
}
.contact-title {
  font: 700 clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.contact-lead { margin-top: 0.625rem; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.375rem 1.25rem;
  margin-top: 2rem;
}
.field { display: grid; align-content: start; gap: 0.5rem; }
.field--full,
.contact-submit,
.form-status { grid-column: 1 / -1; }
.field label,
.field .field-label {
  font: 600 0.875rem/1.3 var(--font-body);
  color: var(--navy-800);
  transition: color 0.2s var(--ease);
}
/* the label answers its field: orange while you type, red if something needs fixing */
.field:focus-within label { color: var(--orange-ink); }
.field.is-invalid label { color: #c42d2d; }
/* * marks the fields that must be filled in (name, phone) */
.field .req { color: var(--orange-ink); }
/* the one course, shown as fixed text (not editable) */
.field-static {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid #e6eaf6;
  border-radius: 0.75rem;
  background: #eef2fb;
  font: 500 1rem/1.4 var(--font-body);
  color: var(--navy-900);
}
.field-static svg { flex: none; width: 1.25rem; height: 1.25rem; fill: var(--green-500); }

.field input,
.field select,
.field textarea,
.field-control.field-phone {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid #dde3f4;
  border-radius: 0.75rem;
  background: #f8f9fd;
  font: 400 1rem/1.4 var(--font-body); /* 16px: phones don't zoom in on tap */
  color: var(--navy-900);
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s var(--ease);
}
.field input,
.field select { padding: 0 1rem; }
.field textarea { min-height: 8.5rem; padding: 0.875rem 1rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8a8f9c; }
.field input:hover,
.field select:hover,
.field textarea:hover,
.field-phone:hover { border-color: #c6cfea; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.field-phone:focus-within {
  outline: none;
  border-color: var(--orange-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgb(245 101 36 / 0.14);
}
.field.is-invalid input,
.field.is-invalid .field-phone { border-color: #d64545; background: #fffafa; }
.field.is-invalid input:focus,
.field.is-invalid .field-phone:focus-within { box-shadow: 0 0 0 4px rgb(214 69 69 / 0.14); }

/* +91 sits inside the phone box */
.field-phone { display: flex; align-items: stretch; overflow: hidden; }
.field-phone .field-prefix {
  display: grid;
  place-items: center;
  padding: 0 0.875rem;
  border-right: 1px solid #dde3f4;
  font-weight: 600;
  color: var(--navy-700);
}
.field-phone input { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }

.field-select { position: relative; }
.field-select select { -webkit-appearance: none; appearance: none; padding-right: 2.75rem; cursor: pointer; }
.field-select svg {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.5625rem;
  color: var(--navy-500);
  pointer-events: none;
}

.field-error { min-height: 0; font-size: 0.8125rem; font-weight: 500; color: #c42d2d; }
.field-error:empty { display: none; }

.contact-submit {
  position: relative;
  min-height: 3.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.contact-submit:disabled { cursor: progress; }
.contact-spinner {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
}
.contact-submit.is-loading .contact-spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: 0.9375rem; font-weight: 500; color: #c42d2d; }
.form-status:empty { display: none; }

/* After the form: confirmation / WhatsApp hand-off */
.contact-done { display: grid; justify-items: start; gap: 0.25rem; outline: none; }
.contact-done[hidden] { display: none; }
.contact-done-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #e6f4e6;
  color: #3e9b41;
}
.contact-done-icon svg { width: 1.75rem; height: 1.75rem; }
.contact-done-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.contact-done-actions .btn { min-height: 3.125rem; }
.contact-done-wa { border-color: #25d366; background: #25d366; color: var(--white); } /* the main next step */
.contact-done-wa:hover { border-color: #1fb457; background: #1fb457; }
.contact-edit {
  margin-top: 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  font: 600 0.9375rem var(--font-body);
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.contact-edit:hover { color: var(--orange-ink); }

/* WhatsApp button (white with green, fills green on hover) */
.btn-wa {
  border: 1.5px solid #25d366;
  background: var(--white);
  color: #0f7a41;
}
.btn-wa svg { width: 1.25rem; height: 1.25rem; }
.btn-wa:hover { background: #0f7a41; color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgb(37 211 102 / 0.8); }
.btn-wa:active { transform: scale(0.98); transition-duration: 0.08s; }

/* Call / WhatsApp card */
.contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.25rem; }
.contact-aside-lead { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 30px 60px -36px rgb(0 25 77 / 0.7);
}
.contact-card-helm { /* faint ship's wheel in the corner */
  position: absolute;
  z-index: -1;
  right: -4.5rem;
  bottom: -4.5rem;
  width: 15rem;
  color: rgb(255 255 255 / 0.06);
  pointer-events: none;
  transition: transform 1.2s var(--ease);
}
.contact-card:hover .contact-card-helm { transform: rotate(30deg); }
.contact-card-label { display: flex; align-items: center; gap: 0.75rem; font: 600 1.125rem/1.3 var(--font-display); }
.contact-card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--orange-cta); /* same orange as the Call now / Send Enquiry buttons beside it (user, 2026-11-18) */
  box-shadow: var(--shadow-chip-warm);
}
.contact-card-icon svg { width: 1.125rem; height: 1.125rem; }
.contact-card-number {
  display: inline-block;
  margin-top: 1rem;
  padding-block: 0.3125rem;
  font: 700 clamp(1.75rem, 1.3rem + 1.3vw, 2.375rem)/1.1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.contact-card-number:hover { color: var(--orange-200); }
.contact-card-hours { margin-top: 0.625rem; font-size: 0.9375rem; color: rgb(255 255 255 / 0.7); }
.contact-card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.contact-card-actions .btn { flex: 1 1 9rem; min-height: 3rem; }
.contact-card-actions .btn svg { width: 1.125rem; height: 1.125rem; }
.contact-card .btn-wa { border-color: transparent; }

.contact-place {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e3e7f5;
  border-radius: 1.25rem;
  background: var(--white);
}
.contact-place-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--surface-lavender);
  color: var(--navy-800);
}
.contact-place-icon svg { width: 1.25rem; height: 1.25rem; }
.contact-place-label { font-size: 0.8125rem; color: var(--slate-600); }
.contact-place-text { font: 600 1.0625rem/1.3 var(--font-display); color: var(--navy-800); }
/* Email: the whole block is the link (a full-size tap target) */
.contact-place--link { color: inherit; text-decoration: none; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.contact-place-body { min-width: 0; }
.contact-place--link .contact-place-label,
.contact-place--link .contact-place-text { display: block; }
.contact-place--link .contact-place-text { overflow-wrap: anywhere; transition: color 0.25s var(--ease); }
.contact-place--link .contact-place-icon { transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.contact-place--link:hover,
.contact-place--link:focus-visible { border-color: var(--orange-500); box-shadow: 0 10px 24px -14px rgb(0 25 77 / 0.35); }
.contact-place--link:hover .contact-place-text,
.contact-place--link:focus-visible .contact-place-text { color: var(--orange-500); }
.contact-place--link:hover .contact-place-icon,
.contact-place--link:focus-visible .contact-place-icon { background: var(--orange-500); color: var(--white); }
.contact-place--link:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .contact-done.is-shown { animation: reveal-up 0.6s var(--ease) both; }
  .contact-done.is-shown .contact-done-icon { animation: icon-pop 0.55s var(--ease) 0.15s both; }
  .contact-form.has-errors .contact-submit { animation: nudge 0.4s var(--ease); }
  @keyframes nudge {
    25% { transform: translateX(-5px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
  }
}

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); max-width: 42rem; margin-inline: auto; }
  .contact-aside { position: static; }
}
@media (max-width: 600px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { border-radius: 1.25rem; }
}

/* 11f. Plans page ------------------------------------------------------------- */
/* Deep-navy hero over the ship's bow; the one plan shown as a boarding pass resting on the navy
   (so its notches and outline show top and bottom); details on the pass, the fee on the stub;
   benefits beside a study photo; a compass rose behind "Clear Direction". */
.plans-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(30rem, 46vw, 40rem);
  padding-block: 3rem clamp(8.5rem, 14vw, 11rem); /* the pass rises over this navy edge */
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}
.plans-hero-bg { position: absolute; inset: 0; z-index: -1; }
.plans-hero-bg picture,
.plans-hero-bg img { width: 100%; height: 100%; }
.plans-hero-bg img { object-fit: cover; object-position: 50% 30%; }
.plans-hero-inner { display: grid; justify-items: center; }
.plans-hero-title {
  max-width: 60rem;
  margin-top: 1.125rem;
  font: 700 clamp(2.25rem, 0.9rem + 2.7vw, 3.5rem)/1.12 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.plans-hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.plans-hero-title .reveal-line { display: block; }
.plans-hero-title em { font-style: normal; color: var(--orange-500); }
.plans-hero-lead { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; color: rgb(255 255 255 / 0.84); }

/* The boarding pass */
.plan {
  --overlap: clamp(6.5rem, 11vw, 8.5rem);
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--overlap));
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
  /* the pass rests on navy all the way down, so its outline and both notches always show */
  background: linear-gradient(to bottom, transparent 0 var(--overlap), var(--navy-900) var(--overlap));
}
.ticket-wrap {
  max-width: 64rem;
  margin-inline: auto;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.35));
  transition: transform var(--dur-exit) var(--ease-exit), filter var(--dur-exit) var(--ease-exit);
}
.ticket {
  --seam: 62%;      /* where the pass tears off: matches the 62 / 38 columns */
  --notch: 1.125rem;
  display: grid;
  grid-template-columns: 62fr 38fr;
  overflow: hidden;
  border-radius: 1.75rem;
  /* two half-height layers, each with a round notch on the tear line (top and bottom) */
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--seam) 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--seam) 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at var(--seam) 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--seam) 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
}
.ticket-main {
  padding: clamp(2rem, 4vw, 3.25rem);
  border-right: 2px dashed #d3daef; /* the perforation */
  background: var(--white);
}
.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--orange-cta);
  box-shadow: var(--shadow-btn);
  font: 600 0.8125rem/1 var(--font-body);
  letter-spacing: 0.02em;
  color: var(--white);
}
.ticket-badge svg,
.ticket-duration svg,
.get-tag svg { width: 1rem; height: 1rem; flex: none; fill: currentColor; }
.ticket-title {
  margin-top: 1.25rem;
  font: 700 clamp(1.75rem, 1.2rem + 1.4vw, 2.375rem)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-wrap: balance;
}
.ticket-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-lavender);
  font: 600 0.875rem/1.2 var(--font-body);
  color: var(--navy-800);
}
.ticket-duration svg { fill: var(--orange-500); }
.ticket-desc { max-width: 34rem; margin-top: 1rem; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); }
.ticket-subhead {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecf7;
  font: 600 0.9375rem/1.3 var(--font-body);
  color: var(--navy-700);
}
.ticket-list { display: grid; gap: 0.875rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.ticket-list li {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  font: 500 1rem/1.5 var(--font-body);
  color: var(--navy-800);
}
.ticket-check { width: 1.375rem; height: 1.375rem; margin-top: 0.05rem; fill: var(--green-500); } /* green ticks (user, 2026-11-18), same green as the other ticks */

.ticket-stub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 2.75rem);
  background: linear-gradient(160deg, #23478c 0%, #11306f 45%, #0a2560 100%); /* a brighter navy than the hero, so the pass stands clear of it */
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  color: var(--white);
}
.ticket-helm { /* faint ship's wheel; turns when you point at the pass */
  position: absolute;
  z-index: -1;
  top: -5rem;
  right: -5rem;
  width: 16rem;
  color: rgb(255 255 255 / 0.05);
  pointer-events: none;
  transition: transform 1.2s var(--ease);
}
.ticket-fee-label { font: 500 0.9375rem/1.3 var(--font-body); color: rgb(255 255 255 / 0.7); }
.ticket-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.625rem; margin-top: 0.5rem; }
.ticket-amount {
  display: inline-block;
  font: 700 clamp(2.75rem, 1.8rem + 2.6vw, 4rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; /* digits keep their width while counting up */
  color: var(--white);
}
.ticket-period { font: 500 1rem/1.3 var(--font-body); color: rgb(255 255 255 / 0.75); }
.ticket-note { margin-top: 1rem; font-size: 0.9375rem; line-height: 1.5; color: rgb(255 255 255 / 0.85); }
.ticket-cta { width: 100%; min-height: 3.5rem; margin-top: 2rem; font-size: 1.0625rem; }
.ticket-help { margin-top: 0.875rem; font-size: 0.875rem; text-align: center; text-wrap: balance; color: rgb(255 255 255 / 0.62); }

@media (hover: hover) {
  .ticket-wrap:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.45));
    transition: transform var(--dur-enter) var(--ease), filter var(--dur-enter) var(--ease);
  }
  .ticket-wrap:hover .ticket-helm { transform: rotate(45deg); }
}

/* What you get: photo with its tag, six benefits on lined rows */
.get-layout {
  display: grid;
  grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
}
.get-visual { position: relative; margin: 0; }
.get-visual picture { display: block; overflow: hidden; border-radius: 1.5rem; }
.get-visual img { width: 100%; height: auto; }
.get-tag {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 18px 36px -18px rgb(0 25 77 / 0.5);
  font: 600 0.9375rem/1.2 var(--font-display);
  color: var(--navy-900);
}
.get-tag svg { width: 1.25rem; height: 1.25rem; fill: var(--orange-500); }
.get-content .section-head { margin-bottom: 1.75rem; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefit {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1.375rem 0;
  border-top: 1px solid #e9ecf7;
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--orange-100);
  color: var(--orange-500);
  transition: background-color var(--dur-exit) var(--ease-exit), color var(--dur-exit) var(--ease-exit),
              transform var(--dur-exit) var(--ease-exit), box-shadow var(--dur-exit) var(--ease-exit);
}
.benefit-icon svg { width: 1.375rem; height: 1.375rem; fill: currentColor; }
.benefit-copy { transition: transform var(--dur-exit) var(--ease-exit); }
.benefit h3 { font: 600 1.0625rem/1.35 var(--font-display); color: var(--navy-800); }
.benefit p { margin-top: 0.375rem; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }

/* Clear direction: compass rose behind three principles on one panel (soft tint; the navy footer follows) */
.direction { position: relative; isolation: isolate; overflow: hidden; background: var(--surface-lavender); }
.compass-rose {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(48rem, 130vw);
  margin: calc(min(48rem, 130vw) / -2) 0 0 calc(min(48rem, 130vw) / -2); /* centred without transform (data-spin rotates it) */
  color: #dfe4f6;
  pointer-events: none;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3e7f5;
  border-radius: 1.5rem;
  background: #e3e7f5;
  list-style: none;
  box-shadow: 0 24px 48px -32px rgb(0 25 77 / 0.35);
}
.principle {
  padding: 2.25rem 2.125rem 2.5rem;
  background: var(--white);
  transition: background-color var(--dur-exit) var(--ease-exit);
}
.principle-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-chip-warm);
  transition: transform var(--dur-exit) var(--ease-exit);
}
.principle-icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.principle h3 { margin-top: 1.5rem; font: 600 1.25rem/1.3 var(--font-display); color: var(--navy-800); }
.principle p { margin-top: 0.625rem; font-size: 0.96875rem; line-height: 1.65; color: var(--ink-soft); }

@media (hover: hover) {
  .benefit:hover .benefit-icon {
    background: var(--orange-500);
    color: var(--white);
    box-shadow: var(--shadow-chip-warm);
    transform: translateY(-2px);
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
                transform var(--dur-enter) var(--ease), box-shadow var(--dur-enter) var(--ease);
  }
  .benefit:hover .benefit-copy { transform: translateX(4px); transition: transform var(--dur-enter) var(--ease); }
  .principle:hover { background: #fbfbff; transition: background-color var(--dur-enter) var(--ease); }
  .principle:hover .principle-icon { transform: translateY(-4px) rotate(-6deg); transition: transform var(--dur-enter) var(--ease); }
}


@media (prefers-reduced-motion: no-preference) {
  .plans-hero-bg img { animation: hero-settle 2.6s var(--ease) both; }
}

@media (max-width: 960px) {
  .get-layout { grid-template-columns: minmax(0, 1fr); }
  .get-visual { width: min(100%, 30rem); justify-self: center; }
}
@media (max-width: 860px) {
  /* the pass stacks: details on top, the fee stub below a horizontal tear line */
  .ticket { grid-template-columns: minmax(0, 1fr); -webkit-mask: none; mask: none; border-radius: 1.5rem; }
  .ticket-main { border-right: 0; border-bottom: 2px dashed #d3daef; }
  .ticket-cta { max-width: 26rem; }
}
/* three across down to 700px, then stacked (must come after the base .principle-grid rule) */
@media (max-width: 700px) {
  .principle-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .principle { padding: 1.75rem 1.5rem 2rem; }
}

/* 12. Footer --------------------------------------------------------------- */
site-footer { display: block; }

.site-footer {
  background: var(--navy-900);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.75rem;
  line-height: 1.4;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10.75rem, auto);
  gap: 2.5rem;
  padding-block: 2.5rem 3.25rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font: 500 1rem/1.2 var(--font-display);
}
.footer-brand img { width: 1.375rem; height: 1.375rem; transition: transform 0.6s var(--ease); }
.footer-brand:hover img { transform: rotate(-12deg) scale(1.08); }

.footer-tagline { max-width: 16.75rem; margin-top: 0.625rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-contact a {
  position: relative;
  display: inline-block;
  padding-block: 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
/* Same draw-in underline as the main navigation */
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--white); }
.footer-links a:hover::after,
.footer-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.footer-heading {
  font: 600 0.75rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  color: var(--white);
}
.footer-contact ul {
  display: grid;
  gap: 0.25rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.footer-contact li > a,
.footer-contact li > span { padding-block: 0.125rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.5rem; }
.footer-contact svg { flex: none; width: 0.875rem; height: 0.875rem; transition: transform 0.3s var(--ease), color 0.25s var(--ease); }
.footer-contact a:hover,
.footer-contact a:focus-visible { color: var(--orange-500); }
.footer-contact li:hover svg { color: var(--orange-500); transform: rotate(-12deg); }

.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.3); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.125rem;
  padding-block: 0.25rem;
}
.footer-copy { font-weight: 600; letter-spacing: 0.02em; }
/* Tablets and phones: every footer link gets a full fingertip-sized (40px) tap area */
@media (max-width: 820px) {
  .footer-links { gap: 0 0.5rem; margin-left: -0.5rem; } /* side padding below, row still lines up */
  .footer-links a { padding-inline: 0.5rem; }
  .footer-links a,
  .footer-contact li > a,
  .footer-brand { display: inline-flex; align-items: center; min-height: 2.5rem; }
  .footer-links a::after { right: 0.5rem; bottom: 0.45rem; left: 0.5rem; }
  .footer-contact ul { gap: 0; }
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0 0 0.5rem;
  border: 0;
  background: none;
  color: inherit;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.back-to-top-icon {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.back-to-top-icon svg { width: 0.875rem; height: 0.875rem; transition: transform 0.3s var(--ease); }
.back-to-top:hover,
.back-to-top:focus-visible { color: var(--white); }
.back-to-top:hover .back-to-top-icon,
.back-to-top:focus-visible .back-to-top-icon {
  background: var(--orange-500);
  border-color: var(--orange-500);
  transform: translateY(-2px);
}
.back-to-top:hover .back-to-top-icon svg { transform: translateY(-2px); }
.back-to-top:active .back-to-top-icon { transform: scale(0.94); }

/* Floating WhatsApp chat button (added by components.js on every page) */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: transform 0.45s var(--ease);
}
.wa-float.is-lifted { transform: translateY(-4.25rem); } /* clears the footer's bottom bar */
.wa-float-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366; /* WhatsApp green */
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.35), 0 4px 10px -4px rgb(37 211 102 / 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float-icon svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.wa-float-label {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font: 600 0.8125rem/1 var(--font-body);
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.35);
  opacity: 0;
  transform: translateX(0.5rem);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}
@media (hover: hover) {
  .wa-float:hover .wa-float-label { opacity: 1; transform: none; }
  .wa-float:hover .wa-float-icon { transform: scale(1.07); box-shadow: 0 14px 28px -8px rgb(0 0 0 / 0.35), 0 6px 16px -4px rgb(37 211 102 / 0.6); }
}
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float-label { opacity: 1; transform: none; }
.wa-float:focus-visible .wa-float-icon { outline: 2px solid var(--orange-500); outline-offset: 3px; }
.wa-float:active .wa-float-icon { transform: scale(0.94); }

@media (max-width: 600px) {
  .wa-float-icon { width: 3.25rem; height: 3.25rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.25rem 2.5rem; }
  .footer-bottom-inner { padding-block: 0.5rem; }
  .footer-copy { font-size: 0.75rem; }
}

/* 13. Motion --------------------------------------------------------------- */
/* Scroll reveal. motion.js adds .reveal-pending only to [data-reveal] elements that start
   below the fold, so content is never hidden without JavaScript. When they scroll into view
   it swaps in .reveal-in; items arriving together are staggered via --reveal-delay. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(1.75rem); }
  .reveal-pending[data-reveal="left"] { transform: translateX(-2.5rem); }
  .reveal-pending[data-reveal="right"] { transform: translateX(2.5rem); }
  .reveal-pending[data-reveal="zoom"] { transform: scale(0.92); }
  /* Coming back into view from above (scrolling up): settle downward instead of rising */
  .reveal-pending[data-reveal=""][data-reveal-from="top"] { transform: translateY(-1.75rem); }

  /* Image unveil: the frame opens upward (downward when scrolling up) while the picture
     settles from a slight zoom. While waiting it is hidden with opacity, NOT clipped: Chrome's
     visibility detection measures only the unclipped part, so a fully clipped image would be
     reported "on screen" too late (and would sit blank when approached from above). */
  .reveal-pending[data-reveal="mask"] { opacity: 0; transform: none; }
  .reveal-pending[data-reveal="mask"] picture,
  .reveal-pending[data-reveal="mask"] > img { transform: scale(1.12); }
  .reveal-in[data-reveal="mask"] {
    opacity: 1;
    transition: none;
    animation: unveil-up 1.1s var(--ease) var(--reveal-delay, 0ms) both;
  }
  .reveal-in[data-reveal="mask"][data-reveal-from="top"] { animation-name: unveil-down; }
  @keyframes unveil-up {
    from { clip-path: inset(100% 0 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
  @keyframes unveil-down {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
  .reveal-in[data-reveal="mask"] picture,
  .reveal-in[data-reveal="mask"] > img {
    transition: transform 1.3s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  /* Phones are one column, so side-slides become the same gentle rise as everything else */
  @media (max-width: 600px) {
    .reveal-pending[data-reveal="left"],
    .reveal-pending[data-reveal="right"] { transform: translateY(1.75rem); }
    .reveal-pending[data-reveal="left"][data-reveal-from="top"],
    .reveal-pending[data-reveal="right"][data-reveal-from="top"] { transform: translateY(-1.75rem); }
  }
  .reveal-in {
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  /* Icons pop in just after their card / row lands */
  .reveal-in .feature-icon,
  .reveal-in .value-icon,
  .reveal-in .trust-icon,
  .reveal-in .who-icon,
  .reveal-in .journey-icon,
  .reveal-in .course-icon,
  .reveal-in .why-check { animation: icon-pop 0.55s var(--ease) both; animation-delay: calc(var(--reveal-delay, 0ms) + 220ms); }
  @keyframes icon-pop {
    from { opacity: 0; transform: scale(0.7); }
  }

  /* FAQ decoration: the ship rides gentle swell while its waves roll past
     (the ship wheel turns with the scroll, set by motion.js via data-spin) */
  .faq-ship .ship-body { transform-box: fill-box; transform-origin: 50% 100%; animation: ship-bob 6s ease-in-out infinite; }
  .faq-ship .ship-waves { animation: waves-roll 5s linear infinite; }
  @keyframes ship-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-1.5deg); }
  }
  @keyframes waves-roll {
    to { transform: translateX(-40px); }
  }

  /* CTA: the cadet rises out of the banner just after it lands; a soft light drifts across */
  .reveal-in .cta-visual img { animation: cadet-rise 0.9s var(--ease) both; animation-delay: calc(var(--reveal-delay, 0ms) + 250ms); }
  @keyframes cadet-rise {
    from { transform: translateY(40%); }
  }
  .cta-banner::before { animation: cta-glow 14s ease-in-out infinite alternate; }

  /* WhatsApp button pops in after the page settles, then pulses three times and rests.
     ("backwards" fill so it hands transform back for the footer lift once done.) */
  .wa-float { animation: wa-in 0.6s var(--ease) 1.2s backwards; }
  @keyframes wa-in {
    from { opacity: 0; transform: translateY(1rem) scale(0.8); }
  }
  .wa-float-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: wa-pulse 2.4s ease-out 2s 3;
  }
  @keyframes wa-pulse {
    from { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.55); }
    to   { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); }
  }
  @keyframes cta-glow {
    from { transform: translateX(-12%); }
    to   { transform: translateX(28%); }
  }

  /* Page transitions between pages (Chrome, Edge, Safari 18.2+; others just navigate). */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-out 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: page-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes page-out { to { opacity: 0; } }
  @keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
}

/* Safety net: anyone who asks their device for less motion gets instant state changes. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Interim page stub (remove once each page is designed) */
.page-stub { padding-block: 6rem; text-align: center; }
.page-stub h1 { font-family: var(--font-display); font-size: 2rem; }
.page-stub p { margin-top: 0.75rem; color: var(--color-text-muted); }

/* 14. Touch screens & small screens ---------------------------------------------------
   Phones are where most visitors are, and they have no hover, so the hover moments get a
   touch version (touch.js adds .is-spot to the item crossing the middle of the screen),
   tappable things answer with a gentle press, and the long features list becomes a swipe
   carousel on phones. */

/* Compass rings stay close around their photo on smaller screens (no crowding the table or
   text above), with a little more breathing room between photo and content */
@media (max-width: 960px) {
  .photo-halo::before { width: 116%; }
  .photo-halo::after { width: 100%; }
  .who-layout,
  .glance-layout,
  .trust-layout { row-gap: 3.5rem; }
}

/* Swipe rows (phones; [data-swipe]): cards snap into place, the next one peeks in, dots below
   show where you are (touch.js). Home "What Sets Us Apart", Plans "What You Get in 6 Months". */
.swipe-dots { display: none; }
@media (max-width: 600px) {
  [data-swipe] {
    position: relative; /* card positions for the dots (touch.js) */
    display: flex;
    gap: 0.75rem;
    margin-inline: calc(-1 * var(--gutter)); /* runs to the screen edges */
    padding: 0.25rem var(--gutter) 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > * { flex: 0 0 84%; scroll-snap-align: center; }
  .feature-grid[data-swipe] { border: 0; border-radius: 0; background: transparent; }
  .feature-grid[data-swipe] .feature-card { border: 1px solid #213a70; border-radius: 1.25rem; }
  .benefit-grid[data-swipe] .benefit {
    align-content: start;
    padding: 1.5rem 1.25rem;
    border: 1px solid #e3e7f5;
    border-radius: 1.25rem;
    background: var(--white);
    box-shadow: 0 14px 30px -22px rgb(0 25 77 / 0.4);
  }
  .swipe-dots { display: flex; justify-content: center; margin-top: 0.25rem; }
  .swipe-dot {
    display: grid;
    place-items: center;
    width: 2.5rem;  /* full fingertip-sized tap area around a small dot */
    height: 2.5rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .swipe-dot::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgb(0 25 77 / 0.2);
    transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
  }
  .dark-band .swipe-dot::before { background: rgb(255 255 255 / 0.3); }
  .swipe-dot[aria-current="true"]::before { width: 1.5rem; background: var(--orange-500); }
}

/* Plans on phones: the fee and Enquire Now come first on the pass, then the details */
@media (max-width: 860px) {
  .ticket-stub { order: -1; }
  .ticket-main { border-bottom: 0; border-top: 2px dashed #d3daef; }
}

/* Scroll spotlight (touch screens; touch.js): each item's hover look while it is mid-screen */
@media (min-width: 601px) { /* (on phones the features are a carousel instead) */
  .feature-card.is-spot::before { transform: scaleY(1); transition: transform 0.5s var(--ease); }
  .feature-card.is-spot > * { transform: translateY(-4px); }
  .feature-card.is-spot h3,
  .feature-card.is-spot p { color: var(--white); }
  .feature-card.is-spot .feature-icon { border-color: transparent; background: var(--white); color: var(--orange-500); box-shadow: var(--shadow-chip-warm); }
}
.value-card.is-spot::before,
.course-card.is-spot::before { transform: scaleY(1); transition: transform 0.5s var(--ease); }
.value-card.is-spot > * { transform: translateY(-4px); }
.course-card.is-spot > h3,
.course-card.is-spot > p { transform: translateX(6px); }
.value-card.is-spot h3,
.value-card.is-spot p,
.course-card.is-spot h3,
.course-card.is-spot p { color: var(--white); transition: transform var(--dur-enter) var(--ease), color 0.35s var(--ease) 0.08s; }
.value-card.is-spot .value-icon,
.course-card.is-spot .course-icon { border-color: transparent; background: var(--white); color: var(--orange-500); box-shadow: var(--shadow-chip-warm); }
.trust-item.is-spot .trust-icon,
.who-item.is-spot .who-icon,
.benefit.is-spot .benefit-icon {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-chip-warm);
  transform: translateY(-2px);
}
.trust-item.is-spot .trust-copy,
.who-item.is-spot .who-copy,
.benefit.is-spot .benefit-copy { transform: translateX(4px); }
.trust-item.is-spot::before,
.who-item.is-spot::before { transform: scaleY(1); transition: transform var(--dur-enter) var(--ease); }
.journey-step.is-spot .journey-icon {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 0 0 5px rgb(245 101 36 / 0.16), var(--shadow-chip-warm);
  transform: translateY(-4px);
}
.why-card.is-spot { background: #f8f9ff; }
.why-card.is-spot::after { transform: scaleX(1); transition: transform var(--dur-enter) var(--ease); }
.why-card.is-spot .why-check { transform: translateY(-3px) scale(1.06); }
.glance-row.is-spot dt,
.glance-row.is-spot dd { background: var(--white); color: var(--navy-900); }
.glance-row.is-spot dt { color: var(--orange-500); }
.glance-row.is-spot::before { transform: scaleY(1); transition: transform var(--dur-enter) var(--ease); }
.topic-box.is-spot { transform: translateY(-2px); border-color: var(--orange-200); background: var(--white); box-shadow: var(--shadow-panel-hover); }
.story.is-spot .story-media img { transform: scale(1.05); transition: transform 0.9s var(--ease); }
.story.is-spot .story-title a { background-size: 100% 2px; }
.story.is-spot .story-more svg { transform: translateX(4px); }
.principle.is-spot { background: #fbfbff; }
.principle.is-spot .principle-icon { transform: translateY(-4px) rotate(-6deg); }

/* Tap feedback (touch screens): a gentle press instead of the browser's grey flash */
@media (hover: none) {
  .story-media,
  .featured-media,
  .pager-link,
  .faq-item summary,
  .blog-chip,
  .story-cat,
  .story-more,
  .contact-card-number,
  .ticket-wrap { -webkit-tap-highlight-color: transparent; }
  .story-media,
  .featured-media,
  .pager-link { transition: transform 0.2s var(--ease); }
  .story-media:active,
  .featured-media:active,
  .pager-link:active { transform: scale(0.98); }
  .faq-item summary:active { background: #f6f8ff; }
  .story-cat:active,
  .story-more:active,
  .contact-card-number:active { opacity: 0.7; }
}
