/* ==========================================================
   EduLearn Academy — navy, ivory & gold
   ========================================================== */
:root {
  --navy-950: #060d1f;
  --navy-900: #0a1730;
  --navy-800: #11244a;
  --green-900: #10221a;
  --ivory: #f6f2e9;
  --sand: #ede6d6;
  --ink: #121a2c;
  --gold: #c8a55a;
  --gold-light: #e7d3a1;
  --gold-deep: #86662a;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--navy-950); }

.container { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Themes ---------- */
.light { --fg: var(--ink); --muted: #555d70; --line: rgba(18,26,44,.14); --accent: var(--gold-deep); background: var(--ivory); color: var(--fg); }
.sand { --fg: var(--ink); --muted: #555d70; --line: rgba(18,26,44,.16); --accent: var(--gold-deep); background: var(--sand); color: var(--fg); }
.dark { --fg: #f3efe6; --muted: #a2abc0; --line: rgba(231,211,161,.16); --accent: var(--gold); background: var(--navy-900); color: var(--fg); }
.green { --fg: #f3efe6; --muted: #b3bfb2; --line: rgba(231,211,161,.2); --accent: var(--gold-light); background: var(--green-900); color: var(--fg); }

/* ---------- Type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
}
.label-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.display {
  font-family: var(--serif); font-weight: 400; color: var(--fg);
  font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.015em;
}
em { font-style: italic; color: var(--accent); }
.section { position: relative; padding: clamp(88px, 11vw, 176px) 0; }
.section-head { max-width: 860px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .label { margin-bottom: 26px; }
.section-sub { margin-top: 26px; max-width: 560px; font-size: 17px; color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); max-width: 560px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--navy-950); transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader img { width: 84px; height: auto; }
.loader-line { width: 120px; height: 1px; background: rgba(231,211,161,.18); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--gold); transform: translateX(-100%); animation: load 1.1s var(--ease) forwards; }
@keyframes load { to { transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 30px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .04em;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn-arrow { transition: transform .4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { border-color: rgba(231,211,161,.35); color: #f3efe6; }
.btn-line:hover { border-color: var(--gold-light); background: rgba(231,211,161,.08); }
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Navigation (floating) ---------- */
/* The glass lives on ::before so the fixed mobile menu isn't trapped
   inside a backdrop-filter containing block. */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px 9px 14px; border-radius: 999px; color: #f3efe6;
  transition: top .5s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(6,13,31,.55); border: 1px solid rgba(231,211,161,.16);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.nav.scrolled { top: 10px; }
.nav.scrolled::before { background: rgba(6,13,31,.86); border-color: rgba(231,211,161,.24); box-shadow: 0 18px 40px -20px rgba(6,13,31,.6); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: .005em; }
.brand-sub { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 13.5px; font-weight: 500; }
.nav-links a:not(.btn) { color: #c6ccdb; position: relative; padding: 6px 0; transition: color .3s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--gold-light); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Contour canvas ---------- */
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 90% at 85% 10%, #142a57 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 150px; padding-bottom: clamp(36px, 5vw, 64px); }
.hero-label { margin-bottom: clamp(22px, 3vw, 36px); }
.hero-title {
  font-family: var(--serif); font-weight: 400; color: #f6f2e9;
  font-size: clamp(50px, 9.4vw, 152px); line-height: .94; letter-spacing: -.025em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.hero-title .line > span { display: inline-block; transform: translateY(108%); transition: transform 1.4s var(--ease); }
.ready .hero-title .line > span { transform: none; }
.ready .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.ready .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(30px, 4vw, 56px); }
.hero-lead { max-width: 500px; font-size: clamp(15.5px, 1.25vw, 18px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
[data-hero] { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
.ready [data-hero] { opacity: 1; transform: none; }
.hero-facts {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); transition-delay: .75s;
}
.hero-facts li { padding: 22px 24px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts strong { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.9vw, 27px); color: #f6f2e9; line-height: 1.2; }
.hero-facts span { font-size: 12px; letter-spacing: .08em; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.about-side { display: grid; gap: 34px; position: sticky; top: 120px; }
.about-logo { width: 100%; max-width: 280px; filter: drop-shadow(0 26px 30px rgba(18,26,44,.22)); }
.plaque { position: relative; padding: 10px; background: #fff; box-shadow: 0 40px 70px -40px rgba(18,26,44,.45), 0 0 0 1px rgba(18,26,44,.06); }
.plaque::after { content: ""; position: absolute; inset: 10px; box-shadow: inset 0 0 0 1px rgba(231,211,161,.5); pointer-events: none; }
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.3vw, 64px); line-height: 1.08; letter-spacing: -.012em; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(52px, 6.6vw, 104px); line-height: 1; letter-spacing: -.02em; }
.stat-label { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Ways to learn ---------- */
.learn { overflow: hidden; }
.learn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 30% 40%, rgba(16,34,26,.92) 0%, rgba(16,34,26,.55) 55%, rgba(16,34,26,.2) 100%); }
.learn-inner { position: relative; z-index: 2; }
.learn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; }
.coords { font-size: 12px; letter-spacing: .22em; color: var(--muted); }
.learn .display { max-width: 900px; margin-top: 26px; }
.learn-lead { margin-top: 30px; max-width: 600px; font-size: 18px; color: #d6ddd3; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(56px, 7vw, 104px) 0 34px; border-top: 1px solid var(--line); }
.trio article { padding: 30px 32px 8px 0; }
.trio article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.trio-num { font-size: 11.5px; letter-spacing: .24em; color: var(--accent); }
.trio h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; margin: 16px 0 12px; }
.trio p { color: var(--muted); font-size: 15px; }

/* ---------- Approach index ---------- */
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 4vw, 64px); }
.index-grid article { position: relative; padding: 28px 0 46px; border-top: 1px solid var(--line); }
.index-grid article::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.index-grid article:hover::before { transform: scaleX(1); }
.index-grid span { font-size: 11.5px; letter-spacing: .24em; color: var(--accent); }
.index-grid h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.15; margin: 14px 0 10px; }
.index-grid p { color: var(--muted); font-size: 15px; max-width: 340px; }

/* ---------- Curricula ---------- */
#curricula { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.curr-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.curr { padding: 40px 40px 12px 0; }
.curr + .curr { padding-left: 40px; border-left: 1px solid var(--line); }
.curr-tag { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.curr h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 6.4vw, 100px); line-height: 1; letter-spacing: -.02em; margin: 22px 0 34px; }
.curr li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ---------- Journey ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: clamp(20px, 3vw, 48px); }
.journey article { position: relative; padding-top: 34px; border-top: 1px solid var(--line); }
.journey article::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 5px var(--sand); }
.journey-num { font-family: var(--serif); font-size: clamp(54px, 5.4vw, 84px); line-height: 1; color: rgba(18,26,44,.16); }
.journey-grades { margin-top: 22px; font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.journey h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.15; margin: 8px 0 12px; }
.journey p:last-child { color: var(--muted); font-size: 15px; }

/* ---------- Founders ---------- */
.founders-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.quote { margin-top: 34px; }
.quote p { font-family: var(--serif); font-size: clamp(32px, 4.1vw, 62px); line-height: 1.1; letter-spacing: -.012em; }
.quote footer { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); max-width: 320px; }
.founders-title { font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.6vw, 38px); line-height: 1.15; }
.founders-lead { margin-top: 20px; color: var(--muted); }
.timeline { margin-top: 44px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline span { font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1.2; }
.timeline h4 { font-size: 16px; font-weight: 600; }
.timeline p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* ---------- Enrol ---------- */
.enrol-grid { display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: clamp(48px, 8vw, 140px); align-items: start; }
.enrol-grid .label { margin-bottom: 26px; }
.steps { margin-top: 48px; }
.steps li { display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { font-family: var(--sans); font-size: 11.5px; letter-spacing: .24em; color: var(--accent); }
.enquiry { background: var(--navy-900); color: #f3efe6; padding: clamp(30px, 4vw, 52px); box-shadow: 0 50px 90px -50px rgba(6,13,31,.7); }
.enquiry h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin-bottom: 26px; }
.field { position: relative; margin-bottom: 8px; }
.field input, .field select {
  width: 100%; padding: 26px 0 10px; font: inherit; font-size: 16px; color: #f3efe6;
  background: transparent; border: 0; border-bottom: 1px solid rgba(231,211,161,.25); border-radius: 0; outline: none;
  transition: border-color .3s; appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%); background-position: calc(100% - 11px) 34px, calc(100% - 6px) 34px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--navy-900); color: #f3efe6; }
.field input:focus, .field select:focus { border-color: var(--gold); }
.field label { position: absolute; left: 0; top: 24px; font-size: 15px; color: #a2abc0; pointer-events: none; transition: all .3s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 6px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.field.invalid input, .field.invalid select { border-color: #e58a8a; }
.field-trap { position: absolute; left: -9999px; }
.enquiry .btn { margin-top: 28px; }
.form-note { margin-top: 14px; min-height: 1.5em; font-size: 14px; text-align: center; color: var(--gold-light); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); padding: clamp(64px, 8vw, 110px) 0 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-top .label { margin-bottom: 14px; }
.footer-top p:not(.label) { color: #c6ccdb; font-size: 15px; }
.footer-top a { transition: color .3s; }
.footer-top a:hover { color: var(--gold-light); }
.footer-links { display: grid; gap: 4px; }
.wordmark {
  margin: clamp(48px, 7vw, 96px) 0 20px; font-family: var(--serif); font-size: clamp(40px, 11.5vw, 190px); line-height: .9; letter-spacing: -.03em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(231,211,161,.9), rgba(200,165,90,.25)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: rgba(6,13,31,.98); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { font-family: var(--serif); font-size: 36px; color: #f3efe6; }
  .nav-links .btn { margin-top: 12px; padding: 14px 34px; font-size: 14px; }
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .founders-grid, .enrol-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .about-logo { max-width: 200px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts li { padding: 16px 16px 16px 0; }
  .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trio, .curr-grid { grid-template-columns: 1fr; }
  .trio article, .trio article + article { padding: 26px 0; border-left: 0; }
  .trio article + article { border-top: 1px solid var(--line); }
  .curr, .curr + .curr { padding: 34px 0 20px; border-left: 0; }
  .curr + .curr { border-top: 1px solid var(--line); }
  .learn-head { flex-direction: column; gap: 10px; }
}
@media (max-width: 600px) {
  .nav { top: 10px; padding: 7px 6px 7px 10px; }
  .brand-name { font-size: 19px; }
  .brand img { width: 36px; height: 34px; }
  .hero-inner { padding-top: 120px; }
  .about-cols, .index-grid, .journey { grid-template-columns: 1fr; }
  .index-grid article { padding-bottom: 32px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .timeline li { grid-template-columns: 76px 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta .btn { padding: 15px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
