/* =====================================================================
   GelByNoa Academy — Design System
   Luxury beauty-house identity. RTL-native. Warm porcelain minimalism.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Color — warm, near-monochrome. No pure #fff / #000. */
  --porcelain:   #F7F3EE;   /* primary paper */
  --bone:        #EFE8DF;   /* secondary surface */
  --ink:         #211C18;   /* primary text, warm near-black */
  --taupe:       #8B8078;   /* secondary text / captions */
  --rose:        #C7A79C;   /* the single accent — dusk rose / nude */
  --rose-deep:   #A9857A;   /* active accent */
  --sand:        #D8C7B8;   /* hairline dividers */
  --shadow:      rgba(33, 28, 24, 0.08);

  /* Type */
  --serif: "Frank Ruhl Libre", "Cormorant Garamond", Georgia, serif;
  --sans:  "Assistant", "Heebo", system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-display:  clamp(3.4rem, 9vw, 8.5rem);
  --fs-h1:       clamp(2.4rem, 5.5vw, 4.6rem);
  --fs-h2:       clamp(1.9rem, 4vw, 3.2rem);
  --fs-lead:     clamp(1.15rem, 1.7vw, 1.45rem);
  --fs-body:     clamp(1rem, 1.15vw, 1.12rem);
  --fs-eyebrow:  1rem;

  /* Space — 1.5 rhythm */
  --s-1: 0.5rem;  --s-2: 0.75rem; --s-3: 1.25rem; --s-4: 2rem;
  --s-5: 3.25rem; --s-6: 5.25rem; --s-7: 8.5rem;  --s-8: 12rem;

  /* Layout */
  --measure: 62ch;
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --maxw: 1500px;

  /* Motion — slow, settled silk */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.8s;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: clamp(90px, 12vh, 120px); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--porcelain);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--rose); color: var(--porcelain); }

/* ---------- Primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-block;
}
/* Course-card meta line: tighter tracking, keep on one line */
.split__text .eyebrow { letter-spacing: 0.12em; white-space: nowrap; }
/* Expectations block (course page) */
.expect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 2.5vw, 2.5rem); margin-top: 44px; }
.expect-card {
  position: relative; text-align: center;
  background: var(--porcelain);
  border: 1px solid var(--sand);
  border-radius: 20px;
  padding: calc(var(--s-5) + 10px) var(--s-4) var(--s-5);
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.expect-card:hover { box-shadow: 0 26px 60px rgba(33, 28, 24, 0.10); transform: translateY(-4px); }
.expect-card__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--rose-deep); color: var(--porcelain);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(169, 133, 122, 0.4);
  transition: transform 0.7s var(--ease);
}
.expect-card:hover .expect-card__badge { transform: translate(-50%, -50%) scale(1.06); }
.expect-card__badge svg { width: 46%; height: auto; }
.expect-card__title { font-size: 1.5rem; color: var(--rose-deep); margin-bottom: var(--s-3); }
.expect-card__text { color: var(--taupe); line-height: 1.7; }
.expect-list { max-width: 58ch; margin-inline: auto; list-style: none; }
.expect-list li { position: relative; padding-inline-start: 1.9em; margin-bottom: var(--s-3); font-size: var(--fs-lead); color: var(--ink); }
.expect-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--rose-deep); }
/* Certificate band — faded HTML completion certificate behind the closing line */
.cert-band { position: relative; margin-top: var(--s-5); padding: clamp(1.5rem, 3vw, 2.5rem) var(--s-4); display: flex; align-items: center; justify-content: center; }
.cert { width: 100%; display: flex; align-items: center; justify-content: center; opacity: 0.4; pointer-events: none; }
.cert__frame { width: min(540px, 92%); aspect-ratio: 16 / 10; font-size: clamp(7px, 0.9vw, 11px); border: 1px solid var(--ink); padding: 3.2em 3em; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.cert__head, .cert__mid { display: flex; flex-direction: column; align-items: center; width: 100%; }
.cert__mid { gap: 1.1em; }
.cert__logo { width: 4.2em; height: auto; margin-bottom: 0.6em; }
.cert__title { font-family: var(--serif); font-size: 2.2em; letter-spacing: 0.34em; margin-inline-start: 0.34em; line-height: 1; }
.cert__sub { font-family: var(--serif); font-size: 0.95em; margin-top: 0.9em; }
.cert__nameline { width: 42%; border-top: 1px solid var(--ink); }
.cert__body { font-family: var(--serif); font-size: 1em; max-width: 30em; line-height: 1.55; }
.cert__feet { display: flex; gap: 3em; }
.cert__foot { display: flex; flex-direction: column; align-items: center; gap: 0.4em; }
.cert__footline { width: 9em; border-top: 1px solid var(--ink); }
.cert__foot span { font-size: 0.82em; }
.cert-hours { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.25; color: var(--rose-deep); white-space: nowrap; margin-top: var(--s-5); }
@media (max-width: 820px) { .cert-hours { white-space: normal; font-size: clamp(1.5rem, 6vw, 2.1rem); } }
.expect-intro { white-space: nowrap; }
@media (max-width: 680px) { .expect-intro { white-space: normal; } }
.expect-list--perks { max-width: 64ch; }
.expect-list--perks li { font-size: var(--fs-body); color: var(--taupe); line-height: 1.75; margin-bottom: var(--s-4); }
@media (max-width: 760px) { .expect-grid { grid-template-columns: 1fr; gap: var(--s-6); margin-top: 40px; } }

.divider { width: 46px; height: 1px; background: var(--sand); border: none; }

.shell { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--s-8); }
/* Course pages: tighter vertical rhythm — less towering than the home page */
.course-page .section { padding-block: 7rem; }
@media (max-width: 720px) { .section { padding-block: var(--s-7); } }

.serif { font-family: var(--serif); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; }

/* Poster type — the oversized bilingual English display */
.poster {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Link with hairline underline that draws in */
.link-underline {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 0.35em;
}
.link-underline::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }
@keyframes ctaSweep { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* Ghost button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6em;
  padding: 1.15em 2.4em;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--ink); color: var(--porcelain); }
.btn--rose { border-color: var(--rose-deep); color: var(--rose-deep); }
.btn--rose:hover { background: var(--rose-deep); color: var(--porcelain); }
.btn--ghost-light { border-color: rgba(247,243,238,0.6); color: var(--porcelain); }
.btn--ghost-light:hover { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }

/* ---------- Art-directed image placeholders ----------
   Swap the background-image on `.ph` with real photography.
   The tonal gradient + grain holds the exact mood meanwhile. */
.figure { position: relative; overflow: hidden; background: var(--bone); }
.figure > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph {
  position: relative;
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 78% 18%, #EADFD5 0%, transparent 55%),
    radial-gradient(120% 120% at 15% 100%, #C9B4A6 0%, transparent 60%),
    linear-gradient(155deg, #E7D9CD 0%, #C7AFA1 48%, #9E8378 100%);
}
.ph--cool {
  background:
    radial-gradient(110% 90% at 20% 15%, #EEE7DF 0%, transparent 55%),
    linear-gradient(160deg, #DFD3C8 0%, #B9A79B 55%, #7E6F65 100%);
}
.ph--dark {
  background:
    radial-gradient(90% 80% at 70% 20%, #6B5A50 0%, transparent 60%),
    linear-gradient(150deg, #4A3F38 0%, #2E2723 70%);
}
.ph::after { /* fine grain */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.10; mix-blend-mode: overlay; pointer-events: none;
}
.ph__tag { display: none; }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) var(--gutter);
  padding-inline-start: clamp(1rem, 2vw, 2rem); /* hug the brand closer to the right edge (RTL) */
  transition: background 0.6s var(--ease), padding 0.6s var(--ease), color 0.6s var(--ease);
  color: var(--porcelain);
}
.header.is-solid {
  background: rgba(247, 243, 238, 0.86);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--sand);
}
/* RTL-native grouping: logo + nav sit together on the right; CTA alone on the left */
.header__right { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 2.6rem); }
.header__brand { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--serif); font-weight: 300; font-size: 1.78rem; letter-spacing: 0.14em; }
.header__academy { font-size: 0.5em; font-weight: 300; letter-spacing: 0.12em; text-transform: lowercase; opacity: 0.62; margin-inline-start: 0.02em; }
.header__logo { width: 40px; height: 40px; flex: none; }
@media (max-width: 940px) { .header__logo { width: 34px; height: 34px; } }
.header__nav { display: flex; gap: clamp(1rem, 2vw, 2.2rem); align-items: center; }
.header__nav a { font-size: 0.9rem; letter-spacing: 0.1em; opacity: 0.9; transition: opacity 0.4s var(--ease); }
.header__nav a:hover { opacity: 1; }

/* Courses dropdown */
.header__dropdown { position: relative; }
.header__dropdown-toggle { display: inline-flex; align-items: center; gap: 0.4em; }
.header__caret { font-size: 0.9em; line-height: 1; opacity: 1; transform: translateY(0.06em); transition: transform 0.35s var(--ease); }
.header__dropdown:hover .header__caret,
.header__dropdown:focus-within .header__caret { transform: rotate(180deg); }
/* invisible bridge so hover survives the gap to the submenu */
.header__dropdown::after { content: ""; position: absolute; inset-block-start: 100%; inset-inline: 0; height: 1.1rem; }
.header__submenu {
  position: absolute;
  inset-block-start: calc(100% + 1.1rem);
  inset-inline-end: 0;
  min-width: 280px;
  background: rgba(247, 243, 238, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid var(--sand);
  box-shadow: 0 22px 54px rgba(33, 28, 24, 0.14);
  padding-block: 0.4rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
  z-index: 120;
}
.header__dropdown:hover .header__submenu,
.header__dropdown:focus-within .header__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.header__submenu a {
  display: block;
  padding: 0.9em 1.6em;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.88;
  transition: background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.header__submenu a:hover { background: var(--bone); opacity: 1; }
.header__cta { font-size: 0.9rem; letter-spacing: 0.12em; border: 1px solid currentColor; padding: 0.7em 1.5em; opacity: 1 !important; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.header__burger { display: none; flex-direction: column; gap: 5px; }
.header__burger span { width: 24px; height: 1px; background: currentColor; transition: 0.4s var(--ease); }

@media (max-width: 940px) {
  .header__nav { display: none; }
  .header > .header__cta { display: none; } /* the header CTA; the cloned one in the mobile menu stays */
  .header__burger { display: flex; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--porcelain); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg .ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(100% 80% at 62% 20%, #C7ADA0 0%, transparent 55%),
    linear-gradient(160deg, #6E5C52 0%, #3B322D 60%, #251F1B 100%);
}
/* Background video sits above the gradient fallback, below the vignette.
   If assets/hero.mp4 is absent it renders nothing and the gradient shows through. */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: transparent;
  /* Calm, editorial grade so bright footage reads as luxury, not stock */
  filter: brightness(0.82) saturate(0.82) contrast(1.02);
}
@media (prefers-reduced-motion: reduce) {
  /* Honour motion sensitivity — show the still mood instead of a moving loop. */
  .hero__video { display: none; }
}
/* Hide the native iOS "tap to play" glyph shown when autoplay is blocked
   (e.g. Low Power Mode). The poster image stays visible in its place. */
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-play-button,
.hero__video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none !important;
}
.hero::before { /* warm scrim — even darkening for legibility over any footage, plus vignette */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 50% 50%, rgba(20,16,13,0.34) 0%, rgba(20,16,13,0.52) 100%),
    linear-gradient(180deg, rgba(20,16,13,0.42) 0%, rgba(20,16,13,0.26) 40%, rgba(20,16,13,0.55) 100%);
}
.hero__wordmark {
  position: relative;
  font-family: var(--serif); font-weight: 300;
  font-size: var(--fs-display); line-height: 0.9;
  letter-spacing: 0.02em;
  transform: translateY(30px); opacity: 0;
  animation: heroIn 1.6s var(--ease) 0.2s forwards;
}
.hero__academy {
  /* small refined overline ABOVE the wordmark */
  display: block; margin-bottom: 0.7em;
  font-family: var(--serif); font-style: normal; font-weight: 300;
  font-size: clamp(0.8rem, 1.4vw, 1.1rem);
  letter-spacing: 0.55em; text-indent: 0.55em; text-transform: uppercase;
  color: rgba(247, 243, 238, 0.7);
  position: relative; z-index: 2;
  opacity: 0; animation: heroIn 1.6s var(--ease) 0.15s forwards;
}
.hero__sub {
  margin-top: var(--s-4); font-size: var(--fs-lead); font-weight: 300;
  letter-spacing: 0.02em; opacity: 0;
  animation: heroIn 1.6s var(--ease) 0.65s forwards;
}
.hero__actions {
  margin-top: var(--s-5); display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: heroIn 1.6s var(--ease) 0.8s forwards;
}
.hero__scroll {
  position: absolute; inset-block-end: var(--s-4); inset-inline-start: 50%;
  transform: translateX(50%);
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.7; animation: floatY 2.6s ease-in-out infinite;
}
@keyframes heroIn { to { transform: translateY(0); opacity: 1; } }
@keyframes floatY { 0%,100% { transform: translateX(50%) translateY(0);} 50% { transform: translateX(50%) translateY(8px);} }

/* =====================================================================
   FOUNDER BRIDGE — a circular portrait straddles the hero/section seam.
   The hero stays clean; only this medallion overlaps it as a preview.
   ===================================================================== */
.founder {
  display: flow-root;            /* contain the medallion's negative margin (no collapse) */
  position: relative; z-index: 3;
  background: var(--porcelain);
  padding-block: 0 var(--s-5);
  text-align: center;
}
.founder__portrait {
  --d: clamp(200px, 24vw, 340px);
  position: relative;
  width: var(--d); height: var(--d);
  /* Only a thin crescent (~10%) peeks above the fold — a whisper, not a cropped head. */
  margin: calc(var(--d) * -0.1) auto 0;
  border-radius: 50%; overflow: hidden;
  /* Matches the photo's own backdrop so the contain side-fill is invisible */
  background: linear-gradient(to bottom, #CEC3B9 0%, #D6CCC2 55%, #E7DFD5 100%);
  border: 5px solid var(--porcelain);
  box-shadow: 0 24px 60px rgba(33, 28, 24, 0.22);
}
.marquee--behind-portrait {
  position: absolute;
  top: calc(clamp(200px, 24vw, 340px) * 0.5 - clamp(200px, 24vw, 340px) * 0.1);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  z-index: 0;
  display: flex;
  align-items: center;
  opacity: 0.3;
  pointer-events: none;
}
.founder__portrait .ph {
  width: 100%; height: 100%;
  background:
    radial-gradient(110% 90% at 30% 14%, #EFE7DF 0%, transparent 55%),
    linear-gradient(155deg, #E7DBD0 0%, #CDBBAE 55%, #A98F80 100%);
}
.founder__portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; display: block; }
.founder__intro { margin-top: var(--s-4); }
.founder__hi { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; }
.founder__letter {
  max-width: 90ch; margin: var(--s-5) auto 0;
  color: var(--ink); font-size: clamp(1.05rem, 1.3vw, 1.25rem); font-weight: 400; line-height: 1.9;
}
.founder__letter p { margin-bottom: var(--s-3); }
.founder__letter p:last-child { margin-bottom: 0; }
.founder__punch {
  margin-top: var(--s-5);
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.45;
  color: var(--ink);
}
.founder__signature {
  display: block; margin-top: var(--s-5);
  font-family: "Sacramento", cursive; font-weight: 400;
  font-size: clamp(2.6rem, 4.5vw, 3.4rem); line-height: 0.9; color: var(--rose-deep);
}
.founder__signature-logo {
  display: block; margin: var(--s-5) auto 0;
  width: clamp(80px, 12vw, 120px); height: auto;
}
.founder__role {
  display: block; margin-top: var(--s-2);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe);
}
.founder__link { display: inline-block; margin-top: var(--s-5); }
@media (max-width: 640px) {
  .founder__portrait { --d: clamp(170px, 46vw, 240px); }
}

/* =====================================================================
   MARQUEE — slow silent line of values
   ===================================================================== */
.marquee {
  border-block: 1px solid var(--sand);
  padding-block: var(--s-3);
  overflow: hidden; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; gap: var(--s-5); align-items: center;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 300; color: var(--taupe); letter-spacing: 0.02em;
}
.marquee__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
@keyframes slide { from { transform: translateX(0);} to { transform: translateX(50%);} }

/* =====================================================================
   MANIFESTO
   ===================================================================== */
.manifesto { text-align: center; }
.manifesto__poster { font-size: clamp(2.6rem, 7vw, 6rem); margin-block: var(--s-4) var(--s-4); }
.manifesto__body { max-width: 54ch; margin-inline: auto; color: var(--ink); font-size: var(--fs-lead); }
.manifesto__body + .manifesto__body { margin-top: var(--s-3); color: var(--taupe); font-size: var(--fs-body); }

/* =====================================================================
   EDITORIAL SPLIT — alternating image / text
   ===================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 6vw, var(--s-7)); }
.split + .split { margin-top: var(--s-5); }
.split__figure { aspect-ratio: 1 / 1; max-height: 62vh; }
.split--reverse .split__figure { order: 2; }
.split__num { font-family: var(--serif); font-size: 1rem; color: var(--rose-deep); letter-spacing: 0.2em; }
.split__title { font-size: var(--fs-h2); margin-block: var(--s-2) var(--s-3); }
.split__text { color: var(--taupe); max-width: 44ch; }
.split__text + .split__link { margin-top: var(--s-4); display: inline-block; }
/* Courses page cards — larger, better balanced type */
.split--course .split__num { font-size: 1.15rem; }
.split--course .split__title { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.split--course .split__text { font-size: clamp(1.2rem, 1.6vw, 1.45rem); max-width: 40ch; }
.split--course .split__text .eyebrow { font-size: 0.92rem; }
.split--course .split__link { font-size: 1.1rem; }
/* Approach section: keep everything's size; only paint the text half bone, full-height up to the image (alternating = X) */
#approach .split { display: flex; gap: 0; align-items: stretch; }
#approach .split__figure { flex: 0 0 auto; height: 62vh; min-height: 400px; aspect-ratio: 1 / 1; max-height: none; }
#approach .split__body { flex: 1 1 auto; background: var(--bone); padding: clamp(1.75rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: var(--s-4); }
  .split--reverse .split__figure { order: 0; }
  .split__figure { aspect-ratio: 3 / 2; }
  #approach .split { flex-direction: column; gap: 0; }
  #approach .split__figure { height: auto; width: 100%; aspect-ratio: 3 / 2; }
}

/* =====================================================================
   COURSES PREVIEW
   ===================================================================== */
.courses { padding-block: var(--s-3) var(--s-4); }
.courses__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--s-4); flex-wrap: wrap; gap: var(--s-3); }
.courses__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, var(--s-5)); }
.courses__grid--three { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.course-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: clamp(430px, 50vh, 560px);
  background: var(--porcelain);
  border: 1px solid var(--sand);
  border-radius: 20px;
  padding: calc(var(--s-5) + 16px) var(--s-4) var(--s-4);
  margin-top: 40px;
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.course-card:hover { box-shadow: 0 26px 60px rgba(33, 28, 24, 0.10); transform: translateY(-4px); }
.course-card__badge {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--rose-deep); color: var(--porcelain);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(169, 133, 122, 0.4);
  transition: transform 0.7s var(--ease);
}
.course-card:hover .course-card__badge { transform: translate(-50%, -50%) scale(1.06); }
.course-card__badge svg { width: 52%; height: auto; }
.course-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.15; color: var(--rose-deep); }
.course-card__name { margin-top: var(--s-1); font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe); }
.course-card__desc { color: var(--taupe); margin-top: var(--s-3); min-height: 3.5rem; display: flex; align-items: center; justify-content: center; }
.course-card__rule { display: flex; align-items: center; gap: 0.7em; width: 62%; margin-block: var(--s-3); }
.course-card__rule::before, .course-card__rule::after { content: ""; flex: 1; height: 1px; background: var(--sand); }
.course-card__rule i { font-style: normal; font-size: 0.7rem; color: var(--rose); }
.course-card__meta { display: flex; flex-direction: column; justify-content: flex-start; gap: 0.55em; min-height: 5.2rem; margin-bottom: var(--s-4); color: var(--taupe); font-size: 0.86rem; line-height: 1.5; }
.course-card__meta-lead { color: var(--rose-deep); letter-spacing: 0.04em; }
.course-card__link { align-self: stretch; margin-top: auto; }
.course-card__link.btn { padding-block: 0.95em; font-size: 0.84rem; border-color: var(--rose-deep); color: var(--rose-deep); }
.course-card__link.btn:hover { background: var(--rose-deep); color: var(--porcelain); border-color: var(--rose-deep); }
@media (max-width: 860px) { .courses__grid, .courses__grid--three { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.courses__dots { display: none; } /* dots are mobile-only (shown in the ≤640 block) */

/* =====================================================================
   QUOTE / PROOF
   ===================================================================== */
.quote { background: var(--bone); text-align: center; }
.quote__mark { font-family: var(--serif); font-size: 5rem; color: var(--sand); line-height: 0.3; }
.quote__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.35; max-width: 22ch; margin: var(--s-4) auto var(--s-3); }
.quote__author { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); }

/* Testimonials — real messages restyled as chat bubbles */
.testimonials { background: var(--bone); padding-block: var(--s-5) var(--s-6); }
.testimonials__head { text-align: center; margin-bottom: var(--s-5); }
.chat { max-width: 540px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s-5); }
.chat__bubble {
  position: relative; width: 100%; max-width: 460px;
  background: var(--porcelain); border: 1px solid var(--sand);
  box-shadow: 0 16px 40px rgba(33, 28, 24, 0.08);
}
.chat__bubble--start { align-self: flex-start; border-radius: 22px 5px 22px 22px; }
.chat__bubble--end { align-self: flex-end; border-radius: 5px 22px 22px 22px; }
/* Default: the styled text sits in flow and keeps the bubble compact */
.chat__body { display: flex; flex-direction: column; padding: var(--s-3) var(--s-4); border-radius: inherit; }
/* Hover: the real screenshot takes over and the bubble grows to fit it fully */
.chat__shot { display: none; width: 100%; height: auto; border-radius: inherit; }
.chat__bubble:hover .chat__body { display: none; }
.chat__bubble:hover .chat__shot { display: block; }
.chat__text { color: var(--ink); font-size: 0.95rem; line-height: 1.62; }
.chat__author { display: block; margin-top: var(--s-2); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--rose-deep); }
.chat__time { display: block; margin-top: var(--s-1); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--taupe); }
.chat__react {
  position: absolute; bottom: -16px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--porcelain); border: 1px solid var(--sand);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 6px 14px rgba(33, 28, 24, 0.10);
  transition: opacity 0.4s var(--ease);
}
.chat__bubble:hover .chat__react { opacity: 0; }
.chat__bubble--start .chat__react { inset-inline-start: 22px; }
.chat__bubble--end .chat__react { inset-inline-end: 22px; }
.testimonials__note { text-align: center; margin-top: calc(var(--s-6) + 6px); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-deep); }

/* =====================================================================
   STATEMENT
   ===================================================================== */
.statement { text-align: center; }
.statement__text { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.25; max-width: 18ch; margin-inline: auto; }
.statement__text em { font-style: italic; color: var(--rose-deep); }

/* =====================================================================
   CTA / INVITATION
   ===================================================================== */
.invite { position: relative; color: var(--porcelain); overflow: hidden; text-align: center; }
.invite__bg { position: absolute; inset: 0; z-index: -2; }
.invite::before { content:""; position:absolute; inset:0; z-index:-1; background: rgba(20,16,13,0.42); }
.invite .eyebrow { color: var(--rose); }
.invite__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.02; margin-block: var(--s-3) var(--s-4); }
.invite__text { max-width: 40ch; margin: 0 auto var(--s-5); opacity: 0.9; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: var(--porcelain); padding-block: var(--s-6) var(--s-4); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); }
.footer__brand { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.12em; }
.footer__tag { color: rgba(247,243,238,0.6); max-width: 32ch; margin-top: var(--s-2); }
.footer__col h4 { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose); margin-bottom: var(--s-3); font-weight: 400; }
.footer__col a { display: block; padding-block: 0.35em; font-size: 0.92rem; color: rgba(247,243,238,0.82); transition: color 0.4s var(--ease); }
.footer__col a:hover { color: var(--porcelain); }
.footer__base { display: flex; justify-content: space-between; margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid rgba(247,243,238,0.14); font-size: 0.72rem; letter-spacing: 0.14em; color: rgba(247,243,238,0.5); flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: var(--s-4); } }

/* =====================================================================
   INTERIOR PAGES — shared scaffolding
   ===================================================================== */
/* Interior pages have no dark hero, so the header sits solid from the top. */
.header--page { position: sticky; }

.page-hero { text-align: center; padding-block: calc(var(--s-7) + 40px) var(--s-6); }
.page-hero__title { font-family: var(--serif); font-weight: 300; line-height: 1.02; letter-spacing: -0.01em; font-size: var(--fs-h1); margin-block: var(--s-3) var(--s-4); }
.page-hero__lede { max-width: 54ch; margin-inline: auto; color: var(--taupe); font-size: var(--fs-lead); }

/* Numbered editorial index (credentials, curriculum, method) */
.index-list { border-top: 1px solid var(--sand); }
.index-list__row { display: grid; grid-template-columns: 96px 1fr; gap: clamp(1rem, 4vw, var(--s-5)); align-items: baseline; padding-block: var(--s-5); border-bottom: 1px solid var(--sand); }
.index-list__num { font-family: var(--serif); font-weight: 300; font-size: 1.1rem; color: var(--rose-deep); letter-spacing: 0.2em; }
.index-list__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; }
.index-list__text { color: var(--taupe); max-width: 56ch; margin-top: var(--s-2); }
@media (max-width: 640px) { .index-list__row { grid-template-columns: 1fr; gap: var(--s-2); } }

/* Portrait split — taller figure for editorial portraiture */
.split__figure--portrait { aspect-ratio: 3 / 4; }

/* Two-column prose for founder story */
.prose-columns { columns: 2; column-gap: var(--s-6); max-width: 68ch; margin-inline: auto; color: var(--ink); }
.prose-columns p { break-inside: avoid; margin-bottom: var(--s-3); }
@media (max-width: 720px) { .prose-columns { columns: 1; } }

/* Fact strip — small metadata row (est. / location / group size) */
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(2rem, 8vw, var(--s-7)); text-align: center; }
.fact__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.fact__label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); margin-top: var(--s-2); }

/* =====================================================================
   FAQ ACCORDION
   ===================================================================== */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--sand); }
.faq details { border-bottom: 1px solid var(--sand); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-4); font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq .sign { position: relative; width: 16px; height: 16px; flex: none; }
.faq .sign::before, .faq .sign::after { content: ""; position: absolute; background: var(--rose-deep); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.faq .sign::before { inset-inline: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.faq .sign::after { inset-block: 0; inset-inline-start: 50%; width: 1px; transform: translateX(-50%); }
.faq details[open] .sign::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq__answer { padding: 0 0 var(--s-4); color: var(--taupe); max-width: 62ch; line-height: 1.9; }

/* =====================================================================
   GALLERY MASONRY
   ===================================================================== */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(8, clamp(190px, 24vw, 340px)); grid-auto-flow: column; gap: clamp(0.75rem, 2vw, var(--s-3)); }
.masonry__item { grid-row: span 1; overflow: hidden; background: var(--bone); }
.masonry__item--tall { grid-row: span 2; }
.masonry__item > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.masonry__item:hover > img { transform: scale(1.04); }
@media (max-width: 860px) { .masonry { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(12, clamp(190px, 30vw, 320px)); } }
@media (max-width: 520px) { .masonry { grid-template-columns: 1fr; grid-template-rows: repeat(24, clamp(240px, 62vw, 380px)); } }

/* =====================================================================
   RESULTS GRID
   ===================================================================== */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, var(--s-5)); }
.result { display: block; }
.result__figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone); margin-bottom: var(--s-2); }
.result__figure .ph { transition: transform 1.1s var(--ease); }
.result:hover .ph { transform: scale(1.04); }
.result__name { font-family: var(--serif); font-weight: 300; font-size: 1.25rem; }
.result__meta { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); margin-top: 2px; }
@media (max-width: 820px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .results-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   CONTACT FORM
   ===================================================================== */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, var(--s-7)); align-items: start; }
.contact__aside .eyebrow { margin-bottom: var(--s-3); }
.contact__lines { margin-top: var(--s-4); }
.contact__lines a { display: block; padding-block: 0.4em; color: var(--ink); font-size: 1.05rem; }
.contact__lines a:hover { color: var(--rose-deep); }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); margin-bottom: var(--s-1); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--sand);
  padding: 0.7em 0; font: inherit; color: var(--ink); font-weight: 300;
  transition: border-color 0.5s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--rose-deep); }
.field textarea { resize: vertical; min-height: 64px; }
.field__req { display: none; margin-top: 0.4em; font-size: 0.9rem; font-weight: 500; letter-spacing: normal; color: var(--ink); }
.field.is-error .field__req { display: block; }
.field.is-error label { color: var(--rose-deep); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-bottom-color: var(--rose-deep); }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }

/* =====================================================================
   MOBILE NAV
   ===================================================================== */
/* Backdrop — dark overlay; drawer slides in from the right (RTL start).
   Sits above the fixed page header so the drawer owns the whole top bar. */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.78);
  display: flex; justify-content: flex-start;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
/* The drawer itself — ~78% width, light, RTL, right-aligned */
.mnav__drawer {
  width: 78%; max-width: 360px; height: 100%; background: var(--porcelain);
  display: flex; flex-direction: column; align-items: stretch;
  padding: var(--s-2) var(--gutter) var(--s-4);
  text-align: right; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  box-shadow: -12px 0 40px rgba(0,0,0,0.18);
}
.mobile-nav.is-open .mnav__drawer { transform: translateX(0); }
/* Drawer header — X (right) · brand (center) · globe (left) */
.mnav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--s-1); margin-bottom: 0.3rem;
  border-bottom: 1px solid rgba(33,28,24,0.1);
}
/* RTL: brand on the right, X on the left */
.mnav__head .header__brand { order: 0; font-size: 1.08rem; letter-spacing: 0.05em; gap: 0.55em; margin: 0; }
.mnav__head .header__logo { width: 24px; height: 24px; }
.mnav__close { order: 1; }
.mnav__close {
  width: 40px; height: 40px; flex: none; position: relative;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.mnav__close span {
  position: absolute; top: 50%; left: 50%; width: 24px; height: 1px;
  background: currentColor; transform-origin: center;
}
.mnav__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.mnav__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
/* Section label — small eyebrow heading above each group */
.mnav__label { display: block; margin-bottom: var(--s-1); }
/* Nav links — one tidy right-aligned column, tight spacing */
.mnav__links { display: flex; flex-direction: column; align-items: stretch; }
.mobile-nav a { font-family: var(--serif); font-weight: 300; font-size: 1.25rem; color: var(--ink); text-align: right; }
.mnav__links > a { padding-block: 0.24em; border-bottom: 1px solid rgba(33,28,24,0.07); }
/* Dropdown flattens into a right-aligned sub-group */
.mobile-nav .header__dropdown { display: flex; flex-direction: column; align-items: stretch; }
.mobile-nav .header__dropdown-toggle { padding-block: 0.24em; }
.mobile-nav .header__caret { display: none; }
.mobile-nav .header__submenu {
  position: static; opacity: 1; visibility: visible; transform: none;
  min-width: 0; background: none; border: none; box-shadow: none; backdrop-filter: none;
  padding: 0 0 0.24em; display: flex; flex-direction: column; align-items: stretch; gap: 0;
  border-bottom: 1px solid rgba(33,28,24,0.07);
}
.mobile-nav .header__submenu a { padding: 0.12em 0; font-size: 0.9rem; opacity: 0.68; white-space: normal; text-align: right; }
/* Contact — a distinct, near-full-width button beneath the nav */
.mnav__contact { margin-top: var(--s-3); }
.mnav__contact .header__cta {
  display: block; text-align: center; font-family: var(--serif); font-size: 1rem;
  letter-spacing: 0.08em; padding: 0.62em 1em; background: var(--ink); color: var(--porcelain);
  border-color: var(--ink);
}
.header__burger span { transform-origin: center; }
.header__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================================================================
   BRAND LOGO — the original GelByNoa mark, adapted per context
   ===================================================================== */
/* Footer medallion (on dark ink — the marble badge reads as a light seal) */
.footer__seal-wrap { display: flex; justify-content: center; margin-top: var(--s-6); }
.footer__logo { width: 74px; height: auto; opacity: 0.92; transition: opacity 0.5s var(--ease); }
.footer__logo:hover { opacity: 1; }
/* Editorial signature (About statement, on porcelain) */
.signature-logo { width: 84px; height: auto; display: block; margin: var(--s-5) auto 0; }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

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

/* =====================================================================
   FLOATING WHATSAPP BUTTON (RTL: bottom-left)
   ===================================================================== */
.wa-float {
  position: fixed; z-index: 200;
  inset-block-end: clamp(1.1rem, 3vw, 1.9rem);
  left: clamp(1.1rem, 3vw, 1.9rem);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--rose-deep); color: var(--porcelain);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(169, 133, 122, 0.45), 0 4px 12px rgba(33, 28, 24, 0.16);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.06); background: var(--ink); box-shadow: 0 16px 34px rgba(169, 133, 122, 0.5), 0 6px 16px rgba(33, 28, 24, 0.2); }
.wa-float svg { width: 30px; height: 30px; display: block; }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; } .wa-float svg { width: 28px; height: 28px; } }

/* =====================================================================
   ABOUT — MY STORY (long-form, centered)
   ===================================================================== */
.about-story__intro { text-align: center; margin-bottom: var(--s-6); }
.about-story__portrait {
  width: clamp(220px, 30vw, 330px); aspect-ratio: 4 / 5;
  margin: 0 auto var(--s-4); border-radius: 8px; overflow: hidden;
  box-shadow: 0 28px 64px rgba(33, 28, 24, 0.18);
}
.about-story__intro .eyebrow { margin-bottom: var(--s-2); }
.about-story__title { font-size: var(--fs-h2); line-height: 1.1; }
.about-story__text { max-width: 64ch; margin-inline: auto; text-align: start; position: relative; padding-inline-start: var(--s-5); }
/* Timeline spine down the start (right, RTL) side of the story */
.about-story__text::before {
  content: ""; position: absolute; inset-inline-start: 6px; top: 0.6em; bottom: 0.6em;
  width: 1px; background: linear-gradient(var(--sand), var(--sand) 85%, transparent);
}
.about-story__text > p { color: var(--taupe); line-height: 1.95; position: relative; }
/* A dot on the spine at each paragraph */
.about-story__text > p::before {
  content: ""; position: absolute; inset-inline-start: calc(-1 * var(--s-5) + 2px); top: 0.72em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--porcelain); border: 1.5px solid var(--rose-deep);
}
.about-story__text p + p { margin-top: var(--s-4); }
/* Separator that reaches out from the spine toward the middle of the text */
.about-story__text > p + p:not(.about-story__closer)::after {
  content: ""; position: absolute; top: calc(-1 * var(--s-4) / 2); height: 1px;
  inset-inline-start: calc(-1 * var(--s-5) + 6px); width: 52%; background: var(--sand);
}
/* Drop cap on the opening line */
.about-story__text > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 400; font-size: 3.1em; line-height: 0.78;
  float: inline-start; margin-inline-end: 0.09em; margin-top: 0.04em; color: var(--rose-deep);
}
/* Key phrases that carry the eye through the story */
.about-story__text .hl { color: var(--rose-deep); font-weight: 400; }
.about-story__text .hl--serif { font-family: var(--serif); font-style: italic; font-size: 1.08em; }
.about-story__text .hl--strong { font-weight: 600; font-style: normal; }
/* The closing line is a flourish, not a timeline step */
.about-story__text > p.about-story__closer::before { display: none; }
.about-story__chapter { display: none; }

/* DESKTOP — wider, better-breathing story column */
@media (min-width: 641px) {
  .about-story__intro { margin-bottom: var(--s-4); }
  .about-story__text { max-width: 74ch; }
}
.about-story__closer {
  color: var(--ink) !important; text-align: center;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.5;
  margin-top: var(--s-5) !important;
}

/* =====================================================================
   LANGUAGE SWITCHER (Google Translate)
   ===================================================================== */
.header__lang { position: relative; display: flex; align-items: center; margin-inline-start: auto; margin-inline-end: 0.9rem; }
.header__lang-toggle { background: none; border: none; cursor: pointer; line-height: 1; padding: 0.25em 0.35em; color: inherit; border-radius: 50%; opacity: 0.8; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
.header__lang-toggle svg { width: 20px; height: 20px; display: block; }
.header__lang-toggle:hover { transform: scale(1.12); opacity: 1; }
.header__lang-menu { position: absolute; top: 150%; inset-inline-end: 0; background: var(--porcelain); border: 1px solid var(--sand); border-radius: 12px; padding: 0.35rem; display: none; flex-direction: column; min-width: 128px; box-shadow: 0 14px 34px rgba(33, 28, 24, 0.14); z-index: 300; }
.header__lang.is-open .header__lang-menu { display: flex; }
.header__lang-menu button { background: none; border: none; text-align: start; padding: 0.55em 0.8em; border-radius: 7px; cursor: pointer; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); transition: background 0.3s var(--ease); }
.header__lang-menu button:hover { background: var(--bone); }
.header__lang-menu button.is-active { color: var(--rose-deep); }
@media (max-width: 640px) { .header__lang { order: -1; } }

/* Hide Google Translate banner / artifacts */
.goog-te-banner-frame, .goog-te-gadget-icon, iframe.skiptranslate, #goog-gt-tt, .goog-tooltip { display: none !important; }
#google_translate_element { display: none; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* =====================================================================
   MOBILE REFINEMENTS — hero + footer (≤640px only; desktop untouched)
   ===================================================================== */
@media (max-width: 640px) {
  /* HEADER — RTL order: burger right · brand center · language left */
  .header, .header.is-solid { padding-inline: 20px; padding-block: 12px; align-items: center; }
  .header__burger { order: -1; margin: 0; align-self: center; }
  .header__right { order: 0; }
  .header__lang { order: 1; margin: 0; align-self: center; }
  .header__brand { font-size: 1.32rem; letter-spacing: 0.06em; gap: 0.45em; margin-inline: var(--s-2); }
  .header__logo { width: 28px; height: 28px; }
  .header__lang-toggle { display: flex; align-items: center; }
  .header__lang-toggle svg { width: 22px; height: 22px; }

  /* HERO — tall & full-screen; only a sliver of the next section peeks */
  .hero { height: auto; min-height: 90vh; padding-inline: 22px; }
  .hero__academy { margin-bottom: 0.4em; max-width: 100%; }
  .hero__wordmark { font-size: clamp(2.6rem, 13vw, 3.8rem); max-width: 100%; }
  .hero__sub { margin-top: var(--s-2); max-width: 100%; }
  .hero__actions { margin-top: var(--s-4); gap: var(--s-2); width: 100%; flex-wrap: nowrap; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding: 0.9em 0.6em; font-size: 0.74rem; white-space: nowrap; }

  /* GENERAL SPACING — tighten vertical rhythm across the whole page on mobile */
  .section { padding-block: var(--s-5); }
  .section[style*="7rem"] { padding-block: var(--s-5) !important; }
  .course-page .section { padding-block: var(--s-5); }
  .page-hero { padding-block: calc(var(--s-6) + 12px) var(--s-4); }
  .page-hero__title { margin-block: var(--s-2) var(--s-3); }
  .split + .split { margin-top: var(--s-4); }
  .split, .split--reverse { gap: var(--s-3); }
  .courses { padding-block: var(--s-2) var(--s-3); }
  /* COURSES — centered circular carousel: active card centred, neighbours peek */
  .courses__grid, .courses__grid--three {
    display: flex; flex-wrap: nowrap; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: var(--s-2); max-width: none;
    margin-inline: calc(-1 * var(--gutter)); /* full-bleed past the shell padding */
    padding-block: 34px var(--s-1); padding-inline: 12vw; /* room to centre + peek both sides */
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .courses__grid::-webkit-scrollbar { display: none; }
  .courses__grid .course-card {
    flex: 0 0 76vw; scroll-snap-align: center;
    min-height: 0; margin-top: 4px;
    padding: var(--s-4) var(--s-3) var(--s-3);
    transform: scale(0.95); opacity: 0.6;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), box-shadow 0.45s var(--ease);
  }
  .courses__grid .course-card.is-center { transform: scale(1); opacity: 1; }
  /* Compact interior: smaller badge, tighter gaps, button closer to content */
  .course-card__badge { width: 54px; height: 54px; }
  .course-card__title { font-size: 1.4rem; }
  .course-card__desc { min-height: 0; margin-top: var(--s-2); }
  .course-card__rule { margin-block: var(--s-2); }
  .course-card__meta { min-height: 0; gap: 0.4em; margin-bottom: var(--s-3); }
  .course-card__link.btn { padding-block: 0.8em; }
  /* Minimal position dots */
  .courses__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: var(--s-3); }
  .courses__dots button {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
    background: var(--sand); transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .courses__dots button.is-active { background: var(--rose-deep); transform: scale(1.3); }
  .statement__text { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .testimonials { padding-block: var(--s-4) var(--s-5); }
  .testimonials__note { margin-top: var(--s-4); }
  .index-list__row { padding-block: var(--s-4); }
  .faq summary { padding-block: var(--s-3); }
  .about-story__intro { margin-bottom: var(--s-4); }
  .expect-grid { gap: var(--s-4) !important; margin-top: var(--s-3) !important; }
  /* FACTS — a compact, centred block: a shrunk version of the desktop row.
     Columns size to content so "תל אביב" keeps one line at the larger type. */
  .facts { flex-wrap: nowrap; gap: clamp(0.5rem, 2.4vw, 0.9rem); justify-content: center; max-width: none; margin-inline: auto; }
  .facts > div { flex: 0 0 auto; text-align: center; }
  .fact__num { font-size: 23px; white-space: nowrap; line-height: 1.1; }
  .fact__label { font-size: 14px; letter-spacing: 0.02em; margin-top: 0.5em; line-height: 1.25; }

  /* APPROACH ("האני מאמין שלי") — compact editorial cards: image on top,
     text block overlapping the image bottom, so more than one fits per scroll. */
  /* Centre the "האני מאמין שלי" heading between the section above and the first image */
  #approach { padding-block-start: var(--s-4) !important; }
  #approach > div:first-child { margin-bottom: var(--s-4) !important; }
  #approach .split { position: relative; flex-direction: column; gap: 0; }
  #approach .split__figure { width: 100%; aspect-ratio: 3 / 2; max-height: 38vh; min-height: 0; }
  #approach .split__body {
    position: relative; z-index: 2;
    margin: -2.75rem 1.1rem 0; padding: 0.9rem 1.25rem 1.1rem;
    background: var(--bone); box-shadow: 0 -6px 24px rgba(33,28,24,0.1);
    /* subtle rise onto the image as the card scrolls in — not overdone */
    transform: translateY(1.25rem); opacity: 0;
    transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  }
  #approach .split.is-in .split__body { transform: translateY(0); opacity: 1; }
  #approach .split__num { font-size: 0.85rem; }
  #approach .split__title { font-size: clamp(1.45rem, 6vw, 1.85rem); margin-block: 0.35rem 0.5rem; }
  #approach .split__text { font-size: 0.95rem; max-width: none; }
  #approach .split__text + .split__link { margin-top: var(--s-2); }
  #approach .split + .split { margin-top: var(--s-4); }

  /* CTA LINKS — permanent thin underline at TEXT width (shrink link to content,
     so it isn't a card-wide divider); on tap it sweeps like the desktop hover. */
  .link-underline { align-self: flex-start; }
  .link-underline::after { transform: scaleX(1); }
  /* On tap the link stretches to the full card width and the line sweeps across it */
  .link-underline.is-sweep { align-self: stretch; }
  .link-underline.is-sweep::after { animation: ctaSweep 0.7s var(--ease); }

  /* CONTACT PAGE — form first (framed, like composing a message), then the
     personal note, then the ways-to-reach block. */
  .contact { display: flex; flex-direction: column; gap: var(--s-2); }
  /* Form as one compact designed card: name + phone share a row, rest full width */
  .contact__form {
    order: 0; display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--s-2) var(--s-3); align-content: start;
    border: 1px solid var(--sand); border-radius: 14px;
    background: rgba(239, 232, 223, 0.4); /* whisper of --bone over the page */
    padding: var(--s-3);
  }
  .contact__form .field { margin-bottom: 0; } /* grid gap handles spacing */
  .contact__form .field:nth-child(n + 3),   /* email, select, message */
  .contact__form .btn,
  .contact__form #formNote { grid-column: 1 / -1; }
  .contact__form .field label { margin-bottom: 2px; }
  .contact__form .field input,
  .contact__form .field select { padding: 0.3em 0; }
  .contact__form .field textarea { min-height: 44px; padding: 0.3em 0; }
  /* Select styled like the other line-fields, with a small chevron */
  .contact__form .field select {
    -webkit-appearance: none; appearance: none; background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238B8078' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left center; background-size: 11px;
    padding-inline-end: 1.3em;
  }
  .contact__form .btn { width: 100%; margin-top: var(--s-1); }
  .contact__aside { order: 1; display: flex; flex-direction: column; }
  .contact__aside .split__text { order: -1; margin-top: var(--s-1) !important; } /* note hugs the form */
  .contact__aside .eyebrow { order: 0; margin-top: var(--s-5); }               /* clear gap before contact block */
  .contact__lines { order: 1; margin-top: var(--s-2); }

  /* FOOTER — brand full width; nav + contact as two side-by-side columns */
  .footer { padding-block: var(--s-5) var(--s-4); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .footer__tag { max-width: none; }
  .footer__col h4 { margin-bottom: var(--s-2); }
  .footer__col a { padding-block: 0.2em; }
  .footer__seal-wrap { margin-top: var(--s-4); }
  .footer__base { margin-top: var(--s-4); padding-top: var(--s-2); }
}
