/* ==========================================================================
   Voco Vision — Study Abroad, Kochi
   Design tokens are sampled from the Blade logo lockup.
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #0b1240;
  --navy-900: #111a52;
  --navy-800: #18246a;
  --blue-700: #1e44c8;
  --blue-600: #2657e2;
  --blue-500: #3b84fa;
  --blue-100: #e3ecff;
  --blue-50: #f0f5ff;
  --cyan-400: #2fceff;
  --cyan-300: #53e1ff;
  --green-600: #1eba77;
  --green-500: #43db8d;
  --lime-400: #8edb3f;
  --lime-300: #bff06b;
  --green-50: #eafbf1;
  --cyan-50: #e4f8ff;
  --lime-50: #f2fbe2;
  /* Darker inks of the accents, for text and icons on light surfaces (4.5:1+) */
  --cyan-ink: #087499;
  --green-ink: #12804f;
  --lime-ink: #4b7c0d;

  /* Semantic */
  --ink: var(--navy-950);
  --text: #33405f;
  --muted: #5a6482;
  --line: #e2e7f2;
  --bg: #edf0f7;
  --surface: #ffffff;
  --surface-2: #f5f7fc;
  --focus: #2657e2;
  --error: #c62828;

  --grad-blue: linear-gradient(135deg, #3b84fa 0%, #1e44c8 100%);
  --grad-green: linear-gradient(120deg, #bff06b 0%, #43db8d 100%);
  --grad-cyan: linear-gradient(135deg, #87bcff 0%, #53e1ff 100%);
  --grad-text: linear-gradient(100deg, #bff06b 0%, #43db8d 55%, #53e1ff 100%);
  --grad-spectrum: linear-gradient(90deg, var(--blue-500), var(--cyan-300), var(--green-500), var(--lime-300));

  /* Type */
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --chamfer: 48px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 64, 0.05), 0 4px 14px rgba(11, 18, 64, 0.04);
  --shadow-md: 0 10px 34px rgba(11, 18, 64, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 18, 64, 0.18);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 220ms;

  --shell: 1320px;
  --gutter: 16px;
  --header-h: 84px;

  /* z-index scale */
  --z-sticky: 20;
  --z-header: 40;
  --z-menu: 50;
  --z-float: 60;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy-950);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

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

.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }

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

main { display: block; }
main > .shell > * + * { margin-top: 16px; }

.panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 72px);
}
.panel--tight { padding-block: clamp(24px, 3.5vw, 44px); }
.panel--navy {
  isolation: isolate;
  background: var(--navy-950);
  color: #c9d2f2;
  overflow: hidden;
}
.panel--navy h2,
.panel--navy h3 { color: #fff; }
.panel--soft { background: var(--surface-2); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

.chamfer {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%);
}

/* Section heading: big title left, lead paragraph right (reference layout) */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.sec-head .lead { max-width: 56ch; }

.title-dot {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.title-dot::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--grad-green);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
  transform: translateY(-0.18em);
}

.lead { font-size: 1.075rem; color: var(--muted); }
.panel--navy .lead { color: #aeb9e6; }

/* Eyebrow echoes the lockup tagline: tracked caps + gradient hairlines */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
}
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--blue-500)); }
.eyebrow::after { background: linear-gradient(90deg, var(--green-500), transparent); }
.eyebrow--left::after { display: none; }
.panel--navy .eyebrow,
.on-dark .eyebrow { color: var(--cyan-300); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--grad-green);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  transition: transform var(--dur) var(--ease);
}
.btn-ic .ic { width: 18px; height: 18px; }
@media (hover: hover) { .btn:hover .btn-ic { transform: rotate(45deg); } }

.btn-primary { background: var(--grad-green); color: var(--navy-950); box-shadow: 0 6px 20px rgba(67, 219, 141, 0.28); }
.btn-primary .btn-ic { background: var(--navy-950); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(67, 219, 141, 0.4); }

.btn-dark { background: var(--navy-950); color: #fff; }
.btn-dark .btn-ic { background: var(--grad-green); color: var(--navy-950); }
.btn-dark:hover { background: var(--navy-800); }

.btn-light { background: #fff; color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn-light .btn-ic { background: var(--grad-blue); color: #fff; }

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-glass .btn-ic { background: #fff; color: var(--navy-950); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-700);
}
.link-arrow .ic { transition: transform var(--dur) var(--ease); }
@media (hover: hover) { .link-arrow:hover .ic { transform: translateX(4px); } }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-top: 12px;
  padding-bottom: 12px;
  background: linear-gradient(var(--bg) 70%, rgba(237, 240, 247, 0));
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 10px 10px 10px 22px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease);
}
.is-scrolled .nav { box-shadow: var(--shadow-md); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-right: auto;
}
.brand-mark { width: 48px; height: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 184px;
}
.brand-word { display: block; width: 100%; height: auto; }
/* Only shown by the screen themes (theme-light.css, theme-dark.css) */
.brand-word--text,
.footer-brandmark,
.hero-notch { display: none; }
/* Tagline centred between two fading rules (blue left, green right), as in the full logo lockup. */
.brand-tagline {
  --track: 0.18em;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--track);
  word-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.brand-tagline::before,
.brand-tagline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 132, 250, 0), var(--blue-500));
}
.brand-tagline::after { background: linear-gradient(90deg, var(--green-500), rgba(67, 219, 141, 0)); }
.brand-tagline span { margin-right: calc(-1 * var(--track)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-950);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-link:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-link[aria-current="page"],
.nav-link[data-current="true"] { background: var(--navy-950); color: #fff; }
.nav-link .ic { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.nav-link[aria-expanded="true"] .ic { transform: rotate(180deg); }

.has-menu { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: var(--z-menu);
  width: min(640px, 92vw);
  padding: 18px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
}
.has-menu.is-open .menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s;
}
.menu-group + .menu-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.menu-label {
  margin: 0 8px 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background-color var(--dur) var(--ease);
}
.menu-item:hover { background: var(--surface-2); }
.menu-item img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.menu-item strong { display: block; color: var(--navy-950); font-size: 0.95rem; line-height: 1.25; }
.menu-item span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-950);
  color: #fff;
}
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* Light / dark switch: theme-dark.css swaps the moon for the sun */
.theme-toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle .ic { width: 20px; height: 20px; }
.theme-toggle .ic-sun { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 0; background: transparent; }
.hero-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy-950);
  color: #fff;
  --chamfer: 72px;
}
.hero-media > img,
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Each video has a twin (main.js): near the end the twin restarts and fades in on top, so loops dissolve. */
.hero-media > img { z-index: -4; }
.hero-video { z-index: -3; opacity: 0; transition: opacity 800ms linear; }
.hero-video.is-front { z-index: -2; }
.hero-video.is-on { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 85% at 0% 100%, rgba(67, 219, 141, 0.34) 0%, rgba(67, 219, 141, 0) 62%),
    linear-gradient(100deg, rgba(11, 18, 64, 0.94) 0%, rgba(11, 18, 64, 0.74) 36%, rgba(30, 68, 200, 0.34) 66%, rgba(47, 206, 255, 0.06) 100%);
}
.hero-overlay--center {
  background:
    radial-gradient(55% 80% at 50% 120%, rgba(67, 219, 141, 0.38) 0%, rgba(67, 219, 141, 0) 65%),
    linear-gradient(180deg, rgba(11, 18, 64, 0.55) 0%, rgba(11, 18, 64, 0.72) 55%, rgba(30, 68, 200, 0.7) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: min(84vh, 760px);
  padding: clamp(28px, 5vw, 72px);
  max-width: 900px;
}
.hero-content h1 { color: #fff; }
.hero-content p {
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: #dce3ff;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero--page .hero-content {
  min-height: clamp(380px, 52vh, 520px);
  max-width: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero--page .hero-content h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.hero--page .hero-content p { margin-inline: auto; }

.hero--country .hero-content {
  min-height: clamp(400px, 56vh, 560px);
  justify-content: space-between;
  max-width: none;
}

.chip-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}
.hero--page .chip-glass { align-self: center; }
/* The home h1 holds the "Study abroad consultants" pill as well as the tagline, laid out exactly as before */
.hero-h1 { display: flex; flex-direction: column; gap: inherit; }
.hero-h1 > .chip-glass { font-family: var(--font-body); letter-spacing: normal; line-height: 1.65; text-wrap: wrap; font-variation-settings: normal; }
.hero-h1-text { display: block; }

.hero-stats {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  top: clamp(20px, 3vw, 40px);
  display: grid;
  gap: 10px;
  width: 250px;
}
.hero-stat {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(11, 18, 64, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.hero-stat span { display: block; margin-top: 6px; font-size: 0.86rem; color: #c9d2f2; line-height: 1.35; }

/* --------------------------------------------------------------------------
   Marquee of partner universities
   -------------------------------------------------------------------------- */
.marquee-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}
.marquee-label {
  flex: none;
  max-width: 220px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.25;
}
.marquee {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track,
.marquee.is-offscreen .marquee-track { animation-play-state: paused; }
.marquee-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  height: 76px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.marquee-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--navy-950);
  transition: background-color var(--dur) var(--ease);
}
.marquee-toggle:hover { background: var(--surface-2); }
.marquee-toggle .ic-play { display: none; }
.marquee-toggle[aria-pressed="true"] .ic-play { display: block; }
.marquee-toggle[aria-pressed="true"] .ic-pause { display: none; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Mission (navy) + brand pillars
   -------------------------------------------------------------------------- */
.mission-statement {
  max-width: 22ch;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}
.mission-glow {
  position: absolute;
  inset: auto -10% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle, rgba(59, 132, 250, 0.35), rgba(59, 132, 250, 0) 65%);
  pointer-events: none;
  transition: transform 1200ms var(--ease);
}
.mission-mark {
  position: absolute;
  right: clamp(-60px, -2vw, 0px);
  top: clamp(24px, 4vw, 56px);
  width: clamp(160px, 22vw, 300px);
  opacity: 0.14;
  pointer-events: none;
}
.mission-mark--anim { height: auto; overflow: visible; }
@media (min-width: 901px) {
  .mission-mark--anim { opacity: 1; right: clamp(24px, 4vw, 64px); width: clamp(180px, 18vw, 260px); }
}

/* Logo formation: blades rise, eye curves trace, globe sweeps in, top arc traces.
   Mask strokes use pathLength="1", so a dash offset of 1 hides a stroke and 0 shows it whole. */
.la-trace { fill: none; stroke: #fff; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.is-armed .la-blades { opacity: 0; }
.is-armed .la-trace { stroke-dashoffset: 1; }
.is-playing .la-blades  { animation: la-rise 550ms var(--ease) both; }
.is-playing .la-t-eye   { animation: la-draw 800ms cubic-bezier(0.45, 0, 0.2, 1) 250ms both; }
.is-playing .la-t-globe { animation: la-draw 500ms cubic-bezier(0.45, 0, 0.2, 1) 650ms both; }
.is-playing .la-t-brow  { animation: la-draw 450ms cubic-bezier(0.45, 0, 0.2, 1) 850ms both; }
@keyframes la-rise { from { opacity: 0; transform: translate(0, 18px); } to { opacity: 1; transform: none; } }
@keyframes la-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vw, 56px);
}
.pillar {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--cyan-300);
}
.pillar h3 {
  margin: 14px 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pillar:nth-child(1) h3 { color: #87bcff; }
.pillar:nth-child(2) h3 { color: var(--cyan-300); }
.pillar:nth-child(3) h3 { color: var(--lime-300); }
.pillar p { color: #b9c3ea; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Lift on hover: real hover only, so a tap on a phone doesn't leave cards raised */
@media (hover: hover) {
  a.card:hover,
  .card--hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
    background: #fff;
  }
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #9aa3c0;
}
.card .link-arrow { margin-top: auto; padding-top: 6px; }

.ic-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-700);
  flex: none;
}
.ic-tile--green { background: var(--green-50); color: var(--green-600); }
.ic-tile--navy { background: var(--navy-950); color: var(--cyan-300); }
.ic-tile .ic { width: 24px; height: 24px; }

/* Personalised attention split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split--top { align-items: start; }
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  --chamfer: 64px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 4.4;
}
.media-frame--wide img { aspect-ratio: 5 / 4; }
.float-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 40px);
  padding: 14px 18px 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.float-card .txt strong { display: block; color: var(--navy-950); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.float-card .txt span { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }

.num-list > li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.num-list > li:last-child { border-bottom: 1px solid var(--line); }
.num-list .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--blue-700);
  padding-top: 3px;
}
.num-list h3 { margin-bottom: 6px; }
.num-list p { color: var(--muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Destinations
   -------------------------------------------------------------------------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dest-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--r-lg);
  color: #fff;
  background: var(--navy-950);
  --chamfer: 40px;
}
.dest-card img,
.dest-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), opacity 700ms linear;
}
/* The card's video, made from its own photo, fades in over it: on hover, or mid-screen on touch screens (main.js). */
.dest-card img { z-index: -4; }
.dest-video { z-index: -3; opacity: 0; }
.dest-video.is-front { z-index: -2; }
.dest-card.is-live .dest-video.is-on { opacity: 1; }
@media (hover: hover) { .dest-card:hover .dest-video { transform: scale(1.05); } }
.dest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 18, 64, 0) 30%, rgba(11, 18, 64, 0.88) 100%);
}
@media (hover: hover) { .dest-card:hover img { transform: scale(1.05); } }
.dest-card .tag {
  position: absolute;
  top: 18px;
  left: 18px;
}
.dest-card h3 { color: #fff; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.dest-card p { margin-top: 6px; color: #d4dcfb; font-size: 0.93rem; max-width: 36ch; }
.dest-card .go {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-950);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@media (hover: hover) { .dest-card:hover .go { transform: rotate(45deg); background: var(--lime-300); } }
.dest-card--wide {
  grid-column: 1 / -1;
  min-height: 260px;
}
.dest-card--wide::before {
  background: linear-gradient(90deg, rgba(11, 18, 64, 0.92) 0%, rgba(11, 18, 64, 0.6) 45%, rgba(11, 18, 64, 0.05) 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  background: var(--blue-50);
  color: var(--blue-700);
}
.tag--glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}
.tag--green { background: var(--green-50); color: #11784c; }
.tag--sample { background: #fff4d6; color: #7a5300; }

/* --------------------------------------------------------------------------
   Universities
   -------------------------------------------------------------------------- */
.uni-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .uni-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.panel--soft .uni-card { background: #fff; }
.uni-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 112px;
  height: 56px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.uni-logo img,
.marquee-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.uni-logo--lg {
  width: 100%;
  height: 104px;
  padding: 16px 20px;
  border-radius: 16px;
}
.uni-card h3 { font-size: 1.15rem; }
.uni-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.uni-card p { color: var(--muted); font-size: 0.92rem; }
.uni-card .tag { align-self: flex-start; margin-top: auto; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.search {
  position: relative;
  flex: 1 1 280px;
}
.search .ic {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search input { padding-left: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-950);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip-btn:hover { border-color: #c4cde4; }
.chip-btn[aria-pressed="true"] { background: var(--navy-950); border-color: var(--navy-950); color: #fff; }
.chip-btn .count {
  font-family: var(--font-display);
  font-size: 0.78rem;
  opacity: 0.7;
}

.uni-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.uni-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-950);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}
.uni-item .cc {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.uni-item .uni-name { flex: 1; min-width: 0; overflow-wrap: break-word; }
.uni-item .cc { margin-left: auto; }
.uni-item[data-country="ie"] .cc { background: var(--green-50); color: #11784c; }
.uni-item[data-country="au"] .cc { background: #fff1e0; color: #8a4b00; }
.uni-item[hidden] { display: none; }
.uni-empty {
  padding: 32px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed #c4cde4;
  color: var(--muted);
}
.result-note { margin: -8px 0 18px; color: var(--muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Journey steps
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: calc((100% - 64px) / 5 - 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-300), var(--green-500));
  opacity: 0.6;
}
/* The journey line draws across as the steps come into view. */
.js .steps::before { transform: scaleX(0); transform-origin: left center; transition: transform 1400ms var(--ease) 150ms; }
.js .steps.is-in::before { transform: none; }
.step { position: relative; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-100);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 700;
}
.step:last-child .step-num { background: var(--grad-green); border-color: transparent; color: var(--navy-950); }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.quote-card .ic-quote { width: 32px; height: 32px; color: var(--green-500); }
.quote-card blockquote {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.04rem;
  line-height: 1.6;
}
.quote-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  flex: none;
}
.quote-by .who strong { display: block; color: var(--navy-950); line-height: 1.3; }
.quote-by .who span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.quote-card .tag--sample { position: absolute; top: 24px; right: 24px; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner .hero-content {
  min-height: clamp(320px, 42vh, 440px);
  max-width: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.cta-banner p { margin-inline: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Services page: alternating feature blocks
   -------------------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature--flip .feature-media { order: -1; }
.feature-media { position: relative; overflow: hidden; border-radius: var(--r-xl); --chamfer: 56px; }
.feature-media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.feature h2 { margin-bottom: 18px; }
.feature .lead { margin-bottom: 22px; }

.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-950);
  margin-bottom: 14px;
}

.check-list > li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  color: var(--text);
}
.check-list .ic { color: var(--green-600); margin-top: 3px; }

/* --------------------------------------------------------------------------
   Country pages
   -------------------------------------------------------------------------- */
.hero-country-top { display: flex; flex-direction: column; gap: 18px; }
.hero-country-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-country-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(11, 18, 64, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.hero-country-facts .ic { width: 16px; height: 16px; color: var(--lime-300); }

.tabs-bar {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: var(--z-sticky);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tabs a:hover { color: var(--navy-950); background: var(--surface-2); }
.tabs a[aria-current="true"] { background: var(--grad-green); color: var(--navy-950); }

.country-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px;
  align-items: start;
}
.country-main > * + * { margin-top: 16px; }
.country-aside {
  position: sticky;
  top: calc(var(--header-h) + 88px);
}
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 18px; }
.prose h3 { margin: 28px 0 12px; }
.prose h2.h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.2; margin: 28px 0 12px; font-weight: 700; letter-spacing: -0.015em; font-variation-settings: normal; }
.prose p { color: var(--text); }
.prose ul.bullets { margin: 0 0 1em; }
.prose ul.bullets li {
  position: relative;
  padding: 6px 0 6px 26px;
}
.prose ul.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 9px;
  height: 9px;
  background: var(--grad-green);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
}
.prose strong { color: var(--navy-950); }

.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts-col {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.facts-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.fact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: #fff;
}
.fact-row + .fact-row { margin-top: 8px; }
.fact-row .ic-tile { width: 40px; height: 40px; border-radius: 12px; }
.fact-row .ic-tile .ic { width: 18px; height: 18px; }
.fact-row .txt strong { display: block; color: var(--navy-950); font-size: 0.98rem; line-height: 1.3; }
.fact-row .txt span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

.req-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy-950);
  line-height: 1.35;
}
.req-item .ic { color: var(--green-600); }

.intake-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.intake {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.intake .month {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.1;
}
.intake .badge { margin: 10px 0; }
.intake p { color: var(--muted); font-size: 0.93rem; }

.cost-table { width: 100%; border-collapse: collapse; }
.cost-table th,
.cost-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table th { width: 42%; color: var(--navy-950); font-weight: 700; }
.cost-table td { color: var(--text); font-variant-numeric: tabular-nums; }
.cost-table tr:last-child th,
.cost-table tr:last-child td { border-bottom: 0; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fine-print { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }


.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--navy-950);
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq details[open] summary .ic { transform: rotate(180deg); background: var(--lime-300); }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-xl);
  background: #fff;
}
.form-card h2,
.form-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.form-card .lead { font-size: 0.95rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-950);
}
.field .req { color: var(--error); }
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  font-size: 1rem;
  color: var(--navy-950);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: #8a93b0; }
.input:hover,
.select:hover,
.textarea:hover { border-color: #c4cde4; }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(38, 87, 226, 0.14);
}
.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230b1240' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.textarea { min-height: 130px; resize: vertical; }
.input-prefix { display: flex; }
.input-prefix span {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-950);
}
.input-prefix .input { border-radius: 0 16px 16px 0; }
.field-error {
  display: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--error);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--error); background: #fff; }
.field.has-error .field-error { display: block; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-note a { color: inherit; text-decoration: underline; }
/* Spam trap: hidden from people, filled in by bots (api/enquiry.php discards those) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
  display: none;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--green-50);
  color: #0f5f3c;
  font-weight: 600;
}
.form-success.is-visible { display: flex; gap: 12px; align-items: flex-start; }
.form-success .ic { color: var(--green-600); margin-top: 2px; }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.contact-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-card h3 { font-size: 1.3rem; }
.contact-card .ic-tile { background: var(--grad-green); color: var(--navy-950); border-radius: 50%; width: 48px; height: 48px; }
.contact-card p,
.contact-card a { color: var(--text); font-size: 0.95rem; word-break: normal; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--blue-700); }
.map-frame {
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

.placeholder-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: #fff4d6;
  color: #6b4800;
  font-size: 0.86rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 16px 0 24px; }
.footer-panel {
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) 28px;
  border-radius: var(--r-xl);
  background: var(--navy-950);
  color: #b9c3ea;
  overflow: hidden;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand img { width: 300px; max-width: 100%; }
.footer-brand p { margin-top: 18px; max-width: 38ch; font-size: 0.95rem; }
.footer-col h2 {
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  font-variation-settings: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-300);
}
.footer-col li + li { margin-top: 4px; }
.footer-col address { font-style: normal; }
.footer-col a,
.footer-col p {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 32px;
  padding: 4px 0;
  font-size: 0.95rem;
  color: #d4dbf7;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--lime-300); }
.footer-col .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--green-500); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.socials a:hover { background: var(--lime-300); color: var(--navy-950); }
.socials .ic { width: 18px; height: 18px; }

/* Floating WhatsApp */
.nav-open .wa-float { display: none; }
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease);
}
@media (hover: hover) { .wa-float:hover { transform: translateY(-2px); } }
.wa-float .wa-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
}
.wa-float .wa-ic svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Palette accents: the logo spectrum (blue -> cyan -> green -> lime) rotates
   across repeated items so sections don't read as all-blue
   -------------------------------------------------------------------------- */
/* 1. Accent rotation: each item in a grid gets one hue (default = blue) */
.grid > *,
.num-list > li,
.step {
  --acc: var(--blue-500);
  --acc-ink: var(--blue-700);
  --acc-soft: var(--blue-50);
  --acc-ring: rgba(59, 132, 250, 0.35);
  --acc-grad: var(--grad-blue);
  --acc-on: #fff;
}
.grid-3 > :nth-child(3n + 2), .grid-4 > :nth-child(4n + 2), .num-list > li:nth-child(4n + 2), .step:nth-child(3) {
  --acc: var(--cyan-400);
  --acc-ink: var(--cyan-ink);
  --acc-soft: var(--cyan-50);
  --acc-ring: rgba(47, 206, 255, 0.45);
  --acc-grad: var(--grad-cyan);
  --acc-on: var(--navy-950);
}
.grid-3 > :nth-child(3n), .grid-4 > :nth-child(4n + 3), .grid-2 > :nth-child(2n), .num-list > li:nth-child(4n + 3), .step:nth-child(4) {
  --acc: var(--green-500);
  --acc-ink: var(--green-ink);
  --acc-soft: var(--green-50);
  --acc-ring: rgba(67, 219, 141, 0.45);
  --acc-grad: var(--grad-green);
  --acc-on: var(--navy-950);
}
.grid-4 > :nth-child(4n), .num-list > li:nth-child(4n) {
  --acc: var(--lime-400);
  --acc-ink: var(--lime-ink);
  --acc-soft: var(--lime-50);
  --acc-ring: rgba(142, 219, 63, 0.45);
  --acc-grad: linear-gradient(120deg, #e3f9a8 0%, #8edb3f 100%);
  --acc-on: var(--navy-950);
}
/* Step 2 sits between blue and cyan on the journey line */
.step:nth-child(2) { --acc-ink: #1561c9; --acc-soft: #e9f4ff; --acc-ring: rgba(59, 160, 252, 0.4); }

.grid > * .ic-tile:not(.ic-tile--navy) { background: var(--acc-soft); color: var(--acc-ink); }
.num-list .n { color: var(--acc-ink); }

/* Cards: a hairline in the card's hue slides in on hover */
.card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--acc, var(--blue-500));
  transform: scaleX(0);
  transition: transform 320ms var(--ease);
}
@media (hover: hover) {
  a.card:hover::after,
  .card--hover:hover::after { transform: none; }
}

/* Journey: circles take the colour of the line passing through them */
.step:not(:last-child) .step-num { background: var(--acc-soft); border-color: var(--acc-ring); color: var(--acc-ink); }

/* Testimonials */
.quote-card .ic-quote { color: var(--acc, var(--green-500)); }
.quote-card .avatar { background: var(--acc-grad, var(--grad-blue)); color: var(--acc-on, #fff); }

/* 2. Hero stats pick up the same three hues as the mission pillars */
.hero-stat:nth-child(1) strong { color: #87bcff; }
.hero-stat:nth-child(2) strong { color: var(--cyan-300); }
.hero-stat:nth-child(3) strong { color: var(--lime-300); }

/* 3. A faint glow in one corner of each light panel, alternating cool / fresh */
main .panel:not(.panel--navy):not(.panel--tight):nth-child(odd) {
  background-image: radial-gradient(42rem 22rem at 100% 0, rgba(83, 225, 255, 0.09), transparent 70%);
}
main .panel:not(.panel--navy):not(.panel--tight):nth-child(even) {
  background-image: radial-gradient(42rem 22rem at 0 100%, rgba(142, 219, 63, 0.09), transparent 70%);
}

/* 4. Footer: spectrum hairline across the top */
.footer-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-spectrum);
}

/* 5. Reading progress: spectrum bar along the top edge (browsers with scroll timelines) */
@supports (animation-timeline: scroll()) {
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 3px;
    background: var(--grad-spectrum);
    transform-origin: left center;
    animation: pp-progress linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
  @keyframes pp-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* 6. Text selection in brand cyan */
::selection { background: rgba(83, 225, 255, 0.35); color: var(--navy-950); }

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS + motion allowed)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* Fixed-width digits, so the count-up doesn't jiggle the text beside it */
[data-count-up] { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* The full menu needs the header's width here, so the logo drops its tagline. */
@media (min-width: 1081px) and (max-width: 1239px) {
  .brand { gap: 10px; }
  .brand-mark { width: 44px; }
  .brand-text { width: 156px; }
  .brand-tagline { display: none; }
}
@media (min-width: 1081px) and (max-width: 1180px) {
  .brand-text { width: 136px; }
}

@media (max-width: 1180px) {
  .nav { gap: 6px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 0 6px; white-space: nowrap; }
  .theme-toggle { width: 42px; height: 42px; }
  .country-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  .nav { min-height: 64px; padding: 8px 8px 8px 18px; }
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: var(--z-menu);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    padding: 12px;
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
  }
  .site-header { position: sticky; }
  .site-header .shell { position: relative; }
  .nav-links.is-open { display: flex; }
  .nav-link { width: 100%; min-height: 52px; justify-content: space-between; padding: 0 16px; font-size: 1rem; }
  .menu {
    position: static;
    width: auto;
    padding: 4px 0 8px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transition: none;
  }
  .has-menu.is-open .menu { display: block; transform: none; }
  .menu-grid { grid-template-columns: 1fr; }
  .nav-links .mobile-cta { display: block; padding: 10px 4px 4px; }

  .hero-stats {
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px);
  }
  .hero--home .hero-content { min-height: 560px; padding-bottom: 28px; }

  .country-layout { grid-template-columns: 1fr; }
  .country-aside { position: static; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1081px) {
  .nav-links .mobile-cta { display: none; }
}

@media (max-width: 900px) {
  /* The sticky header and tabs are nearly opaque already; skipping the blur keeps scrolling smooth on phones */
  .nav, .tabs-bar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { background: rgba(255, 255, 255, 0.98); }
  .tabs-bar { background: rgba(255, 255, 255, 0.99); }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .split,
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3,
  .dest-grid,
  .uni-list,
  .req-grid,
  .intake-grid,
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 28px; bottom: 52px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue-500), var(--cyan-300), var(--green-500)); }
  .js .steps::before { transform: scaleY(0); transform-origin: center top; }
  .js .steps.is-in::before { transform: none; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding-bottom: 24px; }
  .step-num { margin-bottom: 0; }
  .marquee-wrap { flex-wrap: wrap; }
  .hero-overlay {
    background:
      radial-gradient(80% 60% at 0% 100%, rgba(67, 219, 141, 0.3) 0%, rgba(67, 219, 141, 0) 65%),
      linear-gradient(180deg, rgba(11, 18, 64, 0.62) 0%, rgba(11, 18, 64, 0.8) 45%, rgba(11, 18, 64, 0.9) 100%);
  }
  .mission-mark { opacity: 0.07; }
  /* The home page logo sits above the mission text here, in full, so it can still form */
  .mission-mark--anim { position: relative; inset: auto; display: block; width: 88px; margin: 0 0 20px; opacity: 1; }
  .marquee-label { max-width: none; flex: 1 1 100%; }
  .media-frame img { aspect-ratio: 5 / 4; }
}

@media (max-width: 640px) {
  :root { --gutter: 12px; --r-xl: 24px; --r-lg: 20px; }
  /* Cards stack in one column here, so each appears as soon as it scrolls in (no desktop stagger) */
  .js .reveal { transition-delay: 0ms; }
  /* The 18 best-known partners scroll by: half as much to draw, at the same speed */
  .marquee-track .mq-more { display: none; }
  .marquee-track { animation-duration: 40s; }
  body { font-size: 16px; }
  .panel { padding: 24px 20px; }
  .brand { gap: 10px; }
  .brand-mark { width: 42px; }
  .brand-text { width: 166px; gap: 5px; }
  .brand-tagline { --track: 0.14em; }
  .hero-media { --chamfer: 44px; }
  .hero-content { padding: 26px 22px; gap: 18px; }
  .hero--home .hero-content { min-height: 520px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; padding: 0 22px 26px; }
  .hero-stat { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
  .chip-glass { font-size: 0.8rem; }
  .hero-stat strong { font-size: 1.5rem; min-width: 68px; }
  .hero-stat span { margin-top: 0; }
  .grid-2,
  .grid-3,
  .grid-4,
  .dest-grid,
  .uni-list,
  .req-grid,
  .intake-grid,
  .facts-grid,
  .contact-cards,
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .uni-item { gap: 10px; padding: 10px 12px; }
  .uni-item .uni-logo { width: 84px; height: 48px; padding: 5px 8px; }
  .dest-card { min-height: 280px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .tabs-bar { border-radius: 20px; }
  .cost-table th,
  .cost-table td { display: block; width: 100%; }
  .cost-table th { padding-bottom: 2px; border-bottom: 0; }
  .wa-float { right: 12px; bottom: 12px; padding: 8px; }
  .wa-float .wa-label { display: none; }
  .float-card { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .num-list > li { grid-template-columns: 44px minmax(0, 1fr); }
}

/* Very small phones: keep the tagline from crowding the menu button. */
@media (max-width: 359px) {
  .brand-mark { width: 38px; }
  .brand-text { width: 140px; }
  .brand-tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .theme-toggle, .wa-float, .tabs-bar, .country-aside, body::after { display: none; }
  body { background: #fff; }
}
