/* ============================================================
   YILI ART CHILDREN'S ART STUDIO
   Deep warm brown edition, adapted from the supplied YiLi Art references.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --background: #FAF7ED;
  --cream:      var(--background);
  --surface:    #FAF7ED;
  --cream-2:    var(--surface);
  --cream-3:    var(--surface);
  --card:       var(--surface);
  --art-pink:   #F1A2BD;
  --art-yellow: #FFDA44;
  --art-red:    #F24C48;
  --art-blue:   #4D9AD3;
  --art-green:  #58AF64;
  --red:        var(--art-red);
  --red-deep:   #382C26;
  --red-hover:  #2C211C;
  --yellow:     var(--art-yellow);
  --blue:       var(--art-blue);
  --blue-deep:  #382C26;
  --heading:    #382C26;
  --ink-on-art: #261B15;  /* At least 4.5:1 on all five supplied art colors. */
  --blue-tls:   #339BCE;  /* Three-Levels blue (the .ai uses a slightly different blue here) */
  --ink:        #51483F;
  --ink-print:  var(--heading);
  --ink-soft:   #685C52;
  --border:     #D7D1C4;
  --on-action:  #FAF7ED;

  --type-h1: clamp(2.25rem, 4.5vw, 3.5rem);
  --type-h2: clamp(1.875rem, 3.5vw, 2.75rem);
  --type-h3: clamp(1.375rem, 2.2vw, 1.75rem);
  --type-body: 1.0625rem;
  --type-aux: 0.875rem;
  --button-h: 48px;
  --dot-yellow: #F5C91F;  /* muted legend yellow from the .ai (not the brand --yellow) */

  --sans: 'DM Sans', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --hand: var(--sans);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 100px;
  --maxw: 1176px;
  --shadow: 0 16px 36px -22px rgba(74, 40, 16, 0.22);  /* soft — the brochure is flat print */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-size: var(--type-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* faint paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }

/* ---------- Decorative dots ("background wall" motif) ---------- */
.dot {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.dot--red    { background: var(--red); }
.dot--yellow { background: var(--yellow); }
.dot--blue   { background: var(--blue); }
.float       { animation: float 6.5s var(--ease) infinite; }
.float--slow { animation-duration: 9.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 700; font-size: var(--type-aux); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.1rem; line-height: 1.6; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--cream { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }

.h-section {
  font-weight: 700;
  font-size: var(--type-h2);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--heading);
}
.h-section--cream { color: var(--heading); font-size: var(--type-h2); line-height: 1.2; font-weight: 700; }

.prose p { font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
.prose + .prose { margin-top: 1.1rem; }

.pull {
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  padding-left: 1.1rem;
  border-left: 4px solid var(--yellow);
}

.head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 78px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow::before { display: none; }
.head__desc { margin-top: 1.2rem; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.95em 1.75em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--solid { background: var(--red); color: var(--cream); box-shadow: 0 12px 26px -14px rgba(248,57,31,0.9); }
.btn--solid:hover { background: var(--red-deep); transform: translateY(-3px); box-shadow: 0 18px 32px -14px rgba(248,57,31,0.95); }
.btn--ghost { border-color: var(--red); color: var(--red); }
.btn--ghost:hover { background: var(--red); color: var(--cream); transform: translateY(-3px); }
.btn--lg { padding: 1.1em 2.3em; font-size: 1.06rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--1 { transition-delay: 0.12s; }
.reveal--2 { transition-delay: 0.24s; }
.reveal--3 { transition-delay: 0.36s; }
.reveal--4 { transition-delay: 0.48s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(253,245,229,0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(214,45,22,0.1), 0 12px 30px -24px rgba(74,40,16,0.5);
}
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.6rem; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--ink); opacity: 0.82; transition: opacity 0.2s, color 0.2s; }
.nav__links a:hover { opacity: 1; color: var(--red); }
.nav__cta { padding: 0.6em 1.3em; border-radius: 999px; background: var(--red); color: var(--on-action) !important; opacity: 1 !important; font-weight: 600; transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
.nav__cta:hover { background: var(--red-deep); transform: translateY(-2px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 30px; background: none; border: 0; cursor: pointer; padding: 4px; }
.nav__hamb > span { width: 100%; height: 2.5px; border-radius: 3px; background: var(--red); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ============================================================
   HERO — the dot "background wall"
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 40px) 24px 80px; overflow: hidden; }
.hero__wall {
  position: absolute; inset: 0; z-index: 0;
  /* vector dot wall (rebuilt from the brand background-template PDF's circle
     coordinates, brand-token colours) — crisp at any DPI, no scan grain */
  background: url("yiliart_image/bg-wall.svg") center / cover no-repeat;
  will-change: transform;
}
.hero__wall::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 52% at 50% 46%, rgba(253,245,229,0.78) 0%, rgba(253,245,229,0.18) 60%, transparent 100%);
}
.hero__inner { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 1280px; min-width: 0; }
.hero__eyebrow { display: inline-block; padding: 0.55em 1.15em; border-radius: 999px; background: rgba(253,245,229,0.8); color: var(--ink-soft); font-weight: 600; font-size: var(--type-aux); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.6rem; box-shadow: 0 6px 18px -10px rgba(74,40,16,0.4); line-height: 1.6; }
.hero__title { font-weight: 700; font-size: var(--type-h1); line-height: 1.15; letter-spacing: -0.03em; color: var(--heading); }
.hero__title .hl { display: block; white-space: nowrap; }
.hero__accent { position: relative; display: inline-block; }
.scribble { position: absolute; left: -2%; bottom: -0.28em; width: 104%; height: 0.4em; overflow: visible; }
.scribble path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 360; stroke-dashoffset: 360; }
.hero.is-drawn .scribble path { transition: stroke-dashoffset 1s var(--ease) 0.5s; stroke-dashoffset: 0; }
/* blue full-stop after the headline — the brochure cover ends "SPACE" with a blue dot */
.hero__title .tdot { display: inline-block; width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--blue); margin-left: 0.1em; }
.hero__sub { margin: 1.6rem auto 0; max-width: 560px; font-size: var(--type-body); font-weight: 400; color: var(--ink); line-height: 1.6; }
.hero__actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 1.6rem; font-family: var(--hand); font-size: 1.5rem; color: var(--heading); line-height: 1.6; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--red); border-radius: 999px; display: flex; justify-content: center; padding-top: 7px; opacity: 0.7; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--red); animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { background: var(--red); color: var(--cream); padding: 1.15rem 0; overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.02em; }
.marquee__track i { width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); flex: none; }
.marquee__track i:nth-child(8n+4) { background: var(--blue); }
.marquee__track i:nth-child(8n+2) { background: var(--cream); }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ============================================================
   FRAMED PHOTOS
   ============================================================ */
.frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.frame--main { aspect-ratio: 4 / 5; }
.frame--main img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   IMAGE DIVIDER
   ============================================================ */
.divider { position: relative; height: clamp(280px, 42vw, 520px); overflow: hidden; }
.divider img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   PROGRAMS — three levels
   ============================================================ */
.progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 36px); }
.prog {
  background: var(--card); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.prog:hover { transform: translateY(-8px); box-shadow: 0 36px 70px -30px rgba(74,40,16,0.42); }
.prog__num {
  background: var(--c); color: var(--cream);
  font-weight: 800; font-size: clamp(3rem, 5vw, 4rem); line-height: 1;
  padding: 0.42em 0.6em; display: flex; align-items: center; gap: 0.16em;
}
.prog__num i { width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--cream); display: block; align-self: flex-end; margin-bottom: 0.12em; }
.prog__img { height: 210px; overflow: hidden; }
.prog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.prog:hover .prog__img img { transform: scale(1.06); }
.prog__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.prog__age { font-weight: 600; font-size: var(--type-aux); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.6; }
.prog__title { font-weight: 600; font-size: var(--type-h3); line-height: 1.3; color: var(--heading); margin: 0.5rem 0 0.7rem; }
.prog__desc { font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1.3rem; }
.tags li { font-size: 0.76rem; font-weight: 500; padding: 0.4em 0.85em; border-radius: 999px; border: 1.5px solid var(--border); color: var(--ink); }
.prog__more { display: inline-block; margin-top: 1.1rem; font-weight: 600; color: var(--red); }
.prog__more:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the yellow card's header numeral flips to ink (cream on yellow washes out) */
.prog[style*="--yellow"] .prog__num { color: var(--ink-print); }
.prog[style*="--yellow"] .prog__num i { background: var(--ink-print); }

/* ============================================================
   THEMES
   ============================================================ */
.themes { background: var(--cream-2); }
/* Home collaborations band retains its deep brand blue background. */
.collab { background: var(--card); border-top: 3px solid var(--blue); }
.collab .head__desc { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }

/* franchise target-city chips (tri-colour accents) */
.cities { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; margin-top: 1.8rem; padding: 0; }
.city { border: 2.5px solid var(--c); color: var(--ink); font-weight: 700; font-size: 1.02rem; padding: 0.55em 1.25em; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }

/* birthday-party inclusions list */
.checklist--party { max-width: 620px; margin: 0.4rem auto 0; }
.checklist--party li { font-size: 1.05rem; padding: 0.35em 0; }
.themes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 38px); }
.theme { background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.35s var(--ease); }
.theme:hover { transform: translateY(-6px); }
.theme__img { height: 188px; overflow: hidden; }
.theme__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.theme:hover .theme__img img { transform: scale(1.07); }
/* theme names in condensed print-black caps beside a big colour dot — the brochure p.7 legend */
.theme h3 { display: flex; align-items: center; gap: 0.5em; font-family: 'Anton', var(--sans); font-weight: 600; font-size: var(--type-h3); letter-spacing: 0.015em; text-transform: uppercase; color: var(--heading); margin: 20px 24px 0; line-height: 1.3; }
.theme h3 .dot--inline { width: 19px; height: 19px; border-radius: 50%; background: var(--c); flex: none; }
.theme p { font-size: var(--type-body); color: var(--ink); margin: 0.5rem 24px 26px; line-height: 1.6; }

/* ============================================================
   GALLERY STRIP
   ============================================================ */
.gallery { padding: clamp(40px, 6vw, 70px) 0; overflow: hidden; }
.gallery__track { display: flex; gap: 18px; width: max-content; animation: gallery 40s linear infinite; }
.gallery__track .photo-link { display: block; flex: none; }
.gallery__track img { height: clamp(150px, 18vw, 210px); width: auto; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); }
.gallery:hover .gallery__track, .gallery:focus-within .gallery__track,
.photo-viewer-open .gallery__track { animation-play-state: paused; }
@keyframes gallery { to { transform: translateX(calc(-50% - 9px)); } }

/* ============================================================
   CTA — background wall again
   ============================================================ */
.cta { position: relative; padding: clamp(90px, 13vw, 160px) 0; overflow: hidden; text-align: center; }
.cta__wall { position: absolute; inset: 0; z-index: 0; background: url("yiliart_image/bg-wall.svg") center / cover no-repeat; }
.cta__wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(253,245,229,0.82) 0%, rgba(253,245,229,0.3) 70%, transparent 100%); }
.cta__inner { position: relative; z-index: 2; }
.cta__dots { display: flex; gap: 0.7rem; justify-content: center; margin-bottom: 1.8rem; }
.cta__dots i { width: 16px; height: 16px; border-radius: 50%; }
.cta__dots i:nth-child(1) { background: var(--red); }
.cta__dots i:nth-child(2) { background: var(--yellow); }
.cta__dots i:nth-child(3) { background: var(--blue); }
.cta__title { font-weight: 700; font-size: var(--type-h2); line-height: 1.2; letter-spacing: -0.025em; color: var(--heading); }
.cta__sub { margin: 1.4rem auto 0; max-width: 540px; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
.cta__actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: clamp(60px, 8vw, 90px) 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.6fr; gap: clamp(30px, 4vw, 56px); }
.footer__tag { margin-top: 0.8rem; font-size: 1.5rem; max-width: 26ch; color: var(--heading); line-height: 1.6; }
.footer__col h4 { font-weight: 700; font-size: var(--type-aux); letter-spacing: 0.14em; text-transform: uppercase; color: var(--heading); line-height: 1.6; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a { transition: color 0.2s, opacity 0.2s; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-top: clamp(40px, 5vw, 60px); padding-top: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(253,244,229,0.97); backdrop-filter: blur(14px);
    padding: 12px 28px 22px; gap: 4px;
    box-shadow: 0 24px 40px -24px rgba(74,40,16,0.5);
    /* the panel must scroll itself: with 7 items + CTA plus an expanded
       accordion it grows taller than the screen, and the nav is fixed */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .nav__links.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav__cta { text-align: center; margin-top: 0.8rem; }

  .progs { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .themes__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .hero { padding-inline: 20px; }
  .hero__title { letter-spacing: -0.02em; font-size: var(--type-h1); color: var(--heading); line-height: 1.15; font-weight: 700; }
  .themes__grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; max-width: 320px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

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

/* ============================================================
   MULTI-PAGE ADDITIONS (generated site)
   ============================================================ */

/* ---- Subpage: keep nav solid over coloured heroes ---- */
.subpage .nav { background: rgba(253,245,229,0.92); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(214,45,22,0.08), 0 10px 30px -24px rgba(74,40,16,0.5); }

/* ---- Nav dropdowns ---- */
.has-sub { position: relative; }
.nav__top { display: inline-flex; align-items: center; gap: 0.35em; }
.caret { width: 9px; height: 6px; transition: transform 0.25s var(--ease); opacity: 0.7; }
@media (min-width: 981px) {
  .has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
}
.subnav {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px);
  min-width: 230px; padding: 10px; margin-top: 6px; z-index: 60;
  background: rgba(255,252,244,0.98); backdrop-filter: blur(16px);
  border-radius: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
/* invisible bridge across the gap so moving from the trigger to the panel keeps it open */
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
/* hover/focus reveal is a DESKTOP behaviour only — on mobile the tapped link keeps
   focus, and an unscoped :focus-within would re-apply the centred translate(-50%)
   to the static accordion, shoving the whole submenu off to the left */
@media (min-width: 981px) {
  .has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 4px); }
}
.subnav a { display: block; padding: 0.6em 0.9em; border-radius: 10px; font-size: 0.92rem; color: var(--ink); opacity: 0.85; white-space: nowrap; }
.subnav a:hover { background: rgba(248,57,31,0.1); color: var(--red); opacity: 1; }
.nav__links li.is-active > a, .nav__links li.is-active > .nav__top { color: var(--red); opacity: 1; }
.nav__cta-li { margin-left: 0.2rem; }

/* ---- Real logo (from yili art-logo-eng.pdf) ---- */
.brand__logo { height: 42px; width: auto; display: block; }
.footer__logo { height: 50px; width: auto; display: block; margin-bottom: 14px; }
@media (max-width: 560px) { .brand__logo { height: 38px; } }

/* ---- Subhero (coloured page banners) ---- */
.subhero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 66px) 0 66px; }
.subhero__inner { position: relative; z-index: 2; max-width: 880px; }
.subhero__big { position: absolute; right: -1%; top: 50%; transform: translateY(-50%); z-index: 0; font-weight: 800; font-size: clamp(7rem, 24vw, 20rem); line-height: 0.78; letter-spacing: -0.04em; pointer-events: none; user-select: none; }
.crumb { display: flex; align-items: center; gap: 0.55em; font-size: 0.82rem; font-weight: 500; margin-bottom: 1.1rem; }
.crumb a { opacity: 0.85; } .crumb a:hover { opacity: 1; text-decoration: underline; }
.crumb i { opacity: 0.4; font-style: normal; }
.subhero__eyebrow { font-weight: 700; font-size: var(--type-aux); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; color: var(--ink-soft); line-height: 1.6; }
.subhero__title { font-weight: 700; font-size: var(--type-h1); line-height: 1.15; letter-spacing: -0.03em; color: var(--heading); }
.subhero__sub { margin-top: 1.3rem; max-width: 620px; font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
.subhero__tag { margin-top: 1.1rem; font-family: var(--hand); font-size: 1.7rem; }
.subhero__actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Reading surfaces stay light; brand colors are reserved for art and actions. */
.subhero--red, .subhero--blue, .subhero--yellow, .subhero--cream {
  background: var(--cream); border-bottom: 1px solid var(--border);
}

.subhero--red, .subhero--blue { color: var(--cream); }
.subhero--red .crumb, .subhero--blue .crumb { color: rgba(255,250,238,0.96); }
.subhero--red .subhero__eyebrow, .subhero--blue .subhero__eyebrow { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.subhero--red .subhero__title, .subhero--blue .subhero__title { color: var(--heading); font-size: var(--type-h1); line-height: 1.15; font-weight: 700; }
.subhero--red .subhero__sub, .subhero--blue .subhero__sub { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.subhero--red .subhero__big, .subhero--blue .subhero__big { color: rgba(255,255,255,0.13); }
.subhero--red .subhero__tag, .subhero--blue .subhero__tag { color: var(--yellow); }

.subhero--yellow .subhero__eyebrow { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.subhero--yellow .subhero__title { color: var(--heading); font-size: var(--type-h1); line-height: 1.15; font-weight: 700; }
.subhero--yellow .subhero__sub { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.subhero--yellow .crumb { color: var(--ink); }
.subhero--yellow .subhero__big { color: rgba(44,33,24,0.08); }

.subhero--cream .subhero__eyebrow { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.subhero--cream .subhero__title { color: var(--heading); font-size: var(--type-h1); line-height: 1.15; font-weight: 700; }
.subhero--cream .subhero__sub { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.subhero--cream .crumb { color: var(--ink); }
.subhero--cream .subhero__big { color: rgba(248,57,31,0.10); }
.subhero--cream .subhero__tag { color: var(--blue); }

.subhero--red .dot, .subhero--blue .dot, .subhero--yellow .dot { display: none; }

.btn--cream { background: var(--cream); color: var(--red); }
.btn--cream:hover { background: #fff; transform: translateY(-3px); }

/* ---- Generic content helpers ---- */
.narrow { max-width: 820px; }
.center { text-align: center; }
.prose p + p { margin-top: 1.1rem; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
/* Lead paragraphs share the warm gray body text token. */
.prose--lead p { font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
.prose--ink p { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.story-lead { font-family: var(--hand); font-size: 1.5rem; line-height: 1.6; color: var(--heading); margin: 1.2rem 0 0.6rem; }
.prose-cream { color: var(--ink); font-size: 1.12rem; line-height: 1.7; max-width: 640px; margin-inline: auto; }
.link-more { display: inline-block; margin-top: 1.4rem; font-weight: 600; color: var(--red); }
.link-more:hover { text-decoration: underline; }
.center-link { text-align: center; margin-top: 2.4rem; }
.mini-head { font-weight: 600; font-size: var(--type-h3); color: var(--heading); margin: 1.6rem 0 0.6rem; line-height: 1.3; }
.note { margin-top: 2rem; font-size: 0.9rem; color: var(--ink-soft); background: var(--cream-2); border-radius: 14px; padding: 16px 20px; }
.tri { display: inline-flex; gap: 5px; margin-left: 0.5em; vertical-align: middle; }
.tri i { width: 8px; height: 8px; border-radius: 50%; }
.tri i:nth-child(1) { background: var(--red); }
.tri i:nth-child(2) { background: var(--yellow); }
.tri i:nth-child(3) { background: var(--blue); }
.placeholder { background: #FFF7E0; border: 1.5px dashed var(--yellow); color: var(--ink); border-radius: 14px; padding: 14px 20px; font-size: 0.94rem; margin-bottom: 2rem; }
.placeholder strong { color: var(--ink); }

/* ============================================================
   Brochure chapter language — full-bleed colour bands with a
   giant knockout numeral (cf. brochure pp. 4/6/7), thin red
   rules (p. 3) and vertical side-rail captions (pp. 10/14)
   ============================================================ */
.rule { border: 0; height: 1px; background: rgba(214,45,22,0.4); margin-top: clamp(44px, 6vw, 72px); }
.rail {
  position: absolute; top: 50%; right: 22px; transform: translateY(-50%);
  writing-mode: vertical-rl; white-space: nowrap;
  font-weight: 600; font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.6; pointer-events: none; user-select: none;
}
/* 1320 = maxw 1240 + padding; below that the rail can graze full-width .split text */
@media (max-width: 1320px) { .rail { display: none; } }

/* red chapter band (home philosophy) */
.band--red { background: var(--card); color: var(--ink); border-block: 1px solid var(--border); }
.band__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 96px); align-items: start; }
.band__num {
  font-family: 'Baloo 2', var(--sans);
  font-weight: 800; font-size: clamp(7rem, 19vw, 17rem); line-height: 0.68;
  letter-spacing: -0.05em; color: var(--cream);
  margin-top: -0.05em;
}
.prose--band p { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.band--red .tri i:nth-child(1) { background: var(--cream); }
.band--red .belief { justify-content: flex-start; margin: 2.6rem 0 0; }
.band--red .belief__card { background: var(--cream); color: var(--red); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.45); }
.band__more { margin-top: 2.2rem; }
.band__more a { font-weight: 600; color: var(--cream); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.band__more a:hover { color: #fff; border-bottom-color: #fff; }

/* yellow band (home programs head, about goal) — ink text, as printed on yellow */
.band--yellow { background: var(--card); border-top: 3px solid var(--yellow); }
.band--yellow .eyebrow { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.band--yellow .h-section { color: var(--heading); font-size: var(--type-h2); line-height: 1.2; font-weight: 700; }
.band--yellow .head__desc, .band--yellow .prose p { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.band--yellow .link-more { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* tri dots vanish on a same-colour band — swap the matching dot to cream */
.band--yellow .tri i:nth-child(2) { background: var(--cream); }
.collab .tri i:nth-child(3) { background: var(--cream); }

/* cream rounded chip riding a yellow band (brochure p. 8 header) */
.band-chip {
  background: var(--cream); border-radius: 36px;
  max-width: 660px; margin-inline: auto; text-align: center;
  padding: clamp(30px, 5vw, 52px) clamp(24px, 5vw, 58px);
  box-shadow: 0 22px 48px -28px rgba(74,40,16,0.4);
}
.band-chip .eyebrow::before { display: none; }
.band-chip .eyebrow { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.band-chip .h-section { color: var(--heading); font-size: var(--type-h2); line-height: 1.2; font-weight: 700; }
.band-chip .head__desc { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }

/* cream keyline for photos sitting on solid colour bands */
.frame--cream { border: 8px solid var(--cream); }

@media (max-width: 980px) {
  .band__grid { grid-template-columns: 1fr; gap: 10px; }
  .band__num { font-size: clamp(5rem, 18vw, 8rem); margin-bottom: 0.5rem; }
}

/* ============================================================
   Home A·P·L·U·S rosette — full-size measured reconstruction:
   five print-exact blob beziers, one inline SVG per bubble; each
   bubble is its own inline-size container so letters/copy (real DOM
   text at blob-local .ai coordinates, in cqi) track their blob.
   ============================================================ */
.aplus { background: var(--cream); }
/* Retained diagrams use their original art colors and proportional typography. */
.rosette, .tls { --ink: #000000; --ink-print: #000000; }
.tls { --red: #F8391F; --yellow: #F9D100; }
.rosette {
  position: relative; width: 100%; max-width: 1020px; margin: 0 auto;
  aspect-ratio: 349.4 / 348.6; container-type: inline-size;
}
.rosette__list { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.bub {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h);
  container-type: inline-size; transition: transform 0.35s ease;
}
/* print painter order: A on top, S/P mid, U/L underneath */
.bub--a { z-index: 5; }
.bub--p, .bub--s { z-index: 4; }
.bub--u, .bub--l { z-index: 3; }
.bub:hover { transform: translateY(-0.8%) scale(1.02); }
/* overflow visible: tails extend past each bubble's body bbox */
.bub svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.bub svg path { stroke: none; }
.bub__ltr {
  position: absolute; left: var(--lx); top: var(--ly); transform: translate(-50%, -50%);
  font-family: 'Baloo 2', var(--sans); font-weight: 800; line-height: 1;
  font-size: var(--lfs); color: var(--ink-print);
}
.bub__txt { position: absolute; left: var(--tx); top: var(--ty); width: var(--tw); color: var(--ink-print); }
.bub__txt h3 {
  margin: 0; font-family: 'Baloo 2', var(--sans); font-weight: 700; line-height: 1.05;
  font-size: var(--hfs); letter-spacing: 0.01em; color: var(--ink-print);
}
.bub__txt p { margin: 0.45em 0 0; font-weight: 500; font-size: var(--pfs); line-height: 1.34; }
/* P: as printed, the first lines stay narrow beside the glyph, then run full
   width beneath it — the float spacer clears the letter box */
.bub--p .bub__txt p::before { content: ""; float: right; width: 27%; height: 5.6em; }

/* wheat mark alone in the cream hole (sized by height — the PNG is 264×678);
   centre sits a touch below 50% so the ear clears the red A bubble above */
.rosette__mark {
  position: absolute; left: 50%; top: 52.6%; transform: translate(-50%, -50%);
  height: 15.2cqi; width: auto; z-index: 6; pointer-events: none;
}

@media (forced-colors: active) {
  .bub svg path, .bub__ltr, .bub__txt { forced-color-adjust: none; }
}

/* Keep all five bubbles and the center mark together at every screen size. */
@media (max-width: 700px) {
  .bub:hover { transform: none; }
}

/* ---- Split layout ---- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split__media { position: relative; }
.split--reverse .split__media { order: 2; }
.split--reverse .split__text { order: 1; }
.split__text .pull { margin-top: 1.6rem; }

/* ============================================================
   Three Levels Course System — PK rebuild (Team A geometry):
   real <table> laid over an aria-hidden CSS circle stack. Every
   circle, row height and separator is the print vector coordinate,
   in cqi (container = .tls-wrap, 1cqi = 1% of the 1120px frame).
   ============================================================ */
.tls { background: var(--yellow); overflow: clip; }

/* visually-hidden caption for screen readers / SEO */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the container lives on the WRAPPER — .tls-frame's own cqi height must
   resolve against an ancestor container, never against itself */
.tls-wrap { max-width: 1120px; margin: 0 auto; container-type: inline-size; }
.tls-frame { position: relative; height: 119.92cqi; }  /* print crop: towers clip flat at the band edge */

/* ---- tower art (decorative circle stack, print coordinates) ---- */
.tls-art { position: absolute; inset: 0; pointer-events: none; }
.tls-art i { position: absolute; display: block; width: var(--d); aspect-ratio: 1; left: var(--x); top: var(--y); border-radius: 50%; }
.tls-art .t1 { background: var(--cream); }
.tls-art .t2 { background: var(--red); }
.tls-art .t3 { background: var(--blue-tls); }
/* thin yellow cuts across the towers (the printed row separators) */
.tls-cut { position: absolute; left: 50%; transform: translateX(-50%); width: 100vw; top: var(--y); height: clamp(2px, 0.36cqi, 4px); background: var(--yellow); }

/* ---- the real table (transparent cells riding the art) ---- */
.tls-table { position: relative; width: 100%; border-collapse: collapse; table-layout: fixed; height: 119.41cqi; }
.tls-table th[scope="row"] {
  text-align: left; vertical-align: middle; padding: 0 0.8cqi 0 1.8cqi;
  font-weight: 700; font-size: clamp(11px, 1.72cqi, 20px); line-height: 1.25; color: var(--ink-print);
}
.tls-table tr.rw-level th[scope="row"] { vertical-align: bottom; padding-bottom: 1.6cqi; }
.tls-table td {
  vertical-align: middle; text-align: center; padding: 0.4cqi 2.2cqi;
  font-weight: 500; font-size: clamp(12px, 1.95cqi, 22px); line-height: 1.3;
}
.tls-table .c1 { color: var(--ink-print); }
.tls-table .c2, .tls-table .c3 { color: var(--ink); }
/* row heights — the print rhythm (separators at 45.83/53.12/64.52/77.66/92.50/119.41cqi) */
.rw-level  { height: 45.83cqi; }
.rw-age    { height: 7.29cqi; }
.rw-paint  { height: 11.40cqi; }
.rw-focus  { height: 13.14cqi; }
.rw-method { height: 14.84cqi; }
.rw-tics   { height: 26.91cqi; }

/* "level N" chips ride the top bead of each tower (frame coordinates) */
.tls-chip { position: absolute; display: flex; align-items: baseline; gap: 0.14em; transform: translate(-50%, -50%); line-height: 1; white-space: nowrap; z-index: 1; }
.tls-chip .w { font-weight: 700; font-size: 3.85cqi; letter-spacing: 0.01em; }
.tls-chip .n { font-family: 'Baloo 2', var(--sans); font-weight: 800; font-size: 11.6cqi; }
.tls-chip--1 { left: 35.42cqi; top: 33.6cqi; color: var(--ink-print); }
.tls-chip--1 .n { font-size: 9.7cqi; }  /* L1 numeral a touch smaller, as printed */
.tls-chip--2 { left: 60.9cqi; top: 23.2cqi; color: var(--ink); }
.tls-chip--3 { left: 86.25cqi; top: 13.7cqi; color: var(--ink); }

/* teaching characteristics — left-aligned bulleted list */
.tls-tics { display: inline-block; text-align: left; font-weight: 500; font-size: clamp(11px, 1.62cqi, 18px); line-height: 1.42; }
/* Keep longer copy clear of the next tower's overlapping arc. */
@media (min-width: 701px) {
  .tls-table .rw-method .c1, .tls-table .rw-method .c2,
  .tls-table .rw-tics .c1, .tls-table .rw-tics .c2 { padding-right: 6cqi; }
}
.tls-tics li { padding-left: 0.85em; position: relative; }
.tls-tics li::before { content: "·"; position: absolute; left: 0; font-weight: 700; }

/* ============================================================
   TLS mobile ≤700px — per-level cards with bead crowns
   (grid transposition of the same table, zero duplication)
   ============================================================ */
@media (max-width: 700px) {
  .tls { padding: 30px 16px 44px; }
  .tls-wrap { max-width: 430px; }
  .tls-frame { height: auto; }
  .tls-art { display: none; }
  .tls-table { display: block; height: auto; }
  .tls-table colgroup { display: none; }
  .tls-table tbody { display: grid; grid-template-columns: 100%; row-gap: 3px; }
  .tls-table tr { display: contents; }
  /* keep row headers in the accessibility tree (sr-only, not display:none) */
  .tls-table th[scope="row"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .tls-table td, .tls-table th[scope="col"] { display: block; height: auto; padding: 14px 22px; font-size: 14px; }
  .tls-table .c1 { background: var(--cream); color: var(--ink-print); }
  .tls-table .c2 { background: var(--red); color: var(--ink); }
  .tls-table .c3 { background: var(--blue-tls); color: var(--ink); }
  /* transpose: card 1 rows 1-6, card 2 rows 7-12, card 3 rows 13-18 */
  .rw-level .c1 { grid-row: 1; }  .rw-age .c1 { grid-row: 2; }  .rw-paint .c1 { grid-row: 3; }
  .rw-focus .c1 { grid-row: 4; }  .rw-method .c1 { grid-row: 5; } .rw-tics .c1 { grid-row: 6; }
  .rw-level .c2 { grid-row: 7; }  .rw-age .c2 { grid-row: 8; }  .rw-paint .c2 { grid-row: 9; }
  .rw-focus .c2 { grid-row: 10; } .rw-method .c2 { grid-row: 11; } .rw-tics .c2 { grid-row: 12; }
  .rw-level .c3 { grid-row: 13; } .rw-age .c3 { grid-row: 14; } .rw-paint .c3 { grid-row: 15; }
  .rw-focus .c3 { grid-row: 16; } .rw-method .c3 { grid-row: 17; } .rw-tics .c3 { grid-row: 18; }
  /* card head = dome + two-bead crown */
  .rw-level .c1, .rw-level .c2, .rw-level .c3 {
    position: relative; margin-top: 64px; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    padding: 34px 20px 12px; text-align: center;
  }
  .rw-level .c2, .rw-level .c3 { margin-top: 72px; }
  .rw-level th::before, .rw-level th::after,
  .rw-level .c1::before, .rw-level .c1::after,
  .rw-level .c2::before, .rw-level .c2::after,
  .rw-level .c3::before, .rw-level .c3::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%; background: inherit; }
  .rw-level .c1::before, .rw-level .c2::before, .rw-level .c3::before { width: 52px; height: 52px; top: -30px; }
  .rw-level .c1::after, .rw-level .c2::after, .rw-level .c3::after { width: 32px; height: 32px; top: -52px; }
  .rw-tics td { border-radius: 0 0 22px 22px; padding-bottom: 22px; }
  .tls-chip { position: static; display: inline-flex; transform: none; }
  .tls-chip .w { font-size: 15px; }
  .tls-chip .n, .tls-chip--1 .n { font-size: 46px; }
  /* stacked data labels */
  td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; margin-bottom: 3px; }
  .tls-tics { font-size: 14px; line-height: 1.5; }
}

/* ---- Course comparison table ---- */
.table-wrap { overflow-x: auto; border-radius: 20px; box-shadow: var(--shadow); background: var(--card); }
.course-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.course-table th, .course-table td { text-align: left; padding: 18px 20px; vertical-align: top; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
.course-table thead th { background: var(--ink); color: var(--cream); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; }
.course-table tbody tr { border-top: 1px solid var(--border); }
.course-table tbody th { font-weight: 700; }
.lvl-pill { display: inline-block; background: var(--c); color: var(--cream); font-size: 0.68rem; font-weight: 700; padding: 0.25em 0.7em; border-radius: 999px; margin-bottom: 0.45em; }
.course-table tbody th a { display: block; color: var(--heading); font-size: 1.05rem; }
.course-table .chars { color: var(--ink); line-height: 1.6; font-size: var(--type-body); }

/* ---- Program detail spec / checklist ---- */
.spec { display: flex; flex-direction: column; gap: 0; margin: 1.6rem 0; }
.spec > div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.spec dt { font-weight: 600; font-size: var(--type-aux); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.6; }
.spec dd { color: var(--ink); }
.checklist { display: flex; flex-direction: column; gap: 0.7rem; }
.checklist li { display: flex; align-items: center; gap: 0.7em; font-size: 1rem; color: var(--ink); }
.tick { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.subpage-cta { margin-top: 2rem; }
.pager-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.pager { display: inline-block; font-weight: 600; color: var(--red); border: 2px solid rgba(248,57,31,0.45); border-radius: 999px; padding: 0.6em 1.25em; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.pager:hover { background: var(--red); color: var(--cream); }
.pager--next { margin-left: auto; }

/* ---- About: principles — brochure p.3 numbered rows with hairline rules ---- */
.principles { max-width: 900px; margin-inline: auto; }
.principle {
  display: grid; grid-template-columns: clamp(88px, 12vw, 150px) 1fr;
  gap: clamp(20px, 5vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 44px) 6px;
  border-top: 1px solid var(--border);
}
.principle:last-child { border-bottom: 1px solid var(--border); }
.principle__num {
  display: block; font-weight: 800; font-size: clamp(3.8rem, 7vw, 6rem);
  line-height: 0.78; letter-spacing: -0.04em; color: var(--c); text-align: left;
}
.principle h3 { font-weight: 600; font-size: var(--type-h3); color: var(--heading); margin: 0 0 0.5rem; line-height: 1.3; }
.principle p { font-size: var(--type-body); color: var(--ink); max-width: 56ch; line-height: 1.6; }
.diff { background: var(--blue-deep); color: var(--cream); }

/* ---- Teaching method: A P S U L ---- */
.apsul-list { display: flex; flex-direction: column; gap: 18px; }
.apsul { display: flex; gap: 24px; align-items: flex-start; background: var(--card); border-radius: 22px; padding: 28px 30px; box-shadow: var(--shadow); border-left: 6px solid var(--c); }
.apsul__badge { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--c); color: var(--cream); font-weight: 800; font-size: 1.8rem; display: grid; place-items: center; }
.apsul__body h3 { font-weight: 600; font-size: var(--type-h3); color: var(--heading); margin-bottom: 0.3rem; line-height: 1.3; }
.apsul__body p { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }

/* ---- Philosophy: belief / bigquote ---- */
.belief { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 3rem 0; }
.belief__card { background: var(--c); color: var(--cream); border-radius: 24px; padding: 26px 46px 30px; font-weight: 800; font-size: 2rem; text-align: center; box-shadow: var(--shadow); }
/* the stacked "I" is big, like the brochure's "I / Believe" lockup — not a stray tick */
.belief__card span { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
.belief__card--yellow { color: var(--ink-print); }
.bigquote { font-weight: 600; font-size: 1.5rem; line-height: 1.6; color: var(--heading); text-align: center; max-width: 760px; margin: 0 auto; }
.bigquote em { font-style: italic; color: var(--blue); }

/* ---- Founder creds ---- */
.creds-band { background: var(--cream-2); padding: clamp(30px, 4vw, 46px) 0; }
.creds { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: center; }
.cred { display: flex; flex-direction: column; gap: 0.25rem; text-align: center; font-weight: 600; color: var(--heading); }
.cred span { font-weight: 600; font-size: var(--type-aux); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.6; }

/* ---- Gallery grid ---- */
.gallery-grid { columns: 3; column-gap: 18px; }
.gcell { break-inside: avoid; margin: 0 0 18px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.gcell img { width: 100%; display: block; }
.gcell[hidden] { display: none; }
.gcell figcaption { padding: 14px 18px 17px; background: var(--card); color: var(--ink-soft); font-size: var(--type-aux); font-weight: 500; line-height: 1.6; }
.photo-link { display: block; cursor: zoom-in; }
.photo-link:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; border-radius: 14px; }
.gallery-controls { margin-bottom: 32px; }
.gallery-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 3px 12px; scrollbar-width: thin; }
.gallery-tabs button {
  flex: none; border: 1px solid var(--red-deep); border-radius: 999px;
  padding: 12px 23px; background: transparent; color: var(--red-deep);
  font: 500 0.95rem var(--sans); cursor: pointer;
}
.gallery-tabs button[aria-selected="true"] { background: var(--red-deep); color: var(--cream); }
.gallery-tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gallery-count { margin-top: 8px; font-size: var(--type-aux); color: var(--ink-soft); line-height: 1.6; }

/* Native modal keeps focus inside the viewer and supports Escape to close. */
html.photo-viewer-open { overflow: hidden; }
.photo-lightbox {
  position: fixed; inset: 0; margin: auto; width: min(1080px, calc(100vw - 32px));
  max-width: none; max-height: calc(100dvh - 32px); padding: 16px 20px;
  border: 0; border-radius: 18px; background: var(--cream); color: var(--ink);
  box-shadow: 0 24px 100px rgba(0,0,0,0.35);
}
.photo-lightbox::backdrop { background: rgba(21,17,14,0.88); }
.photo-lightbox__bar, .photo-lightbox__navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photo-lightbox__count { font-size: var(--type-aux); color: var(--ink-soft); line-height: 1.6; }
.photo-lightbox button { min-height: 44px; border: 0; border-radius: 999px; padding: 10px 16px; color: var(--red-deep); background: transparent; font: 600 0.85rem var(--sans); cursor: pointer; }
.photo-lightbox button:hover { background: var(--cream-2); }
.photo-lightbox button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.photo-lightbox__close span { margin-left: 8px; font-size: 1.3rem; vertical-align: middle; }
.photo-lightbox__figure { margin: 8px 0; text-align: center; }
.photo-lightbox__figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 218px); object-fit: contain; margin: auto; border-radius: 6px; touch-action: pan-y pinch-zoom; }
.photo-lightbox__figure figcaption { margin-top: 12px; font-size: var(--type-aux); color: var(--ink-soft); line-height: 1.6; }

/* ---- Locations ---- */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 32px); align-items: start; }
.loc-card { display: block; background: var(--card); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); border-bottom: 6px solid var(--c); transition: transform 0.35s var(--ease); }
.loc-card:hover { transform: translateY(-6px); }
.loc-card__tag { display: inline-block; background: var(--c); color: var(--cream); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3em 0.85em; border-radius: 999px; }
.loc-card__tag--soon { background: var(--ink); }
.loc-card h3 { font-weight: 600; font-size: var(--type-h3); color: var(--heading); margin: 1rem 0 0.5rem; line-height: 1.3; }
.loc-card p { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.loc-card__go { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--red); }

/* ---- Join Us ---- */
/* 6-track grid so the 5th card row (2 cards) centres instead of leaving a hole */
.reasons { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(20px, 2.5vw, 30px); }
.reason { grid-column: span 2; }
.reason:nth-child(4) { grid-column: 2 / span 2; }
.reason:nth-child(5) { grid-column: 4 / span 2; }
.reason { background: var(--card); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.reason__dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--c); margin-bottom: 1rem; }
.reason h3 { font-weight: 600; font-size: var(--type-h3); color: var(--heading); margin-bottom: 0.5rem; line-height: 1.3; }
.reason p { font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
.frq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.frq { background: var(--card); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow); border-left: 5px solid var(--yellow); }
.frq h3 { font-weight: 600; color: var(--heading); font-size: var(--type-h3); margin-bottom: 0.4rem; line-height: 1.3; }
.frq p { font-size: var(--type-body); color: var(--ink); line-height: 1.6; }

/* ---- Contact ---- */
.contact-info { background: var(--red-deep); color: var(--cream); border-radius: 24px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.contact-info h3 { font-weight: 600; font-size: var(--type-h3); margin-bottom: 1.2rem; color: var(--heading); line-height: 1.3; }
.ci { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 1.1rem; }
.ci span { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92; }
.ci a { color: var(--cream); font-weight: 600; }
.ci-dots { display: flex; gap: 0.5rem; margin: 1.4rem 0 0.8rem; }
.ci-dots .dot { position: static; }
.ci-tag { font-family: var(--hand); font-size: 1.5rem; }
.contact-info--solo { max-width: 760px; margin: 0 auto; text-align: center; }
.ci-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 3rem; margin: 1.6rem 0 0.4rem; }
.contact-info--solo .ci { align-items: center; }
.contact-info--solo .ci-dots { justify-content: center; }
.ci-actions { margin: 1.4rem 0; }
.contact-info--solo .ci-dots .dot--red { background: var(--cream); }

/* Smooth footer; soften the dots behind small text on every viewport. */
.footer {
  background-color: var(--background);
  background-image: linear-gradient(color-mix(in srgb, var(--background) 85%, transparent), color-mix(in srgb, var(--background) 85%, transparent)), url("yiliart_image/bg-wall.svg");
  background-position: center; background-size: cover; background-repeat: no-repeat;
  color: var(--ink); border-top: 3px solid var(--yellow); position: relative; overflow: hidden;
}
.footer__tag { color: var(--heading); font-family: var(--hand); font-size: 1.5rem; line-height: 1.6; }
.footer__mail { display: inline-block; margin-top: 0.7rem; font-weight: 600; font-size: 0.95rem; color: var(--ink); border-bottom: 2px solid var(--blue-deep); padding-bottom: 2px; }
.footer__mail:hover { color: var(--blue-deep); border-bottom-color: currentColor; }
.footer__col h4 { color: var(--heading); position: relative; padding-bottom: 0.7rem; margin-bottom: 1.1rem; font-size: var(--type-aux); line-height: 1.6; }
.footer__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }
.footer__col a { color: var(--ink); opacity: 1; font-size: 1rem; }
.footer__col a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { border-top: 1px solid var(--border); color: var(--ink); font-size: 0.86rem; }

/* ---- Responsive for new components ---- */
@media (max-width: 980px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__media, .split--reverse .split__text { order: 0; }
  .split__media { max-width: 460px; margin-inline: auto; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .reasons .reason { grid-column: auto; }
  .subhero__big { opacity: 0.6; }

  /* nav dropdown -> accordion */
  .has-sub .subnav::before { content: none; }  /* no hover-bridge in accordion mode */
  .has-sub .subnav {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    background: transparent; backdrop-filter: none; box-shadow: none;
    margin: 2px 0 6px; padding: 0 0 0 14px; border-left: 2px solid var(--border);
    display: none;
  }
  .has-sub.open .subnav { display: flex; }
  .has-sub > .nav__top { justify-content: space-between; }
  .has-sub.open .caret { transform: rotate(180deg); }
}

@media (max-width: 620px) {
  /* narrow screens pull percent-positioned wall dots into the type — wash them
     out behind hero/CTA headlines and drop loose decorative dots near text */
  .hero__wall::after { background: radial-gradient(78% 62% at 50% 46%, rgba(253,244,229,0.94) 0%, rgba(253,244,229,0.55) 62%, rgba(253,244,229,0.18) 100%); }
  .cta__wall::after { background: radial-gradient(88% 72% at 50% 50%, rgba(253,244,229,0.95) 0%, rgba(253,244,229,0.6) 68%, rgba(253,244,229,0.25) 100%); }
  .subhero .dot, .footer .dot { display: none; }
  .reasons, .frq-grid, .loc-grid { grid-template-columns: 1fr; }
  .reasons .reason { grid-column: auto; }
  .principle { grid-template-columns: 64px 1fr; gap: 18px; }
  .principle__num { font-size: 3rem; }
  .gallery-grid { columns: 2; }
  .apsul { gap: 16px; padding: 22px; }
  .belief__card { padding: 24px 34px; font-size: 1.6rem; }
  .subhero { padding-top: calc(var(--nav-h) + 40px); }
}

@media (max-width: 440px) {
  .gallery-grid { columns: 1; }
}

/* ============================================================
   Approved November layout — retain the existing brand canvas,
   background wall, colors, fonts, and original artwork pixels.
   ============================================================ */
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 20px; border: 2px solid var(--border); border-radius: 10px; background: var(--cream); color: var(--red-deep); font-weight: 600; }
.skip-link:focus { top: 10px; }
main section[id], .contact-channel[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.btn { font-family: var(--sans); line-height: 1.25; cursor: pointer; }
.btn--solid, .nav__cta { background: var(--red-deep); }
.btn--ghost { color: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost:hover { background: var(--red-deep); color: var(--cream); }
.nav__links a:hover { color: var(--red-deep); }
.nav__links li.is-active > a, .nav__links li.is-active > .nav__top { color: var(--red-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 4px; }
.section { padding-block: clamp(72px, 8vw, 118px); }
.section--soft { background: var(--cream-2); }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading .h-section { font-size: var(--type-h2); line-height: 1.2; text-wrap: balance; color: var(--heading); font-weight: 700; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--center .eyebrow::before { display: none; }
.section-lede { color: var(--ink); margin-top: 24px; font-size: var(--type-body); line-height: 1.6; }
.text-link { display: inline-block; font-weight: 600; color: var(--ink); padding-block: 10px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; font-size: var(--type-body); line-height: 1.6; }
.text-link:hover { color: var(--red-deep); text-decoration-thickness: 2px; }
.band--red .section-lede, .collab .section-lede,
.subhero--red .subhero__sub, .subhero--blue .subhero__sub {
  background: transparent; padding: 0; border-radius: 0; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
.subhero--red .class-badge, .subhero--blue .class-badge { color: var(--ink-soft); background: var(--cream); font-size: var(--type-aux); line-height: 1.6; }
.section-end-link { margin-top: 30px; text-align: center; }
.editorial-photo { margin: 0; border-radius: 24px; overflow: hidden; }
.editorial-photo img { display: block; width: 100%; height: auto; }
.editorial-photo figcaption { padding: 12px 4px 0; font-size: var(--type-aux); line-height: 1.6; color: var(--ink-soft); }
.editorial-photo--landscape img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Six main navigation destinations, with four course detail entries. */
.nav__inner { gap: 24px; }
.nav__links { gap: clamp(15px, 1.7vw, 26px); }
.nav__links > li > a, .nav__links > li > button { font-size: 0.86rem; white-space: nowrap; }
.nav__top { border: 0; background: none; font: 500 0.86rem var(--sans); color: var(--ink); cursor: pointer; padding-block: 12px; }
.nav__cta { display: inline-flex; align-items: center; justify-content: center; }
.nav .has-sub:not(.open) .subnav { opacity: 0; visibility: hidden; pointer-events: none; }
.nav .has-sub:not(.open) .caret { transform: none; }
.nav .has-sub.open .subnav { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 4px); }
.has-sub.open .caret { transform: rotate(180deg); }

/* The dot wall itself is unchanged; imagery sits on top of the canvas. */
.home-hero { padding: calc(var(--nav-h) + 54px) 0 70px; }
.home-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(38px, 5vw, 76px); text-align: left; }
.home-hero .hero__title { font-size: var(--type-h1); line-height: 1.15; text-wrap: balance; color: var(--heading); font-weight: 700; }
.home-hero .hero__sub { margin-left: 0; max-width: 540px; font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
.home-hero .hero__actions { justify-content: flex-start; margin-top: 28px; }
.home-hero .hero__note { margin-top: 24px; font-size: 1.5rem; color: var(--heading); line-height: 1.6; }
.home-hero .hero__note { color: var(--heading); font-size: 1.5rem; line-height: 1.6; }
.hero__eyebrow, .eyebrow, .subhero--cream .subhero__eyebrow { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.eyebrow--cream { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.home-programs .eyebrow, .subhero--yellow .subhero__eyebrow { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.home-hero__photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.intro-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.home-programs .section-heading { max-width: 760px; }
.home-programs .text-link { color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.philosophy-statement { max-width: 960px; text-align: center; }
.brand-tagline { font: 400 clamp(2.2rem, 4vw, 3.3rem)/1.2 var(--hand); color: var(--heading); margin-top: 32px; font-size: 1.5rem; line-height: 1.6; }
.approach-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(36px, 6vw, 88px); }
.framework-elements { margin: 28px 0 18px; color: var(--ink); font-weight: 600; line-height: 1.6; font-size: var(--type-body); }
.brand-artwork { margin: 0; min-width: 0; }
.brand-artwork img { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-artwork--aplus { max-width: 620px; margin-inline: auto; }
.brand-artwork figcaption { margin-top: 10px; text-align: center; font-size: var(--type-aux); color: var(--ink-soft); line-height: 1.6; }
.brand-artwork figcaption a { display: inline-block; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.home-community .collab .section-heading { max-width: 780px; }
.home-community .gallery { padding-top: 10px; }
.cta--simple { background: var(--cream); padding-block: clamp(78px, 9vw, 130px); }
.cta--simple .cta__title { max-width: 920px; margin-inline: auto; text-wrap: balance; font-size: var(--type-h2); color: var(--heading); line-height: 1.2; font-weight: 700; }

/* Photo-led cards are one semantic link each. */
.course-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; min-width: 0; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); transition: transform 180ms var(--ease); color: var(--ink); }
.course-card:hover { transform: translateY(-5px); }
.course-card:focus-visible { outline-offset: 5px; }
.course-card__photo { overflow: hidden; }
.course-card__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.course-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 21px; }
.course-card__label { font-size: var(--type-aux); font-weight: 600; color: var(--ink-soft); line-height: 1.6; }
.course-card__label span { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.course-card h3 { margin-top: 13px; font-size: var(--type-h3); line-height: 1.3; font-weight: 600; color: var(--heading); }
.course-card__description { font-size: var(--type-body); line-height: 1.6; margin-top: 14px; color: var(--ink); }
.course-card__more { display: block; margin-top: auto; padding-top: 22px; font-size: 0.8rem; font-weight: 600; color: var(--red-deep); }
.course-card__more span { float: right; }

/* Full locked copy remains visible across all three-part course pages. */
.split-hero { padding: calc(var(--nav-h) + 58px) 0 76px; }
.split-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(40px, 5.5vw, 78px); }
.split-hero .subhero__title { font-size: var(--type-h1); line-height: 1.15; text-wrap: balance; color: var(--heading); font-weight: 700; }
.split-hero .subhero__sub { font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
.split-hero__photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.class-badge { display: inline-block; font-size: var(--type-aux); font-weight: 600; border: 1px solid currentColor; border-radius: 999px; padding: 9px 14px; margin-top: 26px; line-height: 1.6; color: var(--ink-soft); }
.page-party .split-hero__photo img { aspect-ratio: 1 / 1; }
.text-hero .subhero__title { max-width: 22ch; text-wrap: balance; font-size: var(--type-h1); color: var(--heading); line-height: 1.15; font-weight: 700; }
.text-hero .subhero__sub { max-width: 780px; line-height: 1.6; font-size: var(--type-body); color: var(--ink); }
.experience-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 86px); align-items: start; }
.learning-dimensions article { border-top: 1px solid var(--border); padding-top: 23px; margin-top: 23px; }
.learning-dimensions h3, .philosophy-grid h3 { color: var(--heading); font-size: var(--type-h3); line-height: 1.3; font-weight: 600; }
.learning-dimensions p, .philosophy-grid p { margin-top: 10px; font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 74px; margin-top: 44px; }
.philosophy-grid article { border-top: 1px solid var(--border); padding-top: 26px; }
.approach-definitions { margin-bottom: 24px; }
.approach-definitions article { display: grid; grid-template-columns: 80px 1fr; gap: 18px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.approach-definitions h3 { color: var(--heading); font-size: var(--type-h3); font-weight: 600; line-height: 1.3; }
.approach-definitions p { font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
.framework-section { background: var(--card); }
.framework-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.framework-copy { max-width: 800px; }
.framework-layout .h-section { color: var(--heading); font-size: var(--type-h2); line-height: 1.2; font-weight: 700; }
.framework-layout .eyebrow { color: var(--ink-soft); font-size: var(--type-aux); line-height: 1.6; }
.curriculum-code { width: 100%; min-width: 0; }
@media (max-width: 700px) {
  .curriculum-code { display: none; }
}
.curriculum-note { font-size: var(--type-aux); line-height: 1.6; border-top: 1px solid currentColor; padding-top: 24px; margin-top: 32px; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.learning-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-top: 45px; }
.learning-areas li { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--border); padding-top: 22px; font-size: 1.22rem; font-weight: 600; color: var(--heading); }
.learning-areas li span { font-size: 0.7rem; font-weight: 400; color: var(--ink); }
.package-copy { max-width: 870px; margin-inline: auto; text-align: center; }
.package-copy .section-heading { max-width: none; }
.party-packages__note { margin-top: 24px; color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.party-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 44px; }
.party-package { display: flex; flex-direction: column; min-width: 0; padding: 30px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.party-package__type { color: var(--ink-soft); font-size: var(--type-aux); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.party-package h3 { min-height: 2.6em; margin-top: 14px; color: var(--heading); font-size: var(--type-h3); line-height: 1.3; font-weight: 600; }
.party-package__description { margin-block: 20px 28px; color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
.party-package__price { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--border); color: var(--ink); font-size: var(--type-body); }
.party-package__price strong { color: var(--heading); font-weight: 600; }
.party-inquiry { max-width: 870px; margin: 64px auto 0; padding-top: 48px; border-top: 1px solid var(--border); text-align: center; }
.party-inquiry p { margin: 24px auto 28px; max-width: 740px; font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
@media (max-width: 980px) {
  .party-packages { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 24px; }
  .party-package { padding: 26px; }
  .party-package h3 { min-height: 0; }
}
.page-party #packages { scroll-margin-top: var(--nav-h); }
.gallery-section { padding-top: 64px; }

/* Contact uses direct email links, per the owner's override of the form. */
.visit-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.visit-address address { font-style: normal; font-weight: 500; font-size: var(--type-body); line-height: 1.6; max-width: 24ch; margin-bottom: 22px; color: var(--ink); }
.studio-map { background: var(--cream-2); border-radius: 22px; overflow: hidden; min-width: 0; }
.studio-map iframe { display: block; width: 100%; height: 390px; border: 0; }
.studio-map__link { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--card); color: var(--heading); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 4px; }
.studio-map__link:hover { color: var(--red); }
.resource-inline { margin-top: 24px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 44px; }
.resource-card { display: flex; flex-direction: column; min-width: 0; border-top: 2px solid var(--border); padding-block: 26px 12px; }
.resource-card__meta { color: var(--ink-soft); font-size: var(--type-aux); letter-spacing: 0.1em; line-height: 1.6; }
.resource-card h3 { color: var(--heading); font-size: var(--type-h3); line-height: 1.3; margin-top: 16px; font-weight: 600; }
.resource-card p { font-size: var(--type-body); line-height: 1.6; margin-block: 16px 24px; color: var(--ink); }
.resource-card__open { margin-top: auto; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; font-size: var(--type-body); line-height: 1.6; }
.resource-card:hover .resource-card__open { text-decoration-thickness: 2px; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
@media (max-width: 760px) { .resource-grid { grid-template-columns: 1fr; gap: 30px; } }
.contact-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 44px; }
.contact-channel { display: flex; flex-direction: column; padding-top: 27px; border-top: 1px solid var(--border); }
.contact-channel h3 { font-size: var(--type-h3); font-weight: 600; color: var(--heading); line-height: 1.3; }
.contact-channel p { margin-top: 16px; margin-bottom: 22px; font-size: var(--type-body); line-height: 1.6; color: var(--ink); }
.contact-email { display: inline-block; margin-top: auto; padding-block: 10px; color: var(--ink); font-size: var(--type-body); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; line-height: 1.6; }
.contact-email span { display: inline-block; padding-left: 4px; }
.footer__col h2 { position: relative; color: var(--heading); font-weight: 700; font-size: var(--type-aux); letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 0.7rem; margin-bottom: 1.1rem; line-height: 1.6; }
.footer__col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }

@media (max-width: 1100px) {
  .nav__inner { gap: 16px; }
  .nav__links { gap: 14px; }
  .nav__links > li > a, .nav__links > li > button { font-size: 0.79rem; }
  .brand__logo { height: 38px; }
  .course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 980px) {
  .nav__links { gap: 4px; }
  .nav__links > li > a, .nav__links > li > button { font-size: 1rem; }
  .nav__top { width: 100%; padding: 14px 0; text-align: left; border-bottom: 1px solid var(--border); }
  .nav .has-sub.open .subnav { transform: none; }
  .nav .has-sub:not(.open) .subnav { display: none; }
  .nav__links .nav__cta { padding: 14px 20px; width: 100%; }
  .home-hero { padding-top: calc(var(--nav-h) + 40px); min-height: auto; }
  .home-hero__grid, .split-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .home-hero .hero__title { font-size: var(--type-h1); max-width: 18ch; color: var(--heading); line-height: 1.15; font-weight: 700; }
  .home-hero .hero__sub { max-width: 650px; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
  .home-hero__photo { max-width: 620px; width: 100%; justify-self: center; }
  .home-hero__photo img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .split-hero__photo { max-width: 600px; width: 100%; justify-self: center; }
  .split-hero .subhero__title { max-width: 22ch; font-size: var(--type-h1); color: var(--heading); line-height: 1.15; font-weight: 700; }
  .split-hero .subhero__sub { max-width: none; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
  .intro-layout, .approach-layout, .experience-layout, .framework-layout, .visit-layout { grid-template-columns: 1fr; gap: 44px; }
  .intro-layout .editorial-photo, .experience-layout .editorial-photo { max-width: 650px; width: 100%; margin-inline: auto; }
  .brand-artwork--aplus { width: 100%; max-width: 620px; }
  .contact-channels { grid-template-columns: 1fr; gap: 34px; }
  .contact-channel p { max-width: 650px; font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
  .learning-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .section { padding-block: 64px; }
  .home-hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 40px; }
  .home-hero .hero__title { font-size: var(--type-h1); color: var(--heading); line-height: 1.15; font-weight: 700; }
  .home-hero .hero__eyebrow { font-size: var(--type-aux); letter-spacing: 0.1em; padding: 0; background: transparent; box-shadow: none; color: var(--ink-soft); line-height: 1.6; }
  .home-hero .hero__sub { font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
  .home-hero .hero__note { font-size: 1.5rem; color: var(--heading); line-height: 1.6; }
  .home-hero .hero__actions { gap: 12px; }
  .home-hero .hero__actions .btn { max-width: none; }
  .home-hero__photo img { aspect-ratio: 4 / 3; }
  .section-heading .h-section { font-size: var(--type-h2); color: var(--heading); line-height: 1.2; font-weight: 700; }
  .section-lede { font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
  .course-cards { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; gap: 30px; }
  .course-card__photo img { aspect-ratio: 4 / 3; }
  .course-card__body { padding: 24px; }
  .course-card h3 { font-size: var(--type-h3); color: var(--heading); line-height: 1.3; font-weight: 600; }
  .course-card__label span { display: inline; font-size: var(--type-aux); color: var(--ink-soft); line-height: 1.6; }
  .split-hero { padding-top: calc(var(--nav-h) + 36px); padding-bottom: 48px; }
  .split-hero .subhero__title { font-size: var(--type-h1); color: var(--heading); line-height: 1.15; font-weight: 700; }
  .split-hero .subhero__sub { font-size: var(--type-body); color: var(--ink); line-height: 1.6; }
  .split-hero__photo img { aspect-ratio: 4 / 5; }
  .split-hero .subhero__actions .btn { width: 100%; }
  .subhero__eyebrow { font-size: var(--type-aux); color: var(--ink-soft); line-height: 1.6; }
  .class-badge { border-radius: 14px; font-size: var(--type-aux); color: var(--ink-soft); line-height: 1.6; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 26px; }
  .approach-definitions article { grid-template-columns: 68px 1fr; gap: 16px; }
  .learning-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .learning-areas li { font-size: 1.04rem; }
  .cta--simple .cta__actions .btn { max-width: none; }
  .studio-map iframe { height: 320px; }
  .editorial-photo { border-radius: 18px; }
}

/* Reuse the measured SVG/DOM diagram; give its English copy room to breathe. */
.aplus-code { position: relative; width: 100%; min-width: 0; max-width: 1020px; margin-inline: auto; scroll-margin-top: calc(var(--nav-h) + 24px); }
.aplus-code .rosette { margin-block: 16px; }
@media (min-width: 1200px) {
  .page-programs #approach .approach-layout { grid-template-columns: 0.65fr 1.35fr; }
}
@media (min-width: 981px) and (max-width: 1199px) {
  .page-programs #approach .approach-layout { grid-template-columns: 1fr; }
}
.aplus-zoom-open { display: none; }
@media (max-width: 700px) {
  .aplus-zoom-open:not([hidden]) {
    display: block; position: absolute; inset: 0; z-index: 7;
    width: 100%; height: 100%; padding: 0; border: 0;
    background: transparent; cursor: zoom-in;
  }
}

html.aplus-viewer-open { overflow: hidden; }
.aplus-zoom {
  position: fixed; inset: 0; margin: auto; width: min(1080px, calc(100vw - 24px));
  max-width: none; max-height: calc(100dvh - 24px); padding: 16px;
  border: 0; border-radius: 18px; background: var(--cream); color: var(--ink);
}
.aplus-zoom::backdrop { background: rgba(21,17,14,0.88); }
.aplus-zoom__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.aplus-zoom__bar h2 { font-size: 1rem; line-height: 1.6; color: var(--heading); }
.aplus-zoom__close { flex: none; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--heading); font: 600 0.875rem var(--sans); cursor: pointer; }
.aplus-zoom__hint { margin-block: 8px 14px; font-size: 0.875rem; }
.aplus-zoom__canvas { max-height: calc(100dvh - 180px); overflow: auto; overscroll-behavior: contain; }
.aplus-zoom__canvas .rosette { width: 1000px; max-width: none; margin: 12px; }

/* Owner typography and action system — November 2026. Artwork scales separately. */
.nav__links a, .subnav a { opacity: 1; }
.nav__top { color: var(--ink); }
.rule { background: var(--border); }
.learning-areas li { color: var(--heading); }
.learning-areas li span { color: var(--ink-soft); }
.course-card__more { color: var(--red); }
.footer__mail { color: var(--ink); border-bottom-color: var(--border); }
.footer__mail:hover, .footer__col a:hover { color: var(--red); }
.class-badge { border: 0; border-radius: 0; padding: 0; background: transparent; }
.subhero--red .class-badge, .subhero--blue .class-badge { color: var(--ink-soft); background: transparent; }
.subhero--red, .subhero--blue { color: var(--ink); }
.gallery-tabs button {
  height: var(--button-h); padding: 0 20px; border-color: var(--border);
  color: var(--heading); font-size: 0.9375rem; line-height: 1.2;
}
.gallery-tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: var(--on-action); }
.photo-lightbox button { color: var(--heading); }
:is(.btn, .nav__links .nav__cta) {
  height: var(--button-h); min-height: var(--button-h); padding: 0 24px;
  border-radius: 999px; font-size: 0.9375rem; line-height: 1.2; font-weight: 600;
  box-shadow: none;
}
.btn--ghost, .btn--cream {
  border: 1px solid var(--border); color: var(--heading); background: transparent;
}
.btn--ghost:hover, .btn--cream:hover {
  color: var(--heading); border-color: var(--heading); background: var(--card);
  transform: translateY(-2px); box-shadow: none;
}
.btn--solid, .btn[data-booking-kind], .nav__links .nav__cta {
  background: var(--red); color: var(--on-action); border: 1px solid var(--red);
}
.btn--solid:hover, .btn[data-booking-kind]:hover, .nav__links .nav__cta:hover {
  background: var(--red-hover); color: var(--on-action); border-color: var(--red-hover);
  transform: translateY(-2px); box-shadow: none;
}
@media (max-width: 700px) {
  :root {
    --type-h1: clamp(2rem, 8.4vw, 2.375rem);
    --type-h2: clamp(1.625rem, 6.9vw, 1.875rem);
    --type-h3: clamp(1.25rem, 5.4vw, 1.4375rem);
    --type-body: 1rem;
    --type-aux: 0.75rem;
    --button-h: 46px;
  }
}

/* ============================================================
   Deep warm brown layout. Keep approved copy, photos and diagrams;
   use the supplied vector artwork only on the entrance and footer.
   ============================================================ */
.yili-site { color-scheme: light; }
.yili-site::before { content: none; }
.yili-site :is(h1, h2, h3) { color: var(--heading); font-family: var(--sans); }
.yili-site :is(.h-section, .h-section--cream, .subhero__title, .cta__title) {
  font-weight: 450; letter-spacing: -0.03em; line-height: 1.15;
}
.yili-site .h-section { font-size: var(--type-h2); }
.yili-site .section { padding-block: clamp(52px, 6.5vw, 88px); }
.yili-site .section-heading { max-width: 43rem; margin-bottom: 26px; }
.yili-site .section-heading > .eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 1rem; color: var(--heading); font-size: 0.875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; }
.yili-site .section-heading > .eyebrow::before { content: ''; display: block; flex: none; width: 28px; height: 2px; background: var(--art-yellow); }
.yili-site .section-heading--center > .eyebrow { justify-content: center; }
.yili-site .section-heading .h-section { font-size: var(--type-h2); font-weight: 450; line-height: 1.15; letter-spacing: -0.03em; }
.yili-site .section-lede { margin-top: 20px; }
.yili-site :is(.eyebrow, .subhero__eyebrow) { font-size: 0.8125rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.09em; }
.yili-site .eyebrow::before { background: var(--art-yellow); }
.yili-site .text-link { color: var(--heading); font-weight: 500; text-underline-offset: 0.24em; }
.yili-site .text-link:hover { color: var(--red-hover); }
.yili-site :focus-visible { outline: 2px solid var(--heading); outline-offset: 4px; box-shadow: 0 0 0 3px var(--cream); }
.yili-site .skip-link { border-radius: 0; }

/* Shared navigation styling and the mobile menu panel. */
.yili-site .nav { background: transparent; box-shadow: none; backdrop-filter: none; }
.yili-site.subpage .nav, .yili-site .nav.scrolled, .yili-site .nav.menu-open { background: var(--cream); box-shadow: 0 1px 0 var(--border); }
.yili-site .nav__inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.yili-site .brand { grid-column: 1; grid-row: 1; justify-self: start; }
.yili-site .brand__logo { width: auto; height: 56px; }
.yili-site .nav__toggle {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center; grid-column: 2; grid-row: 1; justify-self: end;
  gap: 12px; width: auto; min-width: 44px; min-height: 44px; padding: 0;
  color: var(--heading); font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.09em; text-transform: uppercase;
}
.yili-site .nav__toggle > .nav__hamb { display: flex; flex-direction: column; justify-content: space-between; flex: none; width: 34px; height: 30px; background: none; transform: none; opacity: 1; }
.yili-site .nav__toggle > .nav__menu-label { display: none; }
.yili-site .nav__hamb > span { width: 100%; height: 7px; border: 1.5px solid var(--heading); border-radius: 999px; background: var(--heading); transform: none; }
.yili-site .nav__toggle.active .nav__hamb > span:nth-child(n) { transform: none; opacity: 1; }
.yili-site .nav__book { justify-self: end; }
.yili-site .nav__links {
  display: none; position: fixed; inset: var(--nav-h) 0 0; width: 100%;
  height: calc(100dvh - var(--nav-h)); max-height: none; overflow-y: auto; overscroll-behavior: contain;
  flex-direction: column; align-items: center; gap: clamp(10px, 2svh, 20px);
  padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  background: var(--cream); border: 0; box-shadow: none;
  transform: none; opacity: 1; visibility: visible; pointer-events: auto; clip-path: none; transition: none;
}
.yili-site .nav__links.open { display: flex; }
.yili-site .nav__links > li > :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0; border: 0; font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-transform: uppercase; white-space: normal; color: var(--heading); }
.yili-site .nav__top { width: auto; justify-content: center; gap: 14px; background: none; border: 0; }
.yili-site .nav__top .caret { width: 16px; height: 10px; flex: none; transform: rotate(-90deg); }
.yili-site .nav .has-sub:not(.open) .caret { transform: rotate(-90deg); }
.yili-site .nav .has-sub.open .caret { transform: none; }
.yili-site .nav .has-sub .subnav {
  position: static; flex-direction: column; align-items: center; gap: 2px;
  min-width: 0; padding: 12px 0 0; margin: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; backdrop-filter: none; transform: none;
}
.yili-site .nav .has-sub:not(.open) .subnav { display: none; }
.yili-site .nav .has-sub.open .subnav { display: flex; transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.yili-site .subnav::before { content: none; }
.yili-site .subnav a { display: block; padding: 8px 0; border: 0; border-radius: 0; font-size: 1rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: center; color: var(--ink); white-space: normal; }
.yili-site .nav__links a:hover { color: var(--heading); text-decoration: underline; text-underline-offset: 0.25em; background: none; }
.yili-site .nav__links li.is-active > :is(a, button) { color: var(--heading); text-decoration: underline; text-underline-offset: 0.25em; }
html.nav-menu-open { overflow: hidden; }

/* Rectangular warm brown actions follow the supplied type scale. */
.yili-site .btn, .yili-site .nav__book, .yili-site .nav__links .nav__cta {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: auto; min-height: 44px; padding: 0.8rem 1.5rem; border: 1px solid var(--heading); border-radius: 0;
  font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--cream); background: var(--heading); box-shadow: none; transform: none;
}
.yili-site .btn:hover, .yili-site .nav__book:hover, .yili-site .nav__links .nav__cta:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--cream); box-shadow: none; transform: none; text-decoration: none; }
.yili-site .btn.btn--ghost, .yili-site .btn.btn--cream:not([data-booking-kind]), .yili-site .nav .nav__book { color: var(--heading); border-color: var(--heading); background: transparent; }
.yili-site .btn.btn--ghost:hover, .yili-site .btn.btn--cream:not([data-booking-kind]):hover, .yili-site .nav .nav__book:hover { color: var(--cream); background: var(--red-hover); }

.page-home #main, .page-promotion #main, .page-about #main { padding-top: var(--nav-h); }
@media (max-width: 980px) and (scripting: none) {
  .page-home #main, .page-promotion #main, .page-about #main { padding-top: 0; }
}
.yili-site .promotion-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.25vw, 16px);
  min-height: 44px;
  padding: 8px 12px;
  background: var(--heading);
  color: var(--cream);
  font-size: clamp(0.875rem, 2.6vw, 1rem);
  line-height: 1.3;
  white-space: nowrap;
}
.yili-site .promotion-banner:focus-visible { outline: 2px solid var(--art-yellow); outline-offset: -4px; box-shadow: none; }
.promotion-banner__action { color: var(--art-yellow); text-decoration: underline; text-underline-offset: 0.23em; }
.promotion-banner:hover .promotion-banner__action { text-decoration-thickness: 2px; }

/* The entrance uses the five original vector shapes, without paper grain. */
.yili-site .home-hero {
  display: grid; align-items: center; min-height: calc(clamp(32rem, 78svh, 44rem) - var(--nav-h));
  padding: 2.5rem 0 3.5rem;
  background: var(--cream) url('/yiliart_image/art-hero.svg') center / 100% 100% no-repeat;
}
.yili-site .hero__wall { display: none; }
.yili-site .home-hero__grid { display: block; position: relative; text-align: center; }
.yili-site .home-hero__copy { max-width: 56rem; margin-inline: auto; }
.yili-site .home-hero .hero__title { max-width: 17ch; margin-inline: auto; font-size: clamp(3.5rem, 6vw, 5.25rem); line-height: 1.035; letter-spacing: -0.055em; font-weight: 450; color: var(--heading); text-wrap: balance; }
.yili-site .hero__title::after { content: none; }
.yili-site .home-hero .hero__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 2.5rem; }
.yili-site .home-hero .hero__actions .btn { max-width: none; }
.yili-site .home-hero .hero__explore { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.5rem; padding-block: 12px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--heading); }
.yili-site .intro-layout { grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 6vw, 80px); }
.yili-site .home-studio-photos { min-width: 0; }
.yili-site .home-studio-photos > .editorial-photo--landscape { border-radius: 18% 12% 19% 11% / 25% 19% 26% 17%; }
.yili-site .home-studio-photos .editorial-photo--landscape img { aspect-ratio: 1.28; }
.yili-site .home-programs { background: var(--cream); }
.yili-site .home-programs .section-heading { max-width: 40rem; }
.yili-site.page-home #birthday-parties { border-top: 3px solid var(--red); }
.yili-site :is(.editorial-photo, .course-card, .course-card__photo, .party-package, .studio-map) { border-radius: 2px; }
.yili-site .editorial-photo { overflow: hidden; }
.yili-site .party-teaser { text-align: center; }

.promotion-event { padding-block: clamp(32px, 5vw, 72px); }
.promotion-event__layout { max-width: 640px; }
.promotion-event__signup { display: grid; justify-items: center; gap: 8px; margin-top: clamp(16px, 3vw, 28px); text-align: center; }
.promotion-event__signup .btn { min-width: 9.5rem; }
.promotion-event__signup p { font-size: 0.875rem; color: var(--ink-soft); }
.promotion-event__poster { border: 1px solid var(--border); }
.promotion-event__poster img { display: block; width: 100%; height: auto; }

/* Flat image-led course cards and quiet reading surfaces. */
.yili-site .course-cards { gap: 24px; }
.yili-site .course-card { background: transparent; box-shadow: none; overflow: visible; transition: none; }
.yili-site .course-card:hover { transform: none; }
.yili-site .course-card__photo { overflow: hidden; }
.yili-site .course-card__photo img { aspect-ratio: 1.15; transition: transform 0.3s var(--ease); }
.yili-site .course-card:hover .course-card__photo img { transform: scale(1.025); }
.yili-site .course-card__body { padding: 20px 0 0; }
.yili-site .course-card__label { display: flex; align-items: baseline; gap: 0.375rem; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.yili-site .course-card__label span { display: inline; font-size: inherit; line-height: inherit; }
.yili-site .course-card__label .course-card__name { font-weight: 600; }
.yili-site .course-card h3 { font-size: clamp(1.375rem, 1.9vw, 1.65rem); font-weight: 450; line-height: 1.2; letter-spacing: -0.025em; }
.yili-site .course-card__description { font-size: 1rem; }
.yili-site .course-card__more { color: var(--heading); font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em; }
.yili-site .course-card__more span { display: none; }
.yili-site :is(.subhero, .split-hero) { background: var(--cream); color: var(--ink); padding-block: calc(var(--nav-h) + 62px) 62px; }
.yili-site :is(.subhero, .split-hero) .subhero__title { font-size: var(--type-h1); font-weight: 450; line-height: 1.1; letter-spacing: -0.035em; color: var(--heading); }
.yili-site :is(.subhero, .split-hero) .subhero__sub { font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.yili-site .subhero__eyebrow { color: var(--ink-soft); }
.yili-site :is(.subhero, .split-hero) .subhero__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 1rem; color: var(--heading); font-size: 0.875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; }
.yili-site :is(.subhero, .split-hero) .subhero__eyebrow::before { content: ''; display: block; flex: none; width: 28px; height: 2px; background: var(--art-yellow); }
.yili-site :is(.subhero, .split-hero) .subhero__eyebrow + .subhero__title { font-size: var(--type-h1); font-weight: 450; line-height: 1.1; letter-spacing: -0.035em; }
.yili-site .split-hero__photo img { aspect-ratio: 1.05; }
.yili-site.page-parent-me .split-hero__photo { min-width: 0; }
.yili-site.page-parent-me .split-hero__photo img {
  width: auto;
  max-width: 100%;
  max-height: min(38rem, 64svh);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin-inline: auto;
}
.yili-site.page-about .split-hero {
  padding-top: clamp(36px, 5vw, 62px);
  border-top: 3px solid var(--red);
}
.yili-site.page-about .split-hero__photo { width: 100%; max-width: 440px; justify-self: center; }
.yili-site.page-about .split-hero__photo img { height: auto; aspect-ratio: auto; }
.page-about #philosophy { border-top: 3px solid var(--yellow); }
.page-about #educators { border-top: 3px solid var(--blue); }
.educator-profile {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(24px, 6vw, 88px);
  margin-top: 24px;
}
.yili-site .educator-profile h3 { font-size: var(--type-h2); font-weight: 450; line-height: 1.1; letter-spacing: -0.035em; }
.educator-profile__role { margin-top: 9px; font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.educator-profile__bio { max-width: 64ch; font-size: var(--type-body); line-height: 1.7; }
.yili-site .class-badge { border: 0; padding: 0; border-radius: 0; font-weight: 500; font-size: 0.875rem; background: transparent; color: var(--ink-soft); }
.yili-site :is(.section--soft, .framework-section) { background: var(--cream); border-block: 1px solid var(--border); }
.yili-site :is(.learning-dimensions, .philosophy-grid, .approach-definitions) h3 { font-size: var(--type-h3); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.yili-site .approach-definitions article { grid-template-columns: 86px 1fr; }
.yili-site .learning-areas li { font-weight: 500; }
.yili-site .learning-areas li span { font-size: 0.875rem; }
.yili-site .party-package { background: transparent; border: 0; border-top: 1px solid var(--border); padding: 28px 0 0; }
.yili-site .party-package h3 { font-weight: 500; letter-spacing: -0.015em; }
.yili-site .party-package__type { font-size: 0.8125rem; }
.yili-site .party-package__price strong { font-size: 1.75rem; font-weight: 500; }
.yili-site .resource-card h3, .yili-site .contact-channel h3 { font-weight: 500; letter-spacing: -0.015em; }

/* Keep the original gallery filtering, strip and native image viewer. */
.yili-site .collab { background: var(--cream); color: var(--ink); }
.yili-site .collab .h-section { color: var(--heading); }
.yili-site .gallery__track img { border-radius: 2px; box-shadow: none; height: clamp(170px, 21vw, 280px); }
.yili-site .gcell { border-radius: 2px; }
.yili-site .gallery-tabs button { min-height: 44px; height: auto; padding: 10px 18px; border-radius: 0; font-size: 1rem; font-weight: 500; }
.yili-site .gallery-tabs button[aria-selected="true"] { background: var(--heading); border-color: var(--heading); color: var(--cream); }
.yili-site .photo-lightbox { background: var(--cream); border-radius: 2px; }
.yili-site .photo-lightbox button { color: var(--heading); border-radius: 0; font-size: 0.875rem; }
.yili-site .aplus-zoom { border-radius: 2px; }
.yili-site .cta--simple {
  overflow: visible;
  border-top: 0;
  padding-block: clamp(58px, 7vw, 96px);
  background: var(--cream) url('/yiliart_image/art-cta.svg') center / 100% 100% no-repeat;
}
/* A single layer crosses the seam so the curves meet at every viewport width. */
.yili-site .cta--simple::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: clamp(100px, 18vw, 260px);
  transform: translateY(50%);
  background: url('/yiliart_image/art-cta-footer.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}
.yili-site .cta__dots { display: none; }
.yili-site .cta--simple .cta__title { color: var(--heading); font-weight: 450; }
.yili-site .cta__sub { color: var(--ink); }
.yili-site .cta__actions { gap: 12px; }
.yili-site.page-tuition .cta__actions { flex-direction: column; align-items: center; }

/* Tuition sheets use the studio’s print colors. */
.tuition-sheet {
  --tuition-red: #C52538;
  --tuition-blue: #086DB5;
  --tuition-pink: #FADDE0;
  --tuition-ice: #DDEDFB;
  --tuition-gold: #FFF0CD;
  --tuition-coral: #FBE5DB;
  color: var(--heading);
  background: var(--cream);
  padding-block: clamp(22px, 3vw, 42px) clamp(36px, 4vw, 56px);
}
.page-tuition #main { padding-top: var(--nav-h); }
.tuition-sheet__inner { max-width: 1240px; }
.tuition-sheet__parent { margin-top: clamp(42px, 6vw, 80px); }
.tuition-header { text-align: center; margin-bottom: clamp(18px, 2.5vw, 28px); }
.tuition-header__logo { display: block; width: clamp(64px, 7vw, 98px); height: auto; margin-inline: auto; }
.tuition-header__tagline { margin-top: 5px; font-size: 0.875rem; line-height: 1.3; }
.yili-site .tuition-header__title {
  margin-top: 10px;
  font: 700 clamp(2rem, 6.1vw, 4.75rem)/1.02 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.tuition-header__stroke {
  display: block;
  width: clamp(118px, 23vw, 255px);
  height: auto;
  margin: 8px auto 0;
  color: #F4B71A;
}
.tuition-offer, .tuition-deadline, .tuition-parent-meta {
  border-radius: 20px;
  text-align: center;
}
.tuition-offer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  padding: 20px clamp(16px, 3vw, 38px);
  background: var(--tuition-gold);
  font-size: 1rem;
  line-height: 1.45;
}
.tuition-offer strong {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(1.125rem, 2.45vw, 1.75rem);
  line-height: 1.2;
}
.tuition-offer__bag {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 35px;
  margin-top: 8px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 8px 8px;
}
.tuition-offer__bag::before {
  content: '';
  position: absolute;
  top: -13px;
  width: 21px;
  height: 15px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.tuition-offer__bag > span {
  width: 22px;
  height: 22px;
  color: var(--tuition-red);
  background: currentColor;
  clip-path: polygon(0 20%, 42% 42%, 58% 42%, 100% 20%, 100% 62%, 66% 57%, 88% 90%, 68% 93%, 50% 63%, 32% 93%, 12% 90%, 34% 57%, 0 62%);
}
.tuition-deadline {
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--tuition-pink);
  font-size: clamp(1rem, 2.2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
}
.yili-site .tuition-ribbon {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  margin: clamp(22px, 3.4vw, 38px) 0 10px;
  font: 700 clamp(1.375rem, 3vw, 2.5rem)/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.025em;
  text-align: center;
}
.tuition-ribbon > span { background: var(--tuition-gold); padding: 8px clamp(14px, 3vw, 30px); border-radius: 999px; }
.tuition-ribbon::before, .tuition-ribbon::after { content: ''; flex: 1; height: 2px; background: #F4B71A; }
.tuition-rates { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 5px; text-align: center; }
.tuition-rates__program { width: 36%; }
.tuition-rates :is(th, td) { padding: clamp(8px, 1.3vw, 16px) 8px; border-radius: 15px; vertical-align: middle; }
.tuition-rates thead th {
  background: var(--tuition-red);
  color: #fff;
  font-size: clamp(0.9375rem, 2.15vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  hyphens: auto;
}
.tuition-rates thead th:first-child { background: var(--tuition-blue); }
.tuition-rates thead th span, .tuition-duration {
  display: block;
  margin-top: 5px;
  font-size: clamp(0.8125rem, 1.6vw, 1rem);
  font-weight: 500;
  line-height: 1.25;
}
.tuition-rates tbody th { background: var(--tuition-gold); }
.tuition-rates tbody th a { display: inline-block; font-size: clamp(0.9375rem, 2.2vw, 1.5rem); line-height: 1.25; }
.tuition-rates tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tuition-level-age::before { content: ' · '; }
.tuition-rates td { background: var(--tuition-pink); font-variant-numeric: tabular-nums; }
.tuition-rates td strong, .tuition-rates td s { display: block; }
.tuition-rates td strong { font-size: clamp(1.4rem, 3.6vw, 2.5rem); line-height: 1.07; }
.tuition-rates td s {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(0.875rem, 1.9vw, 1.125rem);
  text-decoration-color: var(--tuition-red);
  text-decoration-thickness: 2px;
}
.tuition-terms { display: grid; gap: 7px; list-style: none; margin-top: 16px; }
.tuition-terms li {
  --tuition-dot: var(--art-red);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tuition-pink);
  color: var(--heading);
}
.tuition-terms li { padding: 10px clamp(13px, 3vw, 32px); border-radius: 18px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.tuition-terms li::before {
  content: '';
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--tuition-dot);
}
.tuition-terms li:nth-child(3n + 2) { --tuition-dot: var(--art-yellow); background: var(--tuition-gold); }
.tuition-terms li:nth-child(3n) { --tuition-dot: var(--art-blue); background: var(--tuition-ice); }
.tuition-parent-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 15px;
  padding: 12px 16px;
  background: var(--tuition-coral);
  font-weight: 600;
  line-height: 1.4;
}
.tuition-parent-meta span + span::before { content: '·'; margin-right: 15px; }
.tuition-parent-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tuition-plan {
  --plan-accent: var(--tuition-blue);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--tuition-ice);
  text-align: center;
}
.tuition-plan--monthly { --plan-accent: var(--tuition-red); background: var(--tuition-pink); }
.yili-site .tuition-plan h3 {
  display: grid;
  place-items: center;
  min-height: 3em;
  padding: 12px 8px;
  border-radius: 22px 22px 0 0;
  background: var(--plan-accent);
  color: #fff;
  font-size: clamp(1rem, 2.35vw, 1.5rem);
  line-height: 1.15;
  text-wrap: balance;
}
.tuition-plan__body {
  display: grid;
  align-content: center;
  justify-items: center;
  flex: 1;
  padding: clamp(16px, 3.3vw, 32px) 12px;
  font-size: clamp(0.9375rem, 2.15vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
}
.tuition-plan__body strong { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.tuition-plan__note { max-width: 38ch; margin-top: 8px; font-size: clamp(0.875rem, 1.7vw, 1rem); font-weight: 500; line-height: 1.35; }
.tuition-faq__inner { max-width: 850px; }
.tuition-faq h2 { margin-bottom: clamp(20px, 3vw, 32px); text-align: center; }
.tuition-faq__items { border-top: 1px solid var(--border); }
.tuition-faq__item { border-bottom: 1px solid var(--border); }
.tuition-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}
.tuition-faq__item summary::-webkit-details-marker { display: none; }
.tuition-faq__item summary::after {
  content: '';
  flex: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(currentColor, currentColor) center / 13px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 13px no-repeat;
}
.tuition-faq__item[open] summary::after { background-size: 13px 1px, 0 0; }
.tuition-faq__item p { padding: 0 28px 20px 4px; line-height: 1.55; }
@media (max-width: 600px) {
  .yili-site.page-tuition .tuition-sheet__inner { padding-inline: 16px; }
  .tuition-rates { border-spacing: 3px; }
  .tuition-rates :is(th, td) { padding-inline: 4px; border-radius: 11px; }
  .tuition-level-age { display: block; }
  .tuition-level-age::before { content: none; }
}
@media (max-width: 420px) {
  .tuition-parent-meta span:last-child { flex-basis: 100%; }
  .tuition-parent-meta span:last-child::before { content: none; }
  .tuition-parent-meta span + span::before { margin-right: 8px; }
  .tuition-parent-meta { column-gap: 8px; font-size: 0.9375rem; }
  .tuition-offer { text-align: left; }
  .tuition-offer__bag { width: 32px; height: 28px; }
  .tuition-offer__bag::before { width: 16px; }
  .tuition-offer__bag > span { width: 17px; height: 17px; }
}

/* Three footer groups retain every existing destination and contact detail. */
.yili-site .footer {
  padding: 64px 0 0; border: 0; color: var(--heading);
  background: var(--cream) url('/yiliart_image/art-footer.svg') center / 100% 100% no-repeat;
}
.yili-site:has(> main > .cta--simple:last-child) > .site-footer {
  background: var(--cream) url('/yiliart_image/art-footer.svg#lower') center bottom / 100% 50% no-repeat;
}
.yili-site .footer__grid { width: 80%; max-width: 70rem; grid-template-columns: 0.95fr 1.8fr 1.05fr; gap: 40px; padding: 0 0 44px; }
.yili-site .footer__brand { grid-column: auto; }
.yili-site .footer__logo { width: 152px; height: auto; filter: none; }
.yili-site .footer__tag { max-width: 18ch; margin-top: 20px; font: 400 1.0625rem/1.5 var(--sans); color: var(--heading); }
.yili-site .footer__navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.yili-site .footer__col h2 { padding: 0; margin: 0 0 18px; font: 500 1rem/1.5 var(--sans); letter-spacing: 0; text-transform: none; }
.yili-site .footer__col h2::after { content: none; }
.yili-site .footer__col li + li { margin-top: 9px; }
.yili-site .footer__col a { display: inline-block; padding-block: 3px; font-size: 0.9375rem; line-height: 1.45; color: var(--heading); }
.yili-site .footer__contact { display: flex; flex-direction: column; align-items: start; gap: 14px; min-width: 0; }
.yili-site .footer__contact .btn { padding-inline: 16px; }
.yili-site .footer__mail { margin: 0; padding: 0; border: 0; color: var(--heading); font-size: 0.9375rem; font-weight: 400; overflow-wrap: anywhere; }
.yili-site .footer__contact address { max-width: 25ch; font-style: normal; font-size: 0.9375rem; line-height: 1.55; }
.yili-site .footer__contact .footer__col { margin-top: 12px; }
.yili-site .footer__bottom { width: 80%; max-width: 70rem; padding: 20px 0; align-items: center; justify-content: space-between; font-size: 0.8125rem; color: var(--ink-soft); }
.yili-site .footer__mobile-nav { display: none; }
.yili-site .footer__socials { display: flex; align-items: center; gap: 12px; }
.yili-site .social-link { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--border); border-radius: 50%; }
.yili-site .social-link img { display: block; width: 20px; height: 20px; }
.yili-site .social-link:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
@media (hover: hover) {
  .yili-site .social-link:hover { border-color: var(--ink-soft); background: var(--cream-2); }
}

@media (max-width: 1100px) {
  .yili-site .course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .yili-site .footer__grid { grid-template-columns: 0.85fr 1.55fr 1fr; gap: 28px; }
  .yili-site .footer__navigation { gap: 20px; }
}
@media (max-width: 980px) {
  .yili-site .intro-layout { grid-template-columns: 1fr 1fr; gap: 32px; }
  .yili-site .nav.menu-open { box-shadow: none; transition: none; }
  .yili-site .nav__links > li { display: flex; flex: 1 0 auto; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; width: 100%; text-align: center; }
  .yili-site .nav__links > .nav__cta-li { flex: none; margin: 12px 0 0; }
  .yili-site .nav__links .nav__cta { width: auto; min-width: min(17rem, 100%); min-height: 52px; padding: 14px 24px; border: 1px solid var(--heading); border-radius: 999px; font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.04em; color: var(--art-yellow) !important; }
  .yili-site .split-hero__photo { max-width: 640px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 100px; --type-h1: clamp(2.25rem, 6.5vw, 3rem); --type-h2: clamp(1.875rem, 5.2vw, 2.5rem); --type-h3: 1.375rem; --type-body: 1rem; --type-aux: 0.875rem; }
  .yili-site .brand__logo { height: 56px; }
  .yili-site .nav__inner { gap: 12px; }
  .yili-site .nav__book { padding-inline: 12px; font-size: 0.75rem; }
  .promotion-banner__wide { display: none; }
  .yili-site .home-hero { min-height: calc(clamp(31rem, 80svh, 40rem) - var(--nav-h)); padding-block: 2rem 2.5rem; }
  .yili-site .home-hero__copy { max-width: 34rem; }
  .yili-site .intro-layout { grid-template-columns: 1fr; gap: 32px; }
  .educator-profile { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .yili-site .home-studio-photos { width: 100%; max-width: 35rem; justify-self: center; }
  .yili-site .home-studio-photos .editorial-photo--landscape img { aspect-ratio: 1.4; }
  .yili-site .footer { padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--cream); }
  .yili-site:has(> main > .cta--simple:last-child) > .site-footer {
    padding-top: 36px;
    border-top: 0;
    background: var(--cream);
  }
  .yili-site .footer__grid { display: none; }
  .yili-site .footer__bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: none; padding: 0; margin: 0; border: 0; text-align: center; }
  .yili-site .footer__bottom p { font-size: 0.8125rem; line-height: 1.5; }
  .yili-site .footer__mobile-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 24px); }
  .yili-site .footer__mobile-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--heading); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
  .yili-site .footer__mobile-nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
  .yili-site .footer__socials { gap: 16px; padding-top: 10px; }
}
@media (max-width: 576px) {
  :root { --nav-h: 96px; }
  .yili-site .container { padding-inline: 24px; }
  .yili-site .nav__inner { grid-template-columns: 1fr auto; padding-inline: 24px; }
  .yili-site .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .yili-site .nav__toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .yili-site .nav .nav__book { display: none; }
  .yili-site .subnav a { font-size: 1rem; }
  .yili-site .home-hero .hero__title { max-width: 15ch; font-size: clamp(2.5rem, 11.8vw, 3.5rem); }
  .yili-site .home-hero .hero__actions { flex-direction: column; max-width: none; margin-top: 2rem; gap: 0.5rem; }
  .yili-site .home-hero .hero__actions .btn { flex: none; width: auto; min-width: 13.5rem; padding-inline: 1.75rem; }
  .yili-site .section { padding-block: 48px; }
  .yili-site :is(.subhero, .split-hero) { padding-block: calc(var(--nav-h) + 36px) 40px; }
  .yili-site :is(.subhero, .split-hero) .subhero__sub { font-size: 1.0625rem; }
  .yili-site .split-hero .subhero__actions .btn { width: auto; }
  .yili-site.page-parent-me .split-hero { padding-top: calc(var(--nav-h) + 24px); }
  .yili-site.page-parent-me .split-hero__grid { gap: 16px; }
  .yili-site.page-parent-me .split-hero .class-badge { margin-top: 16px; }
  .yili-site.page-parent-me .split-hero .subhero__actions { margin-top: 20px; }
  .yili-site.page-parent-me .split-hero__photo img { max-height: 38svh; }
  .yili-site .course-cards { grid-template-columns: minmax(0, 1fr); max-width: none; gap: 32px; }
  .yili-site .course-card__body { padding: 14px 0 0; }
  .yili-site .course-card h3 { font-size: 1.25rem; }
  .yili-site .course-card__label { font-size: 0.875rem; }
  .yili-site .course-card__description { font-size: 1rem; }
  .yili-site .course-card__more { padding-top: 18px; }
  .yili-site .approach-definitions article { grid-template-columns: 70px 1fr; }
  .yili-site .gallery-tabs { gap: 8px; }
  .yili-site .gallery-tabs button { padding-inline: 12px; font-size: 0.9375rem; }
}
@media (max-width: 360px) {
  .yili-site .container { padding-inline: 20px; }
  .yili-site .nav__menu-label { display: none; }
  .yili-site .course-cards, .yili-site .footer__navigation { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .yili-site .course-card__photo img { transition: none; }
  .yili-site .course-card:hover .course-card__photo img { transform: none; }
}

/* Keep the main-branch desktop navigation order and horizontal layout. */
@media (min-width: 981px) {
  :root { --nav-h: 76px; }
  .yili-site .nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; }
  .yili-site .brand { flex: none; }
  .yili-site .brand__logo { height: 42px; }
  .yili-site .nav__toggle, .yili-site .nav .nav__book { display: none; }
  .yili-site .nav__links, .yili-site .nav__links.open {
    display: flex; position: static; flex-direction: row; align-items: center; gap: clamp(15px, 1.7vw, 26px);
    width: auto; height: auto; max-height: none; margin-left: auto; padding: 0; overflow: visible;
    background: transparent; border: 0; box-shadow: none; clip-path: none;
  }
  .yili-site .nav__links > li > :is(a, button) { font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  .yili-site .nav__top { width: auto; justify-content: start; gap: 0.45em; }
  .yili-site .nav .nav__top .caret { width: 12px; height: 8px; transform: none; }
  .yili-site .nav .has-sub:not(.open) .caret { transform: none; }
  .yili-site .nav .has-sub.open .caret { transform: rotate(180deg); }
  .yili-site .nav__links .nav__cta { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em; }
  .yili-site .nav .has-sub { position: relative; }
  .yili-site .nav .has-sub .subnav {
    position: absolute; top: calc(100% + 12px); left: 50%; width: max-content;
    min-width: 260px; max-width: 360px; padding: 12px 18px;
    border: 1px solid var(--border); border-radius: 2px; background: var(--cream);
    align-items: start; box-shadow: 0 12px 24px #382c2615; transform: translateX(-50%);
  }
  .yili-site .nav .has-sub.open .subnav { transform: translateX(-50%); }
  .yili-site .nav .subnav::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
  .yili-site .nav .subnav a { padding-block: 9px; text-align: left; }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .yili-site .nav__inner { gap: 16px; }
  .yili-site .brand__logo { height: 38px; }
  .yili-site .nav__links { gap: 14px; }
}
