/* ============================================================
   Venkys Consultancy - 3D Website (V2)
   Design system (multi-page)
   ------------------------------------------------------------
   Brand tokens derived from the existing site palette:
   ink #0A2540 / accent #1F7FD1 (light), bg #0A0F17 / accent
   #5B9FE0 (dark). Display: Bricolage Grotesque. Body: Outfit.
   Labels: JetBrains Mono.

   Shape rule: interactive controls = pill, surfaces = 16px,
   inputs = 12px. One accent per theme (sky blue); warm gold
   lives only inside the 3D scene.

   No decorative icons by client request. Functional glyphs
   only: theme toggle, menu, chevrons, form controls.
   ============================================================ */

:root {
  --font-display: "bricolage", "Outfit", system-ui, sans-serif;
  --font-body: "outfit", system-ui, sans-serif;
  --font-mono: "jetbrainsmono", ui-monospace, "SF Mono", monospace;

  --radius-card: 16px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --maxw: 1200px;
  --header-h: 76px;

  --z-scene: 0;
  --z-content: 1;
  --z-header: 50;
  --z-menu: 40;
  --z-ctabar: 30;
  --z-grain: 60;
  --z-skip: 100;
}

/* ---------- Dark theme (the only theme) ---------- */
:root, [data-theme="dark"] {
  --bg: #050B14;
  --bg-alt: #081120;
  --surface: #0C1828;
  --surface-2: #101F33;
  --border: rgba(140, 180, 220, 0.14);
  --border-strong: rgba(140, 180, 220, 0.30);
  --heading: #F2F7FC;
  --text: #C7D4E2;
  --muted: #8EA3B9;
  --accent: #6FB6F2;
  --accent-strong: #3E93DC;
  --accent-ink: #052033;
  --gold: #F0C878;
  --header-bg: rgba(5, 11, 20, 0.80);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 24px 56px rgba(0, 0, 0, 0.5);
  --glow-soft: 0 0 0 1px rgba(111, 182, 242, 0.10), 0 8px 40px rgba(62, 147, 220, 0.08);
  --scene-shade: linear-gradient(180deg, rgba(5,11,20,0) 0%, rgba(5,11,20,0.62) 58%, var(--bg) 100%);
  --grain-opacity: 0.05;
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: clip;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

img { max-width: 100%; display: block; }

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

strong { color: var(--heading); font-weight: 600; }

::selection { background: var(--accent); color: var(--accent-ink); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: fixed;
  top: -70px; left: 16px;
  z-index: var(--z-skip);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; text-decoration: none; }

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

/* Grain overlay (fixed, pointer-free) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3D scene backdrop ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: var(--z-scene);
  pointer-events: none;
}
.scene-canvas { width: 100%; height: 100%; display: block; }
.scene-shade {
  position: absolute;
  inset: 0;
  background: var(--scene-shade);
  transition: background 0.4s ease;
}
.scene.scene-faded { opacity: 0.10; transition: opacity 0.8s ease; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(30, 110, 190, 0.30);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30, 110, 190, 0.40);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-sm { padding: 11px 22px; font-size: 14.5px; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Header & nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.4s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.logo-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(150deg, #0C1E36 0%, #102B4E 60%, #16406B 100%);
  border: 1px solid rgba(111, 182, 242, 0.35);
  box-shadow:
    0 0 0 1px rgba(5, 11, 20, 0.6),
    0 6px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.logo-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 22% 0%, rgba(111, 182, 242, 0.26), transparent 55%);
  pointer-events: none;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--heading);
}
.brand-text span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.primary-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.primary-nav > a:hover {
  color: var(--heading);
  background: var(--surface-2);
  text-decoration: none;
}
.primary-nav > a.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.primary-nav > a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.94); }

.menu-toggle { display: none; }

/* ---------- Hero (page top) ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 30px);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.hero-copy { max-width: 760px; position: relative; z-index: var(--z-content); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 14ch;
}
.hero-title .accent-word { color: var(--accent); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(112%);
  animation: lineUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes lineUp { to { transform: translateY(0); } }

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  color: var(--text);
  max-width: 58ch;
  margin-bottom: 34px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.52s forwards;
}
.hero-meta span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
}

/* Sub-page hero (smaller) */
.hero-small {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 70px;
  z-index: var(--z-content);
}
.hero-small .eyebrow { margin-bottom: 18px; }
.hero-small h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 18px;
}
.hero-small .lead { max-width: 62ch; font-size: 1.12rem; color: var(--text); margin: 0; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: var(--z-content);
  padding: 120px 0;
}
.section-tight { padding: 88px 0; }
.section-alt {
  background: color-mix(in srgb, var(--bg-alt) 90%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 750; letter-spacing: -0.025em; }
.section-head .section-sub { font-size: 17.5px; color: var(--muted); max-width: 62ch; margin-top: -4px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(5px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- Home: business pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 38px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.pillar:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover), var(--glow-soft);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.pillar-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.pillar h3 { font-size: 1.55rem; margin: 0; }
.pillar p { color: var(--muted); font-size: 15.5px; margin: 0; flex-grow: 1; }
.pillar ul { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.pillar li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--text);
}
.pillar li::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}
.pillar .link-more {
  margin-top: 8px;
  font-weight: 600;
  font-size: 15px;
}
.pillar .link-more::after { content: " →"; }

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { padding: 26px 24px; border-left: 1px solid var(--border); }
.stat .stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
  display: block;
}
.stat .stat-lbl { font-size: 14px; color: var(--muted); }

/* ---------- University cards (admissions) ---------- */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.uni-card {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.uni-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}
.uni-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.uni-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.uni-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: linear-gradient(160deg, #F8FAFD 0%, #EFF4FA 100%);
  border: 1px solid rgba(20, 38, 61, 0.14);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(0, 0, 0, 0.25);
}
.uni-logo img {
  display: block;
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Course cards (soft skills) ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.course-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: var(--shadow-card-hover);
}
.course-card .course-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.course-card h3 { font-size: 1.18rem; margin: 0 0 8px; }
.course-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Marquee (max one per page) */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  z-index: var(--z-content);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  opacity: 0.85;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Diploma cards ---------- */
.diploma-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  perspective: 1500px;
}
.diploma-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.diploma-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); }
.diploma-top h3 { font-size: 1.65rem; margin: 18px 0 12px; }
.diploma-top p { color: var(--muted); font-size: 16px; margin: 0; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.tag-soft {
  color: var(--muted);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.diploma-modules {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.diploma-modules h4, .careers h4, .mini-head {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.diploma-modules ol { display: flex; flex-direction: column; gap: 12px; counter-reset: m; }
.diploma-modules li {
  counter-increment: m;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.diploma-modules li::before {
  content: counter(m, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  padding-top: 4px;
  flex-shrink: 0;
}
.diploma-foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.careers p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Feature lists ---------- */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text);
  padding-left: 30px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Process timeline ---------- */
.step-list { position: relative; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.step-list::before {
  content: "";
  position: absolute;
  left: 28px; top: 14px; bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border));
}
.step { display: flex; gap: 30px; position: relative; }
.step-index {
  flex-shrink: 0;
  width: 58px; height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11.5px;
  text-align: center;
  line-height: 1.3;
  box-shadow: var(--shadow-card);
}
.step-body { padding-top: 4px; }
.step-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step-body p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.review-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--heading);
}
.review-card figcaption { color: var(--muted); font-size: 14px; }
.placeholder-note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  text-align: left;
  transition: color 0.16s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q .chev { flex-shrink: 0; color: var(--muted); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item[data-open="true"] .faq-q .chev { transform: rotate(180deg); }
.faq-item[data-open="true"] .faq-q { color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 6px 24px; color: var(--muted); max-width: 66ch; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 38px;
  box-shadow: var(--shadow-card-hover);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .form-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }

.enquiry-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--heading); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 15.5px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #E26D5C;
  box-shadow: 0 0 0 3px rgba(226, 109, 92, 0.16);
}
.error-msg { font-size: 13px; color: #E26D5C; display: none; }
.error-msg.show { display: block; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status { font-size: 14.5px; min-height: 22px; }
.form-status.success { color: #4FBF7A; font-weight: 600; }
.form-status.error { color: #E26D5C; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }

/* ---------- Lead / CTA band ---------- */
.lead-band {
  position: relative;
  z-index: var(--z-content);
  padding: 110px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 82% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg);
  text-align: center;
}
.lead-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 22ch; margin: 0 auto 18px; }
.lead-band p { color: var(--muted); max-width: 54ch; margin: 0 auto 34px; font-size: 17px; }
.lead-band .lead-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.contact-info p { color: var(--muted); max-width: 50ch; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.contact-list li { font-size: 16px; }
.contact-link { font-weight: 600; font-size: 17px; }
.contact-placeholder { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: var(--z-content);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 76px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 44px;
  margin-bottom: 60px;
}
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer-subhead { margin-top: 30px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-col .placeholder-note { text-align: left; margin: 0; font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-ctabar);
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.cta-bar-btn {
  padding: 16px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-ink);
  text-decoration: none;
}
.cta-bar-btn:hover { text-decoration: none; filter: brightness(1.06); }
.cta-primary { background: var(--accent); }
.cta-secondary { background: var(--surface); color: var(--heading); }

/* ---------- Page fade-in ---------- */
body.page-enter { opacity: 0; }
body { opacity: 1; transition: opacity 0.45s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .uni-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .primary-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: calc(var(--header-h) + 20px) 22px 44px;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: var(--z-menu);
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  .primary-nav > a { padding: 14px 16px; font-size: 16.5px; justify-content: space-between; }
  .primary-nav > a.active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .primary-nav > a.active::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .section-tight { padding: 60px 0; }
  .nav-wrap { padding: 0 18px; gap: 12px; }
  .hero { min-height: 100svh; }
  .hero-inner { padding: 0 18px; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.3rem); }
  .hero-small { padding: calc(var(--header-h) + 60px) 0 54px; }

  .pillar-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .uni-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .diploma-grid, .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .step-list { gap: 38px; }
  .form-card { padding: 26px 20px; }
  .header-actions .btn-sm { display: none; }
  .mobile-cta-bar { display: grid; }
  body { padding-bottom: 56px; }
  .stat { padding: 18px 14px; }
  .stat .stat-num { font-size: 1.7rem; }
  .section-head { margin-bottom: 42px; }
  .pillar { padding: 30px 24px; }
}

/* ---------- V5: responsive header/footer fixes ---------- */
/* When the nav becomes a drawer (<=1100px) it leaves flex flow, so push the
   action buttons (Enquire + hamburger) to the far right instead of letting
   them float beside the brand - this was making them look centered on
   tablets and unbalanced on phones. */
@media (max-width: 1100px) {
  .nav-wrap { justify-content: space-between; }
}

/* Footer: stack cleanly on phones */
@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .footer-brand p { max-width: 44ch; }
}

/* Small phones: slightly tighter brand so nothing crowds the hamburger */
@media (max-width: 480px) {
  .logo-chip { width: 42px; height: 42px; border-radius: 12px; }
  .nav-wrap { gap: 10px; }
}

/* Legacy tiny screens (<=360px): drop the long mono sub-label so the header
   never overflows; the full company name still lives in the footer. */
@media (max-width: 359px) {
  .brand-text span { display: none; }
}

/* ---------- Motion preferences ---------- */
@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;
  }
  .hero-title .line > span { transform: none; }
  .hero-lead, .hero-ctas, .hero-meta { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   V3: dark-only polish, parallax, scroll progress, glow
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #3E93DC, #6FB6F2 55%, #F0C878);
  box-shadow: 0 0 12px rgba(111, 182, 242, 0.55);
  z-index: var(--z-skip);
  pointer-events: none;
}

/* Ambient parallax orbs (pure CSS, JS moves them) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.orb-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(62, 147, 220, 0.28), transparent 65%);
}
.orb-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(240, 200, 120, 0.10), transparent 65%);
}
.orb-c {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(30, 84, 150, 0.32), transparent 65%);
}

/* Section-level parallax depth layers */
[data-parallax] {
  will-change: transform;
}
[data-parallax-mouse] {
  will-change: transform;
}

/* Universal card tilt + hover glow */
.tiltable {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.tiltable:hover {
  border-color: var(--accent);
  box-shadow:
    var(--shadow-card-hover),
    0 0 0 1px rgba(111, 182, 242, 0.25),
    0 0 42px rgba(62, 147, 220, 0.16);
}
.tilt-inner {
  transform: translateZ(26px);
}

/* Hero polish: accent word + gradient underline */
.hero-title .accent-word {
  background: linear-gradient(100deg, #6FB6F2 0%, #A9D4FA 55%, #F0C878 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section head refinement */
.section-head { position: relative; z-index: 1; }
.section-head h2 { text-wrap: balance; }

/* Grain overlay (premium film texture, very subtle) */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* Form + card polish */
.form-card { position: relative; z-index: 1; }
.review-card, .pillar, .uni-card, .course-card, .diploma-card, .form-card {
  position: relative;
}

/* Hero meta chips alignment */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-meta span {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(12, 24, 40, 0.55);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  backdrop-filter: blur(6px);
}

/* Small-screen parallax safety: disable translate on touch */
@media (hover: none), (pointer: coarse) {
  [data-parallax-mouse] { transform: none !important; }
  .tiltable { transform: none !important; }
}

/* Layout guardrails found in QA */
.lead-band { position: relative; z-index: 1; }
.section-alt .container { position: relative; z-index: 1; }
.stats-strip { position: relative; z-index: 1; }
.placeholder-note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  max-width: 72ch;
  margin: 26px auto 0;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .hero-meta { gap: 8px; }
  .hero-meta span { padding: 6px 11px; font-size: 11.5px; }
  .orb-a { width: 340px; height: 340px; }
  .orb-b { width: 280px; height: 280px; }
}

/* ============================================================
   V4: typography polish - one coherent type system
   ============================================================ */

/* Buttons: consistent voice */
.btn {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Navigation: crisp, on-brand */
.primary-nav > a {
  font-weight: 550;
  letter-spacing: 0.01em;
  font-size: 14.5px;
}

/* Hero scales */
.hero-title {
  font-size: clamp(2.9rem, 6.8vw, 5.1rem);
  letter-spacing: -0.032em;
  line-height: 1.02;
}
.hero-small h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.026em;
  line-height: 1.08;
  max-width: 22ch;
}
.hero-small .lead, .hero .hero-lead {
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 64ch;
}

/* Labels: one mono voice everywhere */
.section-label, .course-tag, .footer-col h4, .mini-head {
  font-size: 11px;
  letter-spacing: 0.17em;
  font-weight: 600;
}
.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Paragraph measure for long-form */
.prose p, .diploma-summary, .pillar p, .step-body p {
  text-wrap: pretty;
}

/* FAQ question typography */
.faq-q {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.005em;
}

/* Stat numbers: tighter display numerals */
.stat .stat-num {
  letter-spacing: -0.035em;
}

/* Footer bottom: quiet, consistent */
.footer-bottom {
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Form: refined inputs */
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
}

/* Links in lists stay aligned with body type */
.footer-col a, .contact-link {
  font-size: 14.5px;
  letter-spacing: 0.005em;
}

/* Headline wrapping never orphans */
h1, h2, h3 { text-wrap: balance; }

.hero, .hero-small {
  position: relative;
  overflow: hidden;
}
.hero-inner, .hero-small .container {
  position: relative;
  z-index: 1;
}
.hero-small .orb {
  top: -140px;
  left: -120px;
}
.hero-small .orb.orb-c {
  top: 40px;
  right: -140px;
  left: auto;
}
.hero .orb {
  top: 12%;
  left: -160px;
}
.hero .orb.orb-b {
  top: auto;
  bottom: 8%;
  right: -140px;
  left: auto;
}
.hero .orb.orb-c {
  top: -120px;
  right: 12%;
  left: auto;
}


/* ---------- Diploma page components ---------- */
.diploma-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.diploma-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 10px 0 0; letter-spacing: -0.02em; }
.tag-gold {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
  flex-shrink: 0;
}
.diploma-summary {
  font-size: 17px;
  color: var(--text);
  max-width: 68ch;
  margin: 0;
  line-height: 1.6;
}
.diploma-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.diploma-cols h3 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.module-list {
  list-style: none;
  counter-reset: mod;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.module-list li {
  counter-increment: mod;
  position: relative;
  padding-left: 44px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
}
.diploma-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.diploma-foot p { margin: 0; }

/* ---------- Diploma fee / limited-time offer pricing ---------- */
.price-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.price-values {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price-old {
  font-size: 16px;
  color: var(--muted);
  opacity: 0.9;
  text-decoration: line-through;
  text-decoration-thickness: 2.5px;
  text-decoration-color: color-mix(in srgb, #e56f6f 80%, transparent);
  white-space: nowrap;
}
.price-new {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- Misc missing components ---------- */
.magnetic {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}
.map-placeholder {
  margin-top: 34px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  background: var(--surface);
}
.map-placeholder p { margin: 0 0 6px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--text); margin: 0 0 20px; }
.stat-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}
.stat-link:hover, .stat-link:focus-visible { color: var(--accent); transform: translateY(-2px); }

@media (max-width: 767px) {
  .diploma-card { padding: 28px 22px; }
  .diploma-head { flex-direction: column; gap: 12px; }
  .diploma-cols { grid-template-columns: 1fr; gap: 30px; }
  .diploma-foot { flex-direction: column; align-items: flex-start; }
  .prose p { font-size: 16px; }
}

/* ---------- Mobile fix: wrap long hero eyebrow ---------- */
@media (max-width: 767px) {
  .eyebrow {
    flex-wrap: wrap;
    max-width: 100%;
    white-space: normal;
    line-height: 1.6;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    padding: 7px 12px;
  }
}

