/* ============================================================================
   Delightful Path — TASTE Edition · sections
   wellness · therapies · approach · testimonials · space · contact · footer
   + art-direction overrides + responsive
   ============================================================================ */

/* ── shared tabs (Youth / Parent) ─────────────────────────────────────────── */
.tabs { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); overflow: hidden; }
.tabs button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 20px; color: var(--ink-soft); transition: background .2s, color .2s;
}
.tabs button.active { background: var(--ink); color: var(--bg); }

/* ============================================================================
   WELLNESS — product cards with price / ref code
   ============================================================================ */
.prog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 44px; }
.prog-head h2 { margin: 0; max-width: 14ch; }
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.prog-card {
  position: relative; background: var(--bg-card); border: 1.5px solid var(--ink);
  padding: 30px 30px 26px; cursor: pointer; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -34px rgba(20,28,20,.45); }
.prog-card .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.prog-card .pc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage);
  border: 1px solid var(--sage); border-radius: var(--radius-pill); padding: 5px 13px; white-space: nowrap;
}
.prog-card .pc-ref { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.prog-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.02; margin: 0 0 12px; letter-spacing: -0.01em; }
.prog-card .pc-desc { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.prog-card .pc-sup-l { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.prog-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 7px; }
.prog-card ul li { font-size: 13.5px; color: var(--ink-soft); padding-left: 16px; position: relative; }
.prog-card ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 1.5px; background: var(--clay-deep); }
.prog-card .pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.prog-card .pc-price { display: flex; align-items: baseline; gap: 8px; }
.prog-card .pc-price .amt { font-family: var(--display); font-size: 30px; line-height: 1; }
.prog-card .pc-price .meta { font-size: 11.5px; color: var(--muted); }
.prog-card .pc-book { appearance: none; border: 0; background: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s, color .2s; }
.prog-card .pc-book:hover { color: var(--sage); gap: 11px; }

/* ============================================================================
   THERAPIES — catalog items with photo + pill pairing
   ============================================================================ */
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.th-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1.5px solid var(--ink); overflow: hidden; }
.th-photo { position: relative; aspect-ratio: 5/4; overflow: hidden; }
.th-photo image-slot { display: block; width: 100%; height: 100%; }
.th-photo image-slot::part(frame) { background: var(--is-empty-bg, var(--bg-soft)); }
.th-photo image-slot::part(empty) { color: rgba(255,255,255,.9); text-shadow: 0 1px 2px rgba(0,0,0,.25); font-family: var(--mono); font-size: 11px; }
.th-card.tint-green   .th-photo { background: linear-gradient(140deg, #C2CFB6, #5F7157); }
.th-card.tint-clay    .th-photo { background: linear-gradient(140deg, #E3CFAF, #A98B5E); }
.th-card.tint-amber   .th-photo { background: linear-gradient(140deg, #E8D2A6, #BE945C); }
.th-card.tint-rose    .th-photo { background: linear-gradient(140deg, #E2C2B4, #AE7B68); }
.th-card.tint-lavender .th-photo { background: linear-gradient(140deg, #D2C5DC, #8F84A6); }
.th-card.tint-mist    .th-photo { background: linear-gradient(140deg, #C4D1CE, #859B97); }
.th-num { position: absolute; top: 14px; left: 14px; font-family: var(--display); font-size: 13px; color: #fff;
  background: rgba(20,28,20,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 4px 11px; border-radius: var(--radius-pill); letter-spacing: 0.04em; }
.th-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.th-body .kicker { font-size: 10px; color: var(--sage); }
.th-body h4 { font-family: var(--display); font-weight: 400; font-size: 25px; margin: 0; line-height: 1.06; letter-spacing: -0.01em; }
.th-body p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; flex: 1; }
.th-pill { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: 13px 16px; }
.th-pill .l { font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); margin-bottom: 5px; }
.th-pill .t { font-family: var(--display); font-style: italic; font-size: 14.5px; line-height: 1.3; }
.th-link { appearance: none; border: 0; background: none; cursor: pointer; padding: 0; text-align: left;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s, color .2s; }
.th-link:hover { color: var(--sage); gap: 11px; }

/* ============================================================================
   APPROACH — dark "method" spread
   ============================================================================ */
.approach { position: relative; overflow: hidden; }
.approach .glyph-wm { font-size: clamp(240px, 32vw, 520px); top: -10%; right: -2%; color: #fff; opacity: 0.045; }
.method-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.method-intro h2 { margin: 0; color: var(--bg); }
.method-intro .serves { margin-top: 24px; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--clay); }
.method-intro .lede { margin-top: 22px; }
.method-list { display: grid; }
.method-step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.18); }
.method-step:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.method-step .mn { font-family: var(--display); font-size: 40px; line-height: 0.9; color: var(--clay); }
.method-step h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--bg); letter-spacing: 0.01em; }
.method-step p { margin: 0; font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.6; }

/* ============================================================================
   TESTIMONIALS — rotating pull quote
   ============================================================================ */
.quotes { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.quotes-aside .kicker { display: block; margin-bottom: 16px; }
.quotes-aside h2 { margin: 0 0 26px; }
.q-dots { display: flex; gap: 8px; }
.q-dots button { appearance: none; border: 0; width: 30px; height: 4px; border-radius: 2px; background: var(--line); cursor: pointer; padding: 0; transition: background .25s, width .25s; }
.q-dots button.active { background: var(--ink); width: 46px; }
.q-stage { position: relative; min-height: 320px; }
.q-card { position: absolute; inset: 0; opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; pointer-events: none; margin: 0; }
.q-card.active { opacity: 1; transform: none; pointer-events: auto; }
.q-mark { font-family: var(--display); font-size: 120px; line-height: 0.6; color: var(--clay); }
.q-card blockquote { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 42px); line-height: 1.22; letter-spacing: -0.01em; margin: 8px 0 28px; text-wrap: balance; }
.q-card figcaption { display: flex; align-items: baseline; gap: 12px; border-top: 1.5px solid var(--ink); padding-top: 16px; }
.q-card .who { font-family: var(--display); font-size: 20px; }
.q-card .role { font-size: 12.5px; color: var(--muted); }

/* ============================================================================
   SPACE — contact-sheet gallery
   ============================================================================ */
.sheet { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.tile { position: relative; overflow: hidden; background: var(--bg-soft); }
.tile image-slot { display: block; width: 100%; height: 100%; }
.tile image-slot::part(frame) { background: var(--is-empty-bg, var(--bg-soft)); }
.tile image-slot::part(empty) { color: rgba(255,255,255,.9); text-shadow: 0 1px 2px rgba(0,0,0,.2); font-family: var(--mono); font-size: 11px; }
.tile .cap { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tile.t1 { grid-column: span 5; aspect-ratio: 4/3; background: linear-gradient(135deg, #DFD7C0, #AEB69E); }
.tile.t2 { grid-column: span 4; aspect-ratio: 4/3; background: linear-gradient(135deg, #E8D9BD, #C9A874); }
.tile.t3 { grid-column: span 3; aspect-ratio: 3/4; background: linear-gradient(135deg, #CBD6C2, #859B82); }
.tile.t4 { grid-column: span 4; aspect-ratio: 4/3; background: linear-gradient(135deg, #E0DBCB, #B6AE97); }
.tile.t5 { grid-column: span 8; aspect-ratio: 16/6; background: linear-gradient(120deg, #E6DECB, #C2C7B4); }

/* ============================================================================
   CONTACT — full panel "Begin"
   ============================================================================ */
.begin { position: relative; overflow: hidden; }
.begin .glyph-wm { font-size: clamp(280px, 40vw, 560px); bottom: -16%; right: -4%; color: #fff; opacity: 0.05; }
.begin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.begin h2 { margin: 0 0 18px; color: var(--bg); }
.begin .lede { margin: 0 0 28px; max-width: 460px; }
.begin-right { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.begin .mail { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--clay); }
.begin .mail span { color: rgba(255,255,255,.6); font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* ============================================================================
   FOOTER — colophon
   ============================================================================ */
.colophon { padding: clamp(48px, 6vw, 80px) 0 40px; border-top: 1.5px solid var(--ink); }
.colophon-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; margin-bottom: 48px; }
.colophon .brand { margin-bottom: 18px; }
.colophon .tag { font-size: 14px; color: var(--ink-soft); max-width: 300px; margin: 0; line-height: 1.55; }
.colophon h5 { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; }
.colophon ul a, .colophon ul li { color: var(--ink-soft); text-decoration: none; }
.colophon ul a:hover { color: var(--ink); }
.colophon-bot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.colophon-bot .l { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--ink-soft); }
.colophon-bot .r { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }

/* ============================================================================
   ART-DIRECTION OVERRIDES
   ============================================================================ */
/* SPREAD — push the drama: invert ticker, darken testimonials */
body[data-direction="spread"] .ticker { background: var(--ink); border-color: var(--ink); }
body[data-direction="spread"] .ticker .it { color: var(--bg); }
body[data-direction="spread"] .quotes-section { background: var(--ink); color: var(--bg); }
body[data-direction="spread"] .quotes-section .kicker { color: var(--clay); }
body[data-direction="spread"] .quotes-section .q-card blockquote { color: var(--bg); }
body[data-direction="spread"] .quotes-section .q-card figcaption { border-top-color: rgba(255,255,255,.4); }
body[data-direction="spread"] .quotes-section .q-card .who { color: var(--bg); }
body[data-direction="spread"] .quotes-section .q-dots button { background: rgba(255,255,255,.25); }
body[data-direction="spread"] .quotes-section .q-dots button.active { background: var(--clay); }
body[data-direction="spread"] .runhead { border-bottom-width: 3px; }

/* CATALOGUE — warm, library-ish: italic running heads, clay pills, hairline cards */
body[data-direction="catalogue"] .runhead .rh-l { font-family: var(--display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 22px; }
body[data-direction="catalogue"] .pill, body[data-direction="catalogue"] .th-pill { background: var(--clay-deep); }
body[data-direction="catalogue"] .prog-card, body[data-direction="catalogue"] .th-card { border-width: 1px; border-color: var(--line); }
body[data-direction="catalogue"] .prog-card .pc-foot, body[data-direction="catalogue"] .prog-card { }
body[data-direction="catalogue"] .badge { box-shadow: inset 0 0 0 1.5px var(--clay-deep); color: var(--clay-deep); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1000px) {
  .hero-greenhouse .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-greenhouse .plate { max-width: 460px; }
  .hero-catalogue .hero-grid { grid-template-columns: 1fr; }
  .hero-catalogue .mast-rot { writing-mode: horizontal-tb; transform: none; font-size: clamp(48px, 13vw, 90px); }
  .about-grid, .method-grid, .begin-grid { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: 1fr; }
  .th-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .q-stage { min-height: 300px; }
  .colophon-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .th-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .sheet > .tile { grid-column: 1 / -1 !important; aspect-ratio: 4/3 !important; }
  .hero-stats { gap: 22px; }
  .colophon-grid { grid-template-columns: 1fr; }
  .runhead .rh-c { display: none; }
}

/* Chinese metrics */
body[data-lang="zh"] .d1, body[data-lang="zh"] .d2, body[data-lang="zh"] .d3 { letter-spacing: 0; line-height: 1.08; }
body[data-lang="zh"] .d1 { font-size: calc(clamp(46px, 8vw, 124px) * var(--hl)); }
body[data-lang="zh"] .kicker { letter-spacing: 0.14em; }
body[data-lang="zh"] .hero-catalogue .mast-rot { letter-spacing: 0.05em; font-size: clamp(56px, 9vw, 128px); }
