/* Fonts are served from this site, not Google: no third-party request, so pages appear sooner and no visitor data leaves the site. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/quicksand-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Only downloaded on a page that actually shows Arabic letters. */
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/amiri-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

/* Suhbah Quran Circles — brochure theme.
   Quicksand for headings and labels, Montserrat for running text.
   SUHBAH green, Quran Circles blue, deep teal; gradients and waves as in the printed brochure. */

:root {
  --green: #0b9964;
  --green-deep: #0b7d50;
  --mint: #46d39a;
  --blue: #1488b1;
  --sky: #1a85b5;
  --teal: #0b5c78;
  --stage-body: #0e6f92;
  --heading: #15799f;

  --ground: #ffffff;
  --paper: #f2f8fa;
  --paper-2: #eaf6f0;
  --ink: #1d2327;
  --ink-soft: #4d5a60;
  --on-dark-soft: #d6f3e7;
  --accent: #0b8655;

  --grad-cover: linear-gradient(100deg, #0b5c78 0%, #0a7a72 45%, #0b9964 100%);
  --grad-green: linear-gradient(160deg, #0b7d50 0%, #0b9964 55%, #1fae78 100%);
  --grad-blue: linear-gradient(110deg, #0b6487 0%, #1688b8 55%, #24a3d6 100%);
  --grad-mint: linear-gradient(90deg, #2fbf86 0%, #4dd8a0 100%);
  --grad-text: linear-gradient(90deg, #0b9964 0%, #0b5c78 100%);
  --grad-line: linear-gradient(180deg, #1488b1 0%, #0b5c78 100%);

  --font-head: "Quicksand", "Nunito", "Segoe UI", sans-serif;
  --font-text: "Montserrat", "Segoe UI", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.4rem);
  --step-h4: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --step-display: clamp(2.75rem, 1.4rem + 5vw, 5.75rem);

  --margin: clamp(16px, 3vw, 32px);
  --max: 1280px;
  --gap-section: clamp(96px, 11vw, 168px);
  --radius: 28px;
  --pill: 999px;
  --shadow-badge: 0 10px 28px rgba(11, 92, 120, 0.16), 0 2px 6px rgba(11, 92, 120, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 260ms;
  --header-h: 76px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ground: #08191f;
  --paper: #0f2730;
  --paper-2: #0f2a24;
  --ink: #e8f3f6;
  --ink-soft: #a9c2ca;
  --heading: #5cc3ea;
  --accent: #2fbf86;
  --shadow-badge: 0 10px 28px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); }
main > section, .section { margin-block: var(--gap-section); position: relative; }
main > section:first-child { margin-top: 0; }
.lead { font-size: var(--step-lead); line-height: 1.55; }
.soft { color: var(--ink-soft); }
.h2 { font-size: var(--step-head); color: var(--heading); }
.h3 { font-size: var(--step-h4); color: var(--heading); }
.g { color: var(--green); }

/* chip label, as on the brochure's CURRICULUM / ENVIRONMENT tags */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 20px;
  font-family: var(--font-head); font-weight: 700; font-size: var(--step-body); letter-spacing: 0.02em; text-transform: uppercase;
  background: #13709a; color: #fff; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
}
.chip svg { width: 22px; height: 22px; }
.chip--green { background: #12c98c; }

.skip-link {
  position: fixed; left: var(--margin); top: 12px; z-index: 200; background: var(--teal); color: #fff; padding: 12px 20px;
  border-radius: var(--pill); font-family: var(--font-head); font-weight: 700; text-decoration: none; transform: translateY(-160%);
  transition: transform var(--t-ui) var(--ease-out);
}
.skip-link:focus { transform: none; }
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 120; background: var(--grad-mint); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- icons and badges ---------- */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.badge {
  --s: 96px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ground); box-shadow: var(--shadow-badge); color: var(--blue); position: relative;
  transition: transform 500ms var(--ease-expo);
}
:root[data-theme="dark"] .badge { background: var(--paper); }
.badge::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid rgba(27, 142, 194, 0.12); }
.badge .ico { width: 46%; height: 46%; stroke-width: 1.6; }
.badge--green { color: var(--green); }
.badge--grad { background: var(--grad-cover); color: #fff; }
:root[data-theme="dark"] .badge--grad { background: var(--grad-cover); }
.badge--grad::after { border-color: rgba(255,255,255,.25); }
.tilt { perspective: 600px; }
.tilt:hover .badge { transform: rotateY(20deg) rotateX(-10deg) translateZ(14px); }

/* CSS 3D star (Rub el Hizb): two squares, used as markers and as the WebGL fallback */
.star3d { --s: 40px; width: var(--s); height: var(--s); position: relative; transform-style: preserve-3d; animation: star-spin 8s linear infinite; }
.star3d i { position: absolute; inset: 14%; background: currentColor; border-radius: 3px; }
.star3d i:nth-child(2) { transform: rotate(45deg); }
.star3d i:nth-child(3) { inset: 37%; border-radius: 50%; background: var(--sky); transform: translateZ(1px); }
@keyframes star-spin { to { transform: rotateY(360deg); } }

/* 3D scene holders */
.scene { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.scene .fallback { --s: 46%; color: var(--blue); }
.scene.has-webgl .fallback { display: none; }
.scene .halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(70, 211, 154, 0.30), rgba(27, 142, 194, 0.12) 55%, transparent 70%); }

/* waves */
.wave { display: block; width: 100%; height: clamp(40px, 7vw, 110px); }
.blob { position: absolute; pointer-events: none; z-index: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--pill); background: var(--grad-cover); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: var(--step-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 154, 98, 0.28); background-size: 180% 100%; background-position: 0 0;
  transition: transform var(--t-press) var(--ease-out), background-position 500ms var(--ease-out), box-shadow var(--t-hover) ease;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 12px 28px rgba(14, 154, 98, 0.36); }
.btn:active { transform: scale(0.96); }
.btn .ico { width: 20px; height: 20px; }
.btn--quiet { background: var(--paper); color: var(--teal); box-shadow: none; }
:root[data-theme="dark"] .btn--quiet { color: var(--ink); }
.btn--quiet:hover { background: var(--paper-2); box-shadow: none; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.btn .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.btn:hover .dot { transform: scale(1.6); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--teal); cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
:root[data-theme="dark"] .icon-btn { color: var(--ink); }
.icon-btn:hover { background: var(--paper); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 22px; height: 22px; }
.text-link { font-family: var(--font-head); font-weight: 700; color: var(--heading); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--mint); transition: text-underline-offset var(--t-hover) var(--ease-out); }
.text-link:hover { text-underline-offset: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ground); transition: box-shadow var(--t-ui) ease, background-color var(--t-ui) ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 92, 120, 0.10); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand .mark { width: 46px; height: 46px; }
.brand .logo { display: block; width: auto; height: 56px; }
.brand--footer .logo { height: 84px; }
/* The logo in white on dark backgrounds: the mobile menu, the footer and dark mode. */
.brand--menu .logo, .brand--footer .logo, :root[data-theme="dark"] .brand .logo { filter: brightness(0) invert(1); }
.wordmark { display: grid; line-height: 0.95; }
.wordmark b { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--green); letter-spacing: 0.01em; }
.wordmark i { font-family: var(--font-head); font-style: normal; font-weight: 700; font-size: 1.0625rem; color: #1479a8; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { font-family: var(--font-head); font-weight: 700; font-size: var(--step-body); text-decoration: none; color: var(--teal); padding: 10px 14px; border-radius: var(--pill); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
:root[data-theme="dark"] .nav a { color: var(--ink); }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--grad-cover); color: #fff; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.menu-btn { display: none; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (max-width: 1060px) { .nav, .header-tools .btn { display: none; } .menu-btn { display: inline-grid; } .header-tools { margin-left: auto; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--grad-cover); color: #fff; display: grid; grid-template-rows: auto 1fr auto;
  padding: 16px var(--margin) 32px; clip-path: circle(0 at calc(100% - 40px) 38px); visibility: hidden;
  transition: clip-path 520ms var(--ease-in-out), visibility 0s linear 520ms;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path 620ms var(--ease-in-out); }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.mobile-menu .wordmark b, .mobile-menu .wordmark i { color: #fff; }
.mobile-menu .icon-btn { color: #fff; }
.mobile-menu .icon-btn:hover { background: rgba(255,255,255,.14); }
.mobile-menu nav { align-self: center; display: grid; gap: 4px; }
.mobile-menu nav a { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1.15; text-decoration: none; display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(24px); transition: opacity 400ms ease, transform 600ms var(--ease-expo); }
.mobile-menu nav a .star3d { --s: 24px; color: #fff; opacity: .45; }
.mobile-menu nav a[aria-current="page"] .star3d { opacity: 1; }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 60ms; } .mobile-menu.is-open nav a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 180ms; } .mobile-menu.is-open nav a:nth-child(5) { transition-delay: 240ms; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: 300ms; }
.mobile-menu .foot { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-menu .foot .btn { background: #fff; color: var(--teal); box-shadow: none; }
.mobile-menu .foot .btn--quiet { background: rgba(255,255,255,.16); color: #fff; }

/* cookie band */
.cookie { background: var(--paper); display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.cookie.is-shown { grid-template-rows: 1fr; }
.cookie > .wrap { overflow: hidden; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.cookie.is-shown > .wrap { padding-block: 14px; }
.cookie h2 { font-size: var(--step-body); color: var(--teal); display: flex; gap: 10px; align-items: center; }
:root[data-theme="dark"] .cookie h2 { color: var(--ink); }
.cookie h2 .ico { width: 24px; height: 24px; color: var(--green); }
.cookie p { font-size: var(--step-body); flex: 1 1 380px; max-width: 62ch; }
.cookie .row { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 600px) { .cookie h2 { display: none; } }

/* ---------- hero (the brochure cover) ---------- */
.hero { position: relative; overflow: hidden; margin: 0; padding-top: clamp(24px, 4vw, 56px); }
.hero .blob-tl { left: -6vw; top: -9vw; width: 26vw; min-width: 200px; }
.hero .grid { position: relative; z-index: 1; align-items: center; row-gap: 24px; min-height: calc(100svh - var(--header-h) - 140px); }
.hero .text { grid-column: 1 / span 6; }
.hero .lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.hero .lockup .mark { width: clamp(64px, 6vw, 88px); height: auto; }
.hero .lockup .wordmark b { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.hero .lockup .wordmark i { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.hero h1 { font-size: var(--step-display); color: var(--heading); line-height: 1; }
.hero h1 .g { color: var(--green); }
.hero .lead { margin-top: 24px; max-width: 34ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero .hero-facts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; list-style: none; }
.hero .hero-facts li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--teal); }
:root[data-theme="dark"] .hero .hero-facts li { color: var(--ink); }
.hero .hero-facts .badge { --s: 46px; }
.hero .stage3d { grid-column: 7 / span 6; position: relative; }
.hero .wave-bottom { color: var(--green); margin-top: -2px; }
.js .hero .text > * { opacity: 0; transform: translateY(18px); }
.is-loaded .hero .text > * { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--ease-expo); }
.is-loaded .hero .text > :nth-child(2) { transition-delay: 80ms; } .is-loaded .hero .text > :nth-child(3) { transition-delay: 160ms; }
.is-loaded .hero .text > :nth-child(4) { transition-delay: 240ms; } .is-loaded .hero .text > :nth-child(5) { transition-delay: 320ms; }
@media (max-width: 900px) {
  .hero .text, .hero .stage3d { grid-column: 1 / -1; }
  .hero .stage3d { order: -1; width: min(100%, 400px); justify-self: center; }
  .hero .grid { min-height: 0; }
  .hero .lockup { display: none; }
}

/* ---------- page hero (inner) ---------- */
.page-hero { margin: 0; padding-top: clamp(24px, 4vw, 56px); position: relative; overflow: hidden; }
.page-hero .blob-tl { left: -8vw; top: -12vw; width: 30vw; min-width: 220px; }
.page-hero .grid { position: relative; z-index: 1; align-items: center; row-gap: 24px; }
.page-hero .text { grid-column: 1 / span 7; }
.page-hero h1 { font-size: var(--step-display); color: var(--heading); }
.page-hero .lead { margin-top: 24px; max-width: 42ch; }
.page-hero .stage3d { grid-column: 8 / span 5; }
.updated { margin-top: 18px; font-size: var(--step-small); color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.updated .ico { width: 18px; height: 18px; color: var(--green); }
.page-hero .wave-bottom { color: var(--blue); }
@media (max-width: 900px) { .page-hero .text, .page-hero .stage3d { grid-column: 1 / -1; } .page-hero .stage3d { width: min(70%, 320px); justify-self: center; order: -1; } }

/* ---------- "What SQC is?" ---------- */
.what .grid { align-items: center; row-gap: 48px; }
.what .text { grid-column: 1 / span 7; }
.what h2 { font-size: var(--step-head); color: var(--heading); }
.what h2 .big { font-size: 1.45em; color: var(--green); }
.what p { margin-top: 24px; max-width: 60ch; }
.loves { grid-column: 8 / span 5; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.loves li { display: grid; justify-items: center; text-align: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--teal); font-size: var(--step-h4); }
:root[data-theme="dark"] .loves li { color: var(--ink); }
.loves .badge { --s: clamp(84px, 9vw, 120px); }
@media (max-width: 900px) { .what .text, .loves { grid-column: 1 / -1; } }

/* ---------- vision ---------- */
.vision .grid { align-items: center; row-gap: 32px; position: relative; }
.vision .orb { grid-column: 1 / span 5; }
.vision .text { grid-column: 7 / span 6; text-align: right; }
.vision h2 { font-size: clamp(3rem, 2rem + 4vw, 6rem); color: var(--heading); }
.vision blockquote { margin: 20px 0 0 auto; font-size: var(--step-lead); line-height: 1.5; max-width: 36ch; }
.vision .wave-bottom { color: var(--green); margin-top: 48px; }
@media (max-width: 900px) { .vision .orb, .vision .text { grid-column: 1 / -1; } .vision .text { text-align: left; } .vision blockquote { margin-left: 0; } .vision .orb { width: 70%; justify-self: center; } }

/* ---------- curriculum staircase: headings only, a stage swipes open upward ---------- */
.pathway h2 { font-size: var(--step-head); color: var(--teal); max-width: 14ch; }
:root[data-theme="dark"] .pathway h2 { color: var(--heading); }
.stairs-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 32px; flex-wrap: wrap; }
.stairs-intro p { max-width: 38ch; }
.stairs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); align-items: end; margin-top: 32px; height: 480px; }
@media (max-width: 1300px) { .stairs { height: 570px; } }
.step { display: flex; flex-direction: column; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--sky); color: #fff; }
.step h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); color: #fff; }
.step .head { width: 100%; min-height: 104px; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; cursor: pointer; padding: 20px 18px; display: flex; gap: 12px; align-items: center; }
.step .head:focus-visible { outline-offset: -5px; outline-color: #fff; }
.step .head .badge { --s: 54px; color: var(--sky); background: #fff; }
.step .nm { flex: 1; min-width: 0; }
.step .caret { width: 24px; height: 24px; transition: transform 450ms var(--ease-expo); }
.step.is-open .caret { transform: rotate(180deg); }
.step .panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 620ms var(--ease-expo), visibility 0s linear 620ms; }
.step.is-open .panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 620ms var(--ease-expo), visibility 0s; }
.step .panel-in { overflow: hidden; min-height: 0; }
.step .body { background: var(--stage-body); border-radius: var(--radius) var(--radius) 0 0; padding: 26px 20px 28px; display: grid; gap: 14px; }
.step .body > * { opacity: 0; transform: translateY(14px); transition: opacity 200ms ease, transform 200ms ease; }
.step.is-open .body > * { opacity: 1; transform: none; transition: opacity 500ms ease 180ms, transform 700ms var(--ease-expo) 180ms; }
.step ul { list-style: none; display: grid; gap: 8px; font-size: var(--step-small); }
.step li { display: flex; gap: 10px; }
.step li .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--mint); }
/* the staircase: a dark base under each heading, taller for each later stage */
.step .ped { display: block; height: calc((var(--i) + 0.6) * clamp(36px, 4.4vw, 62px)); background: var(--stage-body); border-radius: var(--radius) var(--radius) 0 0; transition: height 620ms var(--ease-expo); }
.step.is-open .ped { height: 0; }
.no-js .stairs { height: auto; align-items: stretch; }
.no-js .step .panel { grid-template-rows: 1fr; visibility: visible; }
.no-js .step .body > * { opacity: 1; transform: none; }
.no-js .step .ped { display: none; }
@media (max-width: 1060px) {
  .stairs { grid-template-columns: 1fr; height: auto; align-items: stretch; gap: 10px; }
  .step { border-radius: var(--radius); }
  .step .head { min-height: 84px; }
  .step .ped { display: none; }
  .step .body { border-radius: var(--radius); }
}

/* ---------- planner ---------- */
.planner { background: var(--paper-2); padding-block: clamp(64px, 8vw, 120px); margin-block: var(--gap-section); }
.planner .grid { align-items: center; row-gap: 48px; }
.planner .copy { grid-column: 1 / span 6; }
.planner h2 { font-size: var(--step-head); color: var(--heading); }
.planner .copy > p { margin-top: 20px; max-width: 46ch; }
.planner form { margin-top: 36px; display: grid; gap: 26px; max-width: 520px; }
.field-row label, .field-row legend { font-family: var(--font-head); font-weight: 700; display: flex; justify-content: space-between; margin-bottom: 10px; padding: 0; color: var(--teal); }
:root[data-theme="dark"] .field-row label, :root[data-theme="dark"] .field-row legend { color: var(--ink); }
:root[data-theme="dark"] .field-row output { color: var(--mint); }
.field-row output { color: var(--green-deep); font-variant-numeric: tabular-nums; }
.field-row fieldset { border: 0; margin: 0; padding: 0; }
input[type="range"] { width: 100%; accent-color: var(--green); height: 28px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { margin: 0; min-width: 56px; min-height: 44px; padding: 0 16px; display: inline-grid; place-items: center; border-radius: var(--pill); background: var(--ground); cursor: pointer; font-family: var(--font-head); font-weight: 700; box-shadow: var(--shadow-badge); transition: transform var(--t-press) var(--ease-out); }
.chips label:active { transform: scale(0.95); }
.chips input:checked + label { background: var(--grad-cover); color: #fff; }
.chips input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 3px; }
.planner .result { grid-column: 8 / span 5; display: grid; justify-items: center; gap: 24px; text-align: center; }
.juz-ring { width: min(100%, 420px); aspect-ratio: 1; overflow: visible; }
.juz-ring circle { transition: fill 300ms ease; }
.juz-ring .juz { fill: var(--ground); stroke: rgba(27, 142, 194, 0.3); stroke-width: 2; }
.juz-ring .juz.held { fill: var(--green); stroke: none; }
.juz-ring .juz.today { fill: var(--blue); stroke: none; }
.juz-ring .center-num { font-family: var(--font-head); font-weight: 700; font-size: 88px; fill: var(--heading); }
.juz-ring .center-lbl { font-family: var(--font-head); font-weight: 600; font-size: 18px; fill: var(--ink-soft); }
.planner .verdict { font-size: var(--step-lead); line-height: 1.45; max-width: 28ch; }
.planner .verdict strong { font-family: var(--font-head); color: var(--green-deep); }
:root[data-theme="dark"] .planner .verdict strong { color: var(--mint); }
@media (max-width: 900px) { .planner .copy, .planner .result { grid-column: 1 / -1; } .juz-ring { width: 82%; } }

/* ---------- four pillars ---------- */
.pillars .band { background: var(--grad-blue); color: #fff; text-align: center; padding: clamp(56px, 7vw, 104px) var(--margin) clamp(16px, 2vw, 24px); }
.pillars .band h2 { font-size: var(--step-head); color: #fff; max-width: 20ch; margin-inline: auto; }
.pillars .wave-under { color: #1a8fc0; margin-top: -1px; }
.pillar-cols { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: 24px; }
.pillar { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto 1fr; column-gap: 18px; align-content: start; }
.pillar .tilt { grid-column: 1 / -1; margin-bottom: 18px; }
.pillar .badge { --s: clamp(96px, 9vw, 120px); }
.pillar .line { grid-row: 2 / span 2; width: 10px; justify-self: center; border-radius: 5px; background: var(--grad-line); min-height: 170px; }
.pillar h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); color: var(--heading); }
.pillar p { margin-top: 10px; }
@media (max-width: 960px) { .pillar-cols { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .pillar-cols { grid-template-columns: 1fr; } }

/* ---------- split with a wavy spine (Environment / Principles) ---------- */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; min-height: 720px; margin-block: var(--gap-section); }
.split .panel { position: relative; color: #fff; padding: clamp(40px, 6vw, 96px) clamp(48px, 7vw, 120px) clamp(40px, 6vw, 96px) max(var(--margin), calc((100vw - var(--max)) / 2)); display: flex; flex-direction: column; justify-content: center; background: var(--grad-green); border-radius: 0 50% 50% 0 / 0 12% 12% 0; }
.split.blue .panel { background: var(--grad-blue); }
.split .panel h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem); color: #fff; line-height: 1.02; max-width: 12ch; }
.split .panel p { margin-top: 28px; color: var(--on-dark-soft); font-size: var(--step-lead); line-height: 1.55; max-width: 34ch; font-weight: 500; }
.split.blue .panel p { color: #d6effa; }
.split .panel .chip { align-self: flex-start; }
.split .spine { position: relative; padding: clamp(40px, 5vw, 80px) max(var(--margin), calc((100vw - var(--max)) / 2)) clamp(40px, 5vw, 80px) 0; display: grid; align-content: center; gap: clamp(36px, 5vw, 64px); }
.split .spine svg.vine { position: absolute; left: 30px; top: 0; height: 100%; width: 120px; color: var(--green); }
.split.blue .spine svg.vine { color: var(--blue); }
.split .item { display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: start; position: relative; padding-left: var(--x, 0px); }
.split .item .badge { --s: 104px; }
.split .item:nth-child(2) { --x: 0px; } .split .item:nth-child(3) { --x: 40px; } .split .item:nth-child(4) { --x: 8px; }
.split .item h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); color: var(--green-deep); }
.split.blue .item h3 { color: var(--heading); }
:root[data-theme="dark"] .split .item h3 { color: var(--mint); }
:root[data-theme="dark"] .split.blue .item h3 { color: var(--heading); }
.split .item p { margin-top: 8px; max-width: 52ch; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split .panel { border-radius: 0 0 var(--radius) var(--radius); padding: 56px var(--margin); }
  .split .spine { padding: 48px var(--margin) 0; }
  .split .spine svg.vine { display: none; }
  .split .item { grid-template-columns: 80px 1fr; --x: 0px !important; }
  .split .item .badge { --s: 76px; }
}

/* ---------- raising children band ---------- */
.raise { background: var(--grad-green); color: #fff; overflow: hidden; }
.raise .wave-top { color: var(--ground); margin-bottom: -1px; }
.raise .wave-top.flip { transform: rotate(180deg); margin: 0 0 -1px; }
.raise .grid { align-items: center; row-gap: 32px; padding-block: clamp(32px, 4vw, 64px); }
.raise .text { grid-column: 1 / span 5; }
.raise .stage3d { grid-column: 6 / span 7; }
.raise .scene { aspect-ratio: 4 / 3; }
.raise .scene .halo { display: none; }
.raise .scene .fallback { color: #fff; }
.raise h2 { font-size: var(--step-head); color: #fff; }
.raise .lead { margin-top: 24px; }
.raise-values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 16px; margin-block: 26px; }
.raise-values li { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: var(--step-h4); }
.raise-values .badge { --s: 58px; }
:root[data-theme="dark"] .raise-values .badge { background: #fff; }
@media (max-width: 1000px) { .raise .text, .raise .stage3d { grid-column: 1 / -1; } .raise .stage3d { order: -1; } }

/* ---------- FAQ cards ---------- */
.faq-cards h2 { font-size: var(--step-head); color: var(--heading); margin-bottom: 48px; text-align: center; }
.faq-cards .inner { width: min(100%, 880px); margin-inline: auto; }
.cards { list-style: none; }
.card { position: relative; margin-top: -24px; }
.card:first-child { margin-top: 0; }
.card .tabshape {
  --tab-x: calc(var(--i) * (100% - 200px) / var(--n, 5)); background: var(--c); color: #fff; border-radius: 0 0 var(--radius) var(--radius);
  clip-path: polygon(var(--tab-x) 0, calc(var(--tab-x) + 200px) 0, calc(var(--tab-x) + 200px) 40px, 100% 40px, 100% 100%, 0 100%, 0 40px, var(--tab-x) 40px); padding-top: 40px;
}
.card .tab { position: absolute; top: 0; left: calc(var(--i) * (100% - 200px) / var(--n, 5)); width: 200px; height: 40px; display: flex; align-items: center; gap: 8px; padding-inline: 18px; font-family: var(--font-head); font-weight: 700; color: #fff; }
.card .tab .ico { width: 18px; height: 18px; }
.card button { width: 100%; text-align: left; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 18px 28px 44px; font-family: var(--font-head); font-weight: 700; font-size: var(--step-h4); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.card button .pm { flex: 0 0 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); position: relative; }
.card button .pm::before, .card button .pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; background: currentColor; }
.card button .pm::after { transform: rotate(90deg); transition: transform var(--t-ui) var(--ease-out); }
.card button[aria-expanded="true"] .pm::after { transform: rotate(0); }
.card .answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.card .answer > div { overflow: hidden; }
.card .answer p { padding: 0 28px 52px; max-width: 60ch; }
.card.is-open .answer { grid-template-rows: 1fr; }
.card:nth-child(3n+1) { --c: var(--teal); }
.card:nth-child(3n+2) { --c: #1580ad; }
.card:nth-child(3n+3) { --c: var(--green-deep); }
.faq-cards .more { margin-top: 36px; text-align: center; }
@media (max-width: 700px) {
  .card .tabshape { --tab-x: calc(var(--i) * (100% - 150px) / var(--n, 5)); clip-path: polygon(var(--tab-x) 0, calc(var(--tab-x) + 150px) 0, calc(var(--tab-x) + 150px) 40px, 100% 40px, 100% 100%, 0 100%, 0 40px, var(--tab-x) 40px); }
  .card .tab { left: calc(var(--i) * (100% - 150px) / var(--n, 5)); width: 150px; padding-inline: 14px; font-size: var(--step-small); }
  .card button { padding: 16px 20px 40px; }
  .card .answer p { padding: 0 20px 44px; }
}

/* ---------- Join now (brochure back page) ---------- */
.join { position: relative; overflow: hidden; padding-block: clamp(72px, 8vw, 120px) clamp(56px, 6vw, 96px); margin: var(--gap-section) 0 0; }
.join .blob-tr { right: -8vw; top: -10vw; width: 44vw; min-width: 300px; }
.join .wrap { position: relative; z-index: 1; }
.join h2 { font-family: var(--font-text); font-weight: 500; font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: 1.08; letter-spacing: -0.02em; }
.join h2 span { display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join h2 .now { font-weight: 700; }
.join-channels { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: 48px; }
.join-channels a { display: grid; justify-items: center; gap: 12px; text-decoration: none; padding: 28px 16px; border-radius: var(--radius); background: var(--paper); text-align: center; transition: transform 400ms var(--ease-expo); }
.join-channels a:hover { transform: translateY(-6px); }
.join-channels .badge { --s: 92px; }
.join-channels b { font-family: var(--font-head); font-size: var(--step-h4); color: var(--teal); }
:root[data-theme="dark"] .join-channels b { color: var(--ink); }
.join-channels span { font-size: var(--step-small); color: var(--ink-soft); }
.wa-badge { color: #25a85a; }
.ig-badge { color: #c13584; }
.web-badge { color: var(--teal); }
:root[data-theme="dark"] .web-badge { color: var(--heading); }
.phone-pill { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.phone-pill a.num { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-family: var(--font-text); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); letter-spacing: -0.02em; }
.phone-pill .sq { width: clamp(56px, 5vw, 72px); height: clamp(56px, 5vw, 72px); border-radius: 18px; background: var(--grad-cover); color: #fff; display: grid; place-items: center; flex: none; }
.phone-pill .sq .ico { width: 55%; height: 55%; }
@media (max-width: 700px) { .join-channels { grid-template-columns: 1fr; } .join-channels a { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 18px; } .join-channels .badge { --s: 64px; grid-row: span 2; } }

/* ---------- footer ---------- */
.site-footer { background: var(--grad-cover); color: #fff; position: relative; }
.site-footer .wave-top { color: var(--ground); margin-bottom: -1px; }
.site-footer .inner { padding: 32px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-top .brand .wordmark b, .footer-top .brand .wordmark i { color: #fff; }
.footer-top .brand .mark { width: 72px; height: 72px; }
.footer-top .brand .wordmark b { font-size: 2.25rem; }
.footer-top .brand .wordmark i { font-size: 1.5rem; }
.footer-top p { max-width: 44ch; color: rgba(255,255,255,.9); }
.footer-cols { margin-top: 56px; row-gap: 36px; }
.footer-cols nav { grid-column: span 2; }
.footer-cols h2 { font-size: var(--step-body); margin-bottom: 12px; color: #fff; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; color: rgba(255,255,255,.88); }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-contact { grid-column: 9 / span 4; display: grid; gap: 10px; align-content: start; }
.footer-contact a, .footer-contact span { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #fff; }
.footer-contact .ico { width: 20px; height: 20px; }
.footer-contact .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); }
.footer-last { margin-top: 40px; padding-right: 84px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: var(--step-small); color: rgba(255,255,255,.88); }
.footer-last .btn { background: #fff; color: var(--teal); box-shadow: none; }
/* "An initiative of" Athahseen: their emblem and name on a white rounded card, so the academy's own blue reads true. */
.initiative { margin-top: 44px; display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px 14px 16px; border-radius: 20px; background: #fff; color: #17428f; text-decoration: none; box-shadow: 0 10px 30px rgba(3, 30, 26, .22); transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) ease; }
.initiative:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(3, 30, 26, .28); }
.initiative img { height: 52px; width: auto; flex: none; }
.initiative > span { display: grid; line-height: 1.25; }
.initiative small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #5b6b75; }
.initiative b { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #17428f; }
.initiative i { font-family: Amiri, serif; font-style: normal; font-size: .95rem; color: #1a8fd0; }
.made-by { font-family: var(--font-head); font-weight: 700; letter-spacing: .18em; color: #f0cf7a; }
@media (max-width: 720px) { .initiative { flex-direction: column; text-align: center; padding: 18px 26px; gap: 10px; } .initiative > span { justify-items: center; } }
@media (max-width: 900px) { .footer-cols nav { grid-column: span 6; } .footer-contact { grid-column: 1 / -1; } }

/* ---------- inner-page blocks ---------- */
.two-col .grid { row-gap: 32px; align-items: start; }
.two-col .left { grid-column: 1 / span 5; }
.two-col .right { grid-column: 7 / span 6; display: grid; gap: 20px; }
.two-col h2 { font-size: var(--step-head); color: var(--heading); }
.two-col .right p { max-width: 64ch; }
.two-col .left .badges { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 900px) { .two-col .left, .two-col .right { grid-column: 1 / -1; } }

.icon-row h2 { font-size: var(--step-head); color: var(--heading); margin-bottom: 44px; max-width: 18ch; }
.icon-row ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.icon-row li { display: grid; gap: 14px; justify-items: start; padding: 28px; border-radius: var(--radius); background: var(--paper); }
.icon-row .badge { --s: 88px; }
.icon-row h3 { font-size: var(--step-h4); color: var(--teal); }
:root[data-theme="dark"] .icon-row h3 { color: var(--ink); }
.icon-row p { color: var(--ink-soft); }
@media (max-width: 900px) { .icon-row ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .icon-row ul { grid-template-columns: 1fr; } }

.stage-rows { list-style: none; display: grid; gap: 14px; }
.stage-row { display: grid; grid-template-columns: 120px 1.1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(24px, 3.5vw, 48px); color: #fff; border-radius: var(--radius); }
.stage-row:nth-child(1) { background: linear-gradient(110deg, #0b5c78, #0e6f92); }
.stage-row:nth-child(2) { background: linear-gradient(110deg, #0e6f92, #1688b8); }
.stage-row:nth-child(3) { background: linear-gradient(110deg, #1580ad, #1f98c9); }
.stage-row:nth-child(4) { background: linear-gradient(110deg, #0b7d50, #0b9964); }
.stage-row .badge { --s: 112px; }
.stage-row h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); color: #fff; }
.stage-row .ar { font-size: 1.5rem; margin-top: 6px; opacity: .9; }
.stage-row ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.stage-row li { display: flex; gap: 10px; }
.stage-row li .ico { width: 20px; height: 20px; margin-top: 3px; color: #b8f5dc; }
@media (max-width: 900px) { .stage-row { grid-template-columns: 1fr; } .stage-row .badge { --s: 84px; } }

.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--paper); display: grid; gap: 12px; align-content: start; }
.facts li:nth-child(2) { background: var(--paper-2); }
.facts strong { font-family: var(--font-head); font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.salah { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.salah li { display: grid; gap: 12px; justify-items: start; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--paper); }
.salah li.circle { background: var(--grad-cover); color: #fff; }
.salah li.circle h3 { color: #fff; }
.salah .badge { --s: 64px; }
.salah h3 { font-size: var(--step-h4); color: var(--teal); }
:root[data-theme="dark"] .salah h3 { color: var(--ink); }
@media (max-width: 900px) { .salah { grid-template-columns: 1fr 1fr; } }

.field-band { background: var(--grad-cover); color: #fff; padding-block: clamp(72px, 9vw, 140px); }
.field-band .grid { row-gap: 32px; align-items: center; }
.field-band h2 { grid-column: 1 / span 6; font-size: var(--step-head); color: #fff; }
.field-band .quote { grid-column: 7 / span 6; font-size: var(--step-lead); line-height: 1.55; margin: 0; }
.field-band .quote p + p { margin-top: 16px; font-size: var(--step-body); color: rgba(255,255,255,.88); }
@media (max-width: 900px) { .field-band h2, .field-band .quote { grid-column: 1 / -1; } }

/* ---------- forms ---------- */
.form-wrap { background: var(--paper); padding: clamp(24px, 4vw, 56px); border-radius: var(--radius); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form .full { grid-column: 1 / -1; }
.form fieldset { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form legend { font-family: var(--font-head); font-weight: 700; font-size: var(--step-h4); color: var(--heading); margin-bottom: 18px; padding: 0; display: flex; gap: 10px; align-items: center; }
.form legend .ico { width: 26px; height: 26px; color: var(--green); }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-family: var(--font-head); font-weight: 700; color: var(--teal); }
:root[data-theme="dark"] .field label { color: var(--ink); }
.field .hint { font-size: var(--step-small); color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid transparent; border-radius: 16px; background: var(--ground); font-size: var(--step-body); transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(27, 142, 194, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(42, 163, 211, 0.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field .error, .check-field .error { color: #b3261e; font-size: var(--step-small); font-family: var(--font-head); font-weight: 700; }
:root[data-theme="dark"] .field .error, :root[data-theme="dark"] .check-field .error { color: #ff8a80; }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; accent-color: var(--green); margin-top: 3px; flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-status { grid-column: 1 / -1; padding: 20px 24px; border-radius: 20px; display: none; gap: 8px; }
.form-status.is-shown { display: grid; }
.form-status.ok { background: var(--paper-2); border-left: 6px solid var(--green); }
.form-status.err { background: #fbe3e1; color: #5c1410; border-left: 6px solid #c0392b; }
:root[data-theme="dark"] .form-status.err { background: #3a1714; color: #ffd9d5; }
.form-status h3 { font-size: var(--step-h4); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"] .dot { animation: pulse 900ms ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.4); } }
@media (max-width: 700px) { .form, .form fieldset { grid-template-columns: 1fr; } }

.admit .grid { row-gap: 40px; align-items: start; }
.admit .aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 24px); }
.admit .aside h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--heading); }
.admit .aside ol { list-style: none; margin-top: 28px; display: grid; gap: 22px; }
.admit .aside li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.admit .aside li .badge { --s: 52px; }
.admit .aside li b { font-family: var(--font-head); display: block; color: var(--teal); }
:root[data-theme="dark"] .admit .aside li b { color: var(--ink); }
.admit .main { grid-column: 6 / span 7; }
@media (max-width: 960px) { .admit .aside, .admit .main { grid-column: 1 / -1; position: static; } }

.faq-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 36px; }
.faq-tools .field { flex: 1 1 320px; }
.faq-tools .field input { background: var(--paper); }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group > h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); color: var(--heading); margin-bottom: 18px; display: flex; gap: 14px; align-items: center; }
.faq-group > h2 .badge { --s: 56px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--paper); border-radius: 22px; transition: background-color var(--t-hover) ease; }
.faq-list details[open] { background: var(--paper-2); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: var(--step-h4); color: var(--teal); }
:root[data-theme="dark"] .faq-list summary { color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--grad-cover); color: #fff; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .a { padding: 0 26px 24px; max-width: 72ch; }
.faq-list .a p + p { margin-top: 12px; }
.faq-empty { padding: 28px; background: var(--paper); border-radius: 22px; }

.channels { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.channel { background: var(--paper); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; }
.channel .badge { --s: 84px; grid-row: span 3; }
.channel h3 { font-size: var(--step-body); color: var(--ink-soft); font-weight: 600; }
.channel .val { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.125rem); color: var(--teal); line-height: 1.1; word-break: break-word; }
:root[data-theme="dark"] .channel .val { color: var(--ink); }
.channel .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.copy-btn.is-copied { background: var(--green); color: #fff; }
@media (max-width: 760px) { .channels { grid-template-columns: 1fr; } .channel { grid-template-columns: 1fr; } .channel .badge { grid-row: auto; --s: 64px; } }

.legal .grid { row-gap: 32px; }
.legal .toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.legal .toc ul { list-style: none; display: grid; gap: 8px; }
.legal .toc a { text-decoration: none; font-family: var(--font-head); font-weight: 600; color: var(--teal); }
:root[data-theme="dark"] .legal .toc a { color: var(--ink); }
.legal .body { grid-column: 5 / span 8; }
.legal .body h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); color: var(--heading); margin: 52px 0 14px; }
.legal .body h2:first-child { margin-top: 0; }
.legal .body p, .legal .body li { max-width: 68ch; }
.legal .body p + p { margin-top: 14px; }
.legal .body ul { padding-left: 1.2em; display: grid; gap: 8px; margin-top: 12px; }
@media (max-width: 900px) { .legal .toc, .legal .body { grid-column: 1 / -1; position: static; } }

/* ---------- floating things ---------- */
.float-contact { position: fixed; right: var(--margin); bottom: var(--margin); z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25a85a; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(4, 30, 20, 0.28); text-decoration: none; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; }
.float-contact:hover { transform: scale(1.08); }
.float-contact svg { width: 30px; height: 30px; }
.float-contact .tip { position: absolute; right: 72px; white-space: nowrap; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: var(--pill); font-family: var(--font-head); font-weight: 700; font-size: var(--step-small); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.float-contact:hover .tip, .float-contact:focus-visible .tip { opacity: 1; transform: none; }
.to-top { position: fixed; right: calc(var(--margin) + 6px); bottom: calc(var(--margin) + 76px); z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(4, 30, 20, 0.22); opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }
.to-top .ring { position: absolute; inset: -4px; width: 56px; height: 56px; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--mint); stroke-width: 3; }
.float-contact.is-tucked, .to-top.is-tucked { opacity: 0; transform: scale(0.6); pointer-events: none; }

dialog { border: 0; padding: 0; color: var(--ink); background: var(--ground); box-shadow: 0 30px 80px rgba(2, 20, 30, 0.35); }
dialog::backdrop { background: rgba(5, 30, 40, 0.55); }
dialog[open] { animation: dlg-in 320ms var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.search-dialog { width: min(720px, calc(100% - 24px)); margin-top: 10vh; border-radius: 28px; }
.search-dialog form { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 22px; background: var(--paper); color: var(--teal); }
.search-dialog input { flex: 1; border: 0; background: transparent; font-family: var(--font-head); font-weight: 700; font-size: var(--step-h4); min-height: 52px; color: var(--ink); }
.search-dialog input:focus { outline: none; }
.search-results { list-style: none; max-height: 56vh; overflow: auto; padding: 8px; }
.search-results a { display: grid; gap: 4px; padding: 14px 18px; border-radius: 18px; text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--paper-2); }
.search-results b { font-family: var(--font-head); color: var(--teal); }
:root[data-theme="dark"] .search-results b { color: var(--ink); }
.search-results span { font-size: var(--step-small); color: var(--ink-soft); }
.search-results mark { background: rgba(70, 211, 154, 0.35); color: inherit; border-radius: 4px; }
.search-empty { padding: 20px 26px 26px; color: var(--ink-soft); }
.search-hint { padding: 12px 26px 20px; font-size: var(--step-small); color: var(--ink-soft); }
kbd { font-family: var(--font-head); font-size: var(--step-small); padding: 2px 8px; border-radius: 8px; background: var(--paper); }
.confirm-dialog { width: min(480px, calc(100% - 24px)); border-radius: 28px; padding: 32px; }
.confirm-dialog h2 { font-size: var(--step-h4); color: var(--heading); }
.confirm-dialog p { margin-top: 12px; }
.confirm-dialog .row { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.confirm-dialog dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.confirm-dialog dt { font-family: var(--font-head); font-weight: 700; color: var(--teal); }
.confirm-dialog dd { margin: 0; }

/* ---------- icon animations: each plays when it comes into view and when the pointer passes.
   The resting state of every part is its finished pose, so nothing depends on the animation. */
.ico .f { fill: currentColor; stroke: none; }
.ico g.f text { fill: currentColor; stroke: none; }
.ico [class*="a-"], .ico .sj { transform-box: fill-box; transform-origin: center; }
.ico .sj { transform-box: view-box; }
.ico .a-hand, .ico .a-hand-s { transform-box: view-box; }
.ico .sj-shin { transform: rotate(85deg); }
.ico .sj-thigh { transform: rotate(-90deg); }
.ico .sj-torso { transform: rotate(130deg); }
.ico .sj-arm { transform: rotate(-165deg); }
.ico.play [class*="a-"] { animation-duration: 900ms; animation-delay: var(--d, 0s); animation-fill-mode: both; animation-timing-function: var(--ease-expo); }
.ico.play .a-spin { animation-name: i-spin; animation-duration: 1200ms; }
.ico.play .a-pop { animation-name: i-pop; animation-duration: 600ms; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.ico.play .a-draw { stroke-dasharray: 1; animation-name: i-draw; animation-duration: 650ms; }
.ico.play .a-beat { animation-name: i-beat; animation-duration: 1100ms; animation-timing-function: ease-in-out; }
.ico.play .a-bar { animation-name: i-bar; animation-duration: 900ms; animation-timing-function: ease-in-out; vector-effect: non-scaling-stroke; }
.ico.play .a-rise { transform-origin: 50% 100%; animation-name: i-rise; vector-effect: non-scaling-stroke; }
.ico.play .a-lift { transform-origin: 50% 100%; animation-name: i-lift; animation-duration: 1100ms; vector-effect: non-scaling-stroke; }
.ico.play .a-drop { animation-name: i-drop; animation-duration: 700ms; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.ico.play .a-up { animation-name: i-up; animation-duration: 1100ms; }
.ico.play .a-sink { animation-name: i-sink; animation-duration: 1200ms; }
.ico.play .a-arc { animation-name: i-arc; animation-duration: 1300ms; }
.ico.play .a-fall { animation-name: i-fall; animation-duration: 800ms; animation-timing-function: ease-in; }
.ico.play .a-shake { animation-name: i-shake; animation-duration: 800ms; animation-timing-function: ease-in-out; }
.ico.play .a-swing { animation-name: i-swing; animation-duration: 1100ms; animation-timing-function: ease-in-out; }
.ico.play .a-flip { animation-name: i-flip; animation-duration: 1300ms; animation-timing-function: ease-in-out; }
.ico.play .a-hand { animation-name: i-turn; animation-duration: 1300ms; }
.ico.play .a-hand-s { animation-name: i-turn; animation-duration: 900ms; }
.ico.play .a-unroll { transform-origin: 50% 0; animation-name: i-unroll; animation-duration: 800ms; vector-effect: non-scaling-stroke; }
.ico.play .a-rollerdown { animation-name: i-rollerdown; animation-duration: 800ms; }
.ico.play .a-leaf-l { transform-origin: 100% 100%; animation-name: i-pop; animation-duration: 650ms; }
.ico.play .a-leaf-r { transform-origin: 0 100%; animation-name: i-pop; animation-duration: 650ms; }
.ico.play .sj-shin { animation: sj-shin 2600ms var(--ease-in-out) both; }
.ico.play .sj-thigh { animation: sj-thigh 2600ms var(--ease-in-out) both; }
.ico.play .sj-torso { animation: sj-torso 2600ms var(--ease-in-out) both; }
.ico.play .sj-arm { animation: sj-arm 2600ms var(--ease-in-out) both; }
@keyframes i-spin { from { transform: rotate(-180deg) scale(.7); } to { transform: none; } }
@keyframes i-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes i-draw { from { stroke-dashoffset: 1; opacity: 0; } 10% { opacity: 1; } to { stroke-dashoffset: 0; } }
@keyframes i-beat { 0%, 100% { transform: none; } 20% { transform: scale(1.22); } 40% { transform: scale(.96); } 60% { transform: scale(1.14); } }
@keyframes i-bar { 0%, 100% { transform: none; } 30% { transform: scaleY(.3); } 65% { transform: scaleY(1.2); } }
@keyframes i-rise { from { transform: scaleY(0); } to { transform: none; } }
@keyframes i-lift { 0%, 12% { transform: scaleY(.22); } 70% { transform: scaleY(1.06); } 100% { transform: none; } }
@keyframes i-drop { from { transform: translateY(-7px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes i-up { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes i-sink { from { transform: translateY(-9px); } to { transform: none; } }
@keyframes i-arc { from { transform: translate(8px, -3px); } to { transform: none; } }
@keyframes i-fall { from { transform: translateY(-5px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes i-shake { 0%, 100% { transform: none; } 20% { transform: rotate(-10deg); } 45% { transform: rotate(9deg); } 70% { transform: rotate(-5deg); } }
@keyframes i-swing { 0%, 100% { transform: none; } 35% { transform: rotate(-16deg); } 70% { transform: rotate(8deg); } }
@keyframes i-flip { 0%, 100% { transform: none; } 50% { transform: scaleX(-1); } }
@keyframes i-turn { from { transform: rotate(-360deg); } to { transform: none; } }
@keyframes i-unroll { from { transform: scaleY(0); } to { transform: none; } }
@keyframes i-rollerdown { from { transform: translateY(-12.8px); } to { transform: none; } }
@keyframes sj-shin { 0%, 42% { transform: none; } 78%, 100% { transform: rotate(85deg); } }
@keyframes sj-thigh { 0%, 42% { transform: none; } 78%, 100% { transform: rotate(-90deg); } }
@keyframes sj-torso { 0%, 8% { transform: none; } 30%, 44% { transform: rotate(85deg); } 80%, 100% { transform: rotate(130deg); } }
@keyframes sj-arm { 0%, 8% { transform: none; } 30%, 44% { transform: rotate(-85deg); } 80%, 100% { transform: rotate(-165deg); } }

/* ---------- entrances ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
.js [data-reveal="pop"] { transform: scale(.7) rotate(-8deg); }
.js [data-reveal="pop"].in { transform: none; transition: opacity 500ms ease, transform 900ms cubic-bezier(.34, 1.4, .64, 1); transition-delay: var(--d, 0ms); }
.js .step[data-reveal] { transform: translateY(60px); }
.js .step[data-reveal].in { transform: none; }
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero .text > * { opacity: 1 !important; transform: none !important; }
  .ico.play [class*="a-"], .ico.play .sj { animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  :root { --ground: #fff; --paper: #fff; --paper-2: #fff; --ink: #000; }
  .site-header, .mobile-menu, .progress, .float-contact, .to-top, .cookie, dialog, .skip-link, .scene, .stage3d, .planner form, .theme-toggle, .faq-tools, .wave, .blob, .join-channels { display: none !important; }
  body { font-size: 11pt; }
  main > section, .section, .split { margin-block: 20pt; break-inside: avoid-page; }
  .split, .pillar-cols, .stairs, .grid { display: block; }
  .split .panel, .raise, .field-band, .pillars .band, .site-footer, .step, .step .head, .step .body, .stage-row, .salah li.circle, .card .tabshape { background: #fff !important; color: #000 !important; clip-path: none !important; }
  .split .panel h2, .split .panel p, .raise h2, .field-band h2, .pillars .band h2, .step h3, .stage-row h3, .card .tab, .join h2 span { color: #000 !important; -webkit-text-fill-color: #000; }
  .card .answer { grid-template-rows: 1fr; }
  .stairs { height: auto; }
  .step .panel { grid-template-rows: 1fr; visibility: visible; }
  .step .body > * { opacity: 1; transform: none; }
  .step .ped { display: none; }
  .js [data-reveal], .js .hero .text > * { opacity: 1 !important; transform: none !important; }
  .badge { box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  h1, h2, h3 { break-after: avoid; }
}

/* inline grid spans collapse on small screens */
@media (max-width: 900px) { .grid > [style*="grid-column"] { grid-column: 1 / -1 !important; } }

/* stacked stages open downward, so the arrow points down until opened */
@media (max-width: 1060px) { .step .caret { transform: rotate(180deg); } .step.is-open .caret { transform: none; } }

/* Touch screens: every link gets a 44px tap area. Padding grows the hit box; equal negative margin keeps the layout unchanged. */
@media (max-width: 1023px), (pointer: coarse) {
  .text-link, .footer-cols a, .footer-last a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .footer-cols li { margin-block: 2px; }
  .footer-contact a { min-height: 44px; }
  .mobile-menu a { min-height: 44px; }
  input[type="range"] { min-height: 44px; }
}

/* ---------- phones: one centred column ----------
   Everything reads down the middle of the screen. Form fields, FAQ questions and long answers stay
   left-aligned, because centred paragraphs and inputs are hard to read and fill in. */
@media (max-width: 720px) {
  main { text-align: center; }
  /* Headings and paragraphs with a max width need auto margins to sit in the middle. */
  main h1, main h2, main .lead, main p, main blockquote { margin-inline: auto; }
  .hero .grid, .page-hero .grid { min-height: 0; justify-items: center; }
  .hero .text, .page-hero .text, .what .text, .vision .text, .planner .copy { text-align: center; }
  .hero .actions { flex-direction: column; justify-content: center; }
  .hero .hero-facts, .stairs-intro, .phone-pill, .raise-values { justify-content: center; }
  .hero .hero-facts li { justify-content: center; }
  /* The 3D star was a whole screen tall on a phone: keep it, but small, below the headline. */
  .hero .stage3d, .page-hero .stage3d { width: min(220px, 60vw); margin-inline: auto; }
  .vision .text { text-align: center; }
  .vision blockquote { margin-inline: auto; }
  .loves { justify-items: center; margin-inline: auto; }
  .stairs-intro { flex-direction: column; align-items: center; }
  .planner form { margin-inline: auto; }
  .planner .chips { justify-content: center; }
  .pillar { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pillar .line { display: none; }
  .pillar .tilt { margin-bottom: 12px; }
  .split .panel { align-items: center; text-align: center; }
  .split .panel .chip { align-self: center; }
  .split .spine svg.vine { display: none; }
  .split .item { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-left: 0; --x: 0px; }
  .split .item .badge { --s: 84px; }
  .raise { text-align: center; }
  .raise-values li { justify-content: center; }
  .join .wrap { text-align: center; }
  .join-channels a { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .phone-pill { flex-direction: column; }
  .site-footer { text-align: center; }
  .footer-top { flex-direction: column; justify-content: center; }
  .footer-top .brand { margin-inline: auto; }
  .footer-cols nav ul { padding: 0; }
  .footer-contact a, .footer-contact span { display: flex; justify-content: center; align-items: center; }
  .footer-contact { justify-items: center; }
  .cookie > .wrap { flex-direction: column; text-align: center; }
  .cookie .row { margin-left: 0; justify-content: center; }
  .cookie p { flex: none; }
  /* Icon-and-text lists (three steps, where your child might start): icon on top, everything centred. */
  main ol:not([class]) > li, main ul:not([class]) > li { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  main ol:not([class]) > li > div b { display: block; }
  /* Tick lists inside stage cards: centred as a block, ticks still lined up with their text. */
  .stage-row ul, .facts { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .stage-row { justify-items: center; }
  main .stage-row ul:not([class]) > li, main .facts > li { display: flex; align-items: flex-start; gap: 10px; text-align: left; justify-items: normal; }
  .admit .aside ol > li { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .updated { justify-content: center; }
  .footer-last { flex-direction: column; justify-content: center; padding-right: 0; }
  /* Stay left-aligned: things people fill in or read at length. */
  .form, .form-wrap, .field, .card button, .card .answer, .faq-tools, .search-dialog, .confirm-dialog, .prose, .legal { text-align: left; }
}
