/* ============================================================
   PEACH AESTHETICS CO — "THE PEACH EDIT, ISSUE No. 01"
   Mobile-first (designed at 380px, enhanced upward).
   Motion contract:
     - one easing: cubic-bezier(.22,1,.36,1)
     - three durations: 150ms / 400ms / 700ms
     - transform + opacity only (exceptions specced in brief)
     - ALL motion lives inside @media (prefers-reduced-motion: no-preference)
     - initial "hidden" states only apply under html.js (no-JS = static magazine)
   ============================================================ */

/* ------------------------------------------------------------
   0 · Tokens
   ------------------------------------------------------------ */
:root {
  --bone:  #F7F2EA;
  --blush: #F1DECF;
  --dusk:  #F0D6BC;
  --peach: #E8B393;
  --coral: #E58D83;        /* the brand logo-lockup colour */
  --coral-deep: #D9756B;
  --clay:  #8A4A2B;
  --clay-pressed: #6E3920;
  --ink:   #221D18;
  --sage:  #7C8470;        /* decorative borders / chips */
  --sage-text: #566049;    /* AA-passing sage for text */

  --ease: cubic-bezier(.22, 1, .36, 1);
  --d-tap: 150ms;
  --d-hover: 400ms;
  --d-reveal: 700ms;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --pad-y: clamp(4.5rem, 12vw, 8.5rem);

  --booking-bar-h: 64px;
}

/* ------------------------------------------------------------
   1 · Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* anchor offset lives on .section scroll-margin-top only — never both */
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  overflow-x: hidden; /* fallback for browsers without `clip` (iOS 15 Safari) */
  overflow-x: clip;
}

::selection { background: var(--peach); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, blockquote, p, ul, ol, figure, address {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
address { font-style: normal; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.visit :focus-visible,
.colophon :focus-visible,
.mobile-bar :focus-visible {
  outline-color: var(--peach);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — first focusable element */
.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 200;
  background: var(--ink);
  color: var(--bone);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ------------------------------------------------------------
   2 · Ambient layer (grain + aurora) — fixed, behind everything
   ------------------------------------------------------------ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.blob {
  position: absolute;
  width: 64vmax; height: 64vmax;
  border-radius: 50%;
}
.blob-1 {
  top: -22vmax; right: -18vmax;
  background: radial-gradient(circle at 38% 38%,
    rgba(241, 222, 207, .85) 0%,
    rgba(232, 179, 147, .38) 42%,
    rgba(232, 179, 147, 0) 68%);
}
.blob-2 {
  bottom: -28vmax; left: -20vmax;
  background: radial-gradient(circle at 60% 45%,
    rgba(240, 214, 188, .8) 0%,
    rgba(232, 179, 147, .3) 45%,
    rgba(232, 179, 147, 0) 70%);
}

/* ------------------------------------------------------------
   3 · Type system
   ------------------------------------------------------------ */
.kicker {
  font: 600 .6875rem/1.4 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sage-text);
  margin-bottom: 1.25rem;
}
.kicker-dark { color: var(--peach); }

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-bottom: 1.5rem;
}

.measure { max-width: 38rem; }
.measure p + p { margin-top: 1em; }

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "wght" 340;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  line-height: 1.25;
  max-width: 24ch;
  margin: 2.5rem 0 1.5rem;
  color: var(--clay);
}
.pullquote .w { display: inline-block; }

.microcopy {
  font-size: .875rem;
  color: var(--sage-text);
  max-width: 38rem;
}

/* Body links — clay underline on light sections (>=3:1 on bone/blush; peach was ~1.67:1) */
.lnk {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--clay), var(--clay));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 2px;
}
.lnk:hover {
  background-image: linear-gradient(var(--clay), var(--clay));
  background-size: 100% 4px;
}
/* Dark (ink) sections keep the peach underline — ~9:1 there */
.lnk-dark {
  background-image: linear-gradient(var(--peach), var(--peach));
}
.lnk-dark:hover {
  background-image: linear-gradient(var(--peach), var(--peach));
  background-size: 100% 4px;
}

/* ------------------------------------------------------------
   4 · Button system
   ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  /* magnetic pull vars — composed into every transform state */
  transform: translate(var(--mx, 0px), var(--my, 0px));
}

.btn-clay {
  background: var(--clay);
  color: var(--bone);
}
/* Ink-fill: pseudo rises inside on hover */
.btn-clay::before,
.btn-peach::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
}
.btn-peach {
  background: var(--peach);
  color: var(--ink);
}
.btn-peach:hover { color: var(--bone); }

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--clay);
  transform: translateY(101%);
}
.btn-ghost:hover { color: var(--bone); border-color: var(--clay); }

/* Apricot Jam squish — universal pressed state */
.btn:active {
  transform: translate(var(--mx, 0px), var(--my, 0px)) scaleX(1.04) scaleY(.96);
  background-color: var(--clay-pressed);
  color: var(--bone);
}

.btn-sm { min-height: 44px; padding: .55rem 1.4rem; }
.btn-xl {
  min-height: 56px;
  padding: 1.1rem 2rem;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  white-space: normal;
}

/* Touch: no ink-fill rise, quick colour/shadow only */
@media (hover: none) {
  .btn-clay:active, .btn-ghost:active, .btn-peach:active {
    box-shadow: 0 2px 10px rgba(34, 29, 24, .25);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform var(--d-hover) var(--ease), background-color var(--d-tap) var(--ease), color var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease); }
  .btn:hover { transition-duration: var(--d-tap); }
  .btn:active { transition-duration: var(--d-tap); }
  .btn-clay::before, .btn-ghost::before, .btn-peach::before {
    transition: transform var(--d-hover) var(--ease);
  }
  @media (hover: hover) {
    .btn-clay:hover::before, .btn-ghost:hover::before, .btn-peach:hover::before {
      transform: translateY(0);
    }
  }
  .lnk { transition: background-size var(--d-hover) var(--ease), background-image var(--d-hover) var(--ease); }
  .nav-link { transition: transform var(--d-hover) var(--ease); }
}

/* ------------------------------------------------------------
   5 · Persistent layer — hairline, nav, mobile bar
   ------------------------------------------------------------ */
.progress-hairline {
  display: none; /* only exists where scroll-driven animation is supported */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--peach);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 120;
}

.site-head { position: relative; }

/* Small screens: wordmark + scrollable anchor strip in flow.
   (Booking lives in the persistent mobile bar, so the Book button hides.) */
.site-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .8rem .5rem .25rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.wordmark img {
  height: 34px;
  width: auto;
}
.nav-links {
  display: flex;
  /* Must NOT be a scroll container (overflow:auto/scroll/hidden): on iOS a
     position:fixed descendant (the Treatments submenu) gets clipped to it.
     Wrap to a second line on very narrow screens instead. */
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  padding: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .45rem;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: .82rem;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  background-image: linear-gradient(var(--peach), var(--peach));
  background-repeat: no-repeat;
  background-position: 50% calc(100% - 8px);
  background-size: 0% 2px;
}
.nav-link:hover { background-size: 80% 2px; }
.site-nav > .btn { display: none; }

@media (min-width: 769px) {
  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 110;
    flex-direction: row;
    gap: 2rem;
    padding: .8rem var(--pad-x);
    background: rgba(247, 242, 234, .92);
    border-bottom: 1px solid rgba(34, 29, 24, .08);
  }
  .wordmark img { height: 42px; }
  .nav-links {
    gap: 1.75rem;
    margin: 0 auto;
    overflow: visible;
    padding: 0;
  }
  .nav-link { padding: 0; font-size: .95rem; }
  .site-nav > .btn { display: inline-flex; }
}

/* Mobile sticky booking bar — always visible, zero scroll JS */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: .6rem;
  height: calc(var(--booking-bar-h) + env(safe-area-inset-bottom, 0px));
  padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
}
.bar-book { flex: 1; min-height: 48px; }
.bar-tel {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--peach);
  color: var(--peach);
}

@media (max-width: 768px) {
  body { padding-bottom: calc(var(--booking-bar-h) + env(safe-area-inset-bottom, 0px) + 12px); }
}
@media (min-width: 769px) {
  .mobile-bar { display: none; }
}

/* ------------------------------------------------------------
   6 · Section scaffolding
   ------------------------------------------------------------ */
.section {
  padding: var(--pad-y) var(--pad-x);
  scroll-margin-top: 1rem; /* no fixed header on small screens */
}
@media (min-width: 769px) {
  .section { scroll-margin-top: 4.5rem; } /* clears the ~57px fixed nav */
}
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
}

/* Image frames with graceful gradient fallback */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(247, 242, 234, .55) 0%, rgba(247, 242, 234, 0) 50%),
    linear-gradient(150deg, var(--blush) 0%, var(--peach) 75%, #DDA27E 100%);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph--failed img { display: none; }
.ph--failed::after {
  content: "Peach Aesthetics Co";
  position: absolute;
  inset: auto 0 1rem 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(34, 29, 24, .55);
  font-size: .9rem;
}

/* ------------------------------------------------------------
   7 · 01 COVER
   ------------------------------------------------------------ */
.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 16vh, 8rem) var(--pad-x) 2rem;
  text-align: center;
}
.cover-kicker { margin-bottom: 2rem; }

.cover-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.75rem, 11vw, 8rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0 auto;
  max-width: 12ch;
}
.cover-title .w { display: inline-block; }

.cover-sub {
  margin: 1.75rem auto 0;
  max-width: 28rem;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.cover-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 2.25rem;
}

.trust-strip {
  margin: 2rem auto 0;
  max-width: 44rem;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.9;
  color: var(--sage-text);
}

.issue-line {
  margin-top: auto;
  padding-top: 3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  color: rgba(34, 29, 24, .65);
}

/* Masthead Bloom — pure CSS on-load reveal (works without JS) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(.35em); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* LCP-safe variant for the H1: starts at .01 so the heading counts as
     painted immediately instead of waiting out the stagger choreography */
  @keyframes rise-title {
    from { opacity: .01; transform: translateY(.35em); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .cover-title .w {
    animation: rise-title var(--d-reveal) var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
  .cover [data-load] {
    animation: rise var(--d-reveal) var(--ease) both;
    animation-delay: calc(280ms + var(--i, 0) * 90ms);
  }
  /* Aurora drift — 26s transform-only loops */
  @keyframes drift-1 {
    from { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%  { transform: translate3d(-6vmax, 5vmax, 0) rotate(10deg); }
    to   { transform: translate3d(0, 0, 0) rotate(0deg); }
  }
  @keyframes drift-2 {
    from { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(7vmax, -4vmax, 0); }
    to   { transform: translate3d(0, 0, 0); }
  }
  .blob-1 { animation: drift-1 26s linear infinite; }
  .blob-2 { animation: drift-2 26s linear infinite; }

  /* Smooth in-page anchors */
  html { scroll-behavior: smooth; }
}

/* Battery: no continuous blob drift on phones (the static gradients keep the
   look), and pause ambient motion entirely when the tab is hidden (JS toggles
   .page-hidden via the Page Visibility API). */
@media (max-width: 768px) {
  .blob-1, .blob-2 { animation: none; }
}
.page-hidden .blob-1,
.page-hidden .blob-2,
.page-hidden .marquee-track { animation-play-state: paused; }

/* Hero weight breathing — the ink "dries" on scroll out (H1 only) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes ink-dry {
      from { font-variation-settings: "wght" 340; }
      to   { font-variation-settings: "wght" 440; }
    }
    .cover-title {
      animation: ink-dry linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

/* ------------------------------------------------------------
   8 · Folio marquees
   ------------------------------------------------------------ */
.marquee {
  position: relative; /* anchors the pause/play toggle */
  padding: 1.1rem 0;
  border-top: 1px solid rgba(34, 29, 24, .07);
  border-bottom: 1px solid rgba(34, 29, 24, .07);
}
.marquee-viewport {
  overflow: hidden;
  height: 2.6rem;
  display: flex;
  align-items: center;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
}
.marquee-seg {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "wght" 340;
  font-size: clamp(1.25rem, 3.2vw, 1.9rem);
  color: var(--clay); /* ~6.1:1 on bone — peach was ~1.67:1 (WCAG 1.4.3) */
}
.marquee-static {
  display: none;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--clay);
  white-space: normal;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes marquee-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .marquee-track { animation: marquee-x 28s linear infinite; }
  .marquee.is-offscreen .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { display: none; }
  .marquee-static { display: block; }
}

/* Pause/play control — WCAG 2.2.2 (button injected by JS; hidden when
   reduced motion already shows the static line and nothing moves) */
.marquee-toggle {
  position: absolute;
  top: 50%; right: .6rem;
  transform: translateY(-50%);
  z-index: 1;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid var(--clay);
  color: var(--clay);
  background: var(--bone);
}
.marquee-toggle:hover { background: var(--clay); color: var(--bone); }
.marquee-toggle .icon-play { display: none; }
.marquee.is-paused .icon-play { display: block; }
.marquee.is-paused .icon-pause { display: none; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-toggle { display: none; }
}

/* ------------------------------------------------------------
   9 · 03 THE EDITORS
   ------------------------------------------------------------ */
.editors { background: var(--blush); }

.editors-grid {
  display: grid;
  gap: 3rem;
}

.editors-frames {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 24rem;
}
.frame { aspect-ratio: 4 / 5; }
.frame img { aspect-ratio: 4 / 5; }
.frame-2 { transform: rotate(1.4deg); }

@media (min-width: 900px) {
  .editors-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: center;
  }
  .editors-frames { order: 2; }
  .editors-copy { order: 1; }
}

/* ------------------------------------------------------------
   10 · 05 THE INDEX
   ------------------------------------------------------------ */
.index { padding-inline: 0; }
.index-head { padding-inline: var(--pad-x); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.75rem;
}
.chip {
  min-height: 44px;
  padding: .5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--sage);
  color: var(--sage-text);
  font-weight: 600;
  font-size: .9rem;
  background: var(--bone);
}
.chip[aria-pressed="true"] {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--bone);
}
@media (prefers-reduced-motion: no-preference) {
  .chip { transition: background-color var(--d-hover) var(--ease), color var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease); }
}

/* The rail */
.rail {
  display: flex;
  gap: clamp(.9rem, 3vw, 1.5rem);
  margin-top: 2.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem calc(50vw - min(39vw, 220px)) 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--peach) transparent;
}

.cover-card {
  flex: 0 0 min(78vw, 440px);
  scroll-snap-align: center;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 4vw, 1.6rem);
  border: 1px solid rgba(34, 29, 24, .1);
  border-radius: 22px;
  background: var(--bone);
  content-visibility: auto;
  contain-intrinsic-size: 340px 620px;
  cursor: pointer;
}
/* Pre-painted blush overlay — crossfaded by opacity only (the "ripen") */
.cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 21px;
  background: var(--blush);
  opacity: 0;
}
.cover-card.is-centered::after,
.cover-card.is-open::after { opacity: 1; }
.cover-card.is-open { border-color: var(--clay); }

/* Filter dimming — dim, don't remove (opacity only, zero layout shift) */
.cover-card.dim { opacity: .35; }

.card-tag {
  align-self: flex-start;
  font: 600 .6875rem/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sage-text);
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: .45rem .8rem;
  margin-bottom: 1rem;
}
.card-art {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}
.card-name {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.45rem, 5vw, 1.8rem);
  line-height: 1.12;
  margin-top: .4rem;
}
.card-promise {
  margin-top: .6rem;
  font-size: .95rem;
  color: rgba(34, 29, 24, .8);
  flex-grow: 1;
}
.dossier-trigger {
  align-self: flex-start;
  margin-top: 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(var(--peach), var(--peach));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 8px);
  background-size: 100% 2px;
}
.dossier-trigger:hover { color: var(--clay); }
.dossier-trigger[aria-expanded="true"] {
  color: var(--clay);
  background-image: linear-gradient(var(--clay), var(--clay));
}
/* No-JS: every article already renders expanded below, so the inert triggers hide */
.no-js .dossier-trigger { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .cover-card {
    transition: transform var(--d-hover) var(--ease), opacity var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease);
  }
  .js .cover-card::after { transition: opacity var(--d-hover) var(--ease); }
  .js .cover-card:not(.is-centered):not(.is-open) { transform: scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
  .cover-card.dim { opacity: .35; } /* state still applies, no transition */
}
@media (min-width: 900px) {
  .rail { padding-inline: max(var(--pad-x), calc(50vw - 590px)); }
}

/* Dot progress indicator — wraps so 10 x 44px never overflows narrow viewports */
.dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .25rem;
  padding-inline: var(--pad-x);
}
.dot {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.dot::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--peach);
  border: 1.5px solid var(--clay); /* >=3:1 boundary on bone (WCAG 1.4.11) */
  transform: scaleX(1);
}
.dot.is-active::before {
  background: var(--clay);
  border-color: var(--clay);
  transform: scaleX(3);
  border-radius: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .dot::before { transition: transform var(--d-tap) var(--ease), background-color var(--d-tap) var(--ease); }
}

/* The dossier — in-flow expansion below the rail */
.dossier {
  margin: 1.5rem var(--pad-x) 0;
}
.dossier-inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  background: var(--blush);
  border-radius: 22px;
  padding: clamp(1.5rem, 5vw, 3rem);
}
/* Collapsed: zero height, out of the a11y tree. Open: natural height — no cap,
   so content (and the booking CTA) can never be clipped at any font size.
   The open/close itself is instant (no layout-property transition, honouring
   the transform/opacity contract); the inner opacity crossfade carries the motion. */
.js .dossier {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  margin-top: 0;
}
.js .dossier.open {
  max-height: none;
  overflow: visible;
  visibility: visible;
  margin-top: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  .js .dossier-inner {
    opacity: 0;
    transition: opacity var(--d-hover) var(--ease) 100ms;
  }
  .js .dossier.open .dossier-inner { opacity: 1; }
  .js .dossier-inner.is-swapping {
    opacity: 0;
    transition-duration: 200ms;
    transition-delay: 0s;
  }
}

.dossier-close {
  display: none;
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid var(--clay);
  color: var(--clay);
  background: var(--bone);
}
.dossier-close:hover { background: var(--clay); color: var(--bone); }
.js .dossier-close { display: inline-flex; }

.dossier-article + .dossier-article { margin-top: 3rem; } /* no-JS: stacked, readable */
.js .dossier-article { display: none; margin: 0; }
.js .dossier-article.is-active { display: block; }

.dossier-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-right: 3rem;
}
.dossier-heading {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.1;
  scroll-margin-top: 5.5rem; /* clears the fixed nav when focus scrolls here */
}
.dossier-heading:focus { outline: none; }
.dossier-heading:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

.dossier-cols { display: grid; gap: 1.5rem; }
.dossier-cols h4 {
  font: 600 .6875rem/1.4 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sage-text);
  margin-bottom: .5rem;
}
@media (min-width: 769px) {
  .dossier-cols { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
}
.consult-note {
  margin: 1.5rem 0;
  font-size: .875rem;
  color: var(--sage-text);
  border-left: 2px solid var(--sage);
  padding-left: .9rem;
  max-width: 38rem;
}

/* ------------------------------------------------------------
   11 · 05b BY THE NUMBERS (Korean Glass Facial stats)
   ------------------------------------------------------------ */
.stats { background: var(--blush); }
.stats-grid {
  display: grid;
  gap: 2.25rem;
  margin: 2.5rem 0 2rem;
}
.stat-value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(3.25rem, 12vw, 5.5rem);
  line-height: 1;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: .45em; color: var(--clay); margin-left: .1em; } /* ~5:1 on blush */
.stat-label {
  margin-top: .5rem;
  max-width: 16rem;
  color: rgba(34, 29, 24, .8);
}
.stats-note { margin-bottom: 1.5rem; }
@media (min-width: 769px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------
   12 · 06 CONSULT FIRST (The Process)
   ------------------------------------------------------------ */
.steps-wrap {
  position: relative;
  margin-top: 3.5rem;
  padding-left: 20px; /* thread hugs left margin at 380px */
}
.thread {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 2px;
  background: var(--clay);
  transform-origin: top center;
}
.steps {
  display: grid;
  gap: 3rem;
  max-width: 44rem;
}
.step {
  position: relative;
  padding-left: 1.5rem;
}
/* Peach node dot on the thread */
.step::before {
  content: "";
  position: absolute;
  left: calc(-20px - 4px);
  top: .9rem;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--peach);
  border: 2px solid var(--bone);
}
.step-no {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1;
  color: var(--peach);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  line-height: 1.2;
  margin: .4rem 0 .5rem;
}
.step p { max-width: 34rem; color: rgba(34, 29, 24, .82); }

@media (min-width: 769px) {
  .steps-wrap { padding-left: 3rem; }
  .step::before { left: calc(-3rem - 4px + 1px); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .process .thread {
    transform: scaleY(var(--thread, 0));
    transition: transform var(--d-reveal) var(--ease);
  }
  .js .process .step {
    opacity: 0;
    transform: translateY(.35em);
    transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
  }
  .js .process .step.in { opacity: 1; transform: none; }
  .js .process .step.in > * { /* element-level stagger inside each step */
    animation: rise var(--d-reveal) var(--ease) both;
  }
  .js .process .step.in > :nth-child(2) { animation-delay: 90ms; }
  .js .process .step.in > :nth-child(3) { animation-delay: 180ms; }
}
/* Scroll-driven scrub enhancement for the thread */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes thread-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    .js .process .thread {
      animation: thread-grow linear both;
      animation-timeline: view();
      animation-range: entry 30% exit 70%;
    }
  }
}

.process-close { margin-top: 4rem; }

/* ------------------------------------------------------------
   13 · 08 A NOTE ON PRICING (The TGA Letter) — dusk wash
   ------------------------------------------------------------ */
.pricing { background: var(--dusk); }

/* Beat 1 — the redacted proof */
.proof {
  position: relative;
  max-width: 44rem;
  background: var(--bone);
  border: 1px solid rgba(34, 29, 24, .14);
  border-radius: 18px;
  padding: clamp(1.4rem, 5vw, 2.75rem);
  box-shadow: 0 18px 50px -28px rgba(110, 57, 32, .45);
}
.proof-head {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  margin-bottom: 1.25rem;
}
.proof-body { position: relative; }
.proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .68rem 0;
  border-bottom: 1px dotted rgba(34, 29, 24, .22);
}
.proof-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.4vw, 1.2rem);
}
.proof-price {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
}
/* Redaction bar — NO digits exist at any frame, in any state */
.redact {
  display: inline-block;
  width: var(--w, 4ch);
  height: .85em;
  background: var(--ink);
  border-radius: 2px;
  opacity: .88;
}
/* Clay strike drawing across each price slot */
.strike {
  position: absolute;
  left: -6px; right: -6px;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  background: var(--clay);
  transform-origin: left center;
  transform: scaleX(1); /* base = final state (no-JS / reduced motion) */
}
/* Frost — pre-painted layer crossfaded by opacity (never live blur on mobile) */
.frost {
  position: absolute;
  inset: -6px;
  border-radius: 10px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(247, 242, 234, .96) 0%, rgba(241, 222, 207, .88) 100%);
  opacity: .6; /* base = final state */
}
.resolve {
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
}
.resolve-2 {
  margin-top: .4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "wght" 340;
  color: var(--clay);
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
}

@media (prefers-reduced-motion: no-preference) {
  .js .proof .strike {
    transition: transform var(--d-hover) var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .proof:not(.struck) .strike { transform: scaleX(0); transition: none; }
  .js .proof .frost { transition: opacity var(--d-reveal) var(--ease) 250ms; }
  .js .proof:not(.struck) .frost { opacity: 0; transition: none; }
  .js .proof .resolve {
    transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
  }
  .js .proof .resolve-1 { transition-delay: 1100ms; }
  .js .proof .resolve-2 { transition-delay: 1250ms; }
  .js .proof:not(.struck) .resolve { opacity: 0; transform: translateY(.35em); transition: none; }
}
/* Desktop-only enhancement: real backdrop blur behind the frost */
@supports (backdrop-filter: blur(8px)) {
  @media (min-width: 769px) {
    .frost { backdrop-filter: blur(8px); }
  }
}

/* Beat 2 + 3 — letter and seal */
.letter-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 4rem;
}
.letter .headline { font-size: clamp(1.9rem, 6vw, 3.4rem); }
.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--clay);
  margin-top: 1.5rem;
}

.seal-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.brandmark {
  width: min(280px, 66vw);
  height: auto;
}
@media (min-width: 769px) {
  .letter-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4rem;
    align-items: center;
  }
  .brandmark { width: 300px; }
}
@supports (animation-timeline: scroll(root)) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes hairline-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .progress-hairline {
      display: block;
      animation: hairline-grow linear both;
      animation-timeline: scroll(root);
    }
  }
}

.pricing-cta {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
}
.cta-micro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(34, 29, 24, .7);
}

/* ------------------------------------------------------------
   14 · 09 VISIT — the dark close
   ------------------------------------------------------------ */
.visit {
  background: var(--ink);
  color: var(--bone);
}
.visit-grid { display: grid; gap: 3rem; }
.visit-address {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1.2;
  margin: 1rem 0;
}
.visit-hours {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--peach);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}
.visit-contact {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  font-size: 1.1rem;
}
.visit-contact a { display: inline-flex; min-height: 44px; align-items: center; }
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--peach);
  font-weight: 600;
  font-size: .95rem;
}
.social-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Stylised location map: a static SVG asset anchored to the confirmed
   clinic coordinates, linked out to Google Maps for directions. */
.visit-map { position: relative; }
.visit-map::before { content: ""; display: block; padding-bottom: 75%; }
.visit-map-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}
.visit-map-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visit-map-link:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--peach);
}
@media (prefers-reduced-motion: no-preference) {
  .visit-map-link img {
    transition:
      transform var(--d-hover) var(--ease),
      filter var(--d-hover) var(--ease);
  }
  .visit-map-link:hover img {
    transform: scale(1.018);
    /* brightness (not saturate) — Squarespace's LESS treats saturate() as a
       colour function and errors on a single arg; brightness is equivalent here */
    filter: brightness(1.04);
  }
}

@media (min-width: 900px) {
  .visit-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: center;
  }
}

/* ------------------------------------------------------------
   15 · 10 COLOPHON
   ------------------------------------------------------------ */
.colophon {
  background: var(--ink);
  color: var(--bone);
  padding: 4rem var(--pad-x) 5rem;
  border-top: 1px solid rgba(247, 242, 234, .12);
  text-align: center;
}
.colophon .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.brandmark-footer {
  width: min(300px, 74vw);
  opacity: .95;
}
.colophon-issue {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.colophon-creds { color: rgba(247, 242, 234, .75); font-size: .9rem; }
.colophon-contact { line-height: 2.1; }
.colophon-contact a { display: inline-flex; min-height: 44px; align-items: center; }
.colophon-social {
  display: flex;
  gap: 1.5rem;
}
.colophon-social a { display: inline-flex; min-height: 44px; align-items: center; }
.colophon-book { margin-top: .5rem; }
.colophon-fineprint {
  max-width: 44rem;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(247, 242, 234, .65);
  margin-top: 1rem;
}
.colophon-return { margin-top: 1.25rem; }

/* ------------------------------------------------------------
   16 · Scroll reveals — "ink settling" (IO adds .in)
   Base state is VISIBLE; hidden states only under .js + motion-ok
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(.35em);
    transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }

  .js [data-words] .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(.35em);
    transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-words].in .w { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   17 · Reduced motion — the still magazine
   (Most initial states above are already gated to no-preference,
    so under reduce everything renders settled. The few always-on
    animations are stopped here.)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .blob-1, .blob-2 { animation: none !important; }
  .progress-hairline { display: none !important; }
}


/* ============================================================
   FOLDS — long copy buried behind disclosure buttons.
   Pure CSS grid-rows animation; no library needed. Without JS
   the panels render open and the triggers are inert.
   ============================================================ */
.fold { margin-top: 1.1rem; }
.fold-trigger {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .3rem 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--clay);
  text-align: left;
}
.fold-trigger:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
  border-radius: 4px;
}
.fold-icon {
  flex: none;
  transition: transform var(--d-hover) var(--ease);
}
.fold.open .fold-icon { transform: rotate(45deg); }
.fold-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 550ms var(--ease);
}
.fold-inner { min-height: 0; overflow: hidden; }
.fold-inner > p { margin-top: .9rem; max-width: 38rem; }
.fold.open .fold-panel { grid-template-rows: 1fr; }
.no-js .fold-panel { grid-template-rows: 1fr; }
.no-js .fold-trigger { pointer-events: none; }
.no-js .fold-icon { display: none; }

/* Step titles host the fold trigger inside the h3 */
.step-title { margin: .4rem 0 0; }
.step-title .fold-trigger {
  font: inherit;
  color: inherit;
  font-weight: inherit;
  gap: .8rem;
}
.step-title .fold-icon { color: var(--clay); margin-top: .35em; align-self: flex-start; }
.dossier-article .fold-inner > p,
.visit .fold-inner > p { color: inherit; }

/* ============================================================
   HERO WEBGL CANVAS — three.js "liquid silk" field.
   Sits behind the cover content; the CSS aurora blobs remain
   underneath as the no-WebGL / reduced-motion fallback.
   ============================================================ */
.cover { position: relative; isolation: isolate; }
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms var(--ease);
  pointer-events: none;
}
.hero-canvas.is-ready { opacity: 1; }

/* ============================================================
   GSAP HANDOVER — when motion.js confirms GSAP is loaded it sets
   html.gsap and the original CSS entrance animations stand down.
   html.gsap-pre holds the hero invisible briefly so the GSAP
   timeline owns the entrance; an inline timeout removes it if
   the CDN never arrives, letting the CSS animations run instead.
   ============================================================ */
.gsap-pre [data-load],
.gsap-pre .cover-title .w { animation: none !important; opacity: 0; }
.gsap [data-load],
.gsap .cover-title .w { animation: none !important; opacity: 1; }
/* the cover photo keeps its CSS tilt — GSAP composes onto it */
.gsap [data-load]:not(.cover-photo),
.gsap .cover-title .w { transform: none; }

/* ============================================================
   COVER PHOTO — the clinic room, featured on first paint
   ============================================================ */
.cover-photo {
  position: relative;
  width: min(560px, 94vw);
  margin: 2.6rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(-1.5deg);
  box-shadow: 0 26px 60px -26px rgba(110, 57, 32, .5);
}
.cover-photo img { width: 100%; height: auto; }
@media (min-width: 769px) {
  .cover-photo { width: min(760px, 60vw); }
}


/* ============================================================
   THE INDEX — EXPANDING BENTO MOSAIC
   Replaces the old swipe rail. One tile open at a time; opening
   one tucks the others away. No-JS: tiles stack full-width open.
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  grid-auto-flow: dense;
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding-inline: var(--pad-x);
}
.bento-tile {
  position: relative;
  transition: opacity var(--d-hover) var(--ease), transform var(--d-hover) var(--ease);
}
.bento-tile.is-feature { grid-column: 1 / -1; }
.bento-tile.is-open { grid-column: 1 / -1; }

/* the face is the whole tappable cover */
.tile-name-wrap { margin: 0; font: inherit; }
.tile-face {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  overflow: hidden;
  background: var(--blush);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  color: var(--bone);
}
.is-feature .tile-face { aspect-ratio: 16 / 11; }
.is-open .tile-face { aspect-ratio: 16 / 9; }
.tile-art {
  position: absolute;
  inset: 0;
  display: block;
}
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34,29,24,.82) 0%, rgba(34,29,24,.22) 44%, rgba(34,29,24,0) 72%);
  z-index: 1;
}
.tile-tag {
  position: absolute;
  top: .6rem; left: .6rem;
  z-index: 2;
  background: rgba(247,242,234,.92);
  color: var(--ink);
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .28rem .55rem;
  border-radius: 999px;
}
.tile-name {
  position: absolute;
  left: .85rem; right: .85rem; bottom: 2rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  line-height: 1.1;
}
.is-feature .tile-name { font-size: clamp(1.5rem, 6vw, 2.1rem); }
.tile-promise {
  display: none;
  position: absolute;
  left: .85rem; right: .85rem; bottom: 2.6rem;
  z-index: 2;
  font-size: .9rem;
  line-height: 1.35;
  color: rgba(247,242,234,.92);
}
.is-feature .tile-promise { display: block; }
.is-feature .tile-name { bottom: 3.4rem; }
.tile-cue {
  position: absolute;
  left: .85rem; bottom: .7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bone);
}
.tile-cue-icon { transition: transform var(--d-hover) var(--ease); }
.is-open .tile-cue-icon { transform: rotate(45deg); }
.tile-face:focus-visible { outline: 3px solid var(--bone); outline-offset: -3px; }

/* tuck the others away when one is open */
.bento.has-open .bento-tile:not(.is-open) { opacity: .42; transform: scale(.975); }

/* filter-dimmed tiles */
.bento-tile.dim { opacity: .3; } /* no transform — the FLIP owns transform during reorder */

/* When a specific category is active, the feature tile drops its wide span so
   the grid reflows into a clean, uniform reorder. */
.bento.is-filtered .bento-tile.is-feature { grid-column: auto; }
.bento.is-filtered .is-feature .tile-face { aspect-ratio: 3 / 4; }
.bento.is-filtered .is-feature .tile-promise { display: none; }
.bento.is-filtered .is-feature .tile-name { bottom: auto; font-size: clamp(1.15rem, 4.6vw, 1.5rem); }

/* the in-tile detail panel */
.tile-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 520ms var(--ease);
}
.is-open .tile-detail { grid-template-rows: 1fr; }
.tile-detail-inner { min-height: 0; overflow: hidden; }
.tile-detail-inner > * { margin-top: 1.2rem; }
.tile-detail .dossier-cols h4 { margin-bottom: .4rem; }

@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .bento-tile.is-feature { grid-column: span 2; }
  .bento-tile.is-open { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-tile.is-feature { grid-column: span 2; }
}

/* No-JS / no IntersectionObserver: readable static stack */
.no-js .bento { grid-template-columns: 1fr; }
.no-js .bento-tile,
.no-js .bento-tile.is-feature { grid-column: 1 / -1; }
.no-js .tile-face { aspect-ratio: 16 / 9; }
.no-js .tile-promise { display: block; }
.no-js .tile-detail { grid-template-rows: 1fr; }
.no-js .tile-cue { display: none; }

/* ============================================================
   HEADER "TREATMENTS" SUBMENU
   ============================================================ */
.nav-has-sub { position: relative; }
.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border: 0;
  background: none;
}
.nav-sub-caret { transition: transform var(--d-hover) var(--ease); }
.nav-has-sub.open .nav-sub-caret { transform: rotate(180deg); }

.nav-sub {
  position: fixed;
  top: var(--sub-top, 88px);
  left: 1rem; right: 1rem;
  z-index: 130;
  background: var(--bone);
  border: 1px solid rgba(34,29,24,.08);
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(110,57,32,.5);
  padding: .5rem;
  max-height: 64vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.nav-has-sub.open .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-sub-list { display: grid; gap: 2px; }
.nav-sub-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem .85rem;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.nav-sub-link:hover { background: var(--blush); }
.nav-sub-all {
  margin-top: .25rem;
  border-top: 1px solid rgba(34,29,24,.1);
  border-radius: 0 0 10px 10px;
  color: var(--clay);
  font-weight: 600;
}

/* Sticky, condensed header on mobile so the menu stays reachable.
   NB: do NOT add backdrop-filter (or transform/filter) here — that would make
   .site-head the containing block for the position:fixed Treatments submenu,
   which trapped/clipped it inside the ~116px header on iOS so it wouldn't
   show when tapped. A near-opaque background covers content scrolling under. */
@media (max-width: 768px) {
  .site-head {
    position: sticky;
    top: 0;
    z-index: 110;
    background: rgba(247,242,234,.97);
    border-bottom: 1px solid rgba(34,29,24,.06);
  }
}

/* Desktop: the submenu becomes an anchored dropdown under the toggle */
@media (min-width: 769px) {
  .nav-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    right: auto;
    width: 250px;
    max-height: none;
    transform: translateX(-50%) translateY(-8px);
  }
  .nav-has-sub.open .nav-sub { transform: translateX(-50%) translateY(0); }
}


/* --- Tile face: bottom-aligned flex flow (fixes overlap on feature tile) --- */
.tile-face {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .15rem;
  padding: .85rem;
}
.tile-art { z-index: 0; }
.tile-face::after { z-index: 0; }
.tile-name,
.tile-promise,
.tile-cue {
  position: relative;
  left: auto; right: auto; bottom: auto;
  z-index: 2;
  margin: 0;
}
.tile-promise { margin-bottom: .1rem; }
.tile-cue { margin-top: .2rem; }


/* deep-linked tiles clear the sticky header when scrolled to */
.bento-tile { scroll-margin-top: 120px; }
@media (min-width: 769px) { .bento-tile { scroll-margin-top: 84px; } }


/* --- Stats block nested inside the Korean Glass Facial tile --- */
.tile-stats {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(34, 29, 24, .12);
}
.tile-stats .kicker { margin-bottom: .6rem; }
.tile-stats-title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  line-height: 1.12;
  margin-bottom: .5rem;
}
.tile-stats .stats-grid {
  gap: 1.4rem;
  margin: 1.4rem 0 1.2rem;
}
.tile-stats .stat-value { font-size: clamp(2.6rem, 9vw, 3.6rem); }
.tile-stats .stat-label { margin-top: .25rem; font-size: .92rem; }
.tile-stats .stats-note { margin-bottom: 0; }
@media (min-width: 600px) {
  .tile-stats .stats-grid { grid-template-columns: repeat(3, 1fr); }
}


/* Snappy taps on touch devices — removes the browser's ~300ms double-tap /
   gesture-disambiguation delay so a quick tap registers immediately instead
   of needing a deliberate press-and-hold (notably the Treatments submenu). */
.nav-link, .nav-sub-toggle, .nav-sub-link, .chip, .tile-face,
.fold-trigger, .btn, .dot, .marquee-toggle, .dossier-close, .lnk,
.bar-book, .bar-tel, .social-link, .wordmark {
  touch-action: manipulation;
}


/* ============================================================
   BRAND BANNER — the signature white wordmark on brand coral.
   Full-bleed; sits between the About section and the treatments.
   ============================================================ */
.brand-band {
  background: var(--coral);
  background-image: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  padding: clamp(3.25rem, 11vw, 6.5rem) var(--pad-x);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  overflow: hidden;
}
.brand-band-logo {
  width: min(620px, 84vw);
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(110, 57, 32, .22));
}
.brand-band-tag {
  font: 600 .72rem/1.5 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .26em;
  color: rgba(255, 255, 255, .92);
}
/* gentle, GPU-cheap breathing of the wordmark on scroll-in feel */
@media (prefers-reduced-motion: no-preference) {
  .brand-band-logo { transition: transform var(--d-reveal) var(--ease); }
}


/* ============================================================
   Privacy / legal page — privacy.html (+ the footer analytics
   note on index.html). Static prose: no reveals, no observers.
   ============================================================ */

/* Footer analytics note — same visual scale/colour as .colophon-fineprint */
.colophon-legal {
  max-width: 44rem;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(247, 242, 234, .65);
  margin-top: 1rem;
}
.colophon-legal + .colophon-fineprint { margin-top: 0; } /* the pair reads as one block */

/* Simplified legal-page header — wordmark + Book on one row at every width.
   This page has no persistent mobile booking bar, so the Book button stays
   visible on small screens (index hides it via .site-nav > .btn). */
.site-head--legal .site-nav {
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem var(--pad-x);
}
.site-head--legal .site-nav > .btn { display: inline-flex; }
/* …and without the booking bar, the page doesn't reserve room for it */
@media (max-width: 768px) {
  body.legal-page { padding-bottom: 0; }
}

/* The legal prose block — one centred column of readable measure */
.legal {
  max-width: calc(68ch + 2 * var(--pad-x));
  margin-inline: auto;
  padding: clamp(2.75rem, 9vw, 5rem) var(--pad-x) clamp(4rem, 11vw, 6.5rem);
  line-height: 1.7;
}
@media (min-width: 769px) {
  /* clear the fixed desktop nav (~66px) */
  .legal { padding-top: calc(clamp(2.75rem, 9vw, 5rem) + 4.5rem); }
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-bottom: .6rem;
}
.legal-effective {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(34, 29, 24, .65);
  margin-bottom: 2.75rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
  line-height: 1.15;
  margin: 2.75rem 0 .9rem;
}
.legal p + p { margin-top: 1em; }
.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 1em 0;
}
.legal li + li { margin-top: .4em; }
.legal li::marker { color: var(--clay); }
