/* ==========================================================================
   KAGIPTAI UNISTUDY — Design System
   Built to the supplied desktop + mobile mockups: wide container, rectangular
   cards with modest radii, one accent blue, pills reserved for buttons only.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --navy-900: #061529;
  --navy-800: #0b1f3a;
  --ink: #0f172a;
  --ink-70: #475569;
  /* Darkened from #64748b, which measured 4.48:1 on --mist — just under AA. */
  --ink-55: #5b6b80;
  /* 2.56:1 on white. Decorative only: icons, carets, rules. Never text. */
  --ink-40: #94a3b8;

  --blue: #1552e8;
  --blue-700: #1042c4;
  --blue-300: #93b0f7;
  --blue-50: #eaf0fe;
  --blue-25: #f5f8ff;

  --gold: #f5b301;
  /* Dark-background accent text (eyebrows on --blue, footer tag). Nudged from
     #ffd86b, which measured 4.49:1 on --blue — just under AA for small bold
     text. This tone holds 4.6–4.7:1 on --blue and --navy-900 alike. */
  --gold-soft: #ffdd7a;
  /* Gold is a fill and a dark-background text colour. On white it measures
     1.85:1, so light-background gold text uses this darkened tone (4.6:1). */
  --gold-ink: #9a6d00;

  --paper: #ffffff;
  --mist: #f6f8fc;
  --line: #e6ebf3;
  --line-strong: #d3dcea;

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --fs-display: clamp(2.6rem, 4.4vw, 4.15rem);
  --fs-h1: clamp(2.1rem, 3.4vw, 3.2rem);
  --fs-h2: clamp(1.7rem, 2.5vw, 2.35rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.4rem);
  --fs-lead: clamp(1rem, 1.05vw, 1.1rem);

  /* Space */
  --gutter: clamp(1.15rem, 2.2vw, 2rem);
  --maxw: 1536px;
  --maxw-narrow: 860px;
  --section-y: clamp(3.2rem, 5.5vw, 5.5rem);
  --header-h: 82px;

  /* Shape — rectangles, not bubbles */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Depth — soft and tinted, never a glow */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --sh-md: 0 10px 28px -10px rgba(15, 23, 42, 0.13);
  --sh-lg: 0 24px 56px -20px rgba(15, 23, 42, 0.20);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* clip, not hidden: hidden makes the element a scroll container and breaks
     the sticky header. This is a backstop — nothing should overflow anyway. */
  overflow-x: clip;
}
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Grid and flex children default to min-width:auto, which lets wide content
   (a horizontal card rail, a wide table) push the whole document past the
   viewport instead of scrolling inside its own box. That is what makes a
   phone browser zoom out. Let every track shrink. */
.grid > *, .split > *, .value-grid > *, .team-grid > *, .discover__grid > *,
.office-grid > *, .statbar > *, .steps > *, .profile-grid > *,
.proofband__grid > *, .footer__grid > * { min-width: 0; }
/* Pinned rather than merely `overflow: hidden`, which iOS Safari ignores.
   main.js stores the scroll offset in `top` and restores it on close. */
body.no-scroll { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
/* Default icon size. Every one of the 25 icon rules in this file is a scoped
   override (.btn .ico, .tlink .ico, and so on) and until now there was no
   fallback beneath them. An inline SVG with a viewBox and no width takes the
   size of its container, so any component that forgot its rule, or any browser
   holding a stylesheet older than the markup, rendered a 20px icon at 1500px.
   This is the floor that stops that. */
.ico { width: 20px; height: 20px; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy-800);
  text-wrap: balance;
}
h3, h4 { line-height: 1.25; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

/* The one blue phrase in each heading, as in the mockups */
.accent { color: var(--blue); }

/* Generic media container used for destination photos and similar */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--mist);
}
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-frame .skyline { position: absolute; inset: 0; }

.lead { font-size: var(--fs-lead); line-height: 1.62; color: var(--ink-70); max-width: 54ch; }
.muted { color: var(--ink-55); }
.tiny { font-size: 0.78rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Centred heading with the short blue rule beneath it */
.rule-head { text-align: center; }
.rule-head::after {
  content: "";
  display: block;
  width: 44px; height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 2px;
  background: var(--blue);
}

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.2rem, 3.6vw, 3.4rem); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--navy-900); color: rgba(255, 255, 255, 0.76); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }
.stack { display: flex; flex-direction: column; }
.center { text-align: center; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 2.4vw, 2.4rem);
}
.section-head p { max-width: 48ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 0.95em 1.6em;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.12s var(--ease),
              box-shadow 0.22s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--blue-700); box-shadow: var(--sh-md); }

.btn--ghost {
  --btn-bg: #fff;
  --btn-fg: var(--navy-800);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { --btn-fg: var(--blue); border-color: var(--blue-300); background: var(--blue-25); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); box-shadow: var(--sh-sm); }
.btn--light:hover { --btn-fg: var(--blue); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* Darkened from #1fa855, which held only 3.1:1 for white button text —
   failing AA. This shade holds ~5.1:1. */
.btn--wa { --btn-bg: #177e40; --btn-fg: #fff; }
.btn--wa:hover { --btn-bg: #136734; }

.btn--sm { padding: 0.75em 1.2em; font-size: 0.86rem; }
.btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--sq { border-radius: var(--r-sm); }

.btn .ico { width: 1.25em; height: 1.25em; flex: none; }

/* Circular arrow badge inside the primary hero button, as in the mockup */
.btn__badge {
  display: grid;
  place-items: center;
  width: 1.85em; height: 1.85em;
  margin-left: 0.15em;
  margin-right: -0.55em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__badge { transform: translateX(3px); }
.btn__badge .ico { width: 0.95em; height: 0.95em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.tlink:hover { color: var(--blue-700); }
/* The visible rule stays on the text; the tap area is extended above and below
   it with transparent padding so the control clears 44px on touch. */
@media (max-width: 1079px) {
  .tlink {
    padding-block: 0.7rem;
    padding-bottom: calc(0.7rem + 1px);
    border-bottom: 0;
  }
  .tlink::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.62rem;
    border-bottom: 1.5px solid currentColor;
  }
  .tlink { position: relative; }
  .tlink--plain::after { border-bottom-color: transparent; }
}
.tlink .ico { width: 1em; height: 1em; }
.tlink--plain { border-bottom-color: transparent; }
.tlink--plain:hover { border-bottom-color: currentColor; }

/* ---------- 6. Flags ---------- */
.flag {
  width: 22px; height: auto;
  border-radius: 3px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.flag--round { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff, 0 1px 4px rgba(15,23,42,.18); }

/* ---------- 7. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.logo__mark { width: auto; height: 44px; flex: none; }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.035em; color: var(--navy-800); }
/* "Global Education Partners" is 25 characters against the 8 of the name it
   replaced, so the wide tracking that suited a short word had to come in — at
   0.26em this line was three times the width of the mark beside it and pushed
   the burger off a 390px screen. */
.logo__sub {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-top: 4px;
  line-height: 1.25;
}
@media (min-width: 420px) { .logo__sub { letter-spacing: 0.14em; } }
@media (min-width: 1080px) { .logo__sub { font-size: 0.66rem; letter-spacing: 0.16em; } }
/* The brand promise. It was set at 0.54rem (8.6px) in --gold, which measures
   1.85:1 on white — the one line the positioning brief insists must carry the
   brand was the least readable text on the site. */
.logo__tag {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 3px;
}
@media (min-width: 1080px) { .logo__tag { display: block; } }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__sub { color: rgba(255, 255, 255, 0.6); }

.nav { display: none; }
@media (min-width: 1080px) { .nav { display: flex; align-items: center; gap: 0.1rem; } }
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.55rem 0.8rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-70);
  border-radius: var(--r-sm);
  transition: color 0.2s;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--blue); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem;
  bottom: -0.7rem;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue);
}
.nav__caret { width: 12px; height: 12px; opacity: 0.55; transition: transform 0.25s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 250px;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav__item:hover .nav__panel, .nav__item:focus-within .nav__panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__panel a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-70);
  transition: background-color 0.18s, color 0.18s;
}
.nav__panel a:hover { background: var(--mist); color: var(--blue); }

.header__cta { display: none; align-items: center; gap: 0.9rem; }
@media (min-width: 1080px) { .header__cta { display: flex; } }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-800);
  transition: color 0.2s;
}
.header__phone:hover { color: var(--blue); }
.header__phone .ico { width: 17px; height: 17px; color: var(--blue); }

.burger {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  flex: none;
  transition: background-color 0.2s;
}
.burger:hover { background: var(--blue-700); }
@media (min-width: 1080px) { .burger { display: none; } }
.burger__lines { position: relative; width: 18px; height: 12px; }
.burger__lines span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease);
}
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 5px; }
.burger__lines span:nth-child(3) { top: 10px; }
body.menu-open .burger__lines span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger__lines span:nth-child(2) { opacity: 0; }
body.menu-open .burger__lines span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 8. Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: #fff;
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  /* Stops a flick at the end of the drawer from chaining into the page. */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
/* While the drawer is open the body is pinned with `position: fixed` at a
   negative offset, and a *sticky* header resolves against that offset — which
   carried the close button off the top of the screen. Fixed pins it to the
   viewport instead. Taking it out of flow shifts the page behind it, but the
   drawer covers exactly that area, so the shift is never visible. */
body.menu-open .header { position: fixed; top: 0; left: 0; right: 0; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.drawer__link:hover { color: var(--blue); }
/* Section labels turn the drawer into the whole Kagiptai journey rather than
   a flat list — the tab bar stays a shortcut, this stays the full map. */
.drawer__group {
  display: block;
  margin: 1.5rem 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.drawer__group:first-child { margin-top: 0; }
.drawer__group + .drawer__link { border-top: 1px solid var(--line); }
.drawer__link .ico { width: 17px; height: 17px; color: var(--ink-40); }
.drawer__foot { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.drawer__meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.2rem;
  font-size: 0.86rem; color: var(--ink-55);
}

/* ---------- 9. Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__inner { position: relative; }

/* The photograph sits behind the copy and bleeds off the top and right edges,
   on every screen size — it is a background layer, never a stacked block. */
.hero__media {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  height: 52%;
  overflow: hidden;
  background: linear-gradient(165deg, #cfe0ff, #eef3ff 55%, #fdf6e8);
}
/* The <picture> wrapper needs to carry the size itself, or the img has nothing
   to fill and the parallax transform has no box to measure. */
.hero__media picture { display: block; width: 100%; height: 100%; }
/* Pulled right and down so the graduates, not the empty facade above them,
   land in the part of the frame the copy does not cover. */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 76% 62%; }
/* Fades the photo into the page so the headline stays legible whatever
   photograph is dropped in — the supplied hero already fades on its left,
   so this only needs to finish the job at the bottom and left edges. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, #fff 0%, #fff 4%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0.96) 52%, rgba(255, 255, 255, 0.2) 82%, rgba(255, 255, 255, 0) 96%);
}

@media (min-width: 900px) {
  .hero__media {
    bottom: 0;
    width: 62%;
    height: auto;
  }
  .hero__media img { object-position: 34% 62%; }
  .hero__media::after {
    background:
      linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0.82) 14%, rgba(255, 255, 255, 0) 46%),
      linear-gradient(to top, #fff 0%, #fff 7%, rgba(255, 255, 255, 0) 44%);
  }
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.2rem, 4vw, 3.6rem) clamp(1.4rem, 3vw, 2.6rem);
}
@media (min-width: 900px) {
  .hero__copy { width: min(56%, 700px); padding-block: clamp(3rem, 5vw, 5rem) clamp(4rem, 7vw, 7rem); }
}

.hero__title { font-size: var(--fs-display); letter-spacing: -0.038em; line-height: 1.02; }
.hero__title > span { display: block; }
/* Plus Jakarta Sans ships a wide left sidebearing on . and , at ExtraBold,
   which reads as a stray space at display size. Pull it back optically. */
.pnc { margin-left: -0.12em; }
/* The supporting line sits between headline and body copy — it carries the
   positioning ("guidance built around you") that the headline alone implies. */
.hero__kicker {
  margin-top: 0.9rem;
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--blue);
}
.hero__lead { margin-top: 0.7rem; max-width: 46ch; }
.hero__actions { margin-top: 1.7rem; }

/* On phones the photograph sits behind the copy rather than beside it, so the
   text is held to a narrow measure. That keeps it clear of the graduates on the
   right of the frame, which in turn lets the scrim stay light enough to see
   them — a wide measure would need a wash that hides the photograph entirely. */
@media (max-width: 899px) {
  .hero__kicker, .hero__lead { max-width: 23ch; }
  .hero__title { font-size: clamp(2.35rem, 10.5vw, 3.1rem); }
}

/* Plain text destination row — no pills, matching the mockup */
.destrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-top: 1.8rem;
}
.destrow__label { font-size: 0.78rem; font-weight: 600; color: var(--ink-55); flex: none; }
.destrow a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-800);
  transition: color 0.2s;
}
.destrow a:hover { color: var(--blue); }
/* 22px tall as authored — these are primary destination shortcuts on the phone,
   so they get a full-size tap area there. */
@media (max-width: 1079px) {
  .destrow { gap: 0.15rem 0.4rem; margin-top: 1.4rem; }
  .destrow a { min-height: 44px; padding-inline: 0.5rem; margin-inline: -0.5rem; }
  .destrow__label { width: 100%; margin-bottom: 0.1rem; }
}
.destrow a.is-more {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* ---------- 10. Finder card ---------- */
.finder {
  position: relative;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: clamp(1.1rem, 1.8vw, 1.6rem);
}
.hero .finder { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) {
  .hero .finder {
    position: absolute;
    right: 0;
    bottom: clamp(1.5rem, 3vw, 3rem);
    width: min(560px, 46%);
    margin-bottom: 0;
  }
}
.finder__title { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.9rem; color: var(--navy-800); }
.finder__fields { display: grid; gap: 0.65rem; }

.field { position: relative; display: block; }
.field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.35rem;
}
.field__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.9rem;
  height: 52px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__control:hover { border-color: var(--line-strong); }
.field__control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 82, 232, 0.12); }
.field__control > .ico { width: 19px; height: 19px; color: var(--blue); flex: none; }
.field__control select,
.field__control input,
.field__control textarea {
  flex: 1; min-width: 0;
  border: 0; background: none;
  font-size: 0.94rem; font-weight: 500;
  color: var(--navy-800);
  appearance: none; outline: none;
}
.field__control select { cursor: pointer; padding-right: 1.1rem; }
.field__control textarea { resize: vertical; }
.field__control--area { height: auto; padding-block: 0.85rem; align-items: flex-start; }
.field__caret { position: absolute; right: 0.9rem; width: 14px; height: 14px; color: var(--ink-40); pointer-events: none; }
.field__control input::placeholder, .field__control textarea::placeholder { color: var(--ink-55); font-weight: 400; }

/* ---------- 11. Discover row (Why | Top Destinations) ---------- */
.discover__grid { display: grid; gap: clamp(2rem, 3.5vw, 3.2rem); }
@media (min-width: 1080px) {
  .discover__grid { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(2rem, 3.5vw, 3.5rem); }
}

.why__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(1.4rem, 2.4vw, 2.1rem);
}
.why__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  min-width: 0; /* let the 4 columns actually shrink on narrow screens */
  padding-inline: 0.3rem;
  border-left: 1px solid var(--line);
}
.why__item:first-child { border-left: 0; }
.why__ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  transition: background-color 0.25s, color 0.25s;
}
.why__item:hover .why__ico { background: var(--blue); color: #fff; }
.why__ico .ico { width: 24px; height: 24px; }
.why__item span {
  font-size: clamp(0.68rem, 2.2vw, 0.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-800);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .why__ico { width: 44px; height: 44px; }
  .why__ico .ico { width: 21px; height: 21px; }
}

/* ---------- 12. Destination cards ---------- */
/* Horizontal card rail. Fixed track width (not 1fr) so the rail scrolls
   within the viewport rather than widening the page. */
.dest-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 235px);
  gap: clamp(0.7rem, 1.1vw, 1rem);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.dest-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1080px) {
  .dest-rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}
.dest-grid { display: grid; gap: clamp(0.9rem, 1.4vw, 1.25rem); }
@media (min-width: 620px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dest-grid { grid-template-columns: repeat(4, 1fr); } }

.dest {
  position: relative;
  display: block;
  scroll-snap-align: start;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.dest:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.dest__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}
.dest__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.dest:hover .dest__media img { transform: scale(1.05); }
.dest__body { display: block; position: relative; padding: 1.5rem 1rem 1.05rem; }
.dest__flag { position: absolute; left: 1rem; top: -17px; }
.dest__body h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.dest__meta { display: block; font-size: 0.87rem; color: var(--ink-55); font-weight: 500; }
.dest__go {
  position: absolute;
  right: 0.9rem; bottom: 1rem;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--blue);
  transition: background-color 0.25s, color 0.25s;
}
.dest:hover .dest__go { background: var(--blue); color: #fff; }
.dest__go .ico { width: 14px; height: 14px; }
.skyline { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 13. Blue proof band ---------- */
.proofband {
  background: var(--blue);
  border-radius: var(--r-lg);
  color: #fff;
  padding: clamp(1.3rem, 2.2vw, 2rem);
}
.proofband__grid { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 1080px) {
  .proofband__grid {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr) auto;
    gap: clamp(1.2rem, 2vw, 2.2rem);
  }
}
.proofband__ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.proofband__ico .ico { width: 22px; height: 22px; }
.proofband__rule { display: none; align-self: stretch; background: rgba(255, 255, 255, 0.24); }
@media (min-width: 1080px) { .proofband__rule { display: block; } }

.proofband__stat { display: flex; align-items: center; gap: 0.9rem; }
.proofband__stat strong {
  display: block;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  /* "British Council" is a proper noun and reads badly broken across two
     lines. The headline of each stat is short enough to hold one line at
     every width the band is laid out at. */
  white-space: nowrap;
}
/* Scoped to the text block so it can't override .avatars' display:flex */
.proofband__stat__t > span { display: block; font-size: 0.86rem; color: rgba(255, 255, 255, 0.82); line-height: 1.35; }

.proofband__quote {
  display: flex;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}
.proofband__quote .ico { width: 22px; height: 22px; flex: none; opacity: 0.55; }

.proofband__who { display: flex; align-items: center; gap: 0.7rem; }
.proofband__who strong { display: block; font-size: 0.9rem; }
/* Raised from 0.75 (~4.15:1 on --blue, failing AA) to match the 0.82 used
   elsewhere in this component. Not currently rendered on any page, fixed for
   when it is. */
.proofband__who__t > span { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); }
.stars { color: var(--gold-soft); font-size: 0.8rem; letter-spacing: 0.08em; }

.proofband__cta { text-align: center; }
/* Raised from 0.72, which measured ~3.9:1 on --blue — failing AA. Matches the
   0.82 already used for the other small proofband captions on this background. */
.proofband__cta .tiny { display: block; margin-top: 0.6rem; color: rgba(255, 255, 255, 0.82); }

/* Solid blue closing band used at the foot of the inner pages */
.cta-band {
  background: var(--blue);
  border-radius: var(--r-lg);
  color: #fff;
  padding: clamp(1.6rem, 3vw, 2.8rem);
}
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p, .cta-band .lead { color: rgba(255, 255, 255, 0.82) !important; }
.cta-band__grid { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: minmax(0, 1fr); } }
.cta-band__deco { display: none; }
.eyebrow--light { color: var(--gold-soft); }
.accent-light { color: var(--gold-soft); }

.avatars { display: flex; align-items: center; flex: none; }
.avatars img, .avatars .av {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  object-fit: cover;
  margin-left: -12px;
  background: var(--blue-700);
  display: grid; place-items: center;
  color: #fff; font-size: 0.72rem; font-weight: 800;
}
.avatars > *:first-child { margin-left: 0; }

/* ---------- 14. Cards, values, lists ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.2rem, 1.8vw, 1.6rem);
}

.value-grid { display: grid; gap: clamp(0.9rem, 1.4vw, 1.25rem); }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.value {
  position: relative;
  padding: clamp(1.3rem, 1.9vw, 1.7rem);
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.value:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-3px); }
.value__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  color: var(--blue);
  margin-bottom: 0.95rem;
  transition: background-color 0.25s, color 0.25s;
}
.value:hover .value__ico { background: var(--blue); color: #fff; }
.value__ico .ico { width: 23px; height: 23px; }
.value h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.45rem; }
.value p { font-size: 0.95rem; color: var(--ink-55); line-height: 1.6; }
.value__n {
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-size: 0.78rem; font-weight: 800;
  /* Was --ink-40 at 0.6 opacity (~1.7:1 on white, badly failing AA) — --ink-40
     is decorative-only (see its definition) and was never meant for text.
     --ink-55 at full opacity keeps the same quiet corner-numeral look at a
     passing ~5.4:1. */
  color: var(--ink-55);
}

/* ---------- Founder credibility band ----------
   Institutional credibility on the home page, not a biography — the full
   profile lives on job.html. */
.career { display: grid; gap: 0.6rem; margin-top: 1.6rem; }
.career li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-70);
}
.career li:last-child { border-bottom: 0; padding-bottom: 0; }
.career__yr {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--blue);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .career li { grid-template-columns: 1fr; gap: 0.15rem; }
}

.founder-shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--blue-50);
  box-shadow: var(--sh-lg);
}
/* Capped so the portrait cannot outgrow the career list beside it. */
/* max-height used to clamp this to roughly square, so a 4:5 portrait got
   cover-cropped and zoomed into the face. Letting it keep its 4:5 ratio
   shows the framing the image was actually cropped to. */
.founder-shot img { width: 100%; aspect-ratio: 4 / 5; max-height: 720px; object-fit: cover; object-position: center; }
.founder-shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 0.2rem;
  padding: 2.6rem 1.3rem 1.2rem;
  background: linear-gradient(to top, rgba(6, 21, 41, 0.92), rgba(6, 21, 41, 0));
  color: #fff;
}
.founder-shot figcaption strong { font-size: 1.02rem; letter-spacing: -0.02em; }
.founder-shot figcaption span { font-size: 0.83rem; color: rgba(255, 255, 255, 0.78); }

/* ---------- Student success ---------- */
.story-grid { display: grid; gap: clamp(0.9rem, 1.4vw, 1.25rem); }
@media (min-width: 720px) { .story-grid:not(.is-empty) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .story-grid:not(.is-empty) { grid-template-columns: repeat(3, 1fr); } }
.story-grid > * { min-width: 0; }
.story {
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2vw, 1.85rem);
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
}
.story__quote {
  font-size: 1rem; line-height: 1.65; color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.story__quote::before { content: "\201C"; color: var(--blue-300); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: 0.1em; }
.story__quote::after { content: "\201D"; color: var(--blue-300); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-left: 0.05em; }
.story__who { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: auto; }
.story__who .flag { width: 34px; height: 23px; flex: none; margin-top: 3px; }
.story__name { display: block; color: var(--navy-800); font-size: 0.98rem; }
.story__meta { display: block; font-size: 0.86rem; color: var(--ink-55); margin-top: 0.15rem; }
.story__status {
  display: inline-block; margin-top: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-xs);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem; font-weight: 700;
}

/* Shown until consented stories exist. It states the policy rather than
   faking proof — the brief is explicit that nothing invented ships. */
.story--empty {
  max-width: 56ch;
  border-style: dashed;
  border-color: var(--line-strong);
  background: var(--blue-25);
}
.story--empty p { font-size: 0.93rem; color: var(--ink-55); line-height: 1.6; }
.story--empty p + p { margin-top: 0.5rem; }
.story--empty .tlink { margin-top: 1rem; }
.story__ico {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.unilist { display: grid; gap: 0.7rem; }
@media (min-width: 640px) { .unilist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .unilist { grid-template-columns: repeat(4, 1fr); } }
.unilist__item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 700;
  color: var(--navy-800);
}
.unilist__item .flag { width: 28px; height: 19px; flex: none; }

/* ---------- Programme levels ---------- */
/* When a budget was last checked. Quiet by design — it is a caveat, not a
   headline, but it must be present wherever a figure is. */
.bdg__stamp {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-55);
}

/* "Five questions worth asking anyone" — the differentiation block on About.
   Numbered because they are meant to be worked through in order, not because
   numbers look tidy. */
.ask { display: grid; gap: clamp(0.9rem, 1.8vw, 1.25rem); counter-reset: ask; }
@media (min-width: 900px) { .ask { grid-template-columns: 1fr 1fr; } }

.ask__item {
  counter-increment: ask;
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.7rem);
  padding-top: clamp(2.6rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.ask__item::before {
  content: counter(ask, decimal-leading-zero);
  position: absolute;
  top: clamp(1.1rem, 2.2vw, 1.5rem);
  left: clamp(1.25rem, 2.4vw, 1.7rem);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.ask__q {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.ask__a { font-size: 0.94rem; line-height: 1.65; color: var(--ink-70); }
.ask__a .tlink { margin-left: 0.3rem; }

/* Closing line under the Why Kagiptai pillars. Deliberately quiet — it is
   the receipt for the claims above, not another claim. */
.proofline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.proofline p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 62ch;
}

/* Long-form legal / policy copy. Only used on /privacy, where the job is
   readability rather than persuasion. */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-70); line-height: 1.72; margin-bottom: 1rem; }
.prose h2 { color: var(--navy-800); }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--navy-800); }
.prose button.tlink { font: inherit; cursor: pointer; padding: 0; }
.note-inline {
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--blue);
  background: var(--blue-50);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.93rem;
}

/* Cookie consent. Sits above the WhatsApp button and the mobile tab bar, and
   is deliberately not a modal — it must not block a student reading the page
   before they have decided anything. */
.consent {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 140%);
  width: min(680px, calc(100vw - 2rem));
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 44px -18px rgba(6, 21, 41, 0.42);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s;
}
.consent.is-shown { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

.consent__text {
  flex: 1 1 20rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-70);
}
.consent__text a { color: var(--blue); border-bottom: 1px solid currentColor; }
.consent__actions { display: flex; gap: 0.55rem; flex: 0 0 auto; }

/* Clear of the tab bar and the floating WhatsApp button on a phone. */
@media (max-width: 1079px) {
  .consent { bottom: calc(env(safe-area-inset-bottom, 0px) + 8.5rem); }
}

/* Who a destination suits — two honest columns, brief §9. Green reads as
   "this fits", amber as "stop and think"; neither is a warning, so the amber
   stays warm rather than red. */
.fit-grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
}
@media (min-width: 780px) { .fit-grid { grid-template-columns: 1fr 1fr; } }

.fit {
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
}
.fit--good  { border-color: rgba(31, 122, 82, 0.28); background: rgba(31, 122, 82, 0.045); }
.fit--think { border-color: rgba(245, 179, 1, 0.38); background: rgba(245, 179, 1, 0.06); }

.fit__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 0.85rem;
}
.fit__head .ico { width: 20px; height: 20px; flex: none; }
.fit--good  .fit__head .ico { color: #1f7a52; }
.fit--think .fit__head .ico { color: #b07d00; }

.fit__list { display: flex; flex-direction: column; gap: 0.6rem; }
.fit__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-70);
}
.fit__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

/* Finder context strip — shown on /programmes when the hero finder passed a
   subject or destination through. Keeps the student's earlier answers visible
   instead of acting on them silently. */
.fcontext {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  margin-bottom: clamp(1.1rem, 2.4vw, 1.75rem);
  border-radius: var(--r-md);
  background: var(--blue-50);
  border: 1px solid rgba(21, 82, 232, 0.18);
}
.fcontext .ico { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.fcontext__body { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
.fcontext p { font-size: 0.95rem; color: var(--ink-70); }
.fcontext strong { color: var(--navy-800); }

.prog-grid { display: grid; gap: clamp(0.9rem, 1.4vw, 1.25rem); }
@media (min-width: 720px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .prog-grid { grid-template-columns: repeat(3, 1fr); } }
.prog-grid > * { min-width: 0; }
.prog {
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2vw, 1.85rem);
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
  transition: border-color 0.25s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.prog:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-3px); }
.prog__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  color: var(--blue);
  margin-bottom: 0.95rem;
  transition: background-color 0.25s, color 0.25s;
}
.prog:hover .prog__ico { background: var(--blue); color: #fff; }
.prog__ico .ico { width: 23px; height: 23px; }
.prog__who {
  margin: 0.35rem 0 0.7rem;
  font-size: 0.82rem; font-weight: 700;
  color: var(--blue);
}
.prog > p { font-size: 0.95rem; color: var(--ink-55); line-height: 1.62; }
.prog__points {
  display: grid; gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.1rem;
}
.prog__points li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  font-size: 0.9rem; color: var(--ink-70);
}
.prog__points .ico { width: 16px; height: 16px; flex: none; color: var(--blue); margin-top: 3px; }

.checklist { display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-70); }
.checklist .ico { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }
.checklist--tight { gap: 0.6rem; }
.checklist--tight li { font-size: 0.92rem; }
.checklist--tight .ico { width: 17px; height: 17px; margin-top: 3px; }

/* ---------- Destination: flag, total pill, process, budget, fee ---------- */
.destflag { display: inline-block; }
.destflag .flag--round { width: 46px; height: 46px; }

.totalpill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--blue-25);
  border: 1px solid var(--line);
}
.totalpill__l { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); }
.totalpill strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-800); }

/* 15-step process — two columns on wide screens, numbered in flyer order */
.proc { display: grid; gap: 0.55rem; counter-reset: none; }
@media (min-width: 780px) { .proc { grid-template-columns: repeat(2, 1fr); gap: 0.55rem 1.5rem; } }
.proc__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0.95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ink-70);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.proc__item:hover { border-color: var(--blue-300); box-shadow: var(--sh-sm); }
.proc__n {
  flex: none;
  min-width: 1.6em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

/* Itemised budget card */
.bdg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.2rem, 1.9vw, 1.7rem);
}
.bdg__list { display: grid; gap: 0; }
.bdg__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.bdg__label { color: var(--ink-70); }
.bdg__value { color: var(--navy-800); font-weight: 700; text-align: right; }
.bdg__total {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
}
.bdg__total span { font-size: 0.86rem; font-weight: 600; }
.bdg__total strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.bdg__note { margin-top: 0.7rem; font-size: 0.84rem; color: var(--ink-55); font-style: italic; }

/* Costs page: headline total cards + per-destination breakdown grid */
.totalcards { display: grid; gap: clamp(0.8rem, 1.2vw, 1.1rem); }
@media (min-width: 560px) { .totalcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .totalcards { grid-template-columns: repeat(5, 1fr); } }
.totalcard {
  display: block;
  padding: 1.2rem 1.1rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.totalcard:hover { border-color: var(--blue-300); box-shadow: var(--sh-md); transform: translateY(-3px); }
.totalcard__flag { display: block; margin-bottom: 0.75rem; }
.totalcard__flag .flag--round { width: 34px; height: 34px; }
.totalcard h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.totalcard__n { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -0.025em; color: var(--blue); line-height: 1.25; }
.totalcard__l { display: block; margin-top: 0.35rem; font-size: 0.76rem; color: var(--ink-55); }

.bdg-grid { display: grid; gap: clamp(1rem, 1.6vw, 1.4rem); }
@media (min-width: 760px) { .bdg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .bdg-grid { grid-template-columns: repeat(3, 1fr); } }
.bdg__head { display: flex; gap: 0.8rem; align-items: center; }
.bdg__head .flag--round { width: 38px; height: 38px; flex: none; }
.bdg__head h3 { font-size: 1.05rem; }

/* Agency fee callout */
.feenote {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(245, 179, 1, 0.09);
  border: 1px solid rgba(245, 179, 1, 0.3);
}
.feenote .ico { width: 20px; height: 20px; color: #b07d00; flex: none; margin-top: 2px; }
.feenote strong { display: block; font-size: 0.94rem; color: var(--navy-800); }
.feenote span { font-size: 0.9rem; color: var(--ink-70); }

/* Six-up "why" grid used on destination pages */
@media (min-width: 640px) { .value-grid--6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid--6 { grid-template-columns: repeat(3, 1fr); } }
/* Left-aligned, not centred. A centred icon-title-blurb card repeated six times
   is the single most recognisable generated-looking layout there is, and the
   centring is what does most of the damage — it removes the reading edge that
   tells the eye where each card starts. */
.value-grid--6 .value { text-align: left; }
.value-grid--6 .value h3 { font-size: 1.08rem; }

/* ---------- Service list (cardless) ----------
   The home page ran two visually identical six-up card grids back to back —
   Programmes and Services — which made the middle of the page read as one
   repeated block. The programme cards are links, so the card is the control and
   it stays. These are not; they are information, so they lose the box and
   become a divided list. Cards earn their existence or they go. */
.svc-list { display: grid; column-gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 760px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
.svc-list > * { min-width: 0; }
.svc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: start;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}
.svc__ico {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  color: var(--blue);
  margin-top: 2px;
}
.svc__ico .ico { width: 20px; height: 20px; }
.svc h3 { font-size: 1.05rem; line-height: 1.3; }
.svc p { font-size: 0.95rem; color: var(--ink-55); line-height: 1.6; }

.numlist { counter-reset: n; display: grid; gap: 0.7rem; }
.numlist li {
  counter-increment: n;
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.numlist li:hover { border-color: var(--blue-300); box-shadow: var(--sh-sm); }
.numlist li::before {
  content: counter(n, decimal-leading-zero);
  font-size: 0.82rem; font-weight: 800;
  color: var(--blue);
  flex: none; line-height: 1.7;
}
.numlist strong { display: block; font-size: 0.97rem; letter-spacing: -0.015em; color: var(--navy-800); }
.numlist span { font-size: 0.89rem; color: var(--ink-55); }

/* ---------- 15. Steps ---------- */
.steps { position: relative; display: grid; }
.steps::before {
  content: "";
  position: absolute;
  left: 25px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--line);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: clamp(0.8rem, 1.4vw, 1.4rem); }
  .steps::before { left: 0; right: 0; top: 25px; bottom: auto; width: auto; height: 2px; }
}
.step { position: relative; display: flex; gap: 1.1rem; padding-block: 0.9rem; }
@media (min-width: 900px) { .step { flex-direction: column; gap: 1rem; padding-block: 0; } }
.step__dot {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 0.85rem; font-weight: 800;
  color: var(--blue);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.section--mist .step__dot { background: var(--mist); }
.step:hover .step__dot, .step.is-active .step__dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.94rem; color: var(--ink-55); line-height: 1.55; max-width: 32ch; }

/* ---------- 16. Team ---------- */
.team-grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.person {
  display: flex; flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.person:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-3px); }
.person__media { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--mist); }
.person__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.person__badge {
  position: absolute; left: 0.85rem; top: 0.85rem;
  padding: 0.35em 0.7em;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue);
}
.person__body { padding: clamp(1.1rem, 1.7vw, 1.5rem); display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.person__name { font-size: 1.15rem; }
.person__role { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.person__bio { font-size: 0.95rem; color: var(--ink-55); line-height: 1.6; }
.person__body .tlink { margin-top: auto; padding-top: 0.8rem; align-self: flex-start; }
.person--soon { border-style: dashed; background: var(--mist); }
.person--soon:hover { transform: none; box-shadow: none; }

/* Branded founder banner — text is baked into the artwork, so the same
   name, role and quote are repeated as real HTML in the profile below. */
.founder-banner {
  position: relative;
  margin: clamp(1.1rem, 2.2vw, 1.8rem) 0 clamp(1.4rem, 2.6vw, 2.2rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--blue-50);
  box-shadow: var(--sh-lg);
  aspect-ratio: 1536 / 600;
}
.founder-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }

.profile-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.8rem); align-items: start; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 0.8fr 1.2fr; } }
.profile-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--mist);
  border: 1px solid var(--line);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Founder page without a side portrait — the intro spans the wrap, and the
   biography splits into two columns on desktop so the line length stays
   readable instead of running the full width of the page. Paragraphs are
   kept whole so a column break never lands mid-thought. */
@media (min-width: 900px) {
  .prose-cols { columns: 2; column-gap: clamp(2rem, 4vw, 3.4rem); }
  .prose-cols > p { break-inside: avoid; margin-top: 0; }
  .prose-cols > p + p { margin-top: 1rem; }
}
/* Past this width two columns would each run ~95 characters, well beyond a
   comfortable measure, so the biography takes a third column instead. */
@media (min-width: 1280px) { .prose-cols { columns: 3; } }
.profile-photo__tag {
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.profile-photo__tag strong { font-size: 0.92rem; }
.profile-photo__tag span { font-size: 0.78rem; color: var(--ink-55); }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  padding: 0.5em 0.85em;
  border-radius: var(--r-xs);
  background: var(--blue-25);
  border: 1px solid var(--line);
  color: var(--ink-70);
  font-size: 0.85rem;
  font-weight: 600;
}
.pill--plain { background: var(--mist); }

.timeline { position: relative; padding-left: 1.9rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -1.9rem; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
}
.tl-item__year { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; color: var(--blue); margin-bottom: 0.2rem; }
.tl-item h4 { font-size: 1rem; margin-bottom: 0.1rem; }
.tl-item p { font-size: 0.88rem; color: var(--ink-55); }

.pullquote {
  position: relative;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border-radius: var(--r-md);
  background: var(--mist);
  border-left: 3px solid var(--blue);
}
.pullquote p { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--navy-800); font-weight: 600; letter-spacing: -0.02em; }
.pullquote cite { display: block; margin-top: 0.9rem; font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-55); }

/* ---------- 17. Office / photo slots ---------- */
.office-grid { display: grid; gap: clamp(0.7rem, 1.1vw, 1rem); }
@media (min-width: 760px) {
  .office-grid { grid-template-columns: repeat(2, 1fr); grid-template-areas: "a b" "c c"; }
  .office-grid > *:nth-child(1) { grid-area: a; }
  .office-grid > *:nth-child(2) { grid-area: b; }
  .office-grid > *:nth-child(3) { grid-area: c; }
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--mist);
  aspect-ratio: 4 / 3;
}
.shot--wide { aspect-ratio: 16 / 7; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__overlay {
  position: absolute; left: 0.85rem; bottom: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(11, 31, 58, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
}
.shot__overlay strong { display: block; font-size: 0.92rem; }
.shot__overlay span { font-size: 0.76rem; opacity: 0.75; }

/* Fallback shown only when a photo genuinely fails to load.

   Hidden by default, and deliberately so. This used to be visible until
   photoSlots() confirmed the image had loaded, which meant every slot on the
   page announced "PHOTO COMING SOON" for as long as its photograph took to
   download — seconds, on the mobile connections most of our visitors use.
   Working photographs read as missing ones. The slot now stays quiet unless
   main.js marks it .no-photo after a real load error. */
.ph {
  position: absolute; inset: 0;
  display: none; place-content: center; justify-items: center;
  gap: 0.5rem; text-align: center; padding: 1rem;
  color: var(--ink-55);
  background: var(--mist);
}
.no-photo .ph { display: grid; }
.ph__ico { width: 30px; height: 30px; opacity: 0.5; }
.ph__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ph__file { font-size: 0.66rem; font-family: ui-monospace, Menlo, monospace; opacity: 0.75; }

/* ---------- 18. Stats / tables / notes ---------- */
.statbar { display: grid; gap: clamp(1rem, 1.8vw, 1.8rem); }
@media (min-width: 640px) { .statbar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .statbar { grid-template-columns: repeat(4, 1fr); } }
.stat { padding-left: 1.1rem; border-left: 2px solid var(--blue); }
.section--ink .stat { border-left-color: var(--gold); }
.stat__n { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--navy-800); }
.section--ink .stat__n { color: #fff; }
.stat__l { margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-55); }
.section--ink .stat__l { color: rgba(255, 255, 255, 0.62); }

.cost-table { width: 100%; border-collapse: collapse; font-size: 0.91rem; }
.cost-table th, .cost-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.cost-table thead th { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-55); }
.cost-table tbody tr:hover { background: var(--mist); }
.cost-table td:first-child { font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
}
.table-scroll table { min-width: 760px; }

.note {
  display: flex; gap: 0.8rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--blue-25);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-70);
}
.note .ico { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 2px; }

.map-embed {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  min-height: 300px;
  background: var(--mist);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(1.05); }
/* Address card floating over the map so the exact suite is always legible,
   whatever Google renders underneath. */
.map-embed__pin {
  position: absolute;
  left: 0.85rem; bottom: 0.85rem; right: 0.85rem;
  z-index: 2;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  max-width: 340px;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-md);
  font-size: 0.84rem;
  color: var(--ink-70);
  line-height: 1.45;
  pointer-events: none;
}
.map-embed__pin .ico { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 1px; }
.map-embed__pin strong { display: block; color: var(--navy-800); font-size: 0.92rem; }

.split { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--wide-left { grid-template-columns: 1.1fr 0.9fr; } }

/* ---------- 19. Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; width: 100%;
  padding: 1.15rem 0;
  text-align: left;
  font-size: 1rem; font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy-800);
  transition: color 0.2s;
}
.acc__btn:hover { color: var(--blue); }
.acc__sign {
  position: relative;
  width: 30px; height: 30px; flex: none;
  border-radius: var(--r-xs);
  background: var(--mist);
  transition: background-color 0.25s;
}
.section--mist .acc__sign { background: #fff; }
.acc__sign::before, .acc__sign::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__sign { background: var(--blue); }
.acc__item.is-open .acc__sign::before, .acc__item.is-open .acc__sign::after { background: #fff; }
.acc__item.is-open .acc__sign::after { opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > div { padding-bottom: 1.3rem; max-width: 70ch; color: var(--ink-70); font-size: 0.94rem; }

/* ---------- 20. Page header (inner pages) ---------- */
.pagehead { padding-block: clamp(2.2rem, 4vw, 3.8rem) clamp(1.8rem, 3vw, 2.8rem); background: var(--blue-25); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.84rem; color: var(--ink-55); margin-bottom: 0.9rem; font-weight: 600; }
.crumbs a:hover { color: var(--blue); }
/* Was 0.5 (~2:1 on --blue-25, badly failing AA for this visible "/" text) —
   full opacity still reads as a quiet divider at this size and holds ~5.1:1. */
.crumbs .sep { opacity: 1; }

/* ---------- 21. Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.62); padding-top: clamp(2.6rem, 4.5vw, 4rem); }
.footer__grid { display: grid; gap: clamp(1.8rem, 3vw, 2.6rem); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.25fr; } }
.footer h4 { color: #fff; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.95rem; }
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { font-size: 0.89rem; transition: color 0.2s; }
/* The footer carries the full site map. On a phone it is real navigation, so
   the rows get a real tap area instead of a 23px line of text. */
@media (max-width: 1079px) {
  .footer__links { gap: 0; }
  .footer__links a { display: flex; align-items: center; min-height: 44px; }
  .footer__contact { gap: 0; }
  .footer__contact li { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
  .footer__contact li a { display: flex; align-items: center; min-height: 44px; }
  /* Small buttons are still buttons on a touch screen. */
  .btn--sm { min-height: 44px; }
  .footer .muted[data-link], .card a[data-link] { display: inline-flex; align-items: center; min-height: 44px; }

  /* The drawer's phone and email rows are real navigation on a phone, and
     were 22px of text. */
  .drawer__meta a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Breadcrumbs stay visually small — growing them would unbalance the page
     head — but the hit area is extended above and below the text instead. */
  .crumbs a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }

  /* Any button is a button under a thumb, not only the small variant. */
  .btn { min-height: 44px; }
}

/* A 24px <select> centred inside a 52px box leaves the top and bottom 14px
   doing nothing under a thumb. Stretching the control to fill its wrapper
   makes the whole visible field tappable, and looks identical. The textarea
   variant keeps its own alignment — it is already tall enough. */
.field__control select,
.field__control input { align-self: stretch; }
.field__control--area textarea { align-self: auto; }
.footer__links a:hover { color: #fff; }
.footer__tag {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer__blurb { font-size: 0.9rem; max-width: 36ch; margin-block: 0.6rem 1.2rem; }
.footer__addr { font-size: 0.89rem; line-height: 1.7; font-style: normal; margin-bottom: 1rem; }
.footer__addr a:hover { color: #fff; }
.footer__contact { display: grid; gap: 0.4rem; font-size: 0.89rem; }
.footer__contact a { transition: color 0.2s; }
.footer__contact a:hover { color: #fff; }
.footer__contact .tiny { font-size: 0.72rem; }
/* Raised from 0.45, which measured ~4.46:1 on --navy-900 — just under AA. */
.footer .muted { color: rgba(255, 255, 255, 0.5); }
.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.22s, color 0.22s, border-color 0.22s;
}
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.socials .ico { width: 16px; height: 16px; }
.footer__bottom {
  margin-top: clamp(2rem, 3.5vw, 3rem);
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem;
}
.footer__bottom a:hover { color: #fff; }

/* ---------- 22. Mobile bottom tab bar ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 1080px) { .tabbar { display: none; } }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 0.2rem;
  min-height: 58px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-55);
  transition: color 0.2s;
}
.tabbar a .ico { width: 21px; height: 21px; }
.tabbar a[aria-current="page"] { color: var(--blue); }

/* Contact is the promoted cell — a filled badge lifts it out of the row so it
   reads as the action, not the fifth item in a list. */
.tabbar__cta { color: var(--blue); }
.tabbar__badge {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  margin-top: -9px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px -3px rgba(21, 82, 232, 0.55);
}
.tabbar__badge .ico { width: 18px; height: 18px; }
.tabbar__cta[aria-current="page"] .tabbar__badge { background: var(--navy-800); box-shadow: none; }

/* Persistent WhatsApp. Kept on the right, where page content is ragged rather
   than aligned, and lifted clear of the tab bar so it reads as its own control
   rather than a second Contact button stacked on the promoted cell. */
.wa-fab {
  position: fixed;
  right: var(--gutter);
  bottom: calc(62px + env(safe-area-inset-bottom) + 1.7rem);
  z-index: 94;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.05rem;
  border-radius: var(--r-pill);
  background: #25d366;
  color: #06301a;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--sh-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); color: #06301a; }
.wa-fab .ico { width: 22px; height: 22px; }
@media (min-width: 1080px) { .wa-fab { bottom: calc(var(--gutter) + 0.4rem); } }
@media (max-width: 560px) {
  .wa-fab { padding: 0.8rem; }
  .wa-fab__label { display: none; }
}

@media (max-width: 1079px) {
  body { padding-bottom: 62px; }
}

/* ---------- 23. Forms feedback ---------- */
.form-status {
  display: none; gap: 0.7rem; align-items: flex-start;
  margin-top: 0.9rem; padding: 0.9rem 1.05rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 600;
}
.form-status.is-shown { display: flex; }
.form-status--ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.form-status .ico { width: 19px; height: 19px; flex: none; }

/* ---------- 23b. Motion: progress, spotlight, sequential steps ---------- */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  will-change: transform;
  pointer-events: none;
}

/* Cursor-following highlight. Purely decorative, drawn behind the content. */
.value, .dest, .person, .proc__item, .totalcard { position: relative; isolation: isolate; }
.value::before, .dest::before, .person::before, .proc__item::before, .totalcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(21, 82, 232, 0.07),
    transparent 70%
  );
}
.value:hover::before, .dest:hover::before, .person:hover::before,
.proc__item:hover::before, .totalcard:hover::before { opacity: 1; }

/* Process steps and journey steps tick over as they enter the viewport */
.js .proc__item { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .proc__item.is-seen { opacity: 1; transform: none; }
.js .proc__item:nth-child(even) { transition-delay: .06s; }
.step__dot { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease); }
.step.is-seen .step__dot { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Parallax layer needs its own compositing layer to stay smooth */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .js .proc__item { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
  .progress { display: none; }
}

/* ---------- 24. Scroll reveal ----------
   Gated behind .js (set by an inline script in <head>) so that without
   JavaScript — or if the observer never fires — the content is simply
   visible. Animation is an enhancement, never a precondition for reading. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-18px); }
.js [data-reveal="right"] { transform: translateX(18px); }
.js [data-reveal="scale"] { transform: none; }

/* The street was renamed; both names are in live use in Eldoret, so the address
   carries the signage name first and the current official name after it. A
   student giving directions to a boda can use either. */
/* Raised from 0.75, which took --ink-70 to ~4.0:1 on white — just under AA. */
.addr-alt { font-weight: 500; opacity: 0.85; white-space: nowrap; }

/* ---------- 25. Utilities ---------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.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;
}
/* Spam-trap field on the enquiry form (see main.js forms()). Unlike
   .sr-only this must stay invisible to assistive tech too (aria-hidden
   handles that) and must read as "visible" to a script that only checks
   display/visibility — so it's pushed off-screen with position/opacity
   rather than hidden outright, which is what defeats bots that skip
   display:none or type=hidden fields. Real users never see or reach it. */
.field-trap {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0; overflow: hidden;
  pointer-events: none;
}
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  padding: 0.7rem 1.1rem; background: var(--blue); color: #fff;
  border-radius: var(--r-sm); font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Belt and braces for print: the JS beforeprint handler reveals everything, but
   this holds even if scripting is unavailable at print time. */
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 27. Print ---------- */
@media print {
  .header, .drawer, .tabbar, .wa-fab, .skip, .footer { display: none !important; }
  body { color: #000; padding-bottom: 0; }
}
