/* =====================================================================
   MAAL (مآل) — styles
   ---------------------------------------------------------------------
    1. Brand tokens (colours, fonts) ← adjust the palette here
    2. Base
    3. Layout & typography
    4. Buttons & small components
    5. Header & mobile menu
    6. Hero
    7. Marquee
    8. About & age groups
    9. How children learn
   10. Vision
   11. Workshops
   12. Contact
   13. Footer
   14. Lightbox & toast
   15. Motion & reduced motion
   ===================================================================== */

/* 1. BRAND TOKENS ===================================================== */
:root {
  /* Palette — match these to your brand palette */
  --navy: #1E2A47;
  --navy-soft: #2C3A5C;
  --blue: #A8C5E2;
  --blue-soft: #DDE9F4;
  --coral: #E9917F;
  --coral-soft: #F7D9D0;
  --coral-deep: #A9493A;   /* text-safe coral for small text */
  --beige: #D9C3A5;
  --beige-soft: #EFE4D3;
  --sage: #A5B595;
  --sage-soft: #E1E8D8;
  --sage-deep: #566749;
  --cream: #F8F2E7;
  --paper: #FFFCF7;

  /* Navy with a soft light — used on every navy surface */
  --navy-grad: radial-gradient(120% 160% at 18% 0%, #3A4E7C 0%, #24345A 38%, #1E2A47 68%, #19233C 100%);
  --navy-glow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 28px -12px rgba(58, 90, 150, .55);

  --coral-grad: radial-gradient(120% 160% at 18% 0%, #F1A797 0%, #EC9986 38%, #E9917F 68%, #E1876F 100%);

  --ink: var(--navy);
  --muted: #4F5A72;
  --line: rgba(30, 42, 71, .12);
  --grid: rgba(30, 42, 71, .055);

  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;

  --radius: 24px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 0 rgba(30, 42, 71, .05), 0 12px 28px -22px rgba(30, 42, 71, .45);
  --shadow: 0 2px 0 rgba(30, 42, 71, .04), 0 28px 60px -34px rgba(30, 42, 71, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

/* 2. BASE ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  background: var(--cream);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fade the page in once text is in place (with a safety net if scripts fail) */
html.js body:not(.is-ready) { opacity: 0; animation: failsafe-show 0s linear 2.5s forwards; }
html.js body { transition: opacity .5s ease; }
@keyframes failsafe-show { to { opacity: 1; } }

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
  text-wrap: balance;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.4; }
:lang(ar) body { line-height: 1.9; }

:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 10px; }
#main:focus { outline: none; }

::selection { background: var(--coral-soft); color: var(--navy); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -80px; inset-inline-start: 16px; z-index: 100;
  padding: .7em 1.2em; border-radius: 999px;
  background: var(--navy); color: var(--cream); text-decoration: none; font-weight: 600;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

.noscript { padding: 24px; text-align: center; background: var(--coral-soft); }

/* 3. LAYOUT & TYPOGRAPHY ============================================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { margin-top: 18px; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.section-lede { margin-top: 18px; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  padding: .42em 1.05em .42em .9em;
  padding-inline: .85em 1.1em;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper);
  font: 500 .88rem/1.4 var(--font-display);
  letter-spacing: .02em;
  color: var(--navy);
}
:lang(ar) .eyebrow { letter-spacing: 0; }
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft);
}
.eyebrow--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--cream); }
.eyebrow--dark::before { box-shadow: 0 0 0 4px rgba(233, 145, 127, .25); }

/* Highlighted words — {{like this}} in content.js */
.hl {
  --hl-color: var(--coral-soft);
  background-image: linear-gradient(var(--hl-color), var(--hl-color));
  background-repeat: no-repeat;
  background-size: 100% .36em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .06em;
}
[dir="rtl"] .hl { background-position: 100% 92%; }

bdi { unicode-bidi: isolate; }

/* 4. BUTTONS & SMALL COMPONENTS ======================================= */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

.btn {
  --bg: var(--navy);
  --fg: var(--cream);
  --fill: var(--coral-grad);
  --fill-fg: var(--navy);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.5em;
  border: 1.5px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 1rem/1.25 var(--font-display);
  text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .35s ease, border-color .35s ease;
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  border-radius: inherit; background: var(--fill);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .55s var(--ease);
}
[dir="rtl"] .btn::before { transform-origin: right center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(30, 42, 71, .55); color: var(--fill-fg); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(0); }
.btn .icon--arrow { transition: translate .4s var(--ease); }
.btn:hover .icon--arrow { translate: 4px 0; }
[dir="rtl"] .btn:hover .icon--arrow { translate: -4px 0; }

.btn--primary { --bg: var(--navy-grad); --fg: var(--cream); box-shadow: var(--navy-glow); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 34px -14px rgba(58, 90, 150, .6); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --fill: var(--navy-grad); --fill-fg: var(--cream); border-color: var(--navy); }
.btn--light { --bg: var(--cream); --fg: var(--navy); --fill: var(--coral-grad); --fill-fg: var(--navy); }
.btn--sm { padding: .62em 1.15em; font-size: .92rem; }
.btn--lg { padding: 1.02em 1.8em; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn--disabled {
  --bg: var(--beige-soft); --fg: var(--muted);
  cursor: not-allowed; box-shadow: none !important; transform: none !important;
}
.btn--disabled::before { display: none; }
.btn--disabled:hover { color: var(--fg); }
.btn:disabled { opacity: .7; cursor: progress; }

.badge {
  display: inline-flex; align-items: center;
  padding: .32em .85em; border-radius: 999px;
  background: rgba(255, 252, 247, .92);
  font: 600 .8rem/1.4 var(--font-display); color: var(--navy);
  box-shadow: 0 4px 12px -8px rgba(30, 42, 71, .4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge--sample { background: var(--navy-grad); color: var(--cream); box-shadow: var(--navy-glow); }

.tag-dot { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); flex: none; }
.tag-dot--coral { background: var(--coral); }
.tag-dot--blue { background: var(--blue); border-radius: 50%; transform: none; }
.tag-dot--sage { background: var(--sage); border-radius: 2px 8px; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy);
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--ease);
}
.icon-btn:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); transform: scale(1.06); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(248, 242, 231, .22); color: var(--cream);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--ease);
}
.social:hover { background: var(--coral); border-color: var(--coral); color: var(--navy); transform: translateY(-3px) rotate(-6deg); }
.socials--dark .social { border-color: var(--line); color: var(--navy); }

.is-placeholder { opacity: .72; font-style: normal; }

/* 5. HEADER & MOBILE MENU ============================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: rgba(248, 242, 231, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none;
  font: 700 1.45rem/1 var(--font-display);
}
.brand__logo { width: 40px; height: 40px; transition: transform .7s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-10deg) scale(1.06); }
.brand--light { color: var(--cream); font-size: 1.7rem; }
.brand--light .brand__logo { width: 44px; height: 44px; }

.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  position: relative; display: block; padding: .5em .95em;
  color: var(--navy); text-decoration: none;
  font: 500 .98rem/1.5 var(--font-display);
}
.nav-list a::after {
  content: ""; position: absolute; inset-inline: .95em; bottom: .25em; height: 2px; border-radius: 2px;
  background: var(--coral); transform: scaleX(0); transform-origin: center;
  transition: transform .45s var(--ease);
}
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.main-nav + .header-actions { margin-inline-start: 8px; }

.lang-switch {
  display: inline-flex; align-items: center; gap: .45em;
  height: 42px; padding-inline: .95em 1.05em;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--navy);
  font: 500 .92rem/1 var(--font-display);
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease;
}
.lang-switch:hover { border-color: var(--navy); }
.lang-switch .icon { width: 1.1em; height: 1.1em; transition: transform .8s var(--ease); }
.lang-switch:hover .icon { transform: rotate(180deg); }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--navy-grad); box-shadow: var(--navy-glow); color: var(--cream); cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s ease;
}
.menu-toggle:hover { transform: scale(1.06); }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease), bottom .45s var(--ease);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] { background: var(--coral); color: var(--navy); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { bottom: 5px; transform: rotate(-45deg); }

.mobile-menu {
  --cx: calc(100% - 40px);
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--header-h) + 24px) clamp(16px, 6vw, 40px) 32px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 85% 90%, var(--coral-soft) 0 120px, transparent 121px),
    radial-gradient(circle at 10% 70%, var(--blue-soft) 0 70px, transparent 71px),
    var(--cream);
  visibility: hidden;
  clip-path: circle(0 at var(--cx) 38px);
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
[dir="rtl"] .mobile-menu { --cx: 40px; }
.mobile-menu.is-open { visibility: visible; clip-path: circle(150% at var(--cx) 38px); transition: clip-path .75s var(--ease), visibility 0s; }
.mobile-menu__list { display: grid; margin: 0; padding: 0; list-style: none; }
.mobile-menu__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  color: var(--navy); text-decoration: none;
  font: 600 clamp(1.7rem, 7vw, 2.3rem)/1.35 var(--font-display);
  opacity: 0; translate: 0 18px;
  transition: opacity .5s var(--ease), translate .6s var(--ease), color .3s ease;
}
.mobile-menu__list a small { font: 500 .85rem/1 var(--font-display); color: var(--coral-deep); }
.mobile-menu__list a:hover { color: var(--coral-deep); }
.mobile-menu.is-open .mobile-menu__list a { opacity: 1; translate: 0 0; transition-delay: calc(.18s + var(--i) * .07s); }
.mobile-menu__foot { display: grid; gap: 22px; opacity: 0; transition: opacity .5s ease; }
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; transition-delay: .45s; }

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }

/* 6. HERO ============================================================= */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(32px, 6vw, 80px) clamp(64px, 8vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 25%, transparent 75%);
}
[dir="rtl"] .hero::before {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 28% 45%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 28% 45%, #000 25%, transparent 75%);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__title { margin-block: 24px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -.035em; }
:lang(ar) .hero__title { line-height: 1.3; font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.hero__title .hl { --hl-color: var(--coral); background-size: 100% .2em; }
.hero__lede { max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  margin: 38px 0 0; padding: 0; list-style: none;
  font: 500 .95rem/1.4 var(--font-display); color: var(--navy);
}
.hero__tags li { display: inline-flex; align-items: center; gap: .6em; }

/* Hero — full-width paper-cut artwork; its two edges frame the centred text */
.hero--full {
  --hero-h: clamp(640px, 86vh, 920px);
  --mx: 0; --my: 0;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-items: center;
  min-height: var(--hero-h);
  padding-block: 64px;
  background: #EDE9E2;
}
.hero--full::before { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg__side {
  position: absolute; top: 0; bottom: 0;
  width: clamp(120px, calc((100vw - 660px) / 2), calc(var(--hero-h) / 2));
  background-image: var(--hero-img, url("../assets/images/hero-art.jpg"));
  background-size: auto 100%;
  background-repeat: no-repeat;
  translate: calc(var(--mx) * -10px) calc(var(--my) * -6px);
  transition: translate 1.2s cubic-bezier(.2, .8, .2, 1);
}
.hero-bg__side--left {
  left: 0; background-position: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
  mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.hero-bg__side--right {
  right: 0; background-position: right center;
  -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent);
  mask-image: linear-gradient(270deg, #000 82%, transparent);
}
/* Curtains open on load */
.js .hero-bg__side { opacity: 0; }
.is-ready .hero-bg__side--left { animation: curtain-left 1.6s var(--ease) .1s both; }
.is-ready .hero-bg__side--right { animation: curtain-right 1.6s var(--ease) .1s both; }

.hero__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-width: 700px; text-align: center;
}
.hero--full .hero__title { margin-block: 22px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.08; }
:lang(ar) .hero--full .hero__title { line-height: 1.35; font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.hero--full .hero__lede { max-width: 32em; }
.hero--full .hero__actions, .hero--full .hero__tags { justify-content: center; }

@media (max-width: 760px) {
  .hero--full { --hero-h: auto; padding-block: 72px; }
  .hero-bg__side { width: 11vw; background-size: auto max(100%, 640px); }
  .hero__inner { padding-inline: calc(11vw + 6px); }
  .hero--full .hero__lede { font-size: 1rem; }
}
@keyframes curtain-left { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes curtain-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* Theme switch (light / dark) */
.theme-switch {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy);
  cursor: pointer;
  transition: border-color .3s ease, transform .4s var(--ease);
}
.theme-switch:hover { border-color: var(--navy); transform: rotate(-12deg); }
.theme-switch .icon { grid-area: 1 / 1; width: 1.15em; height: 1.15em; transition: transform .6s var(--ease), opacity .4s ease; }
.theme-switch .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
html[data-theme="dark"] .theme-switch .icon-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
html[data-theme="dark"] .theme-switch .icon-sun { opacity: 1; transform: none; }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, box-shadow .45s ease !important;
}

/* About image with a glass "Paper first" card beneath it */
.about__media { display: grid; }
.about__photo {
  margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-lg); background: #EDE9E2;
  box-shadow: 0 40px 80px -40px rgba(30, 42, 71, .45), 0 0 0 1px rgba(30, 42, 71, .05);
}
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover .about__photo img { transform: scale(1.03); }
.about__media .paper-card,
[dir="rtl"] .about__media .paper-card {
  position: relative; rotate: 0deg;
  width: 100%; margin: 16px 0 0; padding: 20px 24px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center;
  background: rgba(255, 252, 247, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  box-shadow: 0 24px 50px -28px rgba(30, 42, 71, .45);
}
.about__media .paper-card::before { display: none; }
.about__media .paper-card:hover { rotate: 0deg; transform: translateY(-3px); }
.about__media .paper-card__icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; border-radius: 16px; }
.about__media .paper-card__title { font-size: 1.2rem; }
.about__media .paper-card__text { margin-top: 2px; font-size: .95rem; }
html[data-theme="dark"] .about__media .paper-card { background: rgba(19, 28, 51, .82); border-color: rgba(255, 255, 255, .1); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* 7. MARQUEE ========================================================== */
.marquee-wrap { overflow: hidden; padding-block: 26px; }
.marquee {
  padding-block: 20px;
  background: linear-gradient(90deg, #1E2A47 0%, #2E4170 50%, #1E2A47 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 40px -20px rgba(58, 90, 150, .55);
  color: var(--cream);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee ul { display: flex; flex: none; gap: 44px; margin: 0; padding: 0 44px 0 0; list-style: none; }
[dir="rtl"] .marquee ul { padding: 0 0 0 44px; }
.marquee li {
  display: inline-flex; align-items: center; gap: 44px; white-space: nowrap;
  font: 500 clamp(1.1rem, 2vw, 1.5rem)/1.3 var(--font-display);
}
.marquee li::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--coral);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.marquee li:nth-child(3n + 2)::after { background: var(--blue); }
.marquee li:nth-child(3n)::after { background: var(--sage); }

/* 8. ABOUT & AGE GROUPS =============================================== */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(36px, 7vw, 100px);
}
.about__p { margin-top: 1.2em; max-width: 36em; font-size: 1.1rem; color: var(--muted); }
.about__text .section-title { margin-bottom: .3em; }

.paper-card {
  position: relative;
  padding: clamp(30px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: var(--shadow);
  rotate: 2deg;
  transition: rotate .7s var(--ease), transform .7s var(--ease);
}
[dir="rtl"] .paper-card { rotate: -2deg; }
.paper-card:hover { rotate: 0deg; transform: translateY(-4px); }
.paper-card::before {
  content: ""; position: absolute; top: -13px; inset-inline-start: 50%; translate: -50% 0;
  width: 110px; height: 28px; background: rgba(168, 197, 226, .7); transform: rotate(-3deg);
}
[dir="rtl"] .paper-card::before { translate: 50% 0; }
.paper-card__icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px;
  border-radius: 18px; background: var(--coral-soft); color: var(--navy);
}
.paper-card__icon .icon { width: 28px; height: 28px; }
.paper-card__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.paper-card__text { margin-top: 12px; color: var(--muted); }
.paper-card__scribble { width: 150px; margin-top: 22px; }

/* Age groups — two vivid cards that tilt and glow with the cursor */
.ages { margin-top: clamp(72px, 10vw, 120px); }
.ages__title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 28px; }
.ages__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); perspective: 1200px; }
.age-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 430px; padding: clamp(26px, 3.6vw, 40px);
  border-radius: 32px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.age-card--a {
  color: #F8F2E7;
  background:
    radial-gradient(75% 65% at 100% 0%, rgba(168, 197, 226, .34) 0%, transparent 65%),
    radial-gradient(45% 40% at 0% 100%, rgba(120, 160, 220, .12) 0%, transparent 70%),
    linear-gradient(155deg, #2B3D66 0%, #1E2A47 60%, #18223B 100%);
  box-shadow: 0 40px 80px -40px rgba(30, 42, 71, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.age-card--b {
  color: #F8F2E7;
  background:
    radial-gradient(75% 65% at 0% 0%, rgba(246, 222, 196, .3) 0%, transparent 65%),
    radial-gradient(45% 40% at 100% 100%, rgba(246, 222, 196, .07) 0%, transparent 70%),
    linear-gradient(155deg, #2B3D66 0%, #1E2A47 60%, #18223B 100%);
  box-shadow: 0 40px 80px -40px rgba(30, 42, 71, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.age-card:hover { box-shadow: 0 50px 100px -40px rgba(30, 42, 71, .55), inset 0 1px 0 rgba(255, 255, 255, .2); }
.age-card__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--gx) var(--gy), rgba(255, 255, 255, .24), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
}
.age-card:hover .age-card__glow { opacity: 1; }
.age-card__orb { display: none; }

.age-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.age-card__pill {
  padding: .45em 1.05em; border-radius: 999px;
  font: 600 .88rem/1.3 var(--font-display);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.age-card__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  transition: transform .7s var(--ease);
}
.age-card__icon .icon { width: 24px; height: 24px; }
.age-card:hover .age-card__icon { transform: rotate(-12deg) scale(1.08); }

.age-card__num {
  display: block; margin-top: auto; padding-top: 30px;
  font: 700 clamp(5rem, 10vw, 8.6rem)/.95 var(--font-display); letter-spacing: -.05em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: start;
}
.age-card--a .age-card__num { background-image: linear-gradient(180deg, #FFFFFF 0%, #DCE7F3 100%); }
.age-card--b .age-card__num { background-image: linear-gradient(180deg, #FFFFFF 0%, #F3E2CE 100%); }
[dir="rtl"] .age-card__num { text-align: right; }
.age-card__title { margin-top: 14px; font-size: clamp(1.5rem, 2.4vw, 1.95rem); color: inherit; }
.age-card__text { margin-top: 8px; max-width: 30em; opacity: .84; }
.age-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.age-card__chips li {
  padding: .42em .95em; border-radius: 999px;
  font: 500 .86rem/1.3 var(--font-display);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .4s var(--ease), background-color .3s ease;
}
.age-card__chips li:hover { transform: translateY(-3px); background-color: rgba(255, 255, 255, .22); }
.age-card__chips li:nth-child(2) { --k: 1; }
.age-card__chips li:nth-child(3) { --k: 2; }
:where(.js) .age-card__chips li { opacity: 0; translate: 0 12px; }
:where(.js) .age-card.is-visible .age-card__chips li {
  opacity: 1; translate: 0 0;
  transition: opacity .7s var(--ease) calc(.55s + var(--k, 0) * .12s), translate .7s var(--ease) calc(.55s + var(--k, 0) * .12s), transform .4s var(--ease), background-color .3s ease;
}
@keyframes orb { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.2); } }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .ages__grid { grid-template-columns: 1fr; }
  .age-card { min-height: 380px; }
}

/* 9. HOW CHILDREN LEARN =============================================== */
/* How children learn — an animated journey */
.how {
  background:
    radial-gradient(40% 55% at 8% 0%, rgba(233, 145, 127, .16), transparent 70%),
    radial-gradient(45% 55% at 95% 100%, rgba(168, 197, 226, .26), transparent 70%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: clamp(28px, 5vw, 56px);
  margin-inline: clamp(8px, 1.5vw, 20px);
}
.journey__track {
  position: relative; height: 6px; margin-bottom: 34px;
  border-radius: 999px; background: var(--line); overflow: hidden;
}
.journey__fill {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4A6396 0%, #8FB0D6 50%, #DCE7F3 100%);
  box-shadow: 0 0 8px rgba(143, 176, 214, .45);
  transition: width 1s var(--ease);
}
[dir="rtl"] .journey__fill { background: linear-gradient(270deg, #4A6396 0%, #8FB0D6 50%, #DCE7F3 100%); }
html[data-theme="dark"] .journey__fill { background: linear-gradient(90deg, #3A5287, #A8C5E2 55%, #FFFFFF); }
html[data-theme="dark"][dir="rtl"] .journey__fill { background: linear-gradient(270deg, #3A5287, #A8C5E2 55%, #FFFFFF); }
.journey__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.jstep {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 26px 24px 30px; border-radius: 26px;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.jstep::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 90% 0%, rgba(255, 255, 255, .1), transparent 65%),
    linear-gradient(160deg, #2B3D66, #1E2A47 60%, #18223B);
  opacity: 0; transition: opacity .6s var(--ease);
}
.jstep.reveal {
  transition:
    opacity .9s var(--ease) calc(var(--i, 0) * 90ms), translate .9s var(--ease) calc(var(--i, 0) * 90ms),
    transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s ease;
}
.jstep { cursor: pointer; }
.jstep:hover { transform: translateY(-4px); }
.jstep.is-active {
  transform: translateY(-10px); border-color: transparent;
  box-shadow: 0 34px 60px -30px rgba(30, 42, 71, .65), 0 0 0 1px rgba(255, 255, 255, .08);
}
.jstep.is-active::before { opacity: 1; }
.jstep__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.jstep__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: var(--c); color: #1E2A47;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 26px -14px rgba(30, 42, 71, .45);
  transition: transform .7s var(--ease), background-color .5s ease, box-shadow .5s ease;
}
.jstep__icon .icon { width: 26px; height: 26px; }
.jstep.is-active .jstep__icon { transform: rotate(-8deg) scale(1.1); background: #EEE8DD; box-shadow: 0 0 0 5px rgba(255, 255, 255, .07), 0 10px 22px -10px rgba(0, 0, 0, .45); }
.jstep__num {
  font: 700 2.7rem/1 var(--font-display); letter-spacing: -.04em;
  color: var(--c); opacity: .9;
  transition: color .5s ease, opacity .5s ease;
}
.jstep.is-active .jstep__num { color: #F3EDE2; opacity: .85; }
.jstep__title { font-size: 1.25rem; transition: color .5s ease; }
.jstep__text { margin-top: 10px; color: var(--muted); font-size: .98rem; transition: color .5s ease; }
.jstep.is-active .jstep__title { color: #F8F2E7; }
.jstep.is-active .jstep__text { color: rgba(248, 242, 231, .8); }

@media (max-width: 960px) { .journey__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .journey__steps { grid-template-columns: 1fr; } }

/* 10. VISION ========================================================== */
.vision-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(52px, 8vw, 110px) clamp(24px, 6vw, 96px);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(70% 60% at 75% -10%, rgba(130, 165, 220, .32), transparent 70%),
    radial-gradient(circle at 0% 100%, rgba(233, 145, 127, .14), transparent 45%),
    var(--navy-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 80px -40px rgba(58, 90, 150, .6);
  color: var(--cream);
}
.vision-panel__quote {
  position: absolute; z-index: -1; top: clamp(28px, 5vw, 60px); inset-inline-end: clamp(24px, 6vw, 80px);
  width: clamp(70px, 10vw, 130px); fill: var(--coral); opacity: .9;
}
[dir="rtl"] .vision-panel__quote { transform: scaleX(-1); }
.orbit { position: absolute; z-index: -1; border-radius: 50%; border: 1.5px dashed rgba(168, 197, 226, .28); animation: spin 70s linear infinite; }
.orbit::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; top: 50%; left: -8px; background: var(--coral); }
.orbit--1 { width: 620px; height: 620px; top: -330px; inset-inline-end: -220px; }
.orbit--2 { width: 380px; height: 380px; bottom: -220px; inset-inline-start: -140px; animation-duration: 50s; animation-direction: reverse; }
.orbit--2::after { background: var(--sage); width: 12px; height: 12px; left: auto; right: -6px; }

.vision__statement {
  max-width: 22em; margin-top: 30px;
  font: 500 clamp(1.7rem, 3.6vw, 2.9rem)/1.3 var(--font-display);
  color: var(--cream);
}
:lang(ar) .vision__statement { line-height: 1.6; }
.vision__statement .hl { --hl-color: rgba(233, 145, 127, .55); color: #fff; }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px);
  margin: clamp(52px, 6vw, 80px) 0 0; padding: 0; list-style: none;
}
.pillar { padding-top: 28px; border-top: 1px solid rgba(248, 242, 231, .16); }
.pillar__icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px;
  border-radius: 16px; color: var(--navy);
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.pillar__icon .icon { width: 26px; height: 26px; }
.pillar__icon--blue { background: var(--blue); }
.pillar__icon--coral { background: var(--coral); }
.pillar__icon--sage { background: var(--sage); }
.pillar:hover .pillar__icon { transform: rotate(-10deg) scale(1.08); border-radius: 50%; }
.pillar__title { font-size: 1.3rem; color: var(--cream); }
.pillar__text { margin-top: 10px; color: rgba(248, 242, 231, .76); }

@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* 11. WORKSHOPS ======================================================= */
.workshops__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 48px);
}
.workshops__head .section-head { margin-bottom: 0; }

.filter-bar { display: grid; gap: 10px; }
.filter-bar__label { font: 500 .88rem/1.4 var(--font-display); color: var(--muted); }
.filter {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.filter button {
  padding: .62em 1.15em; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy);
  font: 500 .95rem/1.3 var(--font-display); cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.filter button:hover { background: var(--beige-soft); }
.filter button[aria-pressed="true"] { background: var(--navy-grad); box-shadow: var(--navy-glow); color: var(--cream); }

.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border: 1.5px dashed var(--beige); border-radius: 18px;
  background: var(--beige-soft); color: var(--navy); font-size: .96rem;
}
.notice .icon { margin-top: .25em; color: var(--coral-deep); }
.notice[hidden] { display: none; }

.sub-block { margin-top: clamp(44px, 6vw, 72px); }
.sub-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.sub-head__title { display: inline-flex; align-items: center; gap: .55em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.sub-head__mark { width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); }
.sub-head__mark--coral { background: var(--coral); }
.sub-head__mark--sage { background: var(--sage); border-radius: 50%; transform: none; }
.sub-head__lede { color: var(--muted); max-width: 32em; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.cards__empty {
  grid-column: 1 / -1; padding: 40px 24px; text-align: center;
  border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}

/* Upcoming card */
.w-card, .p-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(30, 42, 71, .07); border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.w-card__media, .p-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--beige-soft); }
.p-card__media { aspect-ratio: 4 / 3; }
.p-card__media[data-gallery] { cursor: zoom-in; }
.w-card__media > img, .w-card__media > .ph,
.p-card__media > img, .p-card__media > .ph {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.w-card:hover .w-card__media > :first-child,
.p-card:hover .p-card__media > :first-child { transform: scale(1.06); }
.w-card__badges { position: absolute; top: 16px; inset-inline-start: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.w-card__body, .p-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.w-card__title, .p-card__title { font-size: 1.32rem; }
.w-card__desc, .p-card__desc { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.w-card__meta { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px dashed var(--line); }
.w-card__meta li { display: flex; align-items: center; gap: .65em; font-size: .95rem; color: var(--navy); }
.w-card__meta .icon { color: var(--muted); }
.avail__dot { position: relative; width: 10px; height: 10px; margin-inline: 5px; border-radius: 50%; flex: none; background: var(--sage-deep); }
.avail--available .avail__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: ping 2s var(--ease) infinite;
}
.avail--limited .avail__dot { background: var(--coral); }
.avail--full .avail__dot { background: #9AA0AD; }
.avail--available { color: var(--sage-deep) !important; font-weight: 500; }
.avail--limited { color: var(--coral-deep) !important; font-weight: 500; }
.w-card__actions { margin-top: auto; padding-top: 22px; }

/* Past card */
.p-card__date { display: flex; align-items: center; gap: .5em; margin-bottom: 8px; font: 500 .88rem/1.4 var(--font-display); color: var(--coral-deep); }
.p-card__date .icon { width: 1.1em; height: 1.1em; }
.p-card__zoom {
  position: absolute; bottom: 16px; inset-inline-end: 16px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--navy);
  opacity: 0; transform: scale(.7);
  transition: opacity .4s ease, transform .5s var(--ease);
}
.p-card:hover .p-card__zoom { opacity: 1; transform: scale(1); }
.link-btn {
  display: inline-flex; align-items: center; gap: .55em; align-self: flex-start;
  margin-top: auto; padding: 18px 0 0; border: 0; background: none;
  font: 500 1rem/1.3 var(--font-display); color: var(--navy); cursor: pointer;
}
.link-btn > span:first-child {
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  transition: background-size .5s var(--ease);
}
[dir="rtl"] .link-btn > span:first-child { background-position: 100% 100%; }
.link-btn:hover > span:first-child { background-size: 100% 2px; }
.link-btn__count {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 999px;
  background: var(--sage-soft); font-size: .8rem;
}
.link-btn .icon--arrow { transition: translate .4s var(--ease); }
.link-btn:hover .icon--arrow { translate: 4px 0; }
[dir="rtl"] .link-btn:hover .icon--arrow { translate: -4px 0; }

.w-card:hover, .p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.workshops__cta { margin-top: clamp(44px, 6vw, 64px); text-align: center; }

/* Branded image placeholders */
.ph { --ph-bg: var(--beige-soft); --ph-a: var(--beige); --ph-b: var(--coral); position: relative; display: grid; background: var(--ph-bg); }
.ph svg { width: 100%; height: 100%; }
.ph .a { fill: var(--ph-a); opacity: .75; }
.ph .b { fill: var(--ph-b); opacity: .6; }
.ph .paper { fill: var(--paper); stroke: var(--navy); stroke-width: 2.5; }
.ph .line { stroke: var(--navy); stroke-width: 5; stroke-linecap: round; opacity: .2; }
.ph .st { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ph .dot { fill: var(--navy); }
.ph--coral { --ph-bg: var(--coral-soft); --ph-a: var(--coral); --ph-b: var(--beige); }
.ph--blue { --ph-bg: var(--blue-soft); --ph-a: var(--blue); --ph-b: var(--sage); }
.ph--sage { --ph-bg: var(--sage-soft); --ph-a: var(--sage); --ph-b: var(--blue); }
.ph--beige { --ph-bg: var(--beige-soft); --ph-a: var(--beige); --ph-b: var(--coral); }
.ph__label {
  position: absolute; bottom: 12px; inset-inline-end: 12px;
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .75em; border-radius: 999px;
  background: rgba(255, 252, 247, .85); color: var(--navy);
  font: 500 .75rem/1.4 var(--font-display);
}
.ph__label .icon { width: 1.1em; height: 1.1em; }
.p-card .ph__label { inset-inline-end: auto; inset-inline-start: 12px; }

@media (max-width: 720px) {
  .workshops__head { align-items: flex-start; }
  .filter-bar { width: 100%; }
}

/* 12. CONTACT ========================================================= */
.channels__title { margin-top: 40px; margin-bottom: 16px; font-size: 1.1rem; }
.channels { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--paper); color: var(--navy); text-decoration: none;
  transition: transform .5s var(--ease), border-color .3s ease, box-shadow .5s var(--ease);
}
.channel:hover { transform: translateX(6px); border-color: var(--navy); box-shadow: var(--shadow-sm); }
[dir="rtl"] .channel:hover { transform: translateX(-6px); }
.channel__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--beige-soft); }
.channel--whatsapp .channel__icon { background: var(--sage-soft); }
.channel--instagram .channel__icon { background: var(--coral-soft); }
.channel--email .channel__icon { background: var(--blue-soft); }
.channel__text { display: grid; min-width: 0; }
.channel__label { font-size: .85rem; color: var(--muted); }
.channel__value { font: 500 1rem/1.5 var(--font-display); overflow-wrap: anywhere; }
.channel__arrow { margin-inline-start: auto; color: var(--muted); transition: translate .4s var(--ease), color .3s ease; }
.channel:hover .channel__arrow { color: var(--coral-deep); }

.form-card {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  border-radius: clamp(26px, 3vw, 36px);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form-card__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.form-notice {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px;
  padding: 12px 16px; border: 1.5px dashed var(--beige); border-radius: 16px;
  background: var(--beige-soft); font-size: .92rem; line-height: 1.6;
}
.form-notice .icon { margin-top: .2em; color: var(--coral-deep); }
.form-notice[hidden] { display: none; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font: 500 .95rem/1.4 var(--font-display); color: var(--navy); }
.req { color: var(--coral-deep); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid rgba(30, 42, 71, .16); border-radius: 14px;
  background: var(--cream); color: var(--navy);
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7D8597; }
.field input:hover, .field textarea:hover { border-color: rgba(30, 42, 71, .32); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 197, 226, .55);
}
.field [aria-invalid="true"] { border-color: var(--coral-deep); background: #FFF7F4; }
.field__error { min-height: 0; font-size: .88rem; color: var(--coral-deep); }
.field__error:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 14px; font-size: .95rem; }
.form-status--success { background: var(--sage-soft); color: var(--sage-deep); }
.form-status--warn { background: var(--beige-soft); }
.form-status--error { background: var(--coral-soft); color: var(--coral-deep); }

@media (max-width: 900px) {
}

/* 13. FOOTER ========================================================== */
.site-footer {
  position: relative; overflow: hidden;
  margin-top: clamp(24px, 4vw, 40px);
  padding-block: clamp(56px, 8vw, 88px) 28px;
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(130, 165, 220, .22), transparent 70%),
    var(--navy-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  color: rgba(248, 242, 231, .78);
}
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.1fr; gap: clamp(32px, 4vw, 56px); }
.footer__tagline { max-width: 22em; margin-block: 18px 22px; }
.footer__heading { margin-bottom: 18px; font-size: 1rem; color: var(--cream); letter-spacing: 0; }
.footer__heading--lg { font-size: 1.35rem; margin-bottom: 8px; }
.footer__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__links a {
  display: inline-flex; align-items: center; gap: .6em;
  color: rgba(248, 242, 231, .78); text-decoration: none;
  transition: color .3s ease, translate .4s var(--ease);
}
.footer__links a:hover { color: var(--coral); translate: 4px 0; }
[dir="rtl"] .footer__links a:hover { translate: -4px 0; }
.footer__contact .icon { width: 1.1em; height: 1.1em; color: var(--blue); }
.footer__contact a { align-items: flex-start; }
.footer__contact .icon { margin-top: .35em; }
.footer__cta p { margin-bottom: 20px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: clamp(40px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(248, 242, 231, .12);
  font-size: .9rem;
}
.to-top { display: inline-flex; align-items: center; gap: .5em; color: var(--cream); text-decoration: none; }
.to-top .icon { transition: translate .4s var(--ease); }
.to-top:hover .icon { translate: 0 -4px; }

@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* 14. LIGHTBOX & TOAST ================================================ */
.lightbox {
  width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: 28px; overflow: auto;
  background: transparent; color: var(--navy);
}
.lightbox::backdrop { background: rgba(20, 28, 48, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: dialog-in .5s var(--ease); }
.lightbox__inner { overflow: hidden; border-radius: 28px; background: var(--paper); }
.lightbox__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.lightbox__title { font-size: 1.2rem; }
.lightbox__counter { font-size: .88rem; color: var(--muted); }
.lightbox__figure { margin: 0; }
.lightbox__stage { aspect-ratio: 16 / 10; max-height: 62vh; width: 100%; background: var(--beige-soft); }
.lightbox__stage > * { width: 100%; height: 100%; object-fit: contain; animation: fade-in .5s var(--ease); }
.lightbox__stage > .ph { object-fit: cover; }
.lightbox__caption { padding: 14px 22px 0; color: var(--muted); font-size: .95rem; }
.lightbox__caption:empty { display: none; }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 16px 22px 20px; }
.lightbox__nav [hidden] { display: none; }
[dir="ltr"] .icon--back { transform: scaleX(-1); }

.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 100;
  max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 999px;
  background: var(--navy-grad); color: var(--cream);
  font: 500 .95rem/1.4 var(--font-display); text-align: center;
  box-shadow: 0 18px 40px -16px rgba(30, 42, 71, .6);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .35s ease, transform .5s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 15. MOTION ========================================================== */
/* Language switch cross-fade */
main, .site-footer, .header-inner { transition: opacity .35s ease, filter .35s ease; }
.is-switching main, .is-switching .site-footer, .is-switching .header-inner { opacity: 0; filter: blur(4px); }

/* Reveal on scroll */
:where(.js) .reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .9s var(--ease) calc(var(--i, 0) * 90ms), translate .9s var(--ease) calc(var(--i, 0) * 90ms);
}
:where(.js) .reveal.is-visible { opacity: 1; translate: 0 0; }
/* Elements that reveal AND have their own hover motion */
.w-card.reveal, .p-card.reveal {
  transition:
    opacity .9s var(--ease) calc(var(--i, 0) * 90ms), translate .9s var(--ease) calc(var(--i, 0) * 90ms),
    transform .6s var(--ease), box-shadow .6s var(--ease);
}
.paper-card.reveal {
  transition:
    opacity .9s var(--ease) .18s, translate .9s var(--ease) .18s,
    rotate .7s var(--ease), transform .7s var(--ease);
}
.card-enter { animation: card-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* Hero intro */
.js [data-anim] { opacity: 0; }
.is-ready [data-anim] { animation: rise 1s var(--ease) both; animation-delay: calc(var(--delay, 0) * 1s); }
.js .hero__title .hl { background-size: 0% .2em; }
.is-ready .hero__title .hl { animation: hl-draw 1.1s var(--ease) 1s forwards; }

@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .82; } to { opacity: 1; scale: 1; } }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)) scaleX(var(--sx, 1)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) + 1.5deg)) scaleX(var(--sx, 1)); }
}
@keyframes morph {
  0% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  100% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; }
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 10px rgba(233, 145, 127, .16), var(--shadow-sm); }
  50% { box-shadow: 0 0 0 18px rgba(233, 145, 127, .08), var(--shadow-sm); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes hl-draw { to { background-size: 100% .2em; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes card-in { from { opacity: 0; translate: 0 18px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes dialog-in { from { opacity: 0; translate: 0 20px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Motion always runs (site owner's choice) */

/* =====================================================================
   16. DARK MODE
   ---------------------------------------------------------------------
   Turned on with the moon button in the header (remembered per visitor).
   The light look above is the default.
   ===================================================================== */
html[data-theme="dark"] {
  --bg: #0B1222;
  --bg-2: #0F1830;
  --text: #F3EDE2;

  /* --navy is the text/ink colour; dark surfaces use --navy-grad or --bg */
  --navy: #F3EDE2;
  --navy-soft: #A8C5E2;
  --paper: #131C33;
  --muted: #A3ADC2;
  --line: rgba(243, 237, 226, .12);
  --grid: rgba(243, 237, 226, .045);

  --blue-soft: rgba(168, 197, 226, .13);
  --coral-soft: rgba(233, 145, 127, .2);
  --sage-soft: rgba(165, 181, 149, .15);
  --beige-soft: rgba(217, 195, 165, .08);
  --coral-deep: #F2A898;
  --sage-deep: #BFD0AD;

  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .7);
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -40px rgba(0, 0, 0, .8);
  --light-btn: linear-gradient(180deg, #FFF9EF 0%, #EADFCB 100%);
  --on-light: #0E1526;
}

html[data-theme="dark"], html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] body {
  background:
    radial-gradient(55% 40% at 85% 0%, rgba(84, 118, 190, .28), transparent 70%),
    radial-gradient(40% 35% at 0% 25%, rgba(233, 145, 127, .10), transparent 70%),
    radial-gradient(45% 35% at 100% 70%, rgba(165, 181, 149, .08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
html[data-theme="dark"] ::selection { background: rgba(233, 145, 127, .35); color: #fff; }

html[data-theme="dark"] /* Header & menu */
.site-header.is-scrolled { background: rgba(11, 18, 34, .72); box-shadow: 0 1px 0 var(--line); }
html[data-theme="dark"] .brand__logo { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 24px -8px rgba(84, 118, 190, .7); }
html[data-theme="dark"] .lang-switch { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .menu-toggle { background: var(--light-btn); color: var(--on-light); box-shadow: 0 10px 28px -12px rgba(243, 237, 226, .45); }
html[data-theme="dark"] .menu-toggle[aria-expanded="true"] { color: var(--on-light); }
html[data-theme="dark"] .mobile-menu {
  background:
    radial-gradient(circle at 85% 90%, rgba(233, 145, 127, .18) 0 140px, transparent 141px),
    radial-gradient(circle at 10% 70%, rgba(168, 197, 226, .14) 0 80px, transparent 81px),
    var(--bg);
}
html[data-theme="dark"] .skip-link { background: var(--light-btn); color: var(--on-light); }

html[data-theme="dark"] /* Buttons */
.btn--primary, html[data-theme="dark"] .btn--light {
  --bg: var(--light-btn); --fg: var(--on-light);
  --fill: var(--coral-grad); --fill-fg: var(--on-light);
  box-shadow: inset 0 1px 0 #fff, 0 12px 32px -14px rgba(243, 237, 226, .45);
}
html[data-theme="dark"] .btn--primary:hover { box-shadow: inset 0 1px 0 #fff, 0 18px 40px -14px rgba(233, 145, 127, .6); }
html[data-theme="dark"] .btn--ghost { --fg: var(--text); --fill: var(--text); --fill-fg: var(--on-light); border-color: rgba(243, 237, 226, .35); }
html[data-theme="dark"] .btn--disabled { --bg: rgba(255, 255, 255, .06); --fg: var(--muted); }
html[data-theme="dark"] .icon-btn:hover { background: var(--text); color: var(--on-light); border-color: var(--text); }
html[data-theme="dark"] .filter { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .filter button[aria-pressed="true"] { background: var(--light-btn); color: var(--on-light); box-shadow: 0 8px 22px -10px rgba(243, 237, 226, .4); }
html[data-theme="dark"] .social:hover { color: var(--on-light); }

html[data-theme="dark"] /* Badges & labels on photos */
.badge, html[data-theme="dark"] .ph__label { background: rgba(11, 18, 34, .72); color: var(--text); border: 1px solid rgba(255, 255, 255, .1); }
html[data-theme="dark"] .badge--sample { background: var(--coral); color: var(--on-light); border-color: transparent; box-shadow: none; }


html[data-theme="dark"] /* Ribbon */
.marquee {
  background: rgba(255, 255, 255, .03);
  border-block: 1px solid var(--line);
  box-shadow: none;
}

html[data-theme="dark"] /* Sections & cards */
.how { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--line); }
html[data-theme="dark"] .pillar__icon { color: var(--on-light); }
html[data-theme="dark"] .w-card, html[data-theme="dark"] .p-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  border-color: var(--line);
}
html[data-theme="dark"] .paper-card { background-color: #151F38; }
html[data-theme="dark"] .channel { background: rgba(255, 255, 255, .035); }
html[data-theme="dark"] .channel:hover { border-color: rgba(243, 237, 226, .4); }
html[data-theme="dark"] .vision-panel {
  background:
    radial-gradient(70% 60% at 80% -10%, rgba(110, 150, 220, .35), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(233, 145, 127, .18), transparent 60%),
    linear-gradient(160deg, #1B2848, #0F182D);
  border: 1px solid rgba(255, 255, 255, .09);
}
html[data-theme="dark"] .site-footer {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(84, 118, 190, .2), transparent 70%),
    #070C18;
  border-top: 1px solid var(--line);
}

html[data-theme="dark"] /* Form */
.form-card { background: linear-gradient(180deg, #16203A, #111A30); border: 1px solid var(--line); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea { background: rgba(255, 255, 255, .04); border-color: rgba(243, 237, 226, .14); color: var(--text); }
html[data-theme="dark"] .field input:hover, html[data-theme="dark"] .field textarea:hover { border-color: rgba(243, 237, 226, .3); }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field textarea:focus { background: rgba(255, 255, 255, .07); border-color: var(--text); box-shadow: 0 0 0 4px rgba(168, 197, 226, .18); }
html[data-theme="dark"] .field [aria-invalid="true"] { background: rgba(233, 145, 127, .08); }
html[data-theme="dark"] .field input::placeholder, html[data-theme="dark"] .field textarea::placeholder { color: #7F8AA3; }
html[data-theme="dark"] .notice, html[data-theme="dark"] .form-notice { border-color: rgba(217, 195, 165, .35); }

/* Hero keeps its light colours on the paper artwork */
html[data-theme="dark"] .hero--full {
  --navy: #1E2A47; --muted: #4F5A72; --paper: #FFFCF7; --line: rgba(30, 42, 71, .12);
  --coral-soft: #F7D9D0; color: #1E2A47;
}
html[data-theme="dark"] .hero--full .btn--primary { --bg: var(--navy-grad); --fg: #F8F2E7; --fill: var(--coral-grad); --fill-fg: #1E2A47; box-shadow: var(--navy-glow); }
html[data-theme="dark"] .hero--full .btn--ghost { --fg: #1E2A47; --fill: #1E2A47; --fill-fg: #F8F2E7; border-color: #1E2A47; }
html[data-theme="dark"] .theme-switch { background: rgba(255, 255, 255, .04); }

/* Age cards: smooth tilt + reveal (after the generic reveal rule) */
.age-card.reveal {
  transition:
    opacity .9s var(--ease) calc(var(--i, 0) * 90ms), translate .9s var(--ease) calc(var(--i, 0) * 90ms),
    transform .35s var(--ease), box-shadow .6s var(--ease);
}
html[data-theme="dark"] .jstep { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .age-card--a, html[data-theme="dark"] .age-card--b { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -40px rgba(0, 0, 0, .8); }

/* =====================================================================
   17. CONTACT — navy form card (same style as the age cards)
   ===================================================================== */
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact .form-card,
html[data-theme="dark"] .contact .form-card {
  --muted: rgba(248, 242, 231, .7);
  position: relative; overflow: hidden; isolation: isolate;
  color: #F8F2E7;
  border-radius: 32px;
  border: 0;
  background:
    radial-gradient(75% 55% at 100% 0%, rgba(168, 197, 226, .3) 0%, transparent 65%),
    radial-gradient(60% 45% at 0% 100%, rgba(246, 222, 196, .12) 0%, transparent 65%),
    linear-gradient(155deg, #2B3D66 0%, #1E2A47 60%, #18223B 100%);
  box-shadow: 0 50px 90px -45px rgba(30, 42, 71, .75), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.contact .form-card__title { color: #F8F2E7; }

.contact .form-notice {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(248, 242, 231, .78);
}
.contact .form-notice .icon { color: #F2B4A6; }

.contact .field label { color: #F8F2E7; }
.contact .req { color: #F2B4A6; }
.contact .field input,
.contact .field textarea,
html[data-theme="dark"] .contact .field input,
html[data-theme="dark"] .contact .field textarea {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #F8F2E7;
}
.contact .field input::placeholder,
.contact .field textarea::placeholder { color: rgba(248, 242, 231, .45); }
.contact .field input:hover,
.contact .field textarea:hover { border-color: rgba(255, 255, 255, .28); }
.contact .field input:focus,
.contact .field textarea:focus,
html[data-theme="dark"] .contact .field input:focus,
html[data-theme="dark"] .contact .field textarea:focus {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}
.contact .field [aria-invalid="true"] { border-color: #F2B4A6; background: rgba(233, 145, 127, .1); }
.contact .field__error { color: #F2B4A6; }

.contact .form-card .btn--primary {
  --bg: linear-gradient(180deg, #FFF9EF 0%, #EADFCB 100%); --fg: #1E2A47;
  --fill: #FFFFFF; --fill-fg: #1E2A47;
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -14px rgba(0, 0, 0, .55);
}

/* Contact rows: gentle lift + shadow, no dark border */
.contact .channel:hover,
.contact .channel:focus-visible,
[dir="rtl"] .contact .channel:hover,
[dir="rtl"] .contact .channel:focus-visible {
  border-color: transparent;
  background: #FFFFFF;
  box-shadow: 0 18px 36px -20px rgba(30, 42, 71, .35);
  outline: none;
}
html[data-theme="dark"] .contact .channel:hover { background: rgba(255, 255, 255, .07); }

/* Modern coral hover: gradient fill, soft glow, light border */
.btn:not(.btn--ghost):not(.btn--disabled):hover {
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 10px 28px -12px rgba(233, 145, 127, .6);
}

/* Navy hover on outlined buttons: lit gradient + soft shadow */
.btn--ghost:hover {
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 30px -12px rgba(58, 90, 150, .55);
}
html[data-theme="dark"] .btn--ghost:hover { box-shadow: 0 12px 30px -12px rgba(243, 237, 226, .35); }

/* =====================================================================
   18. WORKSHOP CARDS — compact info cards
   ===================================================================== */
.wk {
  --bar: linear-gradient(90deg, #1E2A47, #3A5287 60%, #A8C5E2);
  --tint: rgba(168, 197, 226, .3); --tint-fg: #2B3D66;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 24px 22px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(30, 42, 71, .07);
  box-shadow: 0 1px 2px rgba(30, 42, 71, .04), 0 22px 44px -30px rgba(30, 42, 71, .35);
}
.wk--coral { --bar: linear-gradient(90deg, #E1876F, #E9917F 50%, #F6C5B9); --tint: rgba(233, 145, 127, .16); --tint-fg: #A9493A; }
.wk--sage  { --bar: linear-gradient(90deg, #6F8560, #A5B595 55%, #D3DDC7); --tint: rgba(165, 181, 149, .24); --tint-fg: #4D5E40; }
.wk--beige { --bar: linear-gradient(90deg, #1E2A47, #8E7A5E 60%, #D9C3A5); --tint: rgba(217, 195, 165, .3); --tint-fg: #6E5A3E; }
.wk.reveal {
  transition:
    opacity .9s var(--ease) calc(var(--i, 0) * 90ms), translate .9s var(--ease) calc(var(--i, 0) * 90ms),
    transform .5s var(--ease), box-shadow .5s var(--ease);
}
.wk:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(30, 42, 71, .04), 0 30px 60px -30px rgba(30, 42, 71, .45); }
.wk__bar { position: absolute; top: 0; inset-inline: 0; height: 6px; background: var(--bar); }
[dir="rtl"] .wk__bar { transform: scaleX(-1); }

.wk__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wk__age {
  padding: .32em .85em; border-radius: 999px;
  background: var(--tint); color: var(--tint-fg);
  font: 600 .8rem/1.4 var(--font-display);
}
.wk__status { display: inline-flex; align-items: center; gap: .45em; font: 500 .8rem/1.4 var(--font-display); color: var(--muted); }
.wk__status .avail__dot { margin: 0; width: 8px; height: 8px; }
.wk__status .icon { width: 1.05em; height: 1.05em; color: var(--tint-fg); }
.wk__title { margin-top: 18px; font-size: 1.2rem; line-height: 1.45; }
.wk__desc { margin-top: 8px; font-size: .93rem; color: var(--muted); }
.wk .badge--sample { align-self: flex-start; margin-top: 12px; font-size: .72rem; }

.wk__info {
  display: grid; gap: 10px;
  margin: 18px 0 0; padding: 14px 16px; list-style: none;
  border-radius: 16px; background: #F7F4EE;
}
.wk__info li { display: flex; align-items: center; gap: .65em; font-size: .9rem; color: var(--navy); }
.wk__info .icon { width: 1.1em; height: 1.1em; color: var(--muted); }

.wk__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.wk__foot:empty { display: none; }
.wk__price { display: grid; gap: 2px; }
.wk__price-label { font-size: .74rem; color: var(--muted); }
.wk__price-value { font: 700 1.3rem/1.2 var(--font-display); color: var(--navy); }
.wk__count { display: inline-flex; align-items: center; gap: .45em; font-size: .85rem; color: var(--muted); }
.wk__count .icon { width: 1.1em; height: 1.1em; }
.wk .btn--sm { padding: .7em 1.15em; font-size: .88rem; }

.btn--coral {
  --bg: var(--coral-grad); --fg: #1E2A47; --fill: var(--navy-grad); --fill-fg: #F8F2E7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px -12px rgba(233, 145, 127, .6);
}

html[data-theme="dark"] .wk { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .wk__info { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .wk__age { color: #F3EDE2; }

/* =====================================================================
   19. SPACING & SECTION FIT
   One consistent rhythm between sections; menu targets fill one screen.
   ===================================================================== */
:root { --section-space: clamp(96px, 11vw, 160px); }
html { scroll-padding-top: var(--header-h); }
.section { padding-block: var(--section-space); }
.marquee-wrap { padding-block: 0; }
.ages { margin-top: var(--section-space); }

/* Sections reached from the menu fill the visible screen and centre their content */
#how, #vision, #contact {
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
}
#how > .container, #vision > .container, #contact > .container { width: 100%; }
.how { margin-block: var(--section-space); }
.vision-panel { padding: clamp(40px, 5.5vw, 76px) clamp(24px, 6vw, 88px); }
.pillars { margin-top: clamp(36px, 4.5vw, 56px); }
.site-footer { margin-top: 0; }
#vision, #contact { padding-block: 24px; }
#contact .form-card { padding-block: clamp(24px, 3vw, 36px); }
#contact .field { margin-bottom: 14px; }
@media (max-width: 900px) { #how, #vision, #contact { min-height: 0; } #vision, #contact { padding-block: var(--section-space); } }
@media (min-width: 901px) {
  #vision, #contact { padding-block: 12px; }
  #contact .field textarea { min-height: 104px; }
  #contact .channels__title { margin-top: 28px; }
}

/* =====================================================================
   20. NAV DROPDOWN (Workshops → Upcoming / Past)
   ===================================================================== */
.has-sub { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: .35em; }
.nav-caret { width: .85em; height: .85em; transform: rotate(90deg); transition: transform .35s var(--ease); }
.has-sub:hover .nav-caret, .has-sub:focus-within .nav-caret { transform: rotate(-90deg); }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 8px;
  min-width: 210px; margin: 0; padding: 8px; list-style: none;
  background: #FFFFFF; border: 1px solid rgba(30, 42, 71, .08); border-radius: 18px;
  box-shadow: 0 24px 50px -24px rgba(30, 42, 71, .4);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, translate .4s var(--ease), visibility 0s linear .3s;
  z-index: 60;
}
.sub-menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* hover bridge */
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; translate: -50% 0;
  transition: opacity .3s ease, translate .4s var(--ease), visibility 0s;
}
.sub-menu a {
  display: flex; align-items: center; gap: .7em;
  padding: .7em .95em; border-radius: 12px;
  color: var(--navy); text-decoration: none; white-space: nowrap;
  font: 500 .95rem/1.4 var(--font-display);
  transition: background-color .25s ease;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover, .sub-menu a:focus-visible { background: #F5F1EA; }
.sub-menu__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sub-menu__dot--coral { background: var(--coral); }
.sub-menu__dot--sage { background: var(--sage); }
html[data-theme="dark"] .sub-menu { background: #121A30; border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .sub-menu a:hover { background: rgba(255, 255, 255, .06); }

.mobile-menu__sub a {
  justify-content: flex-start !important;
  padding-inline-start: 22px !important;
  font-size: clamp(1.1rem, 4.6vw, 1.35rem) !important; font-weight: 500 !important;
  color: var(--muted) !important;
}
.mobile-menu__sub a::before { content: "—"; margin-inline-end: 10px; color: var(--coral); }

/* Workshops: clear separation between Upcoming and Past */
#upcoming { margin-top: clamp(64px, 7vw, 96px); }
#past { margin-top: clamp(120px, 13vw, 180px); }
.workshops__cta { margin-top: clamp(56px, 6vw, 72px); }

/* Extra breathing room between sections */
#vision, #contact { margin-block: clamp(40px, 5vw, 72px); }

.about__photo img { object-position: 50% 42%; }

/* Menu jumps land at the content, not at the empty top padding of the section */
.section { scroll-margin-top: calc(28px - var(--section-space)); }
#how, #vision, #contact { scroll-margin-top: 0; }
#upcoming, #past { scroll-margin-top: 28px; }

/* No double spacing: one gap between neighbouring sections */
.how { margin-block: 0; }
#vision, #contact { margin-block: 0; }
#vision { margin-top: calc(var(--section-space) - 14px); }

/* Real Maal logo (wordmark) */
.brand__logo--word,
.brand__logo--word:is(.brand__logo) {
  width: auto; height: 44px; border-radius: 0; box-shadow: none;
}
.brand--light .brand__logo--word { height: 58px; }
.brand:hover .brand__logo--word { transform: translateY(-2px); }
html[data-theme="dark"] .site-header .brand__logo--word { filter: brightness(0) invert(.95) sepia(.08); }
