/* ==========================================================================
   Conscious Shift · shared styles for index.html and garden.html
   Brand pages use the base styles. The garden page adds body.garden touches
   at the bottom of this file.
   ========================================================================== */

:root {
  /* Brand colours (from the original site, refined for AA contrast) */
  --green: #435D4E;
  --green-dark: #263E34;
  --ivory: #F4F0E8;
  --sage: #C5D0C2;
  --sage-pale: #E5EAE1;
  --taupe: #A38A70;        /* decorative only: lines, numbers on dark */
  --taupe-text: #7A634D;   /* taupe that passes AA on light backgrounds */
  --ink: #2C3530;
  --muted: #5B645D;
  --paper: #FFFDF9;
  --line: #E2DFD5;
  --focus: #7A634D;

  /* Type */
  --font-head: "Exo 2", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  /* Rhythm */
  --gutter: 20px;
  --max: 1280px;
  --section: clamp(72px, 10vw, 128px);
  --radius: 14px;
  --header-h: 68px;
}

@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-dark); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 400; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 400; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.4; font-weight: 600; }
:lang(zh-CN) h1 { letter-spacing: 0.01em; line-height: 1.2; }
:lang(zh-CN) h2 { letter-spacing: 0.01em; line-height: 1.3; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-dark); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--green-dark); color: #E9EDE6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--sage); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; color: var(--muted); max-width: 40em; }
.section--dark .lead { color: #C9D2C6; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.7; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head--split { max-width: none; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
}

/* ---------- Buttons: primary is always filled, secondary always outline ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid var(--green); border-radius: 999px;
  font: 600 15px/1.3 var(--font-body); letter-spacing: 0.01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--green-dark); }
.btn-secondary:hover { background: var(--green); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.section--dark .btn-primary, .on-dark .btn-primary { background: var(--ivory); border-color: var(--ivory); color: var(--green-dark); }
.section--dark .btn-primary:hover { background: #fff; border-color: #fff; }
.section--dark .btn-secondary { border-color: var(--sage); color: #fff; }
.section--dark .btn-secondary:hover { background: var(--sage); color: var(--green-dark); }
.section--dark :focus-visible { outline-color: var(--sage); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row > .btn { width: 100%; } }

.text-link {
  color: var(--green-dark); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--taupe);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: block; flex: none; }
.brand img { width: 148px; height: auto; }
@media (min-width: 768px) { .brand img { width: 190px; } }
.site-nav { margin-left: auto; }
.nav-list { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav-list a {
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--taupe); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 28px; }

.lang-toggle { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-toggle button {
  background: none; border: 0; padding: 8px 6px; min-width: 32px; min-height: 40px; cursor: pointer; color: var(--muted);
}
.lang-toggle button[aria-pressed="true"] { color: var(--green-dark); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--taupe); }
.lang-toggle span { color: var(--line); }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--green-dark); position: relative; transition: transform .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1079px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; box-shadow: 0 24px 40px rgba(38, 62, 52, .08);
  }
  .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
  .site-nav + .header-actions { margin-left: auto; }
}
@media (max-width: 379px) { .header-actions .btn { padding-inline: 14px; } .brand img { width: 128px; } }
@media (min-width: 1080px) { .menu-toggle { display: none; } }

/* ---------- Hero (brand) ---------- */
.hero { padding-block: clamp(64px, 11vw, 140px) clamp(64px, 9vw, 112px); }
.hero h1 { max-width: 13em; }
.hero h1 .accent { color: var(--taupe-text); display: block; }
.hero .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }
.hero-meta {
  margin-top: clamp(56px, 8vw, 96px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 15px;
}
.hero-meta img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Growth path ---------- */
.path { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: stage; position: relative; }
.path-stage { position: relative; padding: 0 0 48px 64px; }
.path-stage:last-child { padding-bottom: 0; }
.path-stage::before { /* connecting line */
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: var(--sage);
}
.path-stage:last-child::before { display: none; }
.path-node {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--green);
  font: 500 15px/1 var(--font-head); color: var(--green-dark);
}
.path-stage:last-child .path-node { background: var(--green); color: #fff; }
.path-tag { font: 600 12px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-text); }
.path-stage h3 { margin: 6px 0 12px; }
.path-stage p { color: var(--muted); }
.path-start {
  margin-top: 18px; padding: 14px 16px; background: var(--ivory); border-radius: 10px; font-size: 15px; color: var(--ink);
}
.section--ivory .path-start { background: var(--paper); }
.path-start b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 2px; }
@media (min-width: 1024px) {
  .path { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .path-stage { padding: 72px 0 0; }
  .path-stage::before { left: 52px; right: -40px; top: 21px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Ways to grow: two cards ---------- */
.ways { display: grid; gap: 20px; }
@media (min-width: 900px) { .ways { grid-template-columns: 1.15fr 1fr; gap: 28px; } }
.way {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper);
}
.way--feature { background: var(--green-dark); border-color: var(--green-dark); color: #E3E9E0; }
.way--feature h3 { color: #fff; }
.way--feature .way-label { color: var(--sage); }
.way--feature .way-list li::before { background: var(--sage); }
.way--feature :focus-visible { outline-color: var(--sage); }
.way-label { font: 600 12px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-text); }
.way h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 400; }
.way-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.way-list li { position: relative; padding-left: 20px; }
.way-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--taupe); }
.way .btn-row { margin-top: auto; padding-top: 12px; }

/* ---------- 1:1 section ---------- */
.oneonone-grid { display: grid; gap: clamp(48px, 7vw, 88px); }
@media (min-width: 1024px) { .oneonone-grid { grid-template-columns: 1fr 380px; align-items: start; } }
.sub-block + .sub-block { margin-top: clamp(48px, 6vw, 72px); }
.sub-block > h3 { margin-bottom: 24px; }
.areas { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .areas { grid-template-columns: 1fr 1fr; } }
.area { background: var(--paper); padding: 24px; }
.area h4 { margin-bottom: 6px; color: var(--green-dark); }
.area p { font-size: 15px; color: var(--muted); }
.steps { list-style: none; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: step; padding-top: 16px; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font: 500 14px/1 var(--font-head); color: var(--taupe-text); display: block; margin-bottom: 10px; }
.steps h4 { margin-bottom: 4px; }
.steps p { font-size: 15px; color: var(--muted); }
.note-box { padding: 24px; border-left: 2px solid var(--sage); background: var(--ivory); border-radius: 0 10px 10px 0; }
.note-box h4 { margin-bottom: 8px; }
.note-box p + p { margin-top: 10px; }
.disclaimer { font-size: 14px; color: var(--muted); }

.price-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 32px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line);
}
.price-card .who { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.price-card .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.price-card .who strong { display: block; color: var(--green-dark); }
.price-card .who span { font-size: 14px; color: var(--muted); }
.price-card .sr-heading { font: 600 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.price { font: 400 44px/1 var(--font-head); color: var(--green-dark); letter-spacing: -0.02em; }
.price small { font: 400 16px/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; }
.price-card .btn { width: 100%; margin-top: 24px; }
.program { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.program strong { color: var(--green-dark); }
.program .btn { margin-top: 16px; }
@media (max-width: 1023px) { .price-card { position: static; } }

/* ---------- Garden teaser on homepage ---------- */
.teaser { display: grid; gap: 40px; }
@media (min-width: 900px) { .teaser { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.teaser .lead { margin-top: 20px; }
.teaser .btn-row { margin-top: 32px; }

/* ---------- Events (cards built by site.js from the Google Sheet) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.events { display: grid; gap: 20px; }
@media (min-width: 768px) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Events page: up to 3 per row, starting from the left. */
@media (min-width: 1100px) { .events--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Conscious Garden: up to 3 cards of a set width, centred, including a
   last card that wraps onto its own row. */
.events.events--center { display: flex; flex-wrap: wrap; justify-content: center; }
.events--center > * { flex: 0 1 380px; min-width: 0; }
@media (max-width: 767px) { .events--center > * { flex-basis: 100%; } }
.events-more--center { text-align: center; }
.events[data-limit="1"], .events--list { grid-template-columns: minmax(0, 1fr); }
.events--list { gap: 32px; }
.event {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px 24px 24px 6px;
  transition: border-color .25s, box-shadow .25s;
}
.event:hover { border-color: #D6D1C3; box-shadow: 0 18px 40px -30px rgba(38, 62, 52, .45); }
.event-media { display: block; background: var(--ivory); overflow: hidden; }
.event-media img { width: 100%; aspect-ratio: 2064 / 512; object-fit: cover; transition: transform .6s ease; }
.event:hover .event-media img { transform: scale(1.02); }
.event-body { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3.4vw, 36px); flex: 1; }
.event-main { display: grid; gap: 10px; align-content: start; }
.event-main .way-label { margin: 0; }
.event-title { font-size: clamp(22px, 2.2vw, 26px); font-weight: 400; line-height: 1.3; }
.event-title a { text-decoration: none; background: linear-gradient(var(--taupe), var(--taupe)) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.event-title a:hover { background-size: 100% 1px; }
.event-desc { color: var(--muted); }
.event-side { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.event-facts { list-style: none; padding: 0; display: grid; gap: 12px; }
.event-facts li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.fact-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-pale); color: var(--green); }
.fact-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fact-k { display: block; font-size: 12px; line-height: 1.4; letter-spacing: .08em; color: var(--muted); }
.fact-v { display: block; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.event-actions { margin-top: auto; }
.event-actions .btn { padding-inline: 22px; }

.event-badge {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--ivory);
  color: var(--taupe-text); font-size: 13px; font-weight: 600;
}
@media (min-width: 900px) {
  .event--wide .event-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; padding: 44px 48px; }
  .event--wide .event-side { padding-left: 48px; border-left: 1px solid var(--line); }
  .event--wide .event-title { font-size: clamp(28px, 3vw, 36px); }
  .event--wide .event-desc { font-size: 17px; margin-top: 6px; }
}
.event--loading { min-height: 340px; background: linear-gradient(100deg, var(--ivory) 30%, var(--paper) 50%, var(--ivory) 70%) 0 0 / 300% 100%; animation: cs-shimmer 1.6s ease-in-out infinite; }
.event--wide.event--loading { min-height: 460px; }
@keyframes cs-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .event--loading { animation: none; } .event-media img { transition: none; } }
.section--dark .event { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section--dark .event:hover { border-color: rgba(255,255,255,.28); box-shadow: none; }
.section--dark .event-title { color: #fff; }
.section--dark .event-main .way-label { color: var(--sage); }
.section--dark .fact-icon { background: rgba(197, 208, 194, .16); color: var(--sage); }
.section--dark .fact-k, .section--dark .event-desc { color: #C9D2C6; }
.section--dark .fact-v { color: #fff; }
.section--dark .event--loading { background: rgba(255,255,255,.06); animation: none; }
.events-empty {
  padding: 32px; border-radius: var(--radius); border: 1px dashed var(--sage); display: grid; gap: 20px; justify-items: start;
}
.section--dark .events-empty { border-color: rgba(197, 208, 194, .5); }
.events-more { margin-top: 28px; }

/* ---------- About ---------- */
.about { display: grid; gap: 48px; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.about-photo { margin: 0; max-width: 440px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--ivory); }
.about h2 { margin-bottom: 8px; }
.about .role { color: var(--taupe-text); font-weight: 600; margin-bottom: 28px; }
.about .bio p + p { margin-top: 16px; }
.about blockquote {
  margin: 32px 0 0; padding-left: 20px; border-left: 2px solid var(--taupe);
  font: 400 clamp(19px, 2vw, 22px)/1.5 var(--font-head); color: var(--green-dark);
}
.creds { margin-top: 40px; }
.creds h3 { font-size: 13px; font-family: var(--font-body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.creds ul { list-style: none; padding: 0; }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.creds li strong { font-weight: 600; color: var(--ink); }
.creds li span { font-size: 14px; color: var(--muted); }
.creds .disclaimer { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: 80px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 500 18px/1.45 var(--font-head); color: var(--green-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 44em; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- Closing CTA ---------- */
.closing { text-align: left; }
.closing h2 { max-width: 15em; }
.closing .lead { margin-top: 20px; }
.closing .btn-row { margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #C9D2C6; padding-block: 64px 32px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--sage); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 200px; background: var(--paper); padding: 10px 14px; border-radius: 10px; }
.footer-brand p { margin-top: 18px; max-width: 24em; }
.footer-title { font: 600 12px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.contact-row { display: flex; gap: 10px; align-items: baseline; }
.contact-row .label { color: #A9B5A7; min-width: 5.5em; font-size: 14px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #A9B5A7; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ==========================================================================
   Garden page: light garden touches only
   ========================================================================== */
body.garden { --paper: #FDFBF5; --ivory: #F2F0E4; --line: #E0DDCF; }
body.garden .site-header { background: rgba(253, 251, 245, 0.94); }

.garden-hero { padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px); background: var(--ivory); overflow: hidden; }
.garden-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .garden-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.garden-hero h1 .accent { display: block; color: var(--taupe-text); font-size: .62em; line-height: 1.3; margin-top: 10px; }
.garden-hero .lead { margin-top: 24px; }
.garden-hero .btn-row { margin-top: 36px; }
.growth-art { width: 100%; max-width: 520px; justify-self: center; color: var(--green); }
.growth-art text { font: 600 12px var(--font-body); letter-spacing: .12em; fill: var(--muted); }

.leaf-mark { width: 28px; height: 28px; color: var(--green); }
.offer-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } .offer-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.offer {
  padding: 32px 28px; border-radius: 22px 22px 22px 6px; background: var(--paper); border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
}
.section--ivory .offer { background: var(--paper); }
.offer .icon { width: 44px; height: 44px; color: var(--green); }
.offer .sub { font-size: 14px; color: var(--taupe-text); font-weight: 600; }
.offer p { color: var(--muted); font-size: 15px; }

.join-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .join-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.join-card {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 44px);
  border-radius: 24px 24px 24px 6px; border: 1px solid var(--line); background: var(--paper);
}
.join-card--feature { background: var(--green-dark); border-color: var(--green-dark); color: #E3E9E0; }
.join-card--feature h3 { color: #fff; }
.join-card--feature .way-label { color: var(--sage); }
.join-card--feature :focus-visible { outline-color: var(--sage); }
.join-card ol { padding-left: 1.2em; display: grid; gap: 4px; }
.join-card .btn { margin-top: auto; align-self: flex-start; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px 22px 22px 6px; background: var(--ivory); }
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

body.garden .faq summary::after { border-color: var(--green); }
.sprig { display: block; width: 56px; height: 24px; color: var(--sage); margin-bottom: 16px; }
.section--dark .sprig { color: var(--sage); }

/* ==========================================================================
   Multi-page additions
   ========================================================================== */

/* ---------- Organic background shapes (echo the logo's watercolour forms) ---------- */
.has-shapes { position: relative; overflow: hidden; isolation: isolate; }
.has-shapes::before, .has-shapes::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: center / contain no-repeat; opacity: .55;
}
.has-shapes::before { width: clamp(260px, 42vw, 620px); aspect-ratio: 600 / 520; top: -14%; right: -12%; background-image: url(../img/shapes/blob-sage.svg); }
.has-shapes::after  { width: clamp(180px, 26vw, 380px); aspect-ratio: 520 / 480; bottom: -12%; left: -8%; background-image: url(../img/shapes/blob-blush.svg); opacity: .5; }
.has-shapes.shapes-b::before { background-image: url(../img/shapes/blob-butter.svg); aspect-ratio: 420 / 380; right: -6%; top: -10%; width: clamp(200px, 30vw, 420px); }
.has-shapes.shapes-b::after { background-image: url(../img/shapes/blob-sage.svg); aspect-ratio: 600 / 520; left: auto; right: -10%; bottom: -20%; }
.section--dark.has-shapes::before, .section--dark.has-shapes::after { opacity: .08; }

/* ---------- Image frames ---------- */
.img-frame { margin: 0; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; background: var(--ivory); }
.img-arch img { border-radius: 999px 999px 18px 18px; aspect-ratio: 4 / 5; }
.img-soft img { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.img-blob img { border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%; aspect-ratio: 1; }
body.garden .img-soft img { border-radius: 22px 22px 22px 6px; }
.img-frame figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- Page heroes ---------- */
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; } }
.hero-grid .img-frame { max-width: 440px; justify-self: center; width: 100%; }
.page-hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); background: var(--ivory); }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 14em; }
.page-hero .lead { margin-top: 24px; }
.page-hero .btn-row { margin-top: 32px; }

/* ---------- In-page jump links ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; padding: 0; }
.jump a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--green-dark);
}
.jump a:hover { border-color: var(--green); }

/* ---------- Values ---------- */
.values { display: grid; gap: 20px; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.value { padding-top: 20px; border-top: 1px solid var(--taupe); }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; padding: 0; }
.tags li { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--sage-pale); color: var(--green-dark); }
.path-en { margin-top: 10px; font-size: 14px; font-style: italic; color: var(--muted); }

/* ---------- Service cards ---------- */
.services { display: grid; gap: 20px; }
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; gap: 28px; } }
.service {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 44px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.service .way-label { margin: 0; }
.service h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; }
.service .en-sub { font-size: 14px; color: var(--muted); margin-top: -8px; }
.service .price { font-size: 36px; margin-top: 6px; }
.service .btn { margin-top: auto; align-self: flex-start; }
.service--feature { background: var(--green-dark); border-color: var(--green-dark); color: #E3E9E0; }
.service--feature h3, .service--feature .price { color: #fff; }
.service--feature .price small, .service--feature .en-sub, .service--feature .disclaimer { color: #C9D2C6; }
.service--feature .way-label { color: var(--sage); }
.service--feature .way-list li::before { background: var(--sage); }
.service--feature :focus-visible { outline-color: var(--sage); }
.service--feature .btn-primary { background: var(--ivory); border-color: var(--ivory); color: var(--green-dark); }

.outcomes { display: grid; gap: 20px; }
@media (min-width: 768px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .outcomes { grid-template-columns: repeat(4, 1fr); } }
.outcome { padding: 24px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.outcome .num { font: 500 14px/1 var(--font-head); color: var(--taupe-text); display: block; margin-bottom: 14px; }
.outcome h3 { font-size: 19px; margin-bottom: 8px; }
.outcome p { font-size: 15px; color: var(--muted); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--rev > :first-child { order: 2; } }
.points { list-style: none; padding: 0; display: grid; gap: 18px; margin-top: 28px; counter-reset: pt; }
.points li { counter-increment: pt; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.points li::before { content: "0" counter(pt); grid-row: span 2; font: 500 15px/1.6 var(--font-head); color: var(--taupe-text); }
.points b { color: var(--green-dark); font-weight: 600; }
.points span { color: var(--muted); font-size: 15px; }

.space-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .space-grid { grid-template-columns: repeat(3, 1fr); } }
.space-grid h3 { font-size: 18px; margin-top: 14px; }
.space-grid p { font-size: 15px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 4vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #CFCBBE; border-radius: 10px;
  background: #fff; color: var(--ink); font: 400 16px/1.5 var(--font-body);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field-error { color: #9B2C2C; font-size: 14px; margin-top: 6px; }
.form-status { margin-top: 14px; font-size: 15px; color: var(--green-dark); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.contact-card h3 { font-size: 19px; }
.contact-card p { font-size: 15px; color: var(--muted); }
.contact-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote-card {
  margin: 0; padding: 32px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px; position: relative;
}
.quote-card::before { content: "“"; font: 400 64px/0.6 var(--font-head); color: var(--taupe); height: 28px; }
.quote-card blockquote { margin: 0; font-size: 17px; line-height: 1.75; color: var(--ink); }
.quote-card figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.quote-invite {
  display: grid; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
@media (min-width: 900px) { .quote-invite { grid-template-columns: 1fr auto; } }
.quote-invite p.big { font: 400 clamp(20px, 2.4vw, 26px)/1.5 var(--font-head); color: var(--green-dark); }

/* ---------- Articles ---------- */
.articles { display: grid; gap: 16px; }
@media (min-width: 900px) { .articles { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.article { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.article .way-label { margin-bottom: 10px; display: block; }
.article h3 { font-size: 21px; margin-bottom: 10px; }
.article > p { color: var(--muted); font-size: 15px; }
.article details { margin-top: 14px; }
.article summary { cursor: pointer; font-weight: 600; color: var(--green-dark); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.article summary::-webkit-details-marker { display: none; }
.article summary::after { content: "+"; font-size: 18px; line-height: 1; }
.article details[open] summary::after { content: "–"; }
.article details p { margin-top: 12px; font-size: 15px; }

/* ---------- Challenge ---------- */
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #F3E7C4; color: #5E4A12; font-size: 13px; font-weight: 600; }
.phases { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 640px) { .phases { grid-template-columns: 1fr 1fr; } }
.phases li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.phases b { display: block; color: var(--green-dark); }
.phases span { font-size: 14px; color: var(--muted); }

/* ---------- Instagram themes ---------- */
.themes { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 768px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.theme { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.theme .way-label { display: block; margin-bottom: 6px; }

/* ---------- Offer images (garden) ---------- */
.offer .img-frame { margin: -32px -28px 8px; }
.offer .img-frame img { border-radius: 22px 22px 0 0; aspect-ratio: 16 / 10; }

.split > .img-blob, .hero-grid > .img-blob { max-width: 440px; width: 100%; justify-self: center; }

/* ---------- Background photos (Unsplash stock, see assets/img/stock/CREDITS.txt) ---------- */
.bg-leaves {
  background: linear-gradient(rgba(38, 62, 52, .88), rgba(38, 62, 52, .9)), url(../img/stock/bg-leaves-dark.webp) center / cover no-repeat;
}
.bg-leaf-shadow {
  background: url(../img/stock/bg-leaf-shadow.webp) right center / cover no-repeat, var(--ivory);
  background-blend-mode: multiply;
}

/* ==========================================================================
   Belief card draw (same ritual as the Conscious Garden app)
   ========================================================================== */
.tone--sage  { --tone: #8FA68A; --tone-deep: #4F6B4C; --tone-bg: #E8EEE2; }
.tone--clay  { --tone: #C69B74; --tone-deep: #7E5535; --tone-bg: #F3E6DA; }
.tone--moss  { --tone: #5E7A5B; --tone-deep: #33493A; --tone-bg: #DFE6D9; }
.tone--stone { --tone: #A59D8C; --tone-deep: #5C5546; --tone-bg: #ECE8DF; }
.tone--mist  { --tone: #9FB4B2; --tone-deep: #45605E; --tone-bg: #E3EBEA; }
.tone--sun   { --tone: #D8B768; --tone-deep: #775D20; --tone-bg: #F5ECD3; }
.tone--blush { --tone: #D9A99A; --tone-deep: #85483A; --tone-bg: #F6E6DF; }

/* Two columns: short intro on the left, the deck on the right */
.draw-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.draw-layout > * { min-width: 0; }
@media (min-width: 960px) { .draw-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.draw-intro > * + * { margin-top: 16px; }
.draw-intro .lead { margin-top: 20px; }
.draw-note { margin-top: 14px; text-align: center; }

/* ---------- Theme boxes (card deck boxes) ---------- */
.theme-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; margin-top: 32px !important; }
@media (max-width: 959px) {
  .theme-boxes {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin: 28px calc(-1 * var(--gutter)) 0 !important; padding: 8px var(--gutter) 4px;
  }
  .theme-boxes::-webkit-scrollbar { display: none; }
  .theme-box { flex: 0 0 84px; scroll-snap-align: start; }
}
.theme-box {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
  cursor: pointer; color: var(--ink); font: 600 13px/1.3 var(--font-body); text-align: center; border-radius: 12px;
}
.theme-box-art { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.05; }
.theme-box-case {
  position: absolute; z-index: 2; left: 6%; right: 6%; bottom: 0; height: 60%; border-radius: 10px;
  background: linear-gradient(155deg, var(--tone) 0%, var(--tone-deep) 130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 18px -10px rgba(42,54,43,.55);
  transition: box-shadow .3s;
}
.theme-box-case::before { /* lid line */
  content: ""; position: absolute; left: 0; right: 0; top: 22%; height: 1px; background: rgba(255,255,255,.35);
}
.theme-box-case::after { /* small seal */
  content: ""; position: absolute; left: 50%; top: 61%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: rgba(255,253,248,.85); box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}
.theme-box--all .theme-box-case { background: linear-gradient(135deg, #8FA68A 0%, #D8B768 50%, #D9A99A 100%); }
.theme-box-card {
  position: absolute; z-index: 1; left: 25%; width: 50%; bottom: 22%; aspect-ratio: 5 / 7.4; border-radius: 6px;
  background: linear-gradient(180deg, #FFFDF8, var(--tone-bg));
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
  transform: translateY(14%); transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.theme-box-card:nth-child(1) { transform: translate(-10%, 16%) rotate(-7deg); }
.theme-box-card:nth-child(3) { transform: translate(10%, 16%) rotate(7deg); }
.theme-box:hover:not(:disabled) .theme-box-card:nth-child(1), .theme-box:focus-visible .theme-box-card:nth-child(1), .theme-box.is-on .theme-box-card:nth-child(1) { transform: translate(-30%, -12%) rotate(-14deg); }
.theme-box:hover:not(:disabled) .theme-box-card:nth-child(2), .theme-box:focus-visible .theme-box-card:nth-child(2), .theme-box.is-on .theme-box-card:nth-child(2) { transform: translateY(-22%); }
.theme-box:hover:not(:disabled) .theme-box-card:nth-child(3), .theme-box:focus-visible .theme-box-card:nth-child(3), .theme-box.is-on .theme-box-card:nth-child(3) { transform: translate(30%, -12%) rotate(14deg); }
.theme-box.is-on .theme-box-case { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 3px var(--paper), 0 0 0 5px var(--tone-deep), 0 12px 20px -10px rgba(42,54,43,.6); }
.theme-box.is-on .theme-box-label { color: var(--tone-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--tone); }
.theme-box:disabled { cursor: default; opacity: .55; }
.theme-box:focus-visible { outline-offset: 4px; }

/* ---------- Stage + deck ---------- */
.draw-stage {
  --card-w: clamp(112px, 32vw, 140px);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  aspect-ratio: 1 / 1; padding: 22px 16px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 40%, color-mix(in srgb, var(--tone-bg) 90%, #fff) 0%, #EFE7D8 100%);
  border: 1px solid var(--line); transition: background .6s ease;
}
@media (min-width: 768px) { .draw-stage { --card-w: 190px; gap: 18px; } }
@media (min-width: 1200px) { .draw-stage { --card-w: 210px; } }
.draw-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.6) 0, transparent 30%), radial-gradient(circle at 85% 75%, rgba(255,255,255,.4) 0, transparent 25%);
}
/* Deck on top, then the button, then the hint. The deck area is the card
   height plus room for the orbit, so the group sits high in the box. */
.draw-deck { position: relative; width: 100%; flex: none; height: calc(var(--card-w) * 1.48 + 44px); }
@media (min-width: 768px) { .draw-deck { height: calc(var(--card-w) * 1.48 + 72px); } }
.draw-hint { position: relative; z-index: 210; min-height: 1.6em; text-align: center; color: var(--ink); font-size: 15px; }
@media (min-width: 768px) { .draw-hint { font-size: 16px; } }
.draw-card { position: absolute; left: 50%; top: 50%; width: var(--card-w); aspect-ratio: 5 / 7.4; will-change: transform; transform: translate(-50%, -50%); transition: opacity .2s; }
.card-back {
  border-radius: 14px; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, var(--tone) 0%, var(--tone-deep) 120%);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 14px 28px -12px rgba(42,54,43,.45);
}
.cb-pattern { display: block; width: 100%; height: 100%; }

/* Play / stop: a pill under the deck, icon and label on one line */
.play-btn {
  position: relative; z-index: 200; flex: none;
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px 0 20px; border-radius: 999px; border: 0;
  background: var(--green-dark); color: var(--ivory); cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(38,62,52,.7); transition: transform .22s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.play-btn:hover:not(:disabled) { transform: scale(1.04); }
.play-btn:active:not(:disabled) { transform: scale(.96); }
.play-btn:disabled { cursor: default; }
.draw-stage.is-settling .play-btn, .draw-stage.is-revealed .play-btn { opacity: 0; }
.play-icon { display: grid; place-items: center; width: 18px; height: 18px; }
.play-icon svg { display: block; }
.play-label { font: 600 14px/1 var(--font-body); letter-spacing: .12em; }
.play-ring { position: absolute; inset: -6px; border-radius: 999px; border: 1.5px solid var(--tone-deep); opacity: .5; animation: cs-ring 2.8s ease-out infinite; pointer-events: none; }
.play-btn.is-playing .play-ring { animation-duration: 1.2s; border-color: #C69B74; }
@keyframes cs-ring { 0% { transform: scale(.96); opacity: .7; } 100% { transform: scale(1.18); opacity: 0; } }

/* ---------- Popup (native <dialog>) ---------- */
html.draw-open { overflow: hidden; }
.draw-dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
.draw-dialog::backdrop { background: rgba(31, 46, 39, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: cs-fade .35s ease both; }
.draw-dialog.is-out::backdrop { opacity: 0; transition: opacity .4s; animation: none; }
.draw-dialog-inner {
  position: relative; display: grid; grid-template-columns: 320px minmax(0, 340px); gap: 64px; align-items: center;
  width: min(920px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto;
  padding: 64px 80px; border-radius: 32px;
  background: radial-gradient(80% 90% at 20% 30%, color-mix(in srgb, var(--tone-bg) 85%, #fff) 0%, var(--paper) 100%);
  box-shadow: 0 40px 80px -30px rgba(20, 30, 25, .6);
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s;
}
.draw-dialog.is-out .draw-dialog-inner { transform: scale(.82); opacity: 0; }
.draw-close {
  position: absolute; top: 12px; right: 12px; z-index: 5; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.draw-close:hover { border-color: var(--tone); }
.draw-dialog-card { width: 100%; perspective: 1400px; }
.draw-flip { position: relative; transform-style: preserve-3d; transform: rotateY(180deg); }
.draw-flip-back, .draw-flip-front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.draw-flip-back { position: absolute; inset: 0; border-radius: 22px; }
.draw-flip-front { transform: rotateY(180deg); }
.draw-dialog-panel { display: grid; gap: 14px; }
.draw-dialog.is-in .draw-dialog-panel { animation: cs-rise .6s .85s cubic-bezier(.22,1,.36,1) both; }
.draw-dialog-theme { font: 700 12px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--tone-deep); }
.draw-dialog-title { font-size: clamp(24px, 3vw, 30px); font-weight: 400; color: var(--green-dark); }
.draw-dialog-body { color: var(--muted); }
.draw-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.draw-status { min-height: 1.2em; font-size: 14px; color: var(--green-dark); }
.draw-next { padding-top: 16px; border-top: 1px solid var(--line); }
.draw-next-title { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.draw-next ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.draw-layout > .draw-next { display: none; } /* only shown inside the popup */
@keyframes cs-fade { from { opacity: 0; } }
@keyframes cs-rise { from { opacity: 0; transform: translateY(12px); } }

@media (min-width: 720px) and (max-width: 1023px) {
  .draw-dialog-inner { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 56px 48px; }
}

/* Phones: the popup becomes a bottom sheet */
@media (max-width: 719px) {
  .draw-dialog { margin: auto 0 0; width: 100%; }
  .draw-dialog-inner {
    grid-template-columns: 1fr; gap: 20px; width: 100vw; max-height: 100dvh;
    padding: 60px 28px calc(32px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  }
  .draw-dialog-card { width: min(260px, calc(52dvh * .676)); justify-self: center; }
  .draw-dialog.is-out .draw-dialog-inner { transform: translateY(30%); }
}

/* Card face */
.gcard {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 5 / 7.4; width: 100%;
  padding: 24px 20px 16px; border-radius: 22px; text-align: center; color: var(--ink); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #FFFDF8 0%, var(--tone-bg) 100%);
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.55), inset 0 0 0 7px color-mix(in srgb, var(--tone) 25%, transparent), 0 30px 60px -20px rgba(42,54,43,.5);
}
.gcard::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 14%, transparent); }
.gcard-top { position: relative; font: 700 11px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--tone-deep); }
.gcard-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.gcard-statement { font: 400 clamp(19px, 2.2vw, 23px)/1.45 var(--font-head); color: var(--tone-deep); max-width: 13em; text-wrap: balance; }
:lang(en) .gcard-statement { font-style: italic; }
.gcard-rule { display: flex; align-items: center; gap: 8px; color: var(--tone); margin: 8px 0; }
.gcard-rule span { width: 36px; height: 1px; background: currentColor; opacity: .6; }
.gcard-question { font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 17em; }
.gcard-question-label { display: block; font: 700 11px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--tone-deep); margin-bottom: 4px; }
.gcard-foot { position: relative; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 719px) { .gcard { padding: 18px 16px 12px; } .gcard-question { font-size: 14px; } }

.text-button { background: none; border: 0; padding: 8px 4px; font-weight: 600; color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--taupe); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .play-ring, .draw-dialog::backdrop, .draw-dialog.is-in .draw-dialog-panel { animation: none; }
  .theme-box-card { transition: none; }
}

/* ==========================================================================
   Event registration (register.html)
   ========================================================================== */
.reg-hero { padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 88px); }
.reg-hero h1 { font-size: clamp(34px, 5.4vw, 60px); max-width: 16em; }
.reg-hero .lead { margin-top: 20px; }
.reg-hero .btn-row { margin-top: 36px; }
.reg-back { margin-bottom: clamp(28px, 4vw, 48px); font-size: 15px; }
.reg-back a { color: var(--green-dark); text-decoration: none; font-weight: 500; }
.reg-back a:hover { text-decoration: underline; text-decoration-color: var(--taupe); text-underline-offset: 4px; }
.reg-facts { margin-top: 36px; gap: 20px 32px; max-width: 920px; }
@media (min-width: 640px) { .reg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .reg-facts { grid-template-columns: repeat(4, auto); justify-content: start; } }
.reg-facts .fact-icon { background: var(--paper); }

/* Loading skeleton */
.sk { display: block; border-radius: 999px; background: linear-gradient(100deg, #E9E4D9 30%, #F6F2EA 50%, #E9E4D9 70%) 0 0 / 300% 100%; animation: cs-shimmer 1.6s ease-in-out infinite; }
.sk--eyebrow { width: 120px; height: 12px; margin-bottom: 28px; }
.sk--title { width: min(560px, 90%); height: clamp(34px, 5vw, 52px); border-radius: 12px; margin-bottom: 14px; }
.sk--short { width: min(340px, 60%); }
.sk-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
.sk--fact { width: 150px; height: 34px; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* Details + form */
.reg-section { padding-top: clamp(40px, 6vw, 72px); }
.reg-banner { margin: 0 0 clamp(40px, 6vw, 72px); }
.reg-banner img { width: 100%; border-radius: 22px 22px 22px 6px; background: var(--ivory); }
.reg-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .reg-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); gap: 72px; align-items: start; }
  .reg-aside.is-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
}
.reg-desc { line-height: 1.9; max-width: 62ch; color: var(--muted); }
.reg-desc strong { color: var(--green-dark); font-weight: 600; }
.reg-desc hr { border: 0; height: 1px; width: 56px; background: var(--taupe); margin: 28px 0; }
.reg-info { display: grid; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 62ch; }
@media (min-width: 640px) { .reg-info { grid-template-columns: 1.4fr 1fr; gap: 32px; } }
.reg-info .way-label { margin-bottom: 6px; }
.reg-info p:not(.way-label) { font-size: 15px; color: var(--ink); }
.reg-info a { color: var(--green-dark); font-weight: 600; text-decoration-color: var(--taupe); text-underline-offset: 3px; }
#register { scroll-margin-top: calc(var(--header-h) + 16px); }
#formTop { scroll-margin-top: calc(var(--header-h) + 16px); }
.reg-form { border-radius: 24px 24px 24px 6px; box-shadow: 0 24px 48px -36px rgba(38, 62, 52, .45); }
.reg-form-title { font-size: clamp(26px, 2.6vw, 32px); font-weight: 400; margin-bottom: 18px; }
.reg-sub { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.reg-lede { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.reg-legend { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.reg-form .field { margin-bottom: 18px; }
.reg-form .req { color: #9B2C2C; margin-left: 2px; }
.reg-form input[readonly] { background: var(--ivory); color: var(--muted); }
.reg-form input:disabled, .reg-form select:disabled, .reg-form textarea:disabled { background: var(--ivory); color: var(--muted); cursor: not-allowed; }
.reg-form [aria-invalid="true"] { border-color: #9B2C2C; }
.reg-page .i { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reg-facts .fact-icon svg { width: 17px; height: 17px; }

.reg-steps { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13px; }
.reg-step { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.reg-step__n { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.reg-step.is-active { color: var(--ink); }
.reg-step.is-active .reg-step__n { background: var(--green); border-color: var(--green); color: #fff; }
.reg-step.is-done .reg-step__n { background: var(--sage-pale); border-color: var(--sage-pale); color: var(--green); }
.reg-steps__bar { flex: 1; height: 1px; background: var(--line); min-width: 16px; }

.reg-phonerow { display: flex; gap: 8px; }
.reg-phonerow select { flex: 0 0 112px; }
.reg-phonerow input { flex: 1; min-width: 0; }
.reg-submit { width: 100%; }
.reg-actions { display: grid; gap: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.reg-notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.reg-notice .i { margin-top: 3px; }
.reg-notice--info { background: var(--sage-pale); color: var(--green-dark); }
.reg-notice--caution { background: #FAF1E2; color: #7C5726; }
.reg-notice--error { background: #FAEDE9; color: #8E3826; }
.reg-rule { border: 0; height: 1px; background: var(--line); margin: 28px 0; }

.reg-pay { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 20px; background: var(--ivory); border-radius: 14px; }
.reg-pay--noqr #payQrSlot { display: none; }
.reg-pay__qr { width: 150px; height: auto; aspect-ratio: 215 / 236; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; }
.reg-pay__amt { font: 400 30px/1.1 var(--font-head); color: var(--green-dark); margin-bottom: 12px; }
.reg-bank { font-size: 15px; }
.reg-bank dt { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-top: 10px; }
.reg-bank dt:first-child { margin-top: 0; }
.reg-bank dd { color: var(--ink); font-weight: 500; }
.reg-bank dd.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.reg-drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed #CFCBBE; border-radius: 12px; background: #fff; }
.reg-drop:hover { border-color: var(--green); }
.reg-drop .i { color: var(--green); }
.reg-form .reg-drop input[type=file] { min-height: 0; padding: 0; border: 0; background: none; font-size: 14px; flex: 1; min-width: 0; color: var(--muted); }
.reg-drop input[type=file]::file-selector-button { font: 500 14px var(--font-body); margin-right: 12px; padding: 7px 14px; cursor: pointer; border: 1.5px solid var(--green); border-radius: 999px; background: transparent; color: var(--green-dark); }
.reg-filename { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--green); }

.spin { width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid rgba(255,255,255,.38); border-top-color: #fff; border-radius: 50%; animation: cs-spin .7s linear infinite; }
@keyframes cs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

.reg-done { text-align: center; padding: 12px 0 4px; display: grid; justify-items: center; gap: 4px; }
.reg-done__mark { width: 56px; height: 56px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-pale); color: var(--green); }
.reg-done__mark .i { width: 26px; height: 26px; flex-basis: 26px; }
.reg-done .btn { margin-top: 12px; }

/* In-app browser bar (Instagram, Facebook and the like) */
.iab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--green-dark); color: #fff;
  font-size: 13px; line-height: 1.3; box-shadow: 0 -2px 12px rgba(38, 62, 52, .2);
}
.iab[hidden] { display: none; }
body.has-iab .site-footer { padding-bottom: 96px; }
.iab__txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.iab__btn {
  flex: 0 0 auto; font: 600 13px var(--font-body); padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; text-decoration: none; white-space: nowrap;
}
.iab__x { flex: 0 0 auto; background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.6); font-size: 18px; line-height: 1; padding: 4px; }


/* Returning member: masked details + "update my details" */
.reg-returning { padding: 16px 18px; border-radius: 14px; background: var(--sage-pale); color: var(--green-dark); margin-bottom: 20px; display: grid; gap: 6px; }
.reg-returning__hi { font-size: 16px; }
.reg-returning__note { font-size: 14px; color: var(--ink); }
.reg-returning strong { font-weight: 600; }
.reg-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-size: 14px; cursor: pointer; }
.reg-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); flex: none; }
.reg-preview { display: grid; gap: 6px; margin: 4px 0 2px; font-size: 14px; }
.reg-preview > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.reg-preview dt { color: var(--muted); }
.reg-preview dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.reg-missing-note { font-size: 14px; color: var(--green-dark); margin-bottom: 14px; }
.reg-hint { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.reg-hint a { color: var(--green-dark); font-weight: 600; text-decoration-color: var(--taupe); text-underline-offset: 3px; }
.reg-returning .reg-hint { margin-top: 4px; }

/* ==========================================================================
   Register page: banner-first layout (register.html).
   register-backup.html keeps the previous hero layout and its styles above.
   ========================================================================== */
.reg-top { padding-block: clamp(24px, 4vw, 44px) clamp(56px, 8vw, 104px); }
.reg-top .reg-back { margin-bottom: clamp(16px, 2.4vw, 28px); }
.reg-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .reg-top .reg-aside.is-sticky { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (min-width: 1024px) {
  .reg-grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; }
}
.reg-main { display: grid; gap: 28px; min-width: 0; align-content: start; }
/* Sticky needs every ancestor to leave overflow alone: "clip" still hides
   the background shapes but, unlike "hidden", keeps position: sticky working. */
.reg-top.has-shapes { overflow: clip; }
.reg-top .reg-banner { margin: 0 0 clamp(24px, 3.4vw, 40px); }
.reg-top .reg-banner img { width: 100%; border-radius: 22px; background: var(--ivory); }
.reg-top .reg-titlebox:not(.visually-hidden) { margin-bottom: clamp(24px, 3.4vw, 40px); }
.reg-titlebox h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.2; }
.reg-titlebox .eyebrow { margin-bottom: 12px; }

/* ul.… beats the base ul[role="list"] { padding: 0 } reset. */
ul.reg-factgrid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
}
/* Sized by the column it sits in, not the screen: beside the 460px form the
   column can be narrow even on a wide screen. */
.reg-main { container-type: inline-size; }
@container (min-width: 600px) { ul.reg-factgrid { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(28px, 4vw, 48px); } }
.reg-factgrid__wide { grid-column: 1 / -1; }
.reg-factgrid .fact-v a { color: var(--green-dark); font-weight: 600; text-decoration-color: var(--taupe); text-underline-offset: 3px; }

.reg-jump .btn { width: 100%; }
@media (min-width: 1024px) { .reg-jump { display: none; } }
.reg-about .eyebrow { margin-bottom: 16px; }
.reg-contact { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.reg-contact a { color: var(--green-dark); font-weight: 600; text-decoration-color: var(--taupe); text-underline-offset: 3px; }
@container (max-width: 599px) { ul.reg-factgrid { padding: 18px 16px; gap: 16px; } .reg-factgrid > li:first-child { grid-column: 1 / -1; } }
/* Date, time and fee stay on one line; only the venue wraps. */
@container (min-width: 600px) { .reg-factgrid > li:not(.reg-factgrid__wide) .fact-v { white-space: nowrap; } }

/* Event card without a usable banner */
.event-media--placeholder {
  display: grid; place-items: center; aspect-ratio: 2064 / 512; text-decoration: none;
  background: radial-gradient(120% 140% at 15% 20%, var(--sage-pale) 0%, var(--ivory) 70%);
  border-bottom: 1px solid var(--line);
}
.event-media--placeholder span { font: 600 12px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-text); }
.section--dark .event-media--placeholder { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.section--dark .event-media--placeholder span { color: var(--sage); }
