/* Hemley's Tutoring — styles
   Palette is built from the brand's Instagram flyers: royal blue + sky blue
   on a midnight-navy base, with a restrained violet accent. */

:root {
  --navy-950: #040A1F;
  --navy-900: #071233;
  --navy-800: #0D1D4A;
  --navy-700: #16296A;
  --blue-700: #1347B8;
  --blue-600: #1A5BE0;   /* brand royal blue */
  --blue-500: #2D7BF0;
  --sky-400: #45BDF8;    /* brand sky blue */
  --sky-300: #8AD7FF;
  --violet-400: #9B8CFF;
  --paper: #F5F8FD;
  --paper-2: #EAF0FA;
  --white: #FFFFFF;
  --ink: #0A1533;
  --ink-2: #3A4766;
  --ink-3: #5B6785;
  --line: #D9E2F1;
  --line-dark: rgba(150, 190, 255, 0.16);
  --text-on-dark: #EAF1FF;
  --muted-on-dark: #A9B8DA;
  --focus: #FFB547;
  --danger: #C62828;
  --danger-on-dark: #FF9C9C;

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 21, 51, 0.06), 0 2px 8px rgba(10, 21, 51, 0.05);
  --shadow: 0 10px 30px -12px rgba(10, 30, 80, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 8px 24px -8px rgba(26, 91, 224, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(45, 123, 240, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-ghost { color: var(--text-on-dark); border-color: rgba(138, 215, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: var(--sky-300); background: rgba(138, 215, 255, 0.1); }
.btn-outline { color: var(--blue-700); border-color: var(--blue-600); background: transparent; }
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn:active { transform: translateY(0); }

.link-btn {
  background: none; border: 0; padding: 6px 0; color: var(--sky-300);
  font-family: var(--font-display); font-weight: 600; text-align: left;
}
.link-btn:hover { color: var(--white); }
.link-btn span { display: inline-block; transition: transform 0.2s var(--ease); }
.link-btn:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(7, 18, 51, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo-img { height: 64px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35)); }
.logo-img-lg { height: 84px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav ul a {
  display: inline-block; padding: 10px 12px; border-radius: 999px;
  color: var(--muted-on-dark); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--white); background: rgba(138, 215, 255, 0.1); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.05); color: var(--white);
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 16px 24px;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-dark);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(4, 10, 31, 0.6); }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { display: block; padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .site-nav .btn { width: 100%; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--text-on-dark);
  background:
    radial-gradient(1000px 600px at 85% 20%, rgba(26, 91, 224, 0.35), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(155, 140, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  padding: calc(var(--header-h) + 56px) 0 96px;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-lines path { fill: none; stroke: rgba(138, 215, 255, 0.16); stroke-width: 1; }
.c-dots circle { fill: var(--sky-300); opacity: 0.55; animation: twinkle 5s ease-in-out infinite; }
.c-dots circle:nth-child(3n) { animation-delay: -1.6s; }
.c-dots circle:nth-child(3n+1) { animation-delay: -3.2s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.8; } }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.glow-b { width: 300px; height: 300px; left: -80px; bottom: -60px; background: rgba(26, 91, 224, 0.22); }

.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; }
.hero-media {
  position: absolute; z-index: -1; margin: 0;
  top: 0; right: 0; bottom: 0; width: 62%;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 10, 31, 0.55) 0%, transparent 22%, transparent 70%, rgba(13, 29, 74, 0.95) 100%),
    linear-gradient(90deg, rgba(4, 10, 31, 0.6) 0%, rgba(7, 18, 51, 0.15) 60%, rgba(26, 91, 224, 0.12) 100%);
}
.hero-media figcaption {
  position: absolute; right: 16px; bottom: 14px; z-index: 1;
  font-size: 0.78rem; color: rgba(234, 241, 255, 0.78);
  background: rgba(4, 10, 31, 0.55); padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem; font-weight: 500; color: var(--sky-300); letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-400); box-shadow: 0 0 0 4px rgba(69, 189, 248, 0.2); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; color: var(--white); }
.grad-text {
  background: linear-gradient(100deg, var(--sky-300) 0%, var(--sky-400) 40%, var(--blue-500) 75%, var(--violet-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted-on-dark); max-width: 36em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted-on-dark); font-size: 0.95rem; }
.hero-facts li { display: flex; align-items: baseline; gap: 6px; padding-left: 16px; position: relative; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--sky-400); transform: rotate(45deg); }
.hero-facts strong { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }


/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-light { background: var(--paper); }
.section-light + .section-light { padding-top: 0; }
.section-dark {
  color: var(--text-on-dark);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(26, 91, 224, 0.22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(155, 140, 255, 0.1), transparent 60%),
    var(--navy-900);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }
.kicker {
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px;
}
.section-dark .kicker { color: var(--sky-400); }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.section-intro { font-size: 1.12rem; color: var(--ink-2); margin: 0; }
.section-dark .section-intro { color: var(--muted-on-dark); }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Founder */
.section-founder {
  color: var(--text-on-dark);
  background:
    radial-gradient(700px 420px at 0% 10%, rgba(69, 189, 248, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.section-founder h2 { color: var(--white); }
.section-founder .kicker { color: var(--sky-400); }
.founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.founder-media { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.founder-photo, .founder-banner { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6); }
.founder-photo img { width: 100%; aspect-ratio: 660 / 620; object-fit: cover; }
.founder-photo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(138, 215, 255, 0.25), inset 0 -80px 80px -40px rgba(4, 10, 31, 0.6);
}
.founder-photo figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 0.75rem; color: rgba(234, 241, 255, 0.8); }
.founder-banner { display: grid; grid-template-columns: 44% 1fr; align-items: center; background: rgba(255, 255, 255, 0.04); }
.founder-banner img { width: 100%; height: 100%; object-fit: cover; }
.founder-banner figcaption { padding: 14px 18px; font-family: var(--font-display); font-weight: 600; color: var(--sky-300); font-size: 0.98rem; line-height: 1.35; }
.founder-lead { font-size: clamp(1.15rem, 1.8vw, 1.32rem); color: var(--white); line-height: 1.55; }
.founder-story p { color: var(--muted-on-dark); }
.founder-quote {
  margin: 28px 0; padding: 22px 26px; border-radius: var(--radius);
  border-left: 4px solid var(--sky-400);
  background: linear-gradient(120deg, rgba(26, 91, 224, 0.28), rgba(255, 255, 255, 0.03));
}
.founder-quote p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; color: var(--white); line-height: 1.3; margin-bottom: 10px; }
.founder-quote footer { font-size: 0.92rem; color: var(--muted-on-dark); }
.founder-quote a { color: var(--sky-300); }
.founder-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.founder-facts li { padding: 16px; border-radius: 14px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03); }
.founder-facts strong { display: block; font-family: var(--font-display); color: var(--white); font-size: 1.05rem; margin-bottom: 2px; }
.founder-facts span { font-size: 0.9rem; color: var(--muted-on-dark); line-height: 1.4; display: block; }
.founder-contact { padding: 24px; border-radius: var(--radius-lg); border: 1px solid rgba(138, 215, 255, 0.3); background: rgba(4, 10, 31, 0.4); }
.founder-contact-label { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.founder-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.founder-contact .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.why-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #BFD3F5; }
.why-card h3 { font-size: 1.2rem; margin-top: 18px; }
.why-card p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.why-icon {
  display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E3EEFF, #D3F0FF); color: var(--blue-600);
}
.why-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-card { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.audience-card h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.audience-card p:last-child { margin: 0; }
.audience-parents { background: var(--white); border: 1px solid var(--line); }
.audience-parents p:last-child { color: var(--ink-2); }
.audience-students {
  color: var(--text-on-dark);
  background: radial-gradient(500px 260px at 100% 0%, rgba(69, 189, 248, 0.35), transparent 70%), linear-gradient(135deg, var(--navy-800), var(--blue-700));
}
.audience-students h3 { color: var(--white); }
.audience-students .kicker { color: var(--sky-300); }
.audience-students p:last-child { color: #D6E4FF; }

/* Programmes */
.level-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.level-card { border-radius: var(--radius); padding: 26px 24px 20px; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), border-color 0.3s; }
.level-card:hover { transform: translateY(-4px); border-color: rgba(138, 215, 255, 0.4); }
.level-card h3 { font-size: 1.2rem; margin-top: 14px; }
.level-card p { color: var(--muted-on-dark); font-size: 0.98rem; flex: 1; }
.level-chip {
  align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  padding: 6px 12px; border-radius: 8px; color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.filter-btn {
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04); color: var(--muted-on-dark);
  font-family: var(--font-display); font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--white); border-color: rgba(138, 215, 255, 0.45); }
.filter-btn[aria-pressed="true"] { color: var(--navy-950); background: var(--sky-300); border-color: var(--sky-300); font-weight: 600; }

.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 64px; min-height: 80px; }
.subject-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark);
  animation: pop 0.35s var(--ease) both;
  transition: border-color 0.2s, background-color 0.2s;
}
.subject-card:hover { border-color: rgba(138, 215, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.subject-glyph {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 48px; padding: 0 6px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--sky-300);
  background: rgba(69, 189, 248, 0.1); border: 1px solid rgba(69, 189, 248, 0.25);
}
.subject-text { display: flex; flex-direction: column; min-width: 0; }
.subject-name { font-weight: 600; color: var(--white); line-height: 1.3; }
.subject-level { font-size: 0.85rem; color: var(--muted-on-dark); }

.formats { border-top: 1px solid var(--line-dark); padding-top: 48px; }
.formats-title { font-size: 1.5rem; margin-bottom: 24px; }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.format-item h4 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; padding-left: 18px; position: relative; }
.format-item h4::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky-400); box-shadow: 0 0 10px var(--sky-400); }
.format-item p { color: var(--muted-on-dark); margin: 0; font-size: 1rem; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--sky-400), var(--blue-600), transparent); border-radius: 2px; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 36px; position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: 144px; top: 28px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue-600); box-shadow: 0 0 0 5px rgba(26, 91, 224, 0.12);
}
.timeline-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 20px; }
.timeline-date { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.tag { font-size: 0.8rem; font-weight: 600; color: var(--blue-700); background: #E3EEFF; padding: 3px 10px; border-radius: 999px; }
.timeline-body {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline-body:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.timeline-body h3 { font-size: 1.2rem; }
.timeline-body p { color: var(--ink-2); margin-bottom: 10px; }
.source-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; min-height: 32px; }
.source-link:hover { text-decoration: underline; }
.source-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  margin: 0; border-radius: var(--radius-lg); padding: 34px 32px 28px; position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(138, 215, 255, 0.35); }
.review-featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(69, 189, 248, 0.2), transparent 70%),
    linear-gradient(160deg, rgba(26, 91, 224, 0.35), rgba(255, 255, 255, 0.03));
}
.review-featured blockquote p { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.5; }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: 0.6; height: 36px; color: var(--sky-400); opacity: 0.7; }
.review-card blockquote { margin: 0 0 22px; flex: 1; }
.review-card blockquote p { margin: 0; color: var(--text-on-dark); font-size: 1.06rem; }
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-dark); padding-top: 16px; }
.review-author { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.review-role { color: var(--sky-300); font-size: 0.92rem; }
.review-note { color: var(--muted-on-dark); font-size: 0.82rem; font-style: italic; }
.review-card .source-link { color: var(--sky-300); margin-top: 6px; align-self: flex-start; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.team-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.team-card h3 { font-size: 1.3rem; margin-bottom: 2px; }
.team-card p { color: var(--ink-2); margin: 0; }
.team-card .team-role { color: var(--blue-600); font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }
.avatar { flex: none; width: 88px; height: 88px; border-radius: 26px; object-fit: cover; }
.avatar-initials {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-script); font-size: 2.6rem; color: var(--white);
  background: radial-gradient(circle at 30% 25%, #4DA0FF, var(--blue-600) 55%, var(--navy-700));
  box-shadow: 0 10px 24px -10px rgba(26, 91, 224, 0.7);
}
.hiring {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px dashed #A8C2EE; border-radius: var(--radius-lg); padding: 26px 30px; background: var(--paper-2);
}
.hiring h3 { font-size: 1.3rem; }
.hiring p { color: var(--ink-2); margin: 0; max-width: 60ch; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 30px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -21px; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--sky-400), transparent);
}
.step-num {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1;
  background: linear-gradient(135deg, var(--sky-300), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted-on-dark); margin: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.gallery-item a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #BFD3F5; }
.gallery-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-art {
  display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 18px;
  position: relative; overflow: hidden;
}
.gallery-art span {
  position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); letter-spacing: -0.01em;
}
.gallery-art::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28); right: -50px; top: -90px;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05), 0 0 0 60px rgba(255, 255, 255, 0.03);
}
.art-0 { background: linear-gradient(135deg, var(--blue-600), var(--sky-400)); }
.art-1 { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); }
.art-2 { background: linear-gradient(135deg, var(--navy-900), #4B4FC8); }
.art-3 { background: linear-gradient(135deg, var(--blue-700), #2A9AD8); }
.gallery-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.gallery-meta { font-size: 0.82rem; font-weight: 600; color: var(--blue-600); letter-spacing: 0.04em; text-transform: uppercase; }
.gallery-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.gallery-text { color: var(--ink-2); font-size: 0.97rem; flex: 1; }
.gallery-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue-700); font-size: 0.92rem; margin-top: 6px; }
.gallery-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 0.2s var(--ease); }
.gallery-item a:hover .gallery-cta svg { transform: translate(2px, -2px); }

/* FAQ */
.section-faq { padding-top: clamp(72px, 10vw, 120px) !important; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item[open] { border-color: #BFD3F5; box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; min-height: 56px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-700); }
.faq-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #E3EEFF; position: relative; transition: transform 0.3s var(--ease), background-color 0.2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue-600); border-radius: 2px; translate: -50% -50%; }
.faq-icon::after { rotate: 90deg; transition: rotate 0.3s var(--ease); }
.faq-item[open] .faq-icon { background: var(--blue-600); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--white); }
.faq-item[open] .faq-icon::after { rotate: 0deg; }
.faq-answer { padding: 0 24px 22px; color: var(--ink-2); }
.faq-answer p { margin: 0; }

/* Enquire */
.enquire-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 32px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px;
  text-decoration: none; color: var(--text-on-dark);
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.contact-item:hover { border-color: rgba(138, 215, 255, 0.45); background: rgba(255, 255, 255, 0.06); transform: translateX(3px); }
.contact-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(69, 189, 248, 0.12); color: var(--sky-300); }
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { display: block; font-size: 0.82rem; color: var(--muted-on-dark); }
.contact-value { display: block; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; word-break: break-word; }

.enquiry-form { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.enquiry-form h3 { font-size: 1.5rem; margin-bottom: 4px; }
.form-note { color: var(--muted-on-dark); font-size: 0.92rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label, .send-via legend { display: block; font-weight: 600; margin-bottom: 8px; color: var(--white); font-size: 0.98rem; }
.optional { font-weight: 400; color: var(--muted-on-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(4, 10, 31, 0.55); border: 1.5px solid rgba(150, 190, 255, 0.28);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sky-300) 50%), linear-gradient(135deg, var(--sky-300) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option, .field select optgroup { color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8796BC; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(138, 215, 255, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(69, 189, 248, 0.22); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--danger-on-dark); }
.field-hint { font-size: 0.86rem; color: var(--muted-on-dark); margin: 6px 0 0; }
.field-error { font-size: 0.9rem; color: var(--danger-on-dark); margin: 6px 0 0; font-weight: 500; }
.field-error::before { content: "! "; font-weight: 700; }
.send-via { border: 0; padding: 0; margin: 0 0 22px; }
.radio { display: inline-flex; align-items: center; gap: 10px; margin-right: 22px; min-height: 44px; cursor: pointer; color: var(--text-on-dark); }
.radio input { width: 20px; height: 20px; accent-color: var(--sky-400); }
.form-small { font-size: 0.86rem; color: var(--muted-on-dark); margin: 14px 0 0; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-size: 0.97rem; }
.form-status a { color: var(--sky-300); }
.form-status.is-error { background: rgba(255, 156, 156, 0.1); border: 1px solid rgba(255, 156, 156, 0.4); color: #FFD6D6; }
.form-status.is-pending { background: rgba(69, 189, 248, 0.1); border: 1px solid rgba(69, 189, 248, 0.4); color: var(--text-on-dark); }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--focus); }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--muted-on-dark); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-tagline { margin-top: 14px; font-family: var(--font-script); font-size: 1.5rem; color: var(--sky-300); }
.footer-h { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer ul a { color: var(--muted-on-dark); text-decoration: none; display: inline-block; padding: 5px 0; }
.site-footer ul a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 0.9rem; }
.footer-base p { margin: 0; }
.footer-base a { color: var(--sky-300); }

/* Draft slots (visible only with ?preview=drafts) */
[data-draft] { display: none !important; }
.show-drafts [data-draft] { display: revert !important; outline: 2px dashed #F5A524; outline-offset: 4px; opacity: 0.85; }
.show-drafts .team-card[data-draft], .show-drafts .level-card[data-draft] { display: flex !important; }
.draft-badge { display: inline-block; margin-top: 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6B4500; background: #FFE3A8; padding: 3px 9px; border-radius: 6px; }
.draft-banner { position: fixed; bottom: 16px; left: 50%; translate: -50% 0; z-index: 60; background: #FFE3A8; color: #3D2800; padding: 10px 18px; border-radius: 999px; font-size: 0.9rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }
.draft-banner a { color: #3D2800; font-weight: 700; }

/* Reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid, .level-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid .review-card:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero { padding-top: calc(var(--header-h) + 300px); }
  .hero-media { width: 100%; bottom: auto; height: 520px; }
  .hero-media img { object-position: 58% 22%; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .hero-media::after { background: linear-gradient(180deg, rgba(4, 10, 31, 0.45) 0%, rgba(4, 10, 31, 0) 22%, rgba(4, 10, 31, 0.1) 55%, rgba(7, 18, 51, 0.85) 80%, var(--navy-900) 100%); }
  .hero-media figcaption { display: none; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-media { position: static; max-width: 560px; }
  .enquire-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .format-grid { grid-template-columns: 1fr; gap: 22px; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .why-grid, .level-cards, .audience-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 250px); }
  .hero-media { height: 440px; }
  .founder-facts { grid-template-columns: 1fr; }
  .founder-contact-actions .btn { width: 100%; }
  .founder-banner { grid-template-columns: 1fr; }
  .logo-img { height: 52px; }
  .hero-actions .btn { width: 100%; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; padding-left: 30px; }
  .timeline-item::before { left: 0; top: 4px; }
  .timeline-meta { flex-direction: row; align-items: center; padding-top: 0; }
  .review-card { padding: 28px 22px 22px; }
  .team-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .subject-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-media, .hero-bg, .enquiry-form, .draft-banner { display: none !important; }
  .section-dark, .hero { background: none !important; color: var(--ink) !important; }
  .section-dark h2, .section-dark h3, .hero h1 { color: var(--ink) !important; }
}

/* Team: subjects and favourite quote */
.team-card .avatar { width: 112px; height: 112px; }
.team-subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.team-subjects li { font-size: 0.82rem; font-weight: 600; color: var(--blue-700); background: #E3EEFF; padding: 4px 11px; border-radius: 999px; }
.team-quote { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--sky-400); background: var(--paper); border-radius: 0 12px 12px 0; }
.team-quote p { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; font-style: italic; color: var(--ink); }
.team-quote footer { font-size: 0.85rem; color: var(--ink-3); }
.team-quote footer::before { content: "— "; }

/* Team: three-up cards with the portrait on top */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.team-card { padding: 24px; }
.team-card { flex-direction: column; gap: 18px; }
.team-card .avatar { width: 120px; height: 120px; border-radius: 28px; }

/* Team: centred wrap (3 per row on desktop, last row centred) */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.team-card { flex: 1 1 300px; max-width: 380px; }
@media (max-width: 640px) { .team-card { max-width: none; } }
