@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Default settings matching the approved luxury boutique configuration */
  --theme-accent-blue: #0066cc;
  --theme-accent-violet: #6b21a8;
  --theme-accent-green: #10b981;
  --theme-border-radius: 6px;
  --theme-shadow-intensity: 0.04;
  --theme-section-spacing: clamp(80px, 10vw, 150px);
  --theme-density-padding: 24px;
  --theme-density-gap: 24px;
  
  /* System mappings */
  --ink: #040914;
  --ink-soft: #081122;
  --panel: #0d1628;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: var(--theme-accent-blue);
  --royal: #0c4a6e;
  --violet: var(--theme-accent-violet);
  --green: var(--theme-accent-green);
  --paper: #f8fafc;
  --paper-ink: #0f172a;
  
  --radius: var(--theme-border-radius);
  --section-padding: var(--theme-section-spacing);
  --shadow-opacity: var(--theme-shadow-intensity);
  
  /* Animations variables overridden by JS */
  --anim-dur: 0.8s;
  --anim-del: 0.15s;
  --anim-time: cubic-bezier(0.16, 1, 0.3, 1);
  --parallax-val: 0.5;
}

/* Background Appearance Overrides */
body.bg-pure-black {
  --ink: #000000;
  --ink-soft: #0a0a0a;
  --panel: #121212;
  --line: rgba(255, 255, 255, 0.08);
}
body.bg-deep-navy {
  --ink: #040914;
  --ink-soft: #081122;
  --panel: #0d1628;
  --line: rgba(255, 255, 255, 0.07);
}
body.bg-dark-slate {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --panel: #0f172a;
  --line: rgba(255, 255, 255, 0.1);
}

/* Global resets & typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  color: var(--paper-ink);
}

.hero h2,
.enquiry-section h2 {
  color: var(--text);
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Layout density adjustments */
.section {
  padding: var(--section-padding) clamp(24px, 6vw, 80px);
  color: var(--paper-ink);
  background: var(--paper);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.section:nth-of-type(odd) {
  background: #ffffff;
}

/* Grid Gap adjustments */
.feature-grid,
.results-grid,
.resource-list,
.story-grid,
.success-grid,
.owner-grid,
.support-grid {
  gap: var(--theme-density-gap);
}

/* Global Padding adjustments */
.feature-card,
.teacher-card,
.result-card,
.resource-card,
.story-card,
.success-card,
.owner-card {
  padding: var(--theme-density-padding);
  border-radius: var(--radius);
  transition: transform 0.4s var(--anim-time), box-shadow 0.4s var(--anim-time), border-color 0.4s var(--anim-time);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 16px clamp(24px, 6vw, 80px);
  background: rgba(4, 9, 20, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease, border 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-logo.missing {
  display: none;
}

.brand-logo:not(.missing) + .brand-mark {
  display: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: var(--radius);
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a,
.menu-button {
  padding: 10px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.site-nav a:hover,
.menu-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  color: var(--text) !important;
  background: var(--blue) !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--theme-accent-blue), 0.1);
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.portal-cta {
  color: #04150d !important;
  background: linear-gradient(135deg, #35f196, #20c96f) !important;
  font-weight: 600;
}

.portal-cta:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  min-height: calc(100svh - 84px);
  padding: clamp(64px, 10vw, 140px) clamp(24px, 6vw, 80px) 72px;
  background:
    radial-gradient(circle at 75% 25%, rgba(0, 102, 204, 0.15), transparent 45%),
    var(--ink);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-lede {
  max-width: 650px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

/* Elegant Buttons & Button Styles Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--anim-time);
}

/* Button overrides for customization */
body.btn-luxury-solid .button.primary {
  background: var(--text);
  color: var(--ink);
  border: 1px solid var(--text);
}
body.btn-luxury-solid .button.primary:hover {
  background: transparent;
  color: var(--text);
  transform: translateY(-2px);
}
body.btn-luxury-solid .button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
body.btn-luxury-solid .button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

body.btn-minimal-border .button.primary,
body.btn-minimal-border .button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
body.btn-minimal-border .button.primary:hover {
  background: var(--text);
  color: var(--ink);
  transform: translateY(-2px);
}
body.btn-minimal-border .button.secondary {
  border-color: var(--line);
}
body.btn-minimal-border .button.secondary:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

body.btn-glass-accent .button.primary {
  background: rgba(0, 102, 204, 0.2);
  color: var(--text);
  border: 1px solid var(--blue);
  backdrop-filter: blur(8px);
}
body.btn-glass-accent .button.primary:hover {
  background: rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

/* Fallback default style (Subtle Gradient / Classic Premium) */
.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.25);
  filter: brightness(1.05);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text);
  transform: translateY(-2px);
}

.button.whatsapp {
  color: #04150d;
  background: linear-gradient(135deg, #35f196, #20c96f);
  box-shadow: 0 4px 12px rgba(32, 201, 111, 0.15);
}

.button.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(32, 201, 111, 0.25);
}

/* Hero Slider */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-slider {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: 1;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.8s var(--anim-time), transform 0.8s var(--anim-time);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 9, 20, 0.95) 0%, rgba(3, 9, 20, 0.4) 60%, rgba(3, 9, 20, 0.1) 100%);
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

.slide-tag {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 12px;
  color: var(--blue);
  background: rgba(0, 102, 204, 0.1);
  border: 1px solid rgba(0, 102, 204, 0.25);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slide h3 {
  position: relative;
  z-index: 2;
  color: var(--text);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.slide p {
  position: relative;
  z-index: 2;
  color: var(--muted);
  max-width: 480px;
  margin: 0;
  font-size: 0.95rem;
}

.slide-dots {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--blue);
}

/* Support Grid & Orbit Cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.support-grid article {
  padding: 24px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.support-grid article:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.support-grid span {
  display: block;
  color: var(--text);
  font-family: 'EB Garamond', serif;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.support-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.orbit-card {
  padding: 40px;
  color: white;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.orbit-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.focus-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.focus-card strong {
  display: block;
  margin: 12px 0;
  font-family: 'EB Garamond', serif;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.85;
  font-weight: 400;
  color: var(--text);
}

/* Strips (Trust & Country) */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 32px 40px;
  background: var(--ink-soft);
  transition: background 0.3s ease;
}

.trust-strip div:hover {
  background: var(--panel);
}

.trust-strip strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.trust-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.country-strip {
  padding: 32px clamp(24px, 6vw, 80px);
  color: white;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.country-strip .eyebrow {
  margin-bottom: 18px;
}

.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flag-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--text);
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.flag-row span:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.country-flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Page Hero layout */
.page-hero {
  padding: clamp(80px, 12vw, 140px) clamp(24px, 6vw, 80px);
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.12), transparent 40%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

/* Program choices (General program cards) */
.program-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.program-choice article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 5vw, 56px);
  color: white;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.program-choice h2 {
  color: white;
  margin-bottom: 12px;
}

.program-choice p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.program-choice .button {
  width: fit-content;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Card Styling System Controls */
.feature-card,
.result-card,
.resource-card,
.story-card,
.success-card,
.teacher-card {
  background: white;
  color: var(--paper-ink);
}

/* Card Styling overrides */
body.card-outline-only .feature-card,
body.card-outline-only .result-card,
body.card-outline-only .resource-card,
body.card-outline-only .story-card,
body.card-outline-only .success-card,
body.card-outline-only .teacher-card {
  background: transparent !important;
  border: 1px solid #e2e8f0;
  box-shadow: none !important;
}

body.card-shadow .feature-card,
body.card-shadow .result-card,
body.card-shadow .resource-card,
body.card-shadow .story-card,
body.card-shadow .success-card,
body.card-shadow .teacher-card {
  background: white !important;
  border: 1px solid #f1f5f9;
  box-shadow: 0 20px 40px rgba(15, 23, 42, var(--shadow-opacity)) !important;
}

body.card-solid-panel .feature-card,
body.card-solid-panel .result-card,
body.card-solid-panel .resource-card,
body.card-solid-panel .story-card,
body.card-solid-panel .success-card,
body.card-solid-panel .teacher-card {
  background: #f8fafc !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* White theme defaults */
.feature-card,
.result-card,
.resource-card,
.story-card,
.success-card,
.teacher-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, var(--shadow-opacity));
}

.feature-card p,
.teacher-card p,
.result-card p,
.resource-card p,
.story-card p,
.success-card p,
.section p,
.contact-block span,
.form-note {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Feature Card specifics */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--blue);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

.result-card strong {
  display: block;
  color: var(--blue);
  font-family: 'EB Garamond', serif;
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 4px;
}

/* Split structures */
.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(300px, 1.3fr);
  gap: 48px;
  align-items: start;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 0;
}

.teacher-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teacher-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Success Card & Photo states */
.success-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.success-card strong {
  display: block;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.success-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.6s var(--anim-time);
}

.success-card:hover .success-photo {
  transform: scale(1.03);
}

.success-photo-fallback {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 2.2rem;
  font-family: 'EB Garamond', serif;
}

/* Resource Tabs & Filtering */
.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tab {
  padding: 10px 20px;
  color: var(--paper-ink);
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  border-color: var(--paper-ink);
}

.tab.active {
  color: white;
  background: var(--paper-ink);
  border-color: var(--paper-ink);
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag {
  width: fit-content;
  padding: 4px 10px;
  color: var(--blue);
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.15);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Testimonials / Feedbacks */
.story-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.story-photo {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.6s var(--anim-time);
}

.story-card:hover .story-photo {
  transform: scale(1.05);
}

.story-photo-fallback {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 700;
  font-size: 0.95rem;
}

.story-card blockquote {
  margin: 0;
  color: var(--paper-ink);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
}

.story-card figcaption {
  margin-top: 24px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Forms & Consultation */
.feedback-form,
.enquiry-form {
  display: grid;
  gap: 20px;
  padding: 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.feedback-form {
  max-width: 720px;
}

.enquiry-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 64px;
  color: white;
  background: var(--ink);
  position: relative;
}

.enquiry-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.enquiry-form {
  grid-template-columns: repeat(2, 1fr);
  color: var(--paper-ink);
}

.wide,
.enquiry-form .button,
.enquiry-form .form-note {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--paper-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.enquiry-section label {
  color: var(--paper-ink);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--paper-ink);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  background: white;
  border-color: var(--blue);
  outline: 3px solid rgba(0, 102, 204, 0.12);
}

.is-hidden {
  display: none !important;
}

.contact-block {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin-top: 32px;
  padding: 28px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-block strong {
  font-size: 1.1rem;
  color: var(--text);
}

.contact-block a {
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-block a:hover {
  color: var(--blue);
}

/* Admin / Owner panel forms styling */
.owner-section {
  background: #f1f5f9;
}

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

.owner-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.owner-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper-ink);
  margin-bottom: 8px;
}

.owner-card label {
  color: #475569;
}

.owner-reset {
  color: var(--paper-ink);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.owner-reset:hover {
  background: #e2e8f0;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
}

.admin-item span {
  font-size: 0.88rem;
  color: var(--paper-ink);
  line-height: 1.4;
}

.admin-item small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 2px;
}

.delete-button {
  min-height: 36px;
  padding: 8px 14px;
  color: white;
  background: #ef4444;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: opacity 0.2s ease;
}

.delete-button:hover {
  opacity: 0.9;
}

/* Articles and Program Details (Editorial style) */
.article-section {
  background: #ffffff;
}

.article-flow {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.article-block {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(280px, 1fr55);
  grid-template-columns: 1.2fr 1.8fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.article-block.reverse {
  grid-template-columns: 1.8fr 1.2fr;
}

.article-block.reverse img {
  order: 2;
}

.article-block img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.article-block p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: #334155;
}

.program-detail-list {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vw, 140px);
  max-width: 1100px;
  margin: 0 auto;
}

.program-detail {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: clamp(40px, 8vw, 92px);
  align-items: center;
}

.program-detail.reverse {
  grid-template-columns: 1.7fr 1.3fr;
}

.program-detail.reverse img {
  order: 2;
}

.program-detail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.program-detail h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  margin-bottom: 20px;
}

.program-detail p:not(.eyebrow) {
  margin: 0;
  color: #334155;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  font-weight: 300;
}

/* Site Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px clamp(24px, 6vw, 80px);
  color: white;
  background: #02050c;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  font-size: 1.2rem;
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  color: var(--text);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--blue);
}

.social-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  margin-top: 12px;
}

.social-links a,
.footer-links a {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-links a:hover,
.footer-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Animation System (Scroll reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--anim-dur) var(--anim-time), transform var(--anim-dur) var(--anim-time);
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disable all animations via body class if disabled in Admin */
body.no-animations * {
  transition-duration: 0s !important;
  animation-duration: 0s !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Parallax zoom hover effects */
.hover-zoom-wrapper {
  overflow: hidden;
  border-radius: var(--radius);
}

.hover-zoom-img {
  transition: transform 0.6s var(--anim-time);
}

.hover-zoom-wrapper:hover .hover-zoom-img {
  transform: scale(1.05);
}

/* Custom styled components for theme engine form */
.theme-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.theme-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-control-group label {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-control-row input[type="range"] {
  flex-grow: 1;
  min-height: auto;
  padding: 0;
}

.theme-value-display {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper-ink);
  min-width: 48px;
  text-align: right;
}

/* Toggle Switch */
.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.switch-input {
  display: none;
}

.switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.switch-input:checked + .switch-track {
  background-color: var(--blue);
}

.switch-input:checked + .switch-track::after {
  transform: translateX(20px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-section,
  .enquiry-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .results-grid,
  .resource-list,
  .story-grid,
  .success-grid,
  .owner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .trust-strip div {
    border-bottom: 1px solid var(--line);
  }

  .program-choice {
    grid-template-columns: 1fr;
  }

  .program-detail,
  .program-detail.reverse,
  .article-block,
  .article-block.reverse {
    grid-template-columns: 1fr;
  }

  .program-detail.reverse img,
  .article-block.reverse img {
    order: 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    align-items: center;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .site-nav a {
    white-space: normal;
  }

  .site-nav.open {
    display: flex;
  }

  .feature-grid,
  .results-grid,
  .resource-list,
  .story-grid,
  .success-grid,
  .owner-grid,
  .support-grid,
  .enquiry-form {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 48px;
    height: 48px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .hero-slider,
  .slide {
    min-height: 360px;
  }
  
  .slide {
    padding: 24px;
  }
  
  .slide-dots {
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 430px) {
  .brand {
    min-width: 0;
  }

  .brand-logo,
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* ============================================================= */
/* ============  INFIMIND PREMIUM ENHANCEMENT LAYER  ============ */
/* ============================================================= */

:root {
  --orb-intensity: 1;
  --marquee-dur: 25s;
  --reveal-dist: 32px;
  --reveal-stagger: 120ms;
  --word-stagger: 60ms;
  --tilt-max: 6deg;
  --wa-pulse: 3s;
}

/* ---- Stacking so the ambient canvas sits behind content ---- */
main,
.site-footer { position: relative; z-index: 1; }
.site-header { position: sticky; z-index: 200; }

#ambient-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ---- Page loader ---- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,102,204,0.18), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(107,33,168,0.18), transparent 55%),
    #040914;
  transition: opacity 0.6s ease;
}
.page-loader.hide { opacity: 0; pointer-events: none; }
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.loader-mark {
  font-size: 68px;
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(135deg, #2a8fff, #6b21a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-logo {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,102,204,0.3);
}
.loader-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: #94a3b8;
  padding-left: 0.55em;
}
.loader-bar {
  width: 210px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.loader-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #0066cc, #6b21a8);
  animation: loaderBar 1.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes loaderBar { to { width: 100%; } }

/* ---- Custom cursor (desktop only) ---- */
@media (pointer: fine) {
  body.has-custom-cursor { cursor: none; }
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor select,
  body.has-custom-cursor textarea,
  body.has-custom-cursor label { cursor: none; }
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9500;
    pointer-events: none;
    border-radius: 50%;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .cursor-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    transform: translate(-50%, -50%);
  }
  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.6);
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  }
  .cursor-ring.is-hover {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.9);
  }
}

/* ---- Hero / page-hero animated backdrop ---- */
.hero { background: transparent; isolation: isolate; }
.page-hero { background: transparent; isolation: isolate; position: relative; overflow: hidden; }

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero > *:not(.hero-backdrop),
.page-hero > *:not(.hero-backdrop) {
  position: relative;
  z-index: 2;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.is-loaded { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(4,9,20,0.55), rgba(4,9,20,0.35), rgba(4,9,20,0.70));
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 26s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.17) translate(-1.5%, -1.6%); }
}
body.no-animations .hero-photo { animation: none; }

/* Page-hero relevant image, anchored right and masked off the text column */
.page-hero-photo {
  position: absolute;
  inset: 0;
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 40%, #000 92%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 40%, #000 92%);
  animation: heroZoom 32s ease-in-out infinite alternate;
}
.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(4,9,20,0.96) 32%, rgba(4,9,20,0.55) 70%, rgba(4,9,20,0.7) 100%);
}
body.no-animations .page-hero-photo { animation: none; }
@media (max-width: 768px) {
  .page-hero-photo { opacity: 0.28; }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: calc(0.55 * var(--orb-intensity));
  mix-blend-mode: screen;
  will-change: transform;
}
.glow-orb.blue {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(0,102,204,0.95), transparent 70%);
  animation: orbDriftA 22s ease-in-out infinite alternate;
}
.glow-orb.purple {
  width: 580px;
  height: 580px;
  bottom: -180px;
  right: -130px;
  background: radial-gradient(circle, rgba(107,33,168,0.9), transparent 70%);
  animation: orbDriftB 19s ease-in-out infinite alternate;
}
@keyframes orbDriftA { from { transform: translate(0,0); } to { transform: translate(40px, 38px); } }
@keyframes orbDriftB { from { transform: translate(0,0); } to { transform: translate(-40px, -32px); } }

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 85%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 85%);
}

/* Re-tone page-hero text on transparent dark backdrop */
.page-hero h1 { color: var(--text); }
.page-hero p:not(.eyebrow) { color: var(--muted); }

/* ---- Glassmorphism support cards ---- */
.support-grid article {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
}
.support-grid article:hover {
  border-color: rgba(0,102,204,0.5);
  box-shadow: 0 0 34px rgba(0,102,204,0.18);
  transform: translateY(-4px);
}
.support-grid span {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(135deg, #2a8fff, #8b3fd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Premium primary button shimmer ---- */
.button.primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,102,204,0.28);
}
.button.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3.5s ease-in-out infinite;
}
@keyframes btnShimmer {
  0% { left: -130%; }
  22% { left: 130%; }
  100% { left: 130%; }
}
body.no-animations .button.primary::after { animation: none; display: none; }

/* ---- Navigation gradient underline + transparent header ---- */
.site-header { background: transparent; border-bottom-color: transparent; }
.site-header.is-scrolled {
  background: rgba(4,9,20,0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.site-nav a:not(.nav-cta):not(.portal-cta) { position: relative; }
.site-nav a:not(.nav-cta):not(.portal-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0066cc, #6b21a8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
}
.site-nav a:not(.nav-cta):not(.portal-cta):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--violet)) !important;
  box-shadow: 0 6px 18px rgba(0,102,204,0.25);
}
.nav-cta:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(107,33,168,0.3); }

/* ---- Infinite flag marquee ---- */
.flag-row.marquee {
  flex-wrap: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.flag-row.marquee .marquee-track {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  width: max-content;
  animation: marqueeScroll var(--marquee-dur) linear infinite;
}
.flag-row.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
body.no-animations .flag-row.marquee .marquee-track { animation: none; }

/* ---- 3D tilt smoothing ---- */
.feature-card,
.result-card,
.story-card,
.success-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- Premium testimonial cards ---- */
.story-card { position: relative; overflow: hidden; }
.story-card::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 16px;
  font-family: 'EB Garamond', serif;
  font-size: 6rem;
  line-height: 1;
  color: rgba(0,102,204,0.08);
  pointer-events: none;
}
.story-card blockquote { font-family: 'EB Garamond', serif; font-style: italic; }
.story-photo {
  padding: 3px;
  background: linear-gradient(135deg, #0066cc, #6b21a8);
}
.story-photo-fallback { box-shadow: 0 0 0 3px rgba(0,102,204,0.25); }

/* ---- Premium enquiry form (dark glass) ---- */
.enquiry-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.enquiry-section label,
.enquiry-form label {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  color: #f1f5f9;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder { color: #64748b; }
.enquiry-form select option { color: #0f172a; }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border: 1px solid transparent;
  outline: none;
  background-image:
    linear-gradient(rgba(13,22,40,0.95), rgba(13,22,40,0.95)),
    linear-gradient(135deg, #0066cc, #6b21a8);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.enquiry-form .button.primary { min-height: 56px; }

/* ---- Premium footer ---- */
.site-footer { position: relative; background: #02050c; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0066cc, #6b21a8);
}
.site-footer strong {
  background: linear-gradient(135deg, #2a8fff, #8b3fd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Floating action buttons ---- */
.float-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.float-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.float-btn svg { width: 24px; height: 24px; display: block; }
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,0.4); }
.float-wa {
  position: relative;
  color: #04150d;
  background: linear-gradient(135deg, #35f196, #20c96f);
}
.float-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(32,201,111,0.5);
  animation: waPulse var(--wa-pulse) ease-out infinite;
}
@keyframes waPulse { to { box-shadow: 0 0 0 18px rgba(32,201,111,0); } }
body.no-animations .float-wa::before { animation: none; }
.float-top {
  color: #fff;
  background: linear-gradient(135deg, #0066cc, #6b21a8);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.float-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Page transition overlay ---- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 8800;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,102,204,0.12), transparent 60%),
    #040914;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.page-transition.is-active { opacity: 1; pointer-events: auto; }

/* ---- Hero word reveal ---- */
.hero-copy h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-copy h1 .word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
body.page-loaded .hero-copy h1 .word > span { transform: translateY(0); }
body.no-animations .hero-copy h1 .word > span { transform: none; transition: none; }

/* Cinematic fade-ins keyed off page-loaded */
.fade-seq {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
body.page-loaded .hero-copy h1 { opacity: 1; }
body.page-loaded .fade-seq { opacity: 1; transform: none; }
body.no-animations .fade-seq { opacity: 1; transform: none; transition: none; }

/* ---- Mobile cinematic menu ---- */
@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(82vw, 360px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    padding: 100px 26px 32px;
    background: rgba(6,12,26,0.98);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: -24px 0 70px rgba(0,0,0,0.55);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  }
  .site-nav.open { transform: translateX(0); display: flex; }
  .site-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
  }
  .site-nav.open a { opacity: 1; transform: none; }
  .site-nav.open a:nth-child(1) { transition-delay: 0.06s; }
  .site-nav.open a:nth-child(2) { transition-delay: 0.12s; }
  .site-nav.open a:nth-child(3) { transition-delay: 0.18s; }
  .site-nav.open a:nth-child(4) { transition-delay: 0.24s; }
  .site-nav.open a:nth-child(5) { transition-delay: 0.30s; }
  .site-nav.open a:nth-child(6) { transition-delay: 0.36s; }
  .site-nav.open a:nth-child(7) { transition-delay: 0.42s; }
  .site-nav.open a:nth-child(8) { transition-delay: 0.48s; }
  .menu-button { z-index: 120; position: relative; }
  body.nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .glow-orb,
  .button.primary::after,
  .float-wa::before,
  .loader-mark { animation: none !important; }
  .flag-row.marquee .marquee-track { animation: none !important; }
}

/* ---- Premium additive motion (never hides content) ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 300;
  background: linear-gradient(90deg, #0066cc, #6b21a8);
  box-shadow: 0 0 12px rgba(0,102,204,0.5);
}

/* Section-heading accent line draws in on view */
.section-heading h2 { position: relative; }
.section-heading h2::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0066cc, #6b21a8);
  transition: width 0.9s cubic-bezier(0.16,1,0.3,1);
}
.section-heading.in-view h2::after { width: 64px; }

/* Card light-sheen on hover */
.feature-card,
.result-card,
.success-card,
.teacher-card,
.resource-card { position: relative; overflow: hidden; }
.feature-card::after,
.result-card::after,
.success-card::after,
.teacher-card::after,
.resource-card::after,
.story-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(0,102,204,0.12), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  transition: left 0.7s ease, opacity 0.7s ease;
}
.feature-card:hover::after,
.result-card:hover::after,
.success-card:hover::after,
.teacher-card:hover::after,
.resource-card:hover::after,
.story-card:hover::after { left: 130%; opacity: 1; }

/* Feature-card icon micro-interaction */
.feature-card .icon { transition: transform 0.4s var(--anim-time), box-shadow 0.4s ease; }
.feature-card:hover .icon {
  transform: translateY(-3px) rotate(-5deg);
  box-shadow: 0 10px 22px rgba(0,102,204,0.35);
}

/* Gradient-text sheen on stat numbers + footer brand */
.support-grid span {
  background: linear-gradient(120deg, #2a8fff, #8b3fd4, #2a8fff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textSheen 7s linear infinite;
}
.site-footer strong {
  background: linear-gradient(120deg, #2a8fff, #8b3fd4, #2a8fff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textSheen 9s linear infinite;
}
@keyframes textSheen { to { background-position: 220% center; } }
body.no-animations .support-grid span,
body.no-animations .site-footer strong { animation: none; }

/* Analytics cards: lift on hover */
.analytics-card { transition: transform 0.4s var(--anim-time), box-shadow 0.4s ease, border-color 0.4s ease; }
.analytics-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(15,23,42,0.12); border-color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .support-grid span,
  .site-footer strong { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ---- Admin: Animation Manager UI ---- */
.photo-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.photo-slot { display: flex; flex-direction: column; gap: 8px; }
.photo-slot > span { font-size: 0.82rem; font-weight: 600; color: var(--paper-ink); }
.photo-thumb {
  aspect-ratio: 16 / 10;
  background: #0d1628 center / cover no-repeat;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}
.photo-thumb.filled { border-style: solid; border-color: var(--blue); }
.photo-slot input[type="file"] { font-size: 0.78rem; min-height: auto; padding: 8px; }
.photo-slot .button { min-height: 38px; padding: 8px 14px; font-size: 0.8rem; }
.anim-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.anim-tune-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
}

/* ============================================================= */
/* ================  ADMIN PASSCODE GATE & DATABASE  =========== */
/* ============================================================= */

body.admin-locked > *:not(.admin-login-overlay):not(#ambient-particles) {
  display: none !important;
}

body.admin-locked {
  overflow: hidden !important;
}

.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, #0f172a 0%, #020617 100%);
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  animation: overlayFadeIn 0.3s ease-out;
}

.admin-login-box {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: boxScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-login-box h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.admin-login-box p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

.admin-login-box label {
  display: block;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.admin-login-box input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 6px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.admin-login-box input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.admin-login-box button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-login-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  opacity: 0.95;
}

.admin-login-box button.back-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  box-shadow: none;
  margin-bottom: 0;
}

.admin-login-box button.back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

.admin-login-box .error-msg {
  color: #f43f5e;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes boxScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
