@charset "UTF-8";
/* ==========================================================================
   DƯỠNG SINH — trị liệu thảo mộc
   --------------------------------------------------------------------------
   CONCEPT
   Botanical apothecary: the page is laid out like the label of a herbal
   preparation — thin rules, small caps, weighed ingredient lists — and the
   hero pairs real treatment photography with a deep-sage reading
   surface and a cream recipe label.

   PALETTE (WCAG 2.2 — every pair computed, none assumed)
     --cream         #FBF8F0  page surface
     --oat           #F2EBDC  raised card / label stock
     --surface-input #FFFDF7  form field fill
     --ink           #2E3A2B  primary text      on cream 11.3:1 / on oat 10.1:1
     --ink-soft      #5C6355  muted text        on cream  5.9:1 / on oat 5.2:1
     --sage          #5F7256  links / accents   on cream  4.9:1
     --sage-on-oat   #546449  eyebrow on oat    5.4:1 on oat / 6.0:1 on cream
     --sage-deep     #2E3A2B  dark surface
     --clay          #9A5B41  accent labels     on cream  5.0:1
     --clay-deep     #7A442F  button fill; cream on it 7.3:1
     --sage-line     #D5D9CA  hairline rules — decorative only, never a control edge
     --sage-tint     #E8EADF  quiet fill (non-text)

     Control boundaries (WCAG 1.4.11, ≥ 3:1 required)
     --field-border        #8A8371  3.71:1 on --surface-input
     --field-border-hover  #7E7765  4.38:1 on --surface-input
     --btn-ghost-line      #7C8276  3.73:1 on cream / 3.02:1 on --sage-deep
     chip + menu-toggle edge   same --field-border  3.56:1 on cream

     On --sage-deep (#2E3A2B)
     --on-dark        #FBF8F0 11.3:1   --on-dark-strong #D6DCCB 8.5:1
     --on-dark-body   #C6CEBA  7.4:1   --on-dark-muted  #C3CBB4 7.1:1
     --on-dark-soft   #B9C2AC  6.5:1   --on-dark-faint  #A9B39C 5.5:1
     --hero-accent    #D9C9A8  7.3:1   --focus-dark     #E8B79B 6.6:1
     --on-hero-accent #2A3326  8.0:1 on --hero-accent

     On --surface-input (#FFFDF7)
     --placeholder    #6B7064  5.0:1   --danger #8C3A22  7.5:1

     Focus ring: --clay-deep #7A442F on light (7.3:1); --focus-dark on dark (6.6:1)

   TYPE
     Display  Cormorant Garamond 400/500/600 + italic
     Text     Nunito Sans 300–700
     display  clamp(2.85rem,6.6vw,5.4rem) / .97 / -.022em / 500
     h2       clamp(2rem,4.2vw,3.3rem) / 1.04 / -.015em / 500
     h3       clamp(1.5rem,2vw,1.75rem) / 1.08 / -.01em / 600 (Cormorant)
     body     1.0625rem (17px) / 1.68 / 0 / 400
     prose    1rem (16px) — the floor for anything a reader must read
     small    .95rem (15.2px) / 1.5 — nav and buttons
     meta     .875rem (14px) / 1.4 — tabular rows, hints, chips
     label    .78rem (12.5px) / 1.35 / .16em uppercase
     Six steps for body copy: 12.5 / 14 / 15.2 / 16 / 17 / h3. Nothing between
     them. The brand word and footer word are the only display outliers.

   LAYOUT
     A 12-column label grid on a 1180px measure. Everything is a printed
     block: a rule above, a rule below, a designation in the left margin.
     Hero = deep-sage copy + a treatment photograph and recipe label.
     Sections alternate cream / oat / deep sage to give the page a spine.
     One section beat (--section-y) and one head beat (--head-gap) set the
     whole vertical rhythm.

   SIGNATURE MOTION
     The hero headline rises through a short translate mask, always painted.
     Photography stays still; the treatment filter and 680ms batch reveals
     provide the quieter secondary motion.

   PORT (portfolio)
     "Liệu trình" — 8 treatments, 4 categories + Tất cả, live count, empty
     state, URL-synced via ?cat=.
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --cream: #FBF8F0;
  --oat: #F2EBDC;
  --surface-input: #FFFDF7;
  --ink: #2E3A2B;
  --ink-soft: #5C6355;
  --sage: #5F7256;
  --sage-deep: #2E3A2B;
  --clay: #9A5B41;
  --clay-deep: #7A442F;
  --sage-line: #D5D9CA;
  --sage-tint: #E8EADF;
  --on-dark: #FBF8F0;
  --on-dark-strong: #D6DCCB;
  --on-dark-body: #C6CEBA;
  --on-dark-muted: #C3CBB4;
  --on-dark-soft: #B9C2AC;
  --on-dark-faint: #A9B39C;

  /* control boundaries — every one ≥ 3:1 against what it sits on */
  --field-border: #8A8371;
  --field-border-hover: #7E7765;
  --btn-ghost-line: #7C8276;
  --focus-dark: #E8B79B;
  --hero-accent: #D9C9A8;
  --on-hero-accent: #2A3326;
  --sage-on-oat: #546449;
  --danger: #8C3A22;
  --danger-tint: #FCF2ED;
  --success: #3E5638;
  --btn-solid-hover: #63361F;
  --hero-solid-hover: #EDE0C4;


  /* rules and dotted leaders (decorative, not control edges) */
  --rule-dotted: #CFC9B8;
  --sheet-gap: #D8D0BC;
  --sheet-dot: #D2CBB9;
  --form-edge: #D5CEBC;
  --label-edge: #C9C3B1;
  --placeholder: #6B7064;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-text: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --measure: 1180px;
  --gutter: clamp(1.15rem, 4.2vw, 3.5rem);
  --rule: 1px solid var(--sage-line);

  /* spacing rhythm: one section beat, one head beat */
  --section-y: clamp(3.6rem, 8vw, 6.5rem);
  --head-gap: clamp(1.6rem, 3vw, 2.4rem);

  --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --ease-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-move: cubic-bezier(.65, 0, .35, 1);
  --ease-exit: cubic-bezier(.7, 0, .84, 0);
  --ease-pop: cubic-bezier(.34, 1.4, .64, 1);
  --dur-micro: 140ms;
  --dur-small: 220ms;
  --dur-med: 320ms;
  --dur-large: 480ms;
  --dur-reveal: 680ms;
  --dur-hero: 900ms;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* anchor landings clear the sticky header */
[id] { scroll-margin-top: 92px; }

::selection { background: var(--sage); color: var(--cream); }

/* The ring follows the element's own radius in every current engine — pinning
   a radius here squared off the pill chips. */
:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 2px;
}
.hero :focus-visible,
.session :focus-visible,
.site-footer :focus-visible { outline-color: var(--focus-dark); }

.skip {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 3px;
  translate: 0 -160%;
  transition: translate var(--dur-small) var(--ease-enter);
}
.skip:focus-visible { translate: 0 0; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
/* sage on oat lands at 4.39:1 — one step deeper keeps the label legible on the
   two oat sections without changing the hue */
.leaflet .eyebrow,
.booking .eyebrow { color: var(--sage-on-oat); }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* One display step for every third-level heading. The card, sheet and step
   titles are siblings in the reading order — giving them three different
   sizes made the page feel assembled rather than set. */
.card__title,
.sheet__title,
.step__title,
.empty__title,
.label-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 1.1rem;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.72rem 1.55rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-small) var(--ease-move),
    color var(--dur-small) var(--ease-move),
    border-color var(--dur-small) var(--ease-move),
    transform var(--dur-micro) var(--ease-move);
}
.btn--solid {
  --btn-bg: var(--clay-deep);
  border-color: var(--clay-deep);
  color: var(--cream);
}
.btn--ghost { border-color: var(--btn-ghost-line); }
.btn:active { transform: scale(.97); transition-duration: 90ms; }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--btn-solid-hover); border-color: var(--btn-solid-hover); }
  .btn--ghost:hover { background: var(--sage-tint); border-color: var(--ink); }
}
.btn:focus-visible { outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--sage-line);
  opacity: 0;
}
/* CSS-only scroll reaction: hairline + shade fade in over the first 160px.
   No scroll listener, no layout property touched. */
.site-header__inner { position: relative; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: 0 14px 28px -22px rgba(46, 58, 43, .55);
  opacity: 0;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after,
    .site-header::before {
      animation: header-ink linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 150px;
    }
  }
}
@keyframes header-ink { to { opacity: 1; } }
.site-header__inner {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: 26px; height: 26px; color: var(--sage); flex: none; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
}
.brand__tag {
  display: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 0.7rem;
  border-left: 1px solid var(--sage-line);
  line-height: 1.2;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.55rem;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-small) var(--ease-enter);
}
.site-nav__list a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav__list a:hover::after { transform: scaleX(1); }
}
/* scrollspy state — the rule stays drawn, so the reader can see where they are.
   The 1px rule is reinforced with weight so the state is not colour-only. */
.site-nav__list a[aria-current] { color: var(--clay-deep); font-weight: 700; }
.site-nav__list a[aria-current]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.65rem;
  background: transparent;
  /* 3.56:1 — the toggle is a control boundary, not a hairline */
  border: 1px solid var(--field-border);
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform var(--dur-micro) var(--ease-move);
}
.menu-toggle__bars { display: grid; gap: 5px; width: 16px; }
.menu-toggle__bars i {
  display: block;
  height: 1.5px;
  background: var(--ink);
  /* the bars are 16px — --ease-pop is allowed below 40px and gives the tap
     the small overshoot the rest of the controls have */
  transition: transform var(--dur-small) var(--ease-pop), opacity var(--dur-micro) linear;
}
.menu-toggle:active { transform: scale(.97); transition-duration: 90ms; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; }
  .menu-toggle { display: none; }
  html.js .menu-toggle { display: inline-flex; }

  /* Without JS the nav stays a compact, scrollable row under the brand —
     every destination remains reachable. */
  .site-nav {
    width: 100%;
    order: 3;
    margin-top: 0.15rem;
    border-top: var(--rule);
  }
  .site-nav__list {
    flex-direction: row;
    gap: 1.35rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav__list::-webkit-scrollbar { display: none; }
  .site-nav__list a {
    padding: 0;
    min-height: 44px;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  /* the rule under the link is a desktop affordance; on the compact row the
     current item is marked by weight + colour instead */
  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current] { font-weight: 700; }

  html.js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    width: auto;
    margin-top: 0;
    background: var(--cream);
    border-bottom: var(--rule);
    display: none;
    padding: 0.4rem var(--gutter) 1.1rem;
  }
  /* display:none cannot transition, so the panel gets an entrance animation
     that runs when .is-open flips it back into the tree. */
  html.js .site-nav.is-open {
    display: block;
    animation: nav-drop var(--dur-small) var(--ease-expo) both;
  }
  @keyframes nav-drop {
    from { opacity: 0; translate: 0 -6px; }
    to   { opacity: 1; translate: 0 0; }
  }
  html.js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; overflow: visible; }
  html.js .site-nav__list li + li { border-top: var(--rule); }
  html.js .site-nav__list a { min-height: 52px; font-size: 1rem; }
}

@media (min-width: 560px) { .brand__tag { display: inline-block; } }

/* ==========================================================================
   HERO — the label face
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sage-deep);
  color: var(--on-dark);
  view-timeline: --hero block;
  padding-block: clamp(3.2rem, 8vw, 6.4rem) clamp(7.5rem, 12vw, 10.5rem);
  min-height: min(92svh, 860px);
  display: flex;
  align-items: center;
}

/* Photography has its own editorial column; copy stays on solid deep sage. */
.hero__editorial { min-width: 0; }
.hero__photograph { margin: 0; }
.hero__photograph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__photograph figcaption { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--on-dark-strong); }
.hero__editorial .label-card { margin: 26px 0 0 auto; }

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__copy { min-width: 0; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 248, 240, .2);
  max-width: 34rem;
}
.hero__facts li {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.hero__facts b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--hero-accent);
  font-variant-numeric: tabular-nums;
}

.hero__eyebrow {
  color: var(--on-dark-soft);
  letter-spacing: 0.22em;
}
.hero__eyebrow::before { background: currentColor; opacity: .5; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.85rem, 6.6vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: -0.022em;
  margin-top: 1.35rem;
  color: var(--on-dark);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--hero-accent);
  display: inline-block;
}

.hero__lede {
  max-width: 46ch;
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.72;
  color: var(--on-dark-strong);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}
.hero .btn--solid {
  --btn-bg: var(--hero-accent);
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: var(--on-hero-accent);
}
.hero .btn--ghost {
  border-color: rgba(251, 248, 240, .38);
  color: var(--on-dark);
}
@media (hover: hover) and (pointer: fine) {
  .hero .btn--solid:hover { background: var(--hero-solid-hover); border-color: var(--hero-solid-hover); }
  .hero .btn--ghost:hover { background: rgba(251, 248, 240, .1); border-color: rgba(251, 248, 240, .7); }
}

/* product label card */
.label-card {
  justify-self: end;
  width: 100%;
  max-width: 300px;
  padding: 1.5rem 1.4rem 1.35rem;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--label-edge);
  box-shadow: 0 22px 48px -34px rgba(0, 0, 0, .9);
  --label-tilt: 1.1deg;
  rotate: var(--label-tilt);
}
.label-card__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ink);
}
.label-card__name {
  margin-top: 0.6rem;
  font-size: clamp(1.4rem, 1.8vw, 1.6rem);
}
.label-card__list {
  margin-top: 0.9rem;
  border-top: 1px solid var(--sage-line);
}
.label-card__list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.34rem 0;
  font-size: 0.875rem;
  line-height: 1.35;
}
.label-card__list div + div { border-top: 1px dotted var(--rule-dotted); }
.label-card__list dt {
  flex: 1;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.label-card__list dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.label-card__foot {
  margin-top: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* hero entrance — translate mask, LCP stays painted */
@media (prefers-reduced-motion: no-preference) {
  /* The headline is the LCP node: it slides, it never fades. */
  html.js-motion .hero__title {
    animation: hero-slide var(--dur-hero) var(--ease-expo) both;
  }
  html.js-motion .hero__eyebrow,
  html.js-motion .hero__lede,
  html.js-motion .hero__actions,
  html.js-motion .hero__facts,
  html.js-motion .label-card {
    animation: hero-rise var(--dur-hero) var(--ease-enter) both;
  }
  html.js-motion .hero__eyebrow { animation-delay: 60ms; }
  html.js-motion .hero__lede { animation-delay: 260ms; }
  html.js-motion .hero__actions { animation-delay: 340ms; }
  html.js-motion .hero__facts { animation-delay: 400ms; }
  html.js-motion .label-card { animation-delay: 420ms; animation-name: hero-label; }
}
@keyframes hero-slide {
  from { translate: 0 26px; }
  to   { translate: 0 0; }
}
@keyframes hero-rise {
  from { opacity: 0; translate: 0 16px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes hero-label {
  from { opacity: 0; translate: 0 22px; rotate: 0deg; }
  to   { opacity: 1; translate: 0 0; rotate: var(--label-tilt); }
}

@media (min-width: 1024px) { .hero__facts { max-width: 32rem; } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: clamp(2.6rem, 7vw, 4rem) clamp(3rem, 8vw, 4.5rem); }
  .hero__inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .label-card { justify-self: start; max-width: 340px; --label-tilt: .8deg; }
}

/* ==========================================================================
   ETHOS — a statement block, set as a leaflet preamble
   ========================================================================== */
.ethos {
  padding-block: var(--section-y);
  border-bottom: var(--rule);
}
.ethos__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.ethos__lead h2 { max-width: 15ch; }
.ethos__body p + p { margin-top: 1.1rem; }
.ethos__body {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 54ch;
  padding-top: 0.35rem;
}
.ethos__body p:first-child { color: var(--ink); }

.ethos__rules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--head-gap);
  border-top: var(--rule);
}
.ethos__rules li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 1.15rem 1.6rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.ethos__rules li + li {
  border-left: var(--rule);
  padding-left: 1.6rem;
}
.ethos__rules .num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  flex: none;
}

@media (max-width: 860px) {
  .ethos__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .ethos__rules { grid-template-columns: 1fr; }
  .ethos__rules li { padding: 1rem 0; border-bottom: var(--rule); }
  .ethos__rules li + li { border-left: 0; padding-left: 0; }
  .ethos__rules li:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ==========================================================================
   LEAFLET — ingredient sheets
   ========================================================================== */
.leaflet {
  padding-block: var(--section-y);
  background: var(--oat);
  border-bottom: var(--rule);
}
.leaflet__grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.leaflet__head { position: sticky; top: 96px; }
.leaflet__head h2 { max-width: 12ch; }
.leaflet__note {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 34ch;
}

.leaflet__sheets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--sheet-gap);
  border: 1px solid var(--sheet-gap);
}
.sheet {
  background: var(--cream);
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
.sheet__no {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  /* --clay is 4.48:1 on oat; the sheet sits on cream, so this is 5.0:1 */
  color: var(--clay);
}
.sheet__title {
  margin-top: 0.25rem;
}
.sheet__for {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 0.35rem;
  padding-bottom: 0.75rem;
}
.sheet__rows {
  margin-top: auto;
  border-top: 1px solid var(--ink);
  padding-top: 0.5rem;
}
.sheet__rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.26rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
.sheet__rows div + div { border-top: 1px dotted var(--sheet-dot); }
.sheet__rows dt { color: var(--ink-soft); }
.sheet__rows dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sheet__method {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .leaflet__grid { grid-template-columns: 1fr; }
  .leaflet__head { position: static; }
  .leaflet__head h2 { max-width: 18ch; }
}
@media (max-width: 560px) {
  .leaflet__sheets { grid-template-columns: 1fr; }
  .sheet { min-height: 0; }
}

/* ==========================================================================
   PROCEDURES — the port section
   ========================================================================== */
.procedures {
  padding-block: var(--section-y);
  border-bottom: var(--rule);
}
.procedures__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: var(--head-gap) clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: var(--head-gap);
}
.procedures__head .eyebrow { grid-column: 1 / -1; }
.procedures__head h2 { max-width: 16ch; }
.procedures__lede {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 42ch;
  padding-bottom: 0.35rem;
}

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-block: var(--rule);
  padding-block: 0.6rem;
}
.filters__track {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* 3px of slack so the 2px focus ring on the end chip is never clipped */
  padding: 3px;
  margin: -3px;
}
.filters__track::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  /* 3.56:1 on cream — the row must read as a control group, not loose words */
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-small) var(--ease-move),
    border-color var(--dur-small) var(--ease-move),
    color var(--dur-small) var(--ease-move),
    transform var(--dur-micro) var(--ease-move);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.chip:active { transform: scale(.97); transition-duration: 90ms; }
@media (hover: hover) and (pointer: fine) {
  .chip[aria-pressed="false"]:hover { border-color: var(--sage); color: var(--ink); background: var(--sage-tint); }
}

.filters__count {
  flex: none;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  padding-left: 1rem;
  border-left: var(--rule);
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1.2rem, 2.4vw, 2.2rem);
  row-gap: 0;
  border-bottom: var(--rule);
  margin-top: 1.9rem;
}
.card {
  min-width: 0;
  border-top: var(--rule);
}
.card.is-hidden { display: none; }

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 250px;
  padding: 1.3rem 0 1.35rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: color var(--dur-small) var(--ease-move);
}
.card__link::after {
  content: "→";
  position: absolute;
  top: 1.15rem; right: 0;
  font-size: 1rem;
  color: var(--clay);
  opacity: 0;
  translate: -5px 0;
  transition: opacity var(--dur-small) var(--ease-move), translate var(--dur-small) var(--ease-expo);
}
.card__cat {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}
.card__title {
  margin-top: 0.3rem;
}
/* card__desc, step__text and the ledes carry whole sentences, so they sit on
   the 16px floor the contract sets. The tabular sheet rows stay at 14px —
   they are data, not prose. */
.card__desc {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 0.45rem;
  max-width: 30ch;
}
.card__meta {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}
.card__meta > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.3rem 0;
}
.card__meta > span + span { border-top: 1px dotted var(--rule-dotted); }
.card__meta b {
  font-family: var(--font-text);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .card__link:hover .card__cat { color: var(--ink); }
  .card__link:hover::after { opacity: 1; translate: 0 0; }
  .card__link:hover .card__title { color: var(--clay-deep); }
}
.card__link:focus-visible {
  outline-offset: 3px;
  outline-color: var(--clay-deep);
}
.card__link:focus-visible::after { opacity: 1; translate: 0 0; }

/* reveal/filter transition state — only when JS + motion are live.
   Survivors ease in over --dur-large; the exit takes --dur-med on --ease-exit,
   which is 0.67x the entrance — the contract's ~0.65x rule — and main.js waits
   exactly that long before setting display:none, so the fade is never cut. */
html.js-motion .card {
  transition:
    opacity var(--dur-large) var(--ease-enter),
    scale var(--dur-large) var(--ease-enter);
}
html.js-motion .card.is-hiding {
  opacity: 0;
  scale: .97;
  transition:
    opacity var(--dur-med) var(--ease-exit),
    scale var(--dur-med) var(--ease-exit);
}
html.js-motion .card.is-entering { opacity: 0; scale: .97; }
.cards[hidden] { display: none; }

.empty {
  border-bottom: var(--rule);
  padding: 2.6rem 0 2.8rem;
  max-width: 46ch;
}
.empty[hidden] { display: none; }
.empty__text {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-top: 0.4rem;
}
.empty .btn { margin-top: 1.2rem; }

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .procedures__head { grid-template-columns: 1fr; align-items: start; gap: 0.9rem; }
  .procedures__head h2 { max-width: 20ch; }
}
@media (max-width: 700px) {
  .filters { flex-wrap: wrap; gap: 0.5rem; padding-block: 0.5rem; }
  .filters__track {
    width: 100%;
    /* the 3px ring slack is already inside the negative margin, so the
       full-bleed row lands exactly on the viewport edge */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: calc(var(--gutter) - 3px);
  }
  .filters__count { border-left: 0; padding-left: 0; order: -1; width: 100%; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; column-gap: 0; }
  .card__link { min-height: 0; padding: 1.15rem 0 1.2rem; }
  .card__desc { max-width: none; }
  .card__meta { padding-top: 0.9rem; }
  .card__link::after { top: 1.05rem; }
}

/* ==========================================================================
   SESSION — the protocol, set as numbered runs of a printed schedule
   ========================================================================== */
.session {
  padding-block: var(--section-y);
  background: var(--sage-deep);
  color: var(--on-dark);
}
.session__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.session .eyebrow { color: var(--on-dark-muted); }
.session__head h2 { max-width: 14ch; }
.session__lede {
  margin-top: 1.2rem;
  color: var(--on-dark-body);
  font-size: 1rem;
  max-width: 34ch;
}

.steps { border-top: 1px solid rgba(251, 248, 240, .22); }
.step {
  display: grid;
  grid-template-columns: 8.2rem minmax(0, 1fr);
  gap: 0.2rem 1.6rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(251, 248, 240, .16);
}
.step__time {
  grid-row: 1 / span 2;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.45rem;
  line-height: 1.4;
}
.step__text {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--on-dark-body);
  max-width: 48ch;
  margin-top: 0.35rem;
}

@media (max-width: 860px) {
  .session__grid { grid-template-columns: 1fr; gap: 2rem; }
  .session__head h2 { max-width: 18ch; }
  .step { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.25rem 0; }
  .step__time { grid-row: auto; padding-top: 0; }
}

/* ==========================================================================
   BOOKING — a printed request slip
   ========================================================================== */
.booking {
  padding-block: var(--section-y);
  background: var(--oat);
}
.booking__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.booking__intro h2 { max-width: 15ch; }
.booking__intro > p {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  max-width: 40ch;
  font-size: 1rem;
}
.booking__points {
  margin-top: 1.6rem;
  border-top: var(--rule);
  max-width: 42ch;
}
.booking__points li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.3rem;
  border-bottom: 1px dotted var(--rule-dotted);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.booking__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.28rem;
  width: 6px; height: 6px;
  background: var(--clay);
  border-radius: 50%;
}

.form {
  background: var(--cream);
  border: 1px solid var(--form-edge);
  padding: clamp(1.3rem, 3vw, 2rem);
  display: grid;
  gap: 1.15rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  background: var(--surface-input);
  /* 3.71:1 against the field fill — WCAG 1.4.11 needs the boundary at 3:1 */
  border: 1px solid var(--field-border);
  border-radius: 2px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur-small) var(--ease-move), background-color var(--dur-small) var(--ease-move);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field select:hover { border-color: var(--field-border-hover); }
}
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 2px;
  border-color: var(--clay-deep);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-tint); }

.field__hint {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.field__error {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--danger);
  font-weight: 600;
}
.field__error[hidden] { display: none; }

.form__submit { justify-self: start; margin-top: 0.25rem; }
.form__note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  min-height: 1.3em;
}
.form__note.is-ok { color: var(--success); font-weight: 600; }

@media (max-width: 860px) {
  .booking__grid { grid-template-columns: 1fr; }
  .booking__intro h2 { max-width: 20ch; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--sage-deep);
  color: var(--on-dark);
  padding-block: clamp(2.6rem, 5vw, 3.6rem) 1.6rem;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(251, 248, 240, .18);
}
.site-footer__word {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}
.site-footer__line {
  margin-top: 0.55rem;
  color: var(--on-dark-soft);
  font-size: 1rem;
  max-width: 34ch;
}
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  color: var(--on-dark-strong);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__nav a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.4rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--on-dark-faint);
}
.site-footer__bottom a {
  color: var(--on-dark-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__mark {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.site-footer__mark span { color: var(--hero-accent); }

/* ==========================================================================
   REVEALS — batch staggered, content visible without JS
   ========================================================================== */
html.js-motion [data-reveal] {
  opacity: 0;
  translate: 0 18px;
}
html.js-motion [data-reveal].is-revealed {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity var(--dur-reveal) var(--ease-enter),
    translate var(--dur-reveal) var(--ease-enter);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ==========================================================================
   REDUCED MOTION / CONTRAST / TRANSPARENCY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js-motion [data-reveal] { opacity: 1 !important; translate: none !important; scale: none !important; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .site-header::before, .site-header::after { opacity: 1; }
}

@media (prefers-contrast: more) {
  .site-header {
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 2px solid var(--ink);
  }
  .card, .sheet, .form { border-color: var(--ink); }
  .chip { border-color: var(--ink); color: var(--ink); }
  .field input, .field select { border-color: var(--ink); border-width: 2px; }
  .hero__lede, .hero__eyebrow { color: #FFFFFF; }
  .step__text, .session__lede, .site-footer__line, .site-footer__bottom { color: #E4E8DC; }
  .label-card { border-color: var(--ink); border-width: 2px; }
  .leaflet .eyebrow, .booking .eyebrow { color: var(--ink); }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--sage-line);
  }
}


/* The courtyard is an atmosphere study, not a claim about a treatment room. */
.session__photo { margin: 28px 0 0; }
.session__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.session__photo figcaption { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--on-dark-strong); }
@media (min-width: 900px) { .label-card { align-self: end; } }

@media (min-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; } }
