/* ---- the ring palette ----
   Antarjyoti's cyan and violet. Used as gradient stops on the SVG
   strokes, which is what makes a ring look lit rather than drawn. */
:root {
  /* This site's own two colours, not borrowed ones. Jade for the
     week, gold for today - both already live in the palette and
     appear elsewhere on the page. Gold, jade, cyan and violet at
     once is four colour families, which reads as busy however
     carefully any one of them is tuned.

     The rings stay as easy to tell apart as they were: what
     separates them is that one carries day letters and the other
     carries clock times, not the hue. */
  --ring-week-1: #79c0ad;
  --ring-week-2: #9ad4c3;
  --ring-day-1: #e5c389;
  --ring-day-2: #f0d4a4;
}
:root[data-theme="light"] {
  /* JEWEL, not ink. I had driven these down to #164c3f and #6f4a12
     chasing text contrast - but the rings are not text. The arc has
     the readout underneath as its text equivalent, so it is free to
     be a real colour, and a gold dark enough to pass as body copy
     is not gold any more, it is brown. Brown beside near-black
     green on cream is drab, which is exactly what it looked like.

     So the GRAPHICS get jewel colour and only the WORDS stay dark
     - the two have different jobs and were being held to one rule. */
  /* TERRACOTTA, in light mode only. Every green I tried here was
     either sour beside the warm gold (the teals) or drab (the dark
     forests) - the hue was fighting the gold about where the light
     comes from. Clay does not: temple brick and gilt on ivory is a
     pairing that already exists, and the two rings stay easy to
     tell apart because clay is red where the gold is yellow.

     Dark mode keeps its jade. On near-black, clay would lose almost
     all its chroma and read as brown. */
  --ring-week-1: #9c5a38;
  --ring-week-2: #bb7a52;
  --ring-day-1: #b8872e;    /* antique gold */
  --ring-day-2: #dcb158;    /* and its lit edge */
}

/* ============================================================
   SIAM KINNARIE HEALTH SPA — CORE STYLES
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.68;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--d-slow) var(--ease-silk), color var(--d-slow) var(--ease-silk);
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--c-gold); color: var(--c-void); }

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Per-language typography. The Latin/Thai webfonts carry no CJK and no
   Cyrillic, so those languages get a deliberate system stack instead of
   whatever the browser happens to fall back to. */
html[lang="th"] body { font-family: var(--font-body-th); line-height: 1.82; }
html[lang="th"] .display { font-family: var(--font-display-th); letter-spacing: 0; }
html[lang="th"] .eyebrow { letter-spacing: 0.1em; }

html[lang="ru"] .display { letter-spacing: -0.015em; }
html[lang="ru"] .eyebrow { letter-spacing: 0.16em; }

html[lang="zh"] body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.78; }
html[lang="zh"] .display { font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "PingFang SC", serif; letter-spacing: 0.01em; line-height: 1.18; }
html[lang="ko"] body { font-family: "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", system-ui, sans-serif; line-height: 1.76; }
html[lang="ko"] .display { font-family: "Apple SD Gothic Neo", "Nanum Myeongjo", "Batang", serif; letter-spacing: -0.01em; line-height: 1.2; }
html[lang="zh"] .eyebrow, html[lang="ko"] .eyebrow { letter-spacing: 0.12em; }

/* ---------- Canvas background: living gradient mesh ---------- */
.canvas-bg {
  position: fixed;
  inset: -12vh -12vw;
  z-index: -2;
  background: var(--grad-hero);
  background-attachment: fixed;
  transition: background var(--d-epic) var(--ease-silk);
  pointer-events: none;
}

.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
}
/* These three fixed circles are what colours the whole page behind
   everything. The jade one ran at the default 0.5 and was doing
   most of it. They warm the dark now rather than tinting it. */
.orb--1 { width: 46vw; height: 46vw; top: -12vh; left: -8vw; background: var(--grad-jade); opacity: 0.12; }
/* The biggest source of gold on the page, and not a colour choice
   at all: a 38vw blurred circle of --grad-gold fixed behind
   everything. At 34% it put a brown-gold wash over whole
   sections. At 16% it warms the dark without staining it. */
.orb--2 { width: 38vw; height: 38vw; top: 44vh; right: -10vw; background: var(--grad-gold); opacity: 0.07; }
.orb--3 { width: 30vw; height: 30vw; bottom: -14vh; left: 24vw; background: var(--grad-aurora); opacity: 0.08; }

/* ---------- Film grain (fixed layer only) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  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='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
/* The divider carries a small lotus at its centre — the line breaks
   either side of it rather than running underneath, which is how the
   motif reads as set INTO the rule instead of stuck on top. */
.section-divider {
  position: relative;
  height: 1px;
  /* two layers: a narrow travelling highlight over the static rule.
     Moving a background on a 1px strip is a trivial repaint, and the
     GPU-safe alternative - a translating overlay - would need this
     element to clip, which cuts the motif off at the line. */
  background-image:
    linear-gradient(90deg, transparent, rgba(229, 195, 137, 0.85), transparent),
    linear-gradient(90deg, transparent, var(--c-hair) 18%, var(--c-hair-strong) 46%, transparent 48%, transparent 52%, var(--c-hair-strong) 54%, var(--c-hair) 82%, transparent);
  background-repeat: no-repeat, no-repeat;
  background-size: 30% 100%, 100% 100%;
  background-position: -36% 0, 0 0;
  border: 0;
  margin: 0;
  overflow: visible;
}
@media (prefers-reduced-motion: no-preference) {
  .section-divider { animation: divShimmer 7s var(--ease-silk) infinite; }
}
@keyframes divShimmer {
  0% { background-position: -36% 0, 0 0; }
  55% { background-position: 136% 0, 0 0; }
  100% { background-position: 136% 0, 0 0; }
}
/* the kinnari, not a lotus. It is your mark; a lotus is every spa in
   Thailand. */
.section-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  background: var(--c-gold);
  opacity: 0.62;
  -webkit-mask: url("../assets/img/kinnari.svg") center / contain no-repeat;
  mask: url("../assets/img/kinnari.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 10px var(--c-gold-glow));
}
@media (prefers-reduced-motion: no-preference) {
  .section-divider::after { animation: divBreathe 6s var(--ease-silk) infinite; }
}
@keyframes divBreathe {
  0%, 100% { opacity: 0.5; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.028em;
  margin: 0;
}
.display--italic { font-style: italic; }
h1.display { font-size: var(--t-h1); }
h2.display { font-size: var(--t-h2); }
h3.display { font-size: var(--t-h3); }
h4.display { font-size: var(--t-h4); line-height: 1.16; }

.eyebrow {
  display: inline-flex;
  justify-self: start;
  align-self: start;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 0.55em;
  padding: 0.42em 0.95em;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  /* a label, not a card — the quiet divider token */
  border: 1px solid var(--c-hair);
  box-shadow: var(--inner-light);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 12px var(--c-gold);
}

.lead { font-size: var(--t-lead); color: var(--c-ink-2); font-weight: 300; line-height: 1.52; max-width: 56ch; }
.muted { color: var(--c-ink-3); }
.tiny { font-size: var(--t-micro); color: var(--c-ink-3); }

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jade-text {
  background: var(--grad-jade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { display: grid; gap: var(--sp-5); max-width: 72ch; margin-bottom: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center .eyebrow { justify-self: center; }
.link-u { justify-self: start; }
.section-head--center .link-u { justify-self: center; }
.section-head--center .lead { margin-inline: auto; text-align: center; }

/* ============================================================
   DOUBLE-BEZEL ARCHITECTURE
   ============================================================ */
/* Card edges read as drawn lines, not as a guess: a defined outer rule, a
   concentric inner rule, and a gold edge that lifts on hover. */
.bezel {
  position: relative;
  padding: var(--bezel);
  border-radius: var(--r-xl);
  background: var(--c-shell);
  border: 1px solid var(--c-hair-strong);
  box-shadow: var(--sh-soft);
  transition: transform var(--d-mid) var(--ease-silk), box-shadow var(--d-mid) var(--ease-silk), border-color var(--d-mid) var(--ease-silk);
}
.bezel__core {
  position: relative;
  height: 100%;
  border-radius: calc(var(--r-xl) - var(--bezel));
  background: var(--grad-panel);
  /* A QUIET inner highlight, never a second outline. When --c-hair-strong
     was warmed, this inherited full gold — so every card drew two gold
     frames a few pixels apart and read as a picture in a mount rather
     than as one object. The shell owns the outline; the core only
     catches the light. */
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--inner-light);
  overflow: hidden;
}
.bezel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--d-mid) var(--ease-silk), box-shadow var(--d-mid) var(--ease-silk);
}
.bezel--hover:hover::after,
.bezel:focus-within::after {
  border-color: color-mix(in srgb, var(--c-gold) 70%, transparent);
  box-shadow: 0 0 22px -6px var(--c-gold-glow), inset 0 0 18px -10px var(--c-gold);
}
.bezel--sm { border-radius: var(--r-md); padding: 0.3rem; }
.bezel--sm .bezel__core { border-radius: calc(var(--r-md) - 0.3rem); }
.bezel--lg { border-radius: var(--r-2xl); padding: 0.55rem; }
.bezel--lg .bezel__core { border-radius: calc(var(--r-2xl) - 0.55rem); }

/* the lift was gated behind the opt-in modifier too, so the cards
   that never glowed never bounced either. Spring easing, so it
   overshoots a little on the way up rather than gliding. */
/* The lift now lives in the single hover rule at the foot of this
   file, together with the outline glow. Two rules with this exact
   selector each setting box-shadow meant the later one erased the
   other outright: the card either rose with no glow or glowed
   without rising, decided by source order rather than by intent. */
.bezel { transition-timing-function: var(--ease-spring); }

/* ============================================================
   BUTTONS — island / nested icon architecture
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.78rem 0.78rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: var(--t-body-s);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  /* `overflow: hidden` drops a flex item's min-content width to zero,
     so in a crowded row the browser was free to squeeze the button
     narrower than its own label and clip it ("Book thi..."). */
  flex-shrink: 0;
  transition: transform var(--d-fast) var(--ease-silk), box-shadow var(--d-mid) var(--ease-silk), color var(--d-mid) var(--ease-silk), background-color var(--d-mid) var(--ease-silk), border-color var(--d-mid) var(--ease-silk);
}
.btn:active { transform: scale(0.977); }
.btn__ico {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.13);
  transition: transform var(--d-mid) var(--ease-spring), background-color var(--d-mid) var(--ease-silk);
}
.btn__ico svg { width: 0.95rem; height: 0.95rem; }
.btn:hover .btn__ico { transform: translate(3px, -1px) scale(1.07); }

.btn--gold { color: #1a1206; background: var(--grad-gold); background-size: 180% 180%; box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 18px 44px -18px var(--c-gold-glow); }
/* Light mode's gold is a DEEP gold, as it always was, so the text on
   it is light - the same inversion the duration pill has always used.
   Dark text on it measures 2.80 at its darkest stop. */
:root[data-theme="light"] .btn--gold { color: #fdf8ef; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 18px 44px -18px var(--c-gold-glow); }
.btn--gold:hover { background-position: 100% 50%; box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 26px 60px -20px var(--c-gold-glow); }

.btn--jade { color: #f3fbf8; background: var(--grad-jade); background-size: 180% 180%; box-shadow: var(--inner-light), 0 18px 44px -18px rgba(44, 107, 93, 0.5); }
.btn--jade:hover { background-position: 100% 50%; }
.btn--jade .btn__ico { background: rgba(255, 255, 255, 0.18); }

/* White on the old greens measured 3.5-4.0 against the light end,
   under the 4.5 that text this size needs. These measure 4.6 and
   6.5 and are still unmistakably WhatsApp - their own dark brand
   green, #075E54, is darker than both. */
.btn--whats { color: #ffffff; background: linear-gradient(135deg, #13873f 0%, #0f7138 50%, #0a5c31 100%); background-size: 180% 180%; box-shadow: var(--inner-light), 0 18px 44px -18px rgba(10, 92, 49, 0.55); }
/* the hero's second action: present, not competing */
.btn--whatsline {
  color: var(--c-ink);
  background: none;
  border: 1px solid var(--c-hair-strong);
  box-shadow: none;
}
.btn--whatsline .btn__ico { background: rgba(19, 135, 63, 0.16); color: #1fa855; }
.btn--whatsline:hover {
  border-color: var(--c-gold);
  background: var(--c-surface-2);
  box-shadow: none;
}
:root[data-theme="light"] .btn--whatsline .btn__ico { color: #0f7138; }
.btn--whats:hover { background-position: 100% 50%; }
.btn--whats .btn__ico { background: rgba(255, 255, 255, 0.2); }

.btn--ghost {
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--edge);
  box-shadow: var(--inner-light);
}
.btn--ghost .btn__ico { background: var(--c-surface-2); }
.btn--ghost:hover { border-color: var(--c-gold); color: var(--c-gold); }

.btn--sm { padding: 0.5rem 0.5rem 0.5rem 1.05rem; font-size: var(--t-micro); }
.btn--sm .btn__ico { width: 1.6rem; height: 1.6rem; }
.btn--sm .btn__ico svg { width: 0.75rem; height: 0.75rem; }
.btn--plain { padding-right: 1.5rem; }
.btn--block { width: 100%; justify-content: center; padding-right: 1.5rem; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

.link-u {
  position: relative;
  display: inline-block;
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--c-ink-2);
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.001);
  transform-origin: left;
  transition: transform var(--d-mid) var(--ease-silk);
}
.link-u:hover { color: var(--c-gold); }
.link-u:hover::after { transform: scaleX(1); }

/* ============================================================
   NAV — fluid floating island
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-top: clamp(0.7rem, 0.3rem + 1.1vw, 1.6rem);
  padding-inline: var(--gutter);
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: transform var(--d-mid) var(--ease-silk);
}
.nav.is-hidden { transform: translateY(-140%); }

.nav__island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.2rem + 1vw, 1.5rem);
  width: max-content;
  max-width: 100%;
  padding: 0.5rem 0.55rem 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  transition: padding var(--d-mid) var(--ease-silk), background var(--d-mid) var(--ease-silk);
}
.nav.is-stuck .nav__island { padding-block: 0.38rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-gold);
  box-shadow: 0 0 0 1px var(--c-hair-strong), 0 8px 22px -10px var(--c-gold-glow);
}
/* the Kinnari has fine feather detail — give it most of the disc or it
   reads as a featureless dot at nav size */
.brand__mark svg { width: 1.62rem; height: 1.62rem; position: relative; z-index: 1; }

/* ---------- Shimmer: a slow light sweep across the mark and the name ---------- */
.brand__mark { position: relative; overflow: hidden; }
.brand__mark::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 42%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.55) 58%,
    transparent 70%);
  transform: translateX(-160%);
  animation: markSheen 4.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes markSheen {
  0%, 48% { transform: translateX(-160%); }
  80%, 100% { transform: translateX(160%); }
}

.brand__name {
  background-image: linear-gradient(100deg,
    var(--c-ink) 0%, var(--c-ink) 32%,
    var(--c-gold-2) 42%,
    #fff6e2 50%,
    var(--c-gold-2) 58%,
    var(--c-ink) 68%, var(--c-ink) 100%);
  background-size: 250% 100%;
  background-position: 170% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameSheen 4.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
:root[data-theme="light"] .brand__name {
  background-image: linear-gradient(100deg,
    var(--c-ink) 0%, var(--c-ink) 32%,
    var(--c-gold) 42%,
    #c9a04a 50%,
    var(--c-gold) 58%,
    var(--c-ink) 68%, var(--c-ink) 100%);
}
@keyframes nameSheen {
  0%, 46% { background-position: 170% 0; }
  82%, 100% { background-position: -70% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand__mark::after { animation: none; opacity: 0; }
  .brand__name { animation: none; background: none; color: var(--c-ink); }
}
.brand__txt { display: grid; line-height: 1; }
/* the shop's name is the loudest thing in the bar — the links gave up room
   for it, and the rest of them live in the menu */
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.46rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  white-space: nowrap;
  line-height: 1.05;
}
.brand__sub {
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-top: 0.3em;
}

.nav__links { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: var(--t-micro);
  font-weight: 600;
  white-space: nowrap;
  color: var(--c-ink-2);
  transition: color var(--d-fast) var(--ease-silk), background-color var(--d-fast) var(--ease-silk);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-ink); background: var(--c-surface-2); }

.nav__tools { display: flex; align-items: center; gap: 0.4rem; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 2.15rem;
  min-width: 2.15rem;
  padding-inline: 0.5rem;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--edge);
  box-shadow: var(--inner-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-ink-2);
  transition: color var(--d-fast) var(--ease-silk), border-color var(--d-fast) var(--ease-silk), transform var(--d-fast) var(--ease-spring);
}
.chip:hover { color: var(--c-gold); border-color: var(--c-gold); transform: translateY(-1px); }
.chip svg { width: 1rem; height: 1rem; }

.lang-toggle { position: relative; padding: 0.18rem; gap: 0; }
.lang-toggle__opt {
  position: relative;
  z-index: 1;
  padding: 0.28rem 0.56rem;
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-ink-3);
  transition: color var(--d-mid) var(--ease-silk);
}
.lang-toggle__opt.is-on { color: #1a1206; }
:root[data-theme="light"] .lang-toggle__opt.is-on { color: #fdf8ef; }
.lang-toggle__pill {
  position: absolute;
  left: 0;
  top: 0.18rem;
  bottom: 0.18rem;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  transition: transform var(--d-mid) var(--ease-spring), width var(--d-mid) var(--ease-silk);
  will-change: transform;
}

.theme-toggle svg { transition: transform var(--d-slow) var(--ease-spring), opacity var(--d-mid) var(--ease-silk); }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }

/* Hamburger morph */
.burger { display: inline-flex; }   /* always available: the full menu lives here */
.burger__bars { position: relative; width: 1.1rem; height: 0.7rem; }
.burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--d-mid) var(--ease-silk), opacity var(--d-fast) var(--ease-silk);
}
.burger__bars span:nth-child(1) { top: 0; }
.burger__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger__bars span:nth-child(3) { bottom: 0; }
body.menu-open .burger__bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .burger__bars span:nth-child(2) { opacity: 0; transform: translateY(-50%) scaleX(0.2); }
body.menu-open .burger__bars span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* ============================================================
   THE MENU OVERLAY

   It opens like a drawer being drawn back rather than a box
   appearing: the veil blurs in, the panel lifts, and the links
   come up one after another. Closing runs the same motion in
   reverse, faster, because nobody wants to wait to leave.

   The right-hand column exists so the overlay is worth opening
   even when you were not going anywhere — it answers "are they
   open", "how busy", "where is it" without a page change.
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  align-content: center;
  padding: calc(var(--sp-8) + 1rem) var(--gutter) var(--sp-8);
  background: var(--veil);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition:
    opacity 380ms var(--ease-silk),
    visibility 380ms,
    backdrop-filter 520ms var(--ease-silk),
    -webkit-backdrop-filter 520ms var(--ease-silk);
}
body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(34px) saturate(1.3);
  -webkit-backdrop-filter: blur(34px) saturate(1.3);
}

/* the gold hairline that sweeps across as it opens */
.menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  transition: transform 700ms var(--ease-silk);
}
body.menu-open .menu::before { transform: scaleX(1); }

/* A small dark circle with a thin cross, in the corner, on a busy
   background, was findable only if you already knew it was there.
   Gold, labelled, and large enough to hit without aiming. */
.menu__close {
  position: absolute;
  top: clamp(0.9rem, 0.5rem + 1.2vw, 1.6rem);
  right: clamp(0.9rem, 0.5rem + 1.2vw, 1.6rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0 1.1rem 0 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold));
  color: #1a1206;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.8);
  /* Deliberately NOT fading. The way out of a menu must never depend
     on a transition completing: if the tween stalls, the button is
     invisible and the menu has no visible exit. It animates in on
     transform alone, so even a stalled animation leaves it readable. */
  transform: scale(0.86) translateY(-5px);
  transition: transform 420ms var(--ease-spring), box-shadow var(--d-mid) var(--ease-silk);
}
.menu__close svg { width: 0.95rem; height: 0.95rem; }
.menu__close:hover { box-shadow: 0 12px 30px -10px rgba(212, 173, 109, 0.75); }
.menu__close:active { transform: scale(0.97); }
.menu__close:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
/* The rule that actually reveals it. My own rewrite of this block
   swallowed this line, which left the button at opacity 0 — present,
   labelled, correctly placed, and completely invisible. */
body.menu-open .menu__close {
  transform: none;
  transition-delay: 120ms;
}


.menu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.menu__eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-size: var(--t-micro);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-ink-4);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 400ms var(--ease-silk), transform 400ms var(--ease-silk);
}
body.menu-open .menu__eyebrow { opacity: 1; transform: none; transition-delay: 120ms; }

.menu__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.menu__item {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0.2rem 0.42rem 0;
  border-bottom: 1px solid var(--c-hair);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 3.4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.08;
  opacity: 0;
  transform: translateY(1.6rem);
  filter: blur(6px);
  /* leaving is quicker than arriving, and in reverse order */
  transition:
    opacity 260ms var(--ease-silk),
    transform 260ms var(--ease-silk),
    filter 260ms var(--ease-silk),
    color var(--d-fast) var(--ease-silk),
    padding-left var(--d-mid) var(--ease-silk);
}
/* the gold rule that draws itself under the link you are on */
.menu__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--c-gold), transparent);
  transition: transform 520ms var(--ease-silk);
}
.menu__item:hover { color: var(--c-gold); padding-left: 0.7rem; }
.menu__item:hover::after { transform: scaleX(1); }
.menu__item:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }
.menu__item > span:last-child {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  color: var(--c-ink-4);
}
.menu__item > span:first-child { color: var(--c-ink); }

body.menu-open .menu__item {
  opacity: 1;
  transform: none;
  filter: none;
  transition-duration: 620ms;
  transition-delay: calc(var(--i, 1) * 42ms + 130ms);
}

/* ---------- the side panel ---------- */
.menu__side {
  display: grid;
  gap: 0.7rem;
  align-content: center;
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 520ms var(--ease-silk), transform 520ms var(--ease-silk);
}
body.menu-open .menu__side { opacity: 1; transform: none; transition-delay: 260ms; }

.mcard {
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--c-bg-raise);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.mcard__h {
  margin: 0 0 0.6rem;
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-ink-4);
}
.mcard__big {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}
.mcard__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.3rem 0;
  font-size: var(--t-body-s);
}
.mcard__row + .mcard__row { border-top: 1px solid var(--c-hair); }
.mcard__row dt { color: var(--c-ink-4); font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; }
.mcard__row dd { margin: 0; text-align: right; }
.mcard__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.mcard__live i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--c-ink-4);
}
.mcard__live.is-open i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.menu__foot .btn { flex: 1 1 10rem; justify-content: center; }

@media (max-width: 880px) {
  .menu { align-content: start; }
  .menu__grid { grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
  .menu__item { font-size: clamp(1.35rem, 1rem + 3vw, 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .menu__item, .menu__side, .menu__close, .menu__eyebrow, .menu::before {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .menu__item { filter: none; transform: none; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  display: grid;
  place-items: center;
  gap: var(--sp-5);
  background: var(--c-bg);
  transition: opacity 900ms var(--ease-silk), visibility 900ms;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: var(--sp-5); }
.preloader__mark { width: clamp(80px, 18vw, 130px); }
.preloader__mark .pre-ring {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw 1.8s var(--ease-silk) forwards;
}
.preloader__mark .pre-fig {
  opacity: 0;
  transform-origin: 50% 55%;
  animation: figIn 1.3s var(--ease-silk) 0.45s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes figIn { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
.preloader__name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 1.2vw, 1.6rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.preloader__bar { width: clamp(120px, 26vw, 220px); height: 1px; background: var(--c-hair); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--grad-gold); transition: width 220ms linear; }

/* ============================================================
   HERO — 3D parallax scene
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-top: clamp(7rem, 5rem + 8vw, 11rem);
  padding-bottom: var(--sp-8);
  overflow: hidden;
  perspective: 1400px;
}
.hero__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}
.hero__layer { position: absolute; inset: 0; will-change: transform; }
.hero__steam {
  position: absolute;
  inset: auto 0 -6% 0;
  height: 48%;
  /* the warm floor under the hero: halved, so the gold reads as a
     glow at the base rather than as a coloured band */
  background: radial-gradient(60% 100% at 50% 100%, var(--c-gold-glow), transparent 55%);
  filter: blur(26px);
  opacity: 0.8;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--sp-7);
  /* The dial column was 0.75fr - under a third of the shell once the
     gap is out - so the circle could never be big however its own
     width was written. min(100%, ...) then clamped it to the column
     and every change to the clamp did nothing. It is the hero's
     subject; it gets an equal half. */
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
}
.hero__copy { display: grid; gap: var(--sp-5); justify-items: start; }
.hero__title { font-size: var(--t-h1); }
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; will-change: transform; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: var(--sp-2); }

.hero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-4); }
.hero__meta-item { display: grid; gap: 0.2rem; }
.hero__meta-item b { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 400; }
.hero__meta-item span { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-ink-2); }

/* ============================================================
   THE HOURS DIAL
   ============================================================
   What used to be .hero__deck: three rotated cards, two of them
   photographs with the caption laid straight over the image. The
   rooms are in the gallery at a size where you can see them; here
   they were decoration with text on top.

   The mandala behind them was at 11% opacity - the best shape in the
   hero, invisible. It is the subject now, and the gold arc over it is
   today's opening hours on a 24-hour ring.
   ============================================================ */
.hero__dial {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  /* tighter than it was: every pixel here comes off the dial's
     height budget above */
  gap: clamp(0.5rem, 0.3rem + 0.6vw, 0.9rem);
}
.dial {
  position: relative;
  /* Big, but it has to FIT. 31vw capped at 450 made a polite circle
     in a corner; 40vw made it the subject. Width alone cannot know
     about the screen's HEIGHT though, and the column under it
     carries the next slot, the state line, the key and the hover
     answer - about 300px - inside a hero that is already min-height
     100dvh with its own padding. Sized on width alone it simply
     pushed all of that off the bottom.

     So the last term is the height budget: whatever is left of the
     viewport once the hero's padding and that column are paid for.
     On a tall screen the 620 cap wins and the dial is full size; on
     a short one this wins and the dial gives back exactly as much
     as it has to. */
  width: min(100%, clamp(320px, 40vw, 620px), calc(100dvh - 23rem));
  aspect-ratio: 1;
  /* far enough back that the lean is a lean and not a fisheye */
  perspective: 1200px;
}
/* These are nested inside .dial__depth now, so a child selector
   stops matching them. */
.dial__face,
.dial__mandala,
.dial__core { position: absolute; inset: 0; width: 100%; height: 100%; }

/* GSAP turns this by #mandala, one revolution every three minutes.
   Sized rather than scaled: GSAP owns this element's transform, so a
   CSS scale would be overwritten on the first frame. Pulling it inside
   the hour ring keeps the arc, the halo and the bird at three
   different radii instead of all three at once. */
/* The wrapper carries the position and the spin; the svg just fills
   it. See index.html for why the svg itself is not what rotates. */
.dial__spin {
  position: absolute;
  /* 0.78 of the hour ring's radius, the proportion that worked when
     the ring was at 162 and this was at 84%. The mandala's own outer
     circle sits at 0.375 of its width, so 0.78 x 150 / 0.375 = 312. */
  /* With the day ring in at 144 its tick tips reach 127, and at 78%
     the mandala's petal dots landed at 122 - a five-unit near miss.
     At 72% they come in to 112. */
  inset: 14%;
  width: 72%;
  height: 72%;
  display: block;
  will-change: transform;
}
.dial__mandala {
  width: 100%;
  height: 100%;
  display: block;
  /* It was the best shape on the face and the faintest mark on it.
     The plate gives it something to be cut into, so it can carry
     its own weight now. */
  color: var(--c-gold);
  /* It has been rendering at 1 all along - GSAP's entrance wrote
     that inline and the stylesheet never got a say. Now that it
     does, these are the values the face is actually tuned to, with
     the gradient stroke carrying the sense of a cut. */
  opacity: 0.88;
  /* The 24 petals converge at the centre, which is where the kinnari
     is. Masking the middle out clears the field for the bird without
     painting anything - a painted disc has to guess the backdrop, and
     the hero's backdrop is a gradient, so it guessed wrong and read as
     a hole in the page. */
  -webkit-mask: radial-gradient(circle, transparent 24%, #000 46%);
  mask: radial-gradient(circle, transparent 24%, #000 46%);
}
.dial__face {
  /* Cormorant, like every other numeral on this site - the rating,
     the prices, the opening hours, the next slot directly beneath
     this. The dial was the one element not speaking the brand's
     voice, and engraved serif numerals are what a good clock face
     has anyway. Its small x-height is why every size on the face is
     a step larger than the sans it replaced. */
  font-family: var(--font-display);
  overflow: visible;
}
/* ============================================================
   DEPTH
   ============================================================
   The dial was one plane: a flat, perfectly symmetrical circle
   with detail spread evenly at every radius. Nothing for the eye
   to climb, which is why better type and finer ticks kept not
   being enough - the problem was never the drawing, it was that
   the drawing had no near and far.

   Four layers, four distances, and the assembly leans towards the
   cursor. --rx / --ry are set by the pointer handler in
   hours-dial.js and are plain 0deg until something moves.
   ============================================================ */
.dial__depth {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  /* long and soft: a heavy object settling, not a panel snapping */
  transition: transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dial__z {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  /* Every one of these is a full-size box stacked over the dial, so
     the topmost took every pointer event and the hit pad under it
     never saw one - the rings stopped saying what they are. Only
     the face is touchable; the plate, the engraving and the bird
     are things to look at. */
  pointer-events: none;
}
.dial__z--face { pointer-events: auto; }
/* The gaps are not equal. Even spacing reads as a stack of cards;
   the eye reads depth from the RATIO between steps, so the bird
   sits nearly twice as far off the face as the face does off the
   engraving. */
.dial__z--plate { transform: translateZ(0); }
.dial__z--rose  { transform: translateZ(14px); }
.dial__z--face  { transform: translateZ(32px); }
.dial__z--bird  { transform: translateZ(62px); }

/* ---- arrival ----
   Built rather than revealed. pathLength="1" on every arc means a
   dash of 1 is the whole stroke whatever its real length, so the
   sweep needs no measuring and every arc draws at its own rate. */
@keyframes dialDraw { to { stroke-dashoffset: 0; } }
@keyframes dialRise { from { opacity: 0; transform: translateY(5px); } }
@keyframes dialPop { from { opacity: 0; transform: scale(0.4); } }

.dial__face.is-arriving .dial__open,
.dial__face.is-arriving .dial__left,
.dial__face.is-arriving .dial__bevel,
.dial__face.is-arriving .dial__glow,
.dial__face.is-arriving .dial__wfill,
.dial__face.is-arriving .dial__wtrack,
.dial__face.is-arriving .dial__wglow {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dialDraw 1.15s cubic-bezier(0.33, 0.9, 0.3, 1) forwards;
}
/* the day's own arc is the subject, so it goes first and longest */
.dial__face.is-arriving .dial__open,
.dial__face.is-arriving .dial__left,
.dial__face.is-arriving .dial__bevel,
.dial__face.is-arriving .dial__glow {
  animation-duration: 1.5s;
  animation-delay: 0.1s;
}
.dial__face.is-arriving text {
  animation: dialRise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  transform-box: fill-box;
}
.dial__face.is-arriving .dial__tick {
  animation: dialRise 0.5s ease-out backwards;
}
.dial__face.is-arriving .dial__rim,
.dial__face.is-arriving .dial__disc,
.dial__face.is-arriving .dial__track {
  animation: dialRise 1s ease-out backwards;
}
.dial__face.is-arriving .dial__now > * {
  animation: dialPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.35s backwards;
  transform-box: fill-box;
  transform-origin: center;
}

/* A thing assembling itself in front of you is exactly the kind of
   motion that is hard to tolerate for anyone who asked not to have
   any. It arrives already built. */
@media (prefers-reduced-motion: reduce) {
  .dial__depth { transition: none; transform: none; }
  .dial__face.is-arriving .dial__open,
  .dial__face.is-arriving .dial__left,
  .dial__face.is-arriving .dial__bevel,
  .dial__face.is-arriving .dial__glow,
  .dial__face.is-arriving .dial__wfill,
  .dial__face.is-arriving .dial__wtrack,
  .dial__face.is-arriving .dial__wglow,
  .dial__face.is-arriving text,
  .dial__face.is-arriving .dial__tick,
  .dial__face.is-arriving .dial__rim,
  .dial__face.is-arriving .dial__disc,
  .dial__face.is-arriving .dial__track,
  .dial__face.is-arriving .dial__now > * {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   THE DIAL AS AN OBJECT
   ============================================================
   Up to here every mark on the face was a 1px stroke on whatever
   the page was behind it - a wireframe drawing of a dial. These
   three rules are what make it a thing: a lit surface, something
   over that surface, and an edge on the gold that catches.
   ============================================================ */

/* lit from above, falling away at the rim. The alphas stay low so
   this TINTS the hero's gradient; an opaque disc cannot match a
   gradient and reads as a hole punched in the page. */
.dial__plate {
  position: absolute;
  inset: 1%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%,
      rgba(255, 246, 228, 0.07) 0%,
      rgba(255, 246, 228, 0.025) 42%,
      rgba(0, 0, 0, 0.14) 76%,
      rgba(0, 0, 0, 0.26) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 228, 0.1),
    inset 0 -18px 40px -26px rgba(0, 0, 0, 0.7),
    0 36px 70px -46px rgba(0, 0, 0, 0.85);
}

/* light moving across glass. White, not gold - a gold sweep would
   be more of the colour we have been taking out; this is a
   highlight. Masked to a ring so it travels over the two rings and
   leaves the middle alone. */
.dial__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg,
    rgba(255, 252, 245, 0) 0deg,
    rgba(255, 252, 245, 0.14) 26deg,
    rgba(255, 252, 245, 0) 58deg,
    rgba(255, 252, 245, 0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 58%, #000 94%, transparent 99%);
  mask: radial-gradient(circle, transparent 50%, #000 58%, #000 94%, transparent 99%);
  animation: dialSheen 11s linear infinite;
  will-change: transform;
}
@keyframes dialSheen {
  to { transform: rotate(360deg); }
}
/* Vestibular motion is a thing travelling across the field of view.
   A highlight turning in place is not that - but it is still
   movement nobody asked for, and a face that is never still is hard
   to read for anyone who finds motion difficult. */
@media (prefers-reduced-motion: reduce) {
  .dial__sheen { animation: none; opacity: 0.5; }
}

/* cream wants the opposite of near-black: a pale dome, a soft
   shadow at the rim rather than a black one, and a weaker sheen -
   a highlight needs something darker to be bright against */
/* INVERTED. In the dark this plate is LIGHTER than the page because
   it is lit. On cream there is nothing darker for a highlight to be
   bright against, so a pale plate is not an object on the page - it
   is a blank spot in it, which is exactly how it read. Here it is a
   shade DEEPER and warmer than the cream: a disc of other material
   set into the page, with the light caught along its top edge and a
   real shadow underneath. */
:root[data-theme="light"] .dial__plate {
  /* A WHISPER. I made this an opaque tan disc to stop it being
     washed out, and swapped washed out for dingy - a solid beige
     circle on cream is mud whatever is drawn on it. The richness
     was never going to come from the ground; it comes from the
     MARKS, which are now ink-deep jade and gold. So the plate goes
     back to almost nothing and only does the two jobs a ground
     has to do: catch the light along its top edge, and cast a
     shadow so the thing sits ON the page rather than in it. */
  background:
    radial-gradient(circle at 50% 32%,
      rgba(255, 253, 248, 0.5) 0%,
      rgba(253, 248, 239, 0.2) 52%,
      rgba(168, 139, 88, 0.04) 84%,
      rgba(168, 139, 88, 0.08) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 44px -34px rgba(86, 64, 28, 0.26),
    0 3px 10px -8px rgba(86, 64, 28, 0.16);
}
/* White on cream is almost nothing, so the travelling highlight
   carried no light here at all. A band of SHADOW reads on a pale
   surface exactly as a band of light reads on a dark one - same
   sweep, opposite sign. */
:root[data-theme="light"] .dial__sheen {
  background: conic-gradient(from 0deg,
    rgba(104, 78, 34, 0) 0deg,
    rgba(104, 78, 34, 0.1) 26deg,
    rgba(104, 78, 34, 0) 58deg,
    rgba(104, 78, 34, 0) 360deg);
}

/* the lit edge on the arc: a drawn line and a polished one differ
   by exactly this */
.dial__bevel {
  fill: none;
  stroke: rgba(255, 250, 238, 0.55);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.6;
}
/* a white highlight on a pale arc is invisible; on an ink-dark one
   it is the polish */
:root[data-theme="light"] .dial__bevel {
  stroke: rgba(255, 252, 244, 0.85);
  opacity: 0.6;
}

/* The edge of the object. Faint enough to be a rim rather than a
   border - it closes the form without drawing a box around it. */
.dial__rim {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 1;
  /* 0.18 vanished on near-black - the same alpha is not the same
     line on a dark field as on cream */
  opacity: 0.32;
}

/* the ring cut around the marker */
.dial__seat {
  fill: none;
  stroke: var(--ring-day-2);
  stroke-width: 1;
  opacity: 0.5;
}

/* A surface for the kinnari. Low enough that it is never a shape in
   its own right - at anything stronger it reads as a plate stuck on
   the page, because the hero's backdrop is a gradient and a disc
   cannot match a gradient. */
.dial__disc {
  fill: var(--ring-day-1);
  opacity: 0.035;
}

.dial__track {
  fill: none;
  stroke: var(--ring-day-1);
  stroke-width: 1;
  opacity: 0.32;
  transition: opacity 260ms var(--ease-silk);
}

.dial__tick { stroke: var(--ring-day-1); opacity: 0.45; stroke-width: 1; }
.dial__tick--major { stroke: var(--ring-day-2); opacity: 0.75; stroke-width: 1.6; }
/* the half-hours: present, but only just - a scale you can feel is
   there without being able to count it at a glance */
.dial__tick--half { opacity: 0.2; stroke-width: 0.7; }

/* ---- the week ahead, the outer ring ----
   Seven segments, one per day. Each is filled by how much of that day
   is still free, read from SK_BOOKING.weekAhead() - the same
   slotsFor/freeAt the calendar uses, so this is a second view of one
   number rather than a second number. */
.dial__wtrack {
  fill: none;
  stroke: var(--ring-week-1);
  stroke-width: 2;
  stroke-linecap: round;
  /* a quiet rail, not a shadow: at 0.3 the empty part of each day
     read as damage rather than as the vessel the fill sits in */
  opacity: 0.16;
  transition: opacity 260ms var(--ease-silk), stroke-width 260ms var(--ease-silk);
}
/* the segment under the pointer lights up - feedback on the thing
   being touched, not only in a line of text below the dial */

/* the six other days are markers; today is the one with a number on
   it, so its empty track is a shade stronger to hold the fill */
.dial__wtrack.is-today { opacity: 0.7; }
.dial__wfill {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.9;
}
.dial__wcap { stroke: var(--c-hair-strong); stroke-width: 1.2; }


/* the open hours */
.dial__open {
  fill: none;
  stroke: url(#gradDay);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-width 260ms var(--ease-silk);
}

/* a static element, so the blur is painted once and never again */
.dial__glow {
  fill: none;
  stroke: var(--ring-day-1);
  stroke-width: 12;
  stroke-linecap: round;
  opacity: 0.26;
  filter: blur(7px);
}
/* ---- the hour words ----
   All of them sit on one circle in the lane now, so what separates
   the two that NAME THE ARC from the quarter marks has to be colour.
   These are gold, like the arc they bracket. */
.dial__num {
  fill: var(--c-gold);
  /* a step down: the face is far larger than it was, and these
     scale with it */
  font-size: 13.5px;
  letter-spacing: 0.08em;
}

/* where now sits on the day */
/* the stroke across the ring: the dot alone floated on the line */
.dial__index {
  stroke: var(--ring-day-2);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.9;
}
.dial__dot { fill: var(--ring-day-2); }
.dial__halo {
  fill: var(--ring-day-2);
  transform-box: fill-box;
  transform-origin: center;
  animation: dialPulse 3s var(--ease-silk) infinite;
}
@keyframes dialPulse {
  0%, 100% { transform: scale(0.65); opacity: 0.38; }
  50% { transform: scale(1.4); opacity: 0.05; }
}
@media (prefers-reduced-motion: reduce) {
  .dial__halo { animation: none; opacity: 0.3; }
}

.dial__core { display: grid; place-items: center; pointer-events: none; }
.dial__bird {
  grid-area: 1 / 1;
  /* down a step with the rosette, so it still fits the clear middle
     the mandala is masked to leave */
  width: 24%;
  height: auto;
  color: var(--c-gold);
  filter: drop-shadow(0 6px 26px var(--c-gold-glow));
}

/* the readout: this is the information, the dial is a picture of it */
.dial__read {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  margin: 0;
  text-align: center;
}
.dial__lab {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}
.dial__read b {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem);
}
.dial__state {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--c-ink-2);
}
.dial__state.is-open { color: var(--c-jade); }

/* ---- the key ----
   Names the outer ring, the gold arc and the dot, because a chart you
   have to explain in words is an unfinished chart. */
.dial__key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
}
.dial__key li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}
.dial__key i {
  display: block;
  width: 0.85rem;
  height: 2px;
  border-radius: 999px;
  flex: none;
}
.dial__kw { background: var(--c-hair-strong); }
.dial__kt { background: var(--c-gold); height: 3px; }
.dial__kn {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--c-gold);
}

/* 06 / 12 / 18 on the face. This is a 24-hour ring with midnight at
   the top, which is why 10:00 sits lower-right; three numbers make
   that readable instead of surprising. */
/* ...and the quarter marks are the quiet ones. They used to be
   10.5px, deep inside the dial, printed over the mandala; out here
   at 12px they are the same kind of object as the gold pair and read
   as the scale those two sit on. */
.dial__q {
  fill: var(--c-ink-2);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

/* ---- the dial in light mode ----
   Every stroke here was picked against near-black. On cream the same
   alpha reads as roughly half the contrast, so the ring, the ticks
   and the pattern each get their own value rather than inheriting a
   token tuned for the dark. */
/* ---- the dial in light mode ----
   These rules used to force every part of the structure to brown.
   They were written when the rings were gold and survived the change
   to cyan and violet, quietly beating it - so light mode was a brown
   dial with coloured fills stuck on it. They follow the ring palette
   now, at weights chosen for cream rather than inherited from the
   dark. */
:root[data-theme="light"] .dial__wtrack { stroke: var(--ring-week-1); opacity: 0.22; }
:root[data-theme="light"] .dial__wtrack.is-today { opacity: 0.42; }
:root[data-theme="light"] .dial__wcap { stroke: var(--ring-week-1); opacity: 0.6; }
:root[data-theme="light"] .dial__track { stroke: var(--ring-day-1); opacity: 0.32; }
:root[data-theme="light"] .dial__tick { stroke: #9c7430; opacity: 0.6; }
:root[data-theme="light"] .dial__tick--major { stroke: #8a6424; opacity: 0.9; }
:root[data-theme="light"] .dial__tick--half { opacity: 0.14; }
:root[data-theme="light"] .dial__rim { stroke: #a67c35; opacity: 0.45; }
:root[data-theme="light"] .dial__seat { stroke: var(--c-gold-deep); opacity: 0.55; }

/* The fills carry the dial here, so they are nearly solid - there is
   no glow helping them. */
/* These were the most saturated thing on the face, on the OUTSIDE,
   framing the gold arc that is meant to be the subject - the
   hierarchy upside down. Same jade, less of it. */
/* I took these down when the jade was the loudest thing on a flat
   face. It is not flat now and there is a dome over it, so the
   same numbers read as washed out rather than restrained. */
:root[data-theme="light"] .dial__wfill { opacity: 0.88; stroke-width: 3.4; }
:root[data-theme="light"] .dial__wfill.is-today { opacity: 1; stroke-width: 4.2; }
:root[data-theme="light"] .dial__open { opacity: 0.16; }

/* A bloom is light being emitted. On near-black it reads as light; on
   cream there is nothing darker for it to glow against, so the same
   blurred stroke is just a smudge. Off. */
:root[data-theme="light"] .dial__glow,
:root[data-theme="light"] .dial__wglow { opacity: 0; }

/* The same opacity is not the same weight: a dark line on cream is
   far heavier than a pale line on near-black. At 0.3 the pattern
   dominated everything inside the rings. */
:root[data-theme="light"] .dial__mandala { opacity: 0.8; }

/* solid brown at full strength is a dark mass in the middle of the
   dial, where in dark mode the same shape is a light watermark - and
   the drop-shadow only dirtied the cream around it */
:root[data-theme="light"] .dial__bird {
  opacity: 0.95;
  filter: drop-shadow(0 2px 3px rgba(86, 64, 28, 0.28));
}

:root[data-theme="light"] .dial__q { fill: rgba(25, 18, 11, 0.62); }
/* --c-gold on cream measures 4.11 - under AA for 13px text. The deep
   gold is the same colour family at a value that can be read. */
:root[data-theme="light"] .dial__num { fill: var(--c-gold-deep); }
:root[data-theme="light"] .dial__index { stroke: var(--c-gold-deep); opacity: 1; }
:root[data-theme="light"] .dial__disc { fill: #fffdf8; opacity: 0.22; }


.photo {
  position: absolute;
  inset: 0;
  background-color: var(--c-bg-sunk);
  background-image: var(--grad-aurora);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.photo--img { background-image: var(--img), var(--grad-aurora); }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, transparent 30%, rgba(0, 0, 0, 0.45));
}
.photo__cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1rem 1.15rem;
  color: #f7f1e6;
}
.photo__cap b { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 400; display: block; }
.photo__cap span { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.74; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2vw, 2.4rem);
  translate: -50% 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  /* 2.4:1 at --c-ink-4. At 9px with 0.3em tracking there is very
     little ink on the screen to begin with. */
  color: var(--c-ink-2);
}
.scroll-cue i { display: block; width: 1px; height: 2.6rem; background: linear-gradient(var(--c-gold), transparent); animation: cue 2.4s var(--ease-silk) infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(0.2); opacity: 0.3; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   MARQUEE RIBBON
   ============================================================ */
.ribbon {
  position: relative;
  padding-block: 1.1rem;
  border-block: 1px solid var(--c-hair);
  background: var(--c-surface);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ribbon__track { display: flex; width: max-content; gap: 3rem; animation: slide 38s linear infinite; will-change: transform; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--c-ink-3);
  white-space: nowrap;
}
.ribbon__item::after { content: "✦"; font-size: 0.6em; color: var(--c-gold); }

/* ============================================================
   PHILOSOPHY — editorial split + z-axis cascade
   ============================================================ */
.philo { display: grid; gap: var(--sp-8); grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
.philo__stack { position: relative; height: clamp(360px, 46vw, 600px); perspective: 1200px; transform-style: preserve-3d; }
.philo__card { position: absolute; border-radius: var(--r-xl); will-change: transform; }
/* Same rule here: card 1 owns the top band, card 2 the bottom band, and the
   small accent card sits in the empty top-right corner. Captions stay clear. */
.philo__card--1 { width: 58%; height: 50%; top: 0; left: 0; rotate: -3deg; }
.philo__card--2 { width: 56%; height: 44%; bottom: 0; right: 0; rotate: 3deg; }
.philo__card--3 { width: 30%; height: 26%; top: 6%; right: 2%; rotate: -7deg; }
/* A photo card is not a framed picture. .bezel's padding + shell
   drew a mount around the image, so the card had two disagreeing
   edges: the outer border and the photo's own smaller radius a few
   pixels inside it. The image runs to the border; one edge only. */
.philo__card.bezel {
  padding: 0;
  background: none;
  overflow: hidden;
}
.philo__card .bezel__core {
  border: 0;
  border-radius: inherit;
  background: none;
  box-shadow: none;
}
.philo__card .photo { border-radius: inherit; }

/* ---- a hover you can actually see on a photograph ----
   The shared .bezel hover is a 1px ring at 45% and a soft bloom. On a
   card that is nothing but picture, over a bright photo, that is a
   change nobody notices - which is why these cards have been reported
   as "dead" over and over while the rule was firing correctly all
   along. A photo card needs a ring with weight behind it. */
.philo__card.bezel,
.gal-tile { transition: box-shadow 420ms var(--ease-silk), transform 520ms var(--ease-silk); }
.philo__stack .philo__card.bezel:hover,
.philo__stack .philo__card.bezel:focus-within {
  box-shadow:
    0 0 0 2px var(--c-gold),
    0 0 40px -6px rgba(229, 195, 137, 0.75),
    var(--sh-lift);
  border-color: transparent;
}
:root[data-theme="light"] .philo__stack .philo__card.bezel:hover,
:root[data-theme="light"] .philo__stack .philo__card.bezel:focus-within {
  box-shadow:
    0 0 0 2px rgba(122, 88, 28, 0.9),
    0 0 36px -8px rgba(122, 88, 28, 0.45),
    var(--sh-lift);
}
/* and the picture leans in, so the motion confirms the ring */
.philo__card .photo { transition: transform 700ms var(--ease-silk), filter 420ms var(--ease-silk); }
.philo__stack .philo__card.bezel:hover .photo { transform: scale(1.05); filter: brightness(1.07) saturate(1.04); }
.philo__card .photo__cap { transition: opacity 420ms var(--ease-silk); }

/* ---- one edge, not two ----
   .bezel is a shell with a core inside it, and both were drawing a
   border with different radii: two outlines a few pixels apart. On a
   treatment card the shell is the edge. */
.svc .svc__core { border-color: transparent; }
.svc:hover .svc__core,
.svc:focus-within .svc__core,
.svc.is-on .svc__core { border-color: transparent; }


.philo__quote { display: grid; gap: var(--sp-5); }
.philo__quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-h3);
  font-weight: 300;
  line-height: 1.26;
}
.philo__sign { display: flex; align-items: center; gap: 0.9rem; }
.philo__sign i { display: block; width: 2.6rem; height: 1px; background: var(--c-gold); }

.pillars { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, 1fr); margin-top: var(--sp-6); }
.pillar { display: grid; gap: 0.5rem; padding: 1.2rem 1.25rem; }
.pillar__ico { width: 1.7rem; height: 1.7rem; color: var(--c-gold); }
.pillar b { font-family: var(--font-display); font-size: var(--t-body); font-weight: 500; letter-spacing: 0.01em; }
.pillar p { margin: 0; font-size: var(--t-micro); color: var(--c-ink-3); line-height: 1.6; }

/* ============================================================
   TREATMENTS — asymmetrical bento
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.85rem, 0.4rem + 1vw, 1.5rem);
}
.treat { position: relative; grid-column: span 4; }
.treat--wide { grid-column: span 6; }
.treat--hero { grid-column: span 8; grid-row: span 2; }
.treat--tall { grid-column: span 4; grid-row: span 2; }

.treat__core { display: grid; align-content: space-between; gap: var(--sp-6); min-height: 15rem; padding: 1.5rem 1.6rem; }
.treat--hero .treat__core { min-height: 32rem; }
.treat--tall .treat__core { min-height: 32rem; }
/* A radial gradient, NOT filter: blur(). The blurred version had to
   be re-blurred on every frame it moved, on every card, while the
   same cards were being re-rasterised by the scrubbed 3-D scroll —
   which is what made this grid feel heavy. A gradient paints once
   and composites for free. */
.treat__glow {
  position: absolute;
  inset: -30% 40% 40% -20%;
  /* LIGHT, not paint. A gold-tinted glow inside a card reads as a
     patch of colour sitting ON the card; the same gradient with the
     hue taken out reads as light falling on it, which is depth
     rather than decoration. It was jade at 30% on odd cards and gold
     at 30% on even ones - a chequerboard of two hues. Now it has no
     hue at all. */
  background: radial-gradient(closest-side, rgba(255, 250, 242, 0.5) 0%, rgba(255, 250, 242, 0.2) 45%, transparent 72%);
  opacity: 0.055;
  /* opacity only. Transitioning transform here meant re-painting the
     gradient at a new size every frame for no visual gain. */
  transition: opacity var(--d-slow) var(--ease-silk);
  pointer-events: none;
  will-change: opacity;
}
/* no alternation: one material, one light */
.treat:hover .treat__glow { opacity: 0.12; }

.treat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; position: relative; z-index: 1; }
.treat__ico { width: 2.2rem; height: 2.2rem; color: var(--c-gold); }
.treat__price { text-align: right; font-family: var(--font-display); font-size: var(--t-h4); font-weight: 400; }
.treat__price span { display: block; font-family: var(--font-body); font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-ink-4); }
.treat__body { position: relative; z-index: 1; display: grid; gap: 0.6rem; }
.treat__name { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 400; line-height: 1.12; }
.treat--hero .treat__name { font-size: var(--t-h3); }
/* The description on every treatment card - the longest stretch of
   reading in the price board. --c-ink-3 measured 4.50 dark and 3.67
   light; a paragraph is exactly where that margin should not be
   spent. */
.treat__desc { margin: 0; font-size: var(--t-body-s); color: var(--c-ink-2); line-height: 1.62; }
.treat__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.22em 0.7em;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge);
  background: var(--c-surface);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-ink-3);
}
.tag--gold { border-color: var(--c-gold); color: var(--c-gold); }
.treat__foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* ============================================================
   RITUAL JOURNEY — pinned horizontal scroll
   ============================================================ */
.journey { position: relative; overflow: hidden; }
.journey__viewport { position: relative; min-height: 100dvh; display: grid; align-content: center; }
.journey__track { display: flex; gap: clamp(1rem, 0.5rem + 2vw, 2.4rem); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.step { width: clamp(260px, 72vw, 420px); }
.step__core { display: grid; gap: var(--sp-5); padding: 1.8rem; min-height: 24rem; align-content: start; }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  /* background-clip:text paints ONLY inside the element's background
     box. At line-height 0.8 that box is shorter than the glyphs, so
     the top of a 0 or a 3 fell outside it and got no paint at all -
     it read as the numeral being cut off. The box is tall enough now;
     the negative margin keeps the tight setting it was after. */
  line-height: 1;
  padding-top: 0.12em;
  margin-top: -0.12em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}
.step h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h4); font-weight: 400; }
.step p { margin: 0; font-size: var(--t-body-s); color: var(--c-ink-3); line-height: 1.66; }
.step__time { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-gold); }
.journey__progress { position: relative; height: 1px; margin-top: var(--sp-7); margin-inline: var(--gutter); background: var(--c-hair); }
.journey__progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad-gold); }

/* ============================================================
   3D SCROLL GALLERY — perspective deck
   ============================================================ */
.deck3d { position: relative; min-height: 190vh; }
.deck3d__stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: grid;
  place-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  overflow: hidden;
}
.deck3d__title {
  position: absolute;
  z-index: 0;
  font-family: var(--font-display);
  font-size: var(--t-mega);
  font-weight: 300;
  line-height: 0.82;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-hair-strong);
  pointer-events: none;
  user-select: none;
}
.deck3d__plate {
  position: absolute;
  width: clamp(200px, 36vw, 420px);
  aspect-ratio: 3 / 4;
  border-radius: var(--r-xl);
  padding: var(--bezel);
  background: var(--c-shell);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-float);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.deck3d__plate .bezel__core { border-radius: calc(var(--r-xl) - var(--bezel)); }
.deck3d__hint {
  position: absolute;
  bottom: clamp(1rem, 3vw, 3rem);
  z-index: 3;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-ink-4);
}
/* The stage is transform-style: preserve-3d, and inside a 3-D context
   z-index does not put one element "above" another — the browser sorts
   by position in space and lets coplanar surfaces INTERSECT. The deck
   cards sit at z:0 and rotate up to 46 degrees, so a card's leading
   edge swings forward through the plane this pill sits on and slices
   it with a hard straight line, top and bottom.

   The fix is spatial, not z-index: push the pill well in front of
   anything the cards can reach. translateZ alone also magnifies it
   (at perspective 1200, z=240 scales by 1200/960 = 1.25), so the
   scale(0.8) puts it back to its drawn size. */
.deck3d__cta,
.deck3d__hint {
  position: absolute;
  transform: translateZ(240px) scale(0.8);
  transform-style: flat;
  z-index: 4;
}
.deck3d__cta { bottom: clamp(3.2rem, 3vw + 2.4rem, 5.6rem); }

/* ============================================================
   GOOGLE REVIEWS
   ============================================================ */
/* The section heading used to be the second cell of this grid, so it
   began 518px right of every other heading on the page. It spans the
   full row now and the score card sits under it, which puts this
   section's heading on the same line as all the others. */
.reviews__top {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  margin-bottom: var(--sp-8);
}
.reviews__top > .section-head { grid-column: 1 / -1; }
.gscore__core { display: grid; gap: 0.6rem; justify-items: center; text-align: center; padding: 1.8rem 1.6rem; }
.gscore__logo { height: 1.3rem; width: auto; }
.gscore__val { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); line-height: 1; }
.gscore__stars { display: flex; gap: 0.2rem; color: #f5b32e; }
.gscore__stars svg { width: 1rem; height: 1rem; }

/* overflow-x:auto makes a box that clips on BOTH axes. `overflow-y:
   visible` is ignored next to it, so the rail is given real padding
   instead — room for the cards to move and for their glow to show. */
/* No negative margins here. They used to cancel the padding, which
   stretched the scroll box past the shell on both sides so the first
   and last cards ran under the page edge, and pulled the rail down
   over the caption below it. scroll-padding keeps a snapped card off
   the clip edge instead. */
.rev-rail {
  display: flex;
  gap: clamp(0.85rem, 0.4rem + 1vw, 1.4rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2.4rem;
  /* Real room for a card to lift on hover and cast its glow without
     being shaved off by the scroll box's own clip edge. Measured
     settled, the old 1.5rem left only 3px of clearance below the
     card — thin enough that anything at all cut the corners off. */
  /* top | sides | bottom. The sides have to clear the 30px glow AND
     the corner a tilted card throws outwards; the bottom also clears
     the hover lift. Measured, not guessed — see the note above. */
  /* padding-RIGHT is deliberately absent: browsers do not let you
     scroll into the trailing padding of a flex scroll container, so
     the last card always sat flush against the clip edge. The
     ::after below is a real flex item of the same width, which
     scrolling can actually reach. */
  padding: 1.6rem 0 2.6rem 2.4rem;
  scrollbar-width: none;
  /* equal-height cards: one long review should not leave the others
     looking unfinished */
  align-items: stretch;
  perspective: 1400px;
}
.rev-rail > * { scroll-snap-align: start; }
/* the reachable trailing gutter — see the note on the padding above */
.rev-rail::after { content: ""; flex: 0 0 2.4rem; scroll-snap-align: none; }
.rev-rail::-webkit-scrollbar { display: none; }
.review { flex: 0 0 clamp(260px, 74vw, 380px); scroll-snap-align: start; }
.review__core {
  display: grid;
  /* head · stars · text(flex) · source — the 1fr is what pins the
     Google line to the bottom of every card instead of letting it
     float under a short review */
  grid-template-rows: auto auto 1fr auto;
  gap: 0.85rem;
  padding: 1.5rem 1.5rem 1.35rem;
  height: 100%;
}
.review__txt { align-self: start; }
.review__head { display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1206;
  background: var(--grad-gold);
  box-shadow: var(--inner-light);
}
.review__who { display: grid; line-height: 1.3; }
.review__who b { font-size: var(--t-body-s); font-weight: 700; }
.review__who span { font-size: 0.66rem; color: var(--c-ink-4); }
.review__stars { display: flex; gap: 0.12rem; color: #f5b32e; }
.review__stars svg { width: 0.82rem; height: 0.82rem; }
.review__txt { margin: 0; font-size: var(--t-body-s); color: var(--c-ink-2); line-height: 1.66; }
.review__src { display: flex; align-items: center; gap: 0.4rem; font-size: 0.62rem; color: var(--c-ink-4); }
.review__src svg { width: 0.85rem; height: 0.85rem; }

/* ============================================================
   VISIT / LOCATION
   ============================================================ */
/* stretch, not start — the map and the details should read as a pair */
.visit { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.visit__map { min-height: clamp(15rem, 10rem + 14vh, 20rem); }
.visit__map .bezel__core { height: 100%; }
.visit__map iframe, .visit__map .map-ph {
  width: 100%;
  height: 100%;
  min-height: clamp(15rem, 10rem + 14vh, 20rem);
  border: 0;
  display: block;
}
.map-ph { display: grid; place-items: center; gap: 0.6rem; background: var(--grad-aurora); color: var(--c-ink-2); text-align: center; padding: 2rem; }
.info-list { display: grid; gap: 0; }
.info-row { display: grid; gap: 0.22rem; padding: 0.7rem 0; border-bottom: 1px solid var(--c-hair); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-ink-4); }
.info-row dd { margin: 0; font-size: var(--t-body-s); color: var(--c-ink); }

/* seven days stacked was the single tallest thing in the panel */
/* Seven stacked rows was the tallest thing in the panel, but two
   equal columns made the long day names overflow instead. The rows
   are `display: contents`, so each day and each time becomes a grid
   item in its own right and the four columns size themselves to the
   content — two days per line, everything aligned, nothing clipped. */
/* `auto-fit` + `minmax` can never overflow its container: the browser
   fits as many columns as there is room for and no more. A fixed
   column count could not, which is how Thursday ended up rendered
   past the right edge of the card where nobody could see it. */
.hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0 clamp(1rem, 0.5rem + 1.6vw, 2.2rem);
}
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.3rem 0;
  font-size: 0.74rem;
  border-bottom: 1px solid var(--c-hair);
}
.hours__row > span:last-child { white-space: nowrap; color: var(--c-ink-2); }
.hours__row.is-now { color: var(--c-jade); font-weight: 700; }
.hours__row.is-now > span:last-child { color: var(--c-jade); }

/* ============================================================
   FOOTER + FLOATING WHATSAPP
   ============================================================ */
.footer { position: relative; padding-top: var(--sp-9); padding-bottom: var(--sp-6); border-top: 1px solid var(--c-hair); background: var(--c-bg-sunk); }
.footer__grid { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)); }
.footer__col { display: grid; gap: 0.7rem; align-content: start; }
/* EXPLORE, TREATMENTS, CONTACT - the words that say what each
   column is. At --c-ink-4 and 9.6px they measured 2.39 dark and
   2.15 light. */
.footer__col h5 { margin: 0 0 0.3rem; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-ink-2); font-weight: 700; }
.footer__col a, .footer__col p { font-size: var(--t-body-s); color: var(--c-ink-3); margin: 0; transition: color var(--d-fast) var(--ease-silk); }
.footer__col a:hover { color: var(--c-gold); }
.footer__wordmark {
  margin-top: var(--sp-8);
  font-family: var(--font-display);
  font-size: var(--t-mega);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.03em;
  /* A name is a word. The entrance animation needs one inline-block
     per letter, which also hands the browser nine legal places to
     wrap - and at 375px it took one, dropping the E onto its own
     line. There are no acceptable places to break this. */
  white-space: nowrap;
  color: transparent;
  /* --c-hair-strong is the token for a hairline border. Here it is
     the entire letterform, nine letters wide across the footer. */
  -webkit-text-stroke: 1.25px rgba(212, 173, 109, 0.72);
  text-align: center;
  user-select: none;
}
/* ---- the name assembles, then signs itself ----
   Each letter rises, unblurs and settles, left to right; once the
   whole name is standing a wash of gold passes through it and fades.
   See js/wordmark.js for why it runs on view, and once. */
.footer__wordmark.is-split { display: block; }
.wm__l {
  display: inline-block;
  /* the fill inside the outline. The stroke never changes, so the
     letterforms never shift while the wash passes through. */
  color: transparent;
  transition: color 700ms var(--ease-silk);
}
.footer__wordmark.is-split .wm__l {
  opacity: 0;
  transform: translateY(0.34em) scale(0.94);
  filter: blur(7px);
}
.footer__wordmark.is-in .wm__l {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 620ms var(--ease-silk) calc(var(--i) * 70ms),
    transform 820ms var(--ease-spring) calc(var(--i) * 70ms),
    filter 620ms var(--ease-silk) calc(var(--i) * 70ms),
    color 700ms var(--ease-silk);
}
.footer__wordmark.is-signed .wm__l {
  animation: wmSign 1500ms var(--ease-silk) calc(var(--i) * 85ms) 1 both;
}
@keyframes wmSign {
  0% { color: transparent; }
  30% { color: rgba(229, 195, 137, 0.42); }
  55% { color: rgba(229, 195, 137, 0.42); }
  100% { color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__wordmark.is-split .wm__l { opacity: 1; transform: none; filter: none; }
  .footer__wordmark.is-signed .wm__l { animation: none; }
}
/* Capped so the name fits whatever the viewport is. The spare room
   is deliberate: how wide nine letters come out depends on which
   font actually loaded, and Cormorant arriving late must not become
   a line break or a sideways scrollbar. */
@media (max-width: 760px) {
  .footer__wordmark { font-size: min(var(--t-mega), 14vw); }
}
@media (max-width: 420px) {
  .footer__wordmark { font-size: min(var(--t-mega), 13.5vw); }
}
.footer__legal { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--c-hair); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--t-micro); color: var(--c-ink-4); }

/* ============================================================
   THE CHAT BUTTON

   A disc in the same material as everything else on this site: dark
   glass, a gold hairline, a soft glow. It used to be a large
   saturated green pill that changed shape - sliding off the screen
   edge, or collapsing into a tall lozenge - and the shape was never
   the real problem. A flat green blob in the corner of a page built
   from gold hairlines on glass belongs to a different website.

   WhatsApp's green stays on the GLYPH, which is the part that has to
   be recognisable. The button is a fixed-size circle: nothing to
   collapse, nothing to slide, no shape to get wrong.
   ============================================================ */
.fab {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.8rem);
  bottom: clamp(0.9rem, 2vw, 1.8rem);
  z-index: var(--z-nav);
  width: 3.45rem;
  height: 3.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-hair-strong);
  background: var(--c-bg-raise);
  box-shadow:
    0 16px 40px -16px rgba(0, 0, 0, 0.8),
    0 0 26px -10px var(--c-gold-glow),
    var(--inner-light);
  color: var(--c-ink);
  transform: translateY(140%);
  transition: transform 560ms var(--ease-spring),
              box-shadow var(--d-mid) var(--ease-silk),
              border-color var(--d-mid) var(--ease-silk);
}
.fab.is-in { transform: translateY(0); }
.fab:hover {
  border-color: var(--c-gold);
  box-shadow:
    0 20px 48px -16px rgba(0, 0, 0, 0.85),
    0 0 36px -8px var(--c-gold-glow),
    var(--inner-light);
}
.fab:active { transform: translateY(0) scale(0.96); }
.fab:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }

.fab__ico {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: none;
  transition: transform 520ms var(--ease-spring);
}
/* the one place WhatsApp's own colour belongs: the mark itself */
.fab__ico svg { width: 1.85rem; height: 1.85rem; color: #25d366; }
.fab:hover .fab__ico { transform: scale(1.08); }

/* the label is a tooltip now, not part of the button's shape */
.fab__txt {
  position: absolute;
  right: calc(100% + 0.55rem);
  display: grid;
  gap: 0.05rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-hair-strong);
  background: var(--c-bg-raise);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.8);
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 260ms var(--ease-silk), transform 380ms var(--ease-spring);
}
.fab__txt b { font-size: var(--t-body-s); color: var(--c-ink); }
.fab__txt span { font-size: 0.56rem; letter-spacing: 0.1em; color: var(--c-ink-2); }
.fab:hover .fab__txt,
.fab:focus-visible .fab__txt { opacity: 1; transform: none; }

/* a slow ring, the way the dial's marker breathes */
.fab::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid var(--c-gold);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .fab.is-in::after { animation: fabRing 4.5s var(--ease-silk) infinite; }
}
@keyframes fabRing {
  0% { transform: scale(0.92); opacity: 0.55; }
  70%, 100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 760px) {
  /* Gone on phones: the sticky action bar along the bottom already
     carries a WhatsApp icon, so the two were sitting in the same
     sixty-pixel strip. The bar already carries one, and the bar is
     the mobile pattern. */
  .fab { display: none; }
}

/* ============================================================
   REVEAL ANIMATION BASELINE (works without JS too)
   ============================================================ */
.rv { opacity: 0; transform: translateY(2.6rem); filter: blur(10px); }
.rv.is-in { opacity: 1; transform: none; filter: none; transition: opacity var(--d-slow) var(--ease-silk), transform var(--d-slow) var(--ease-silk), filter var(--d-slow) var(--ease-silk); }
.rv-d1.is-in { transition-delay: 90ms; }
.rv-d2.is-in { transition-delay: 180ms; }
.rv-d3.is-in { transition-delay: 270ms; }
.rv-d4.is-in { transition-delay: 360ms; }
.rv-d5.is-in { transition-delay: 450ms; }
html.no-js .rv { opacity: 1; transform: none; filter: none; }

/* 3D tilt host */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; left: 50%; bottom: 1.4rem; translate: -50% 0; z-index: var(--z-toast); display: grid; gap: 0.5rem; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--grad-glass);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(20px);
  font-size: var(--t-body-s);
  opacity: 0;
  transform: translateY(1rem) scale(0.97);
  transition: opacity var(--d-mid) var(--ease-silk), transform var(--d-mid) var(--ease-spring);
}
.toast.is-in { opacity: 1; transform: none; }
.toast svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; color: var(--c-jade); }

/* ============================================================
   RESPONSIVE COLLAPSE
   ============================================================ */
@media (max-width: 1100px) {
  .philo { grid-template-columns: 1fr; }
  .reviews__top { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .treat, .treat--wide, .treat--hero, .treat--tall { grid-column: span 6; grid-row: auto; }
  .treat--hero .treat__core, .treat--tall .treat__core { min-height: 20rem; }
}

/* the deck used to vanish below 1100px, which left the right half of
   the hero empty on a 1024px laptop — the very screen with the least
   room to waste. It now holds until the columns genuinely stop fitting. */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* The ring stays on phones. It costs height - the hero was already
     taller than a phone screen before it - but it is the first thing
     anyone sees and it answers the only question they have. Smaller,
     centred, and the hero scrolls a little further. */
  .hero__dial {
    justify-items: center;
    gap: 0.45rem;
    margin-top: 0.1rem;
  }
  /* 200px was the phone size, applied from 1000px down - so every
     tablet and small laptop got the phone face too, at a size where
     the scale and the day letters turn to grit. The phone keeps its
     own size below; this band gets a face it can actually use. */
  .dial { width: min(100%, 300px); }
  .dial__read { justify-items: center; text-align: center; gap: 0.1rem; }
  .dial__read b { font-size: 1.5rem; }
  .dial__key { gap: 0.2rem 0.7rem; }
  .dial__key li { font-size: 0.5rem; letter-spacing: 0.12em; }
  /* the face is 200px here, so the hour words have to come down with
     it or they collide across the middle of the dial */
  /* The face is about 200px here, so a size that reads well at 446
     renders at seven pixels. These are the sizes for the small face,
     not a nudge off the big one. */
  .dial__q { font-size: 18px; }
  .dial__num { font-size: 19px; }
  /* :root only to WIN. A media query adds no specificity, and the
     base .dial__dow rule lives about 930 lines below this block, so
     at equal specificity source order gave it the last word and this
     override has never once applied. */
  :root .dial__dow { font-size: 16px; }
  /* the navbar chip, an inch above this, already says it */
  .dial__state { display: none; }
}

/* the map and the details sit side by side as long as they fit — one
   above the other turns the section into two screens of scrolling */
@media (max-width: 900px) {
  .visit { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__island { width: 100%; justify-content: space-between; padding-left: 0.85rem; }
  .brand__sub { display: none; }
}

@media (max-width: 620px) {
  /* the gold CTA lives inside the burger menu at phone width */
  .nav__tools > .btn--gold { display: none; }
  .nav__island { gap: 0.4rem; padding: 0.42rem 0.45rem 0.42rem 0.7rem; }
  .brand__mark { width: 1.85rem; height: 1.85rem; }
  .brand__name { font-size: 0.92rem; }
  .chip { height: 1.95rem; min-width: 1.95rem; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 0.82rem; }
}

/* short viewports: let the hero breathe without overflowing */
@media (max-height: 740px) and (min-width: 861px) {
  .hero { padding-top: 7rem; }
  .hero__title { font-size: clamp(2.6rem, 1rem + 5.4vw, 5.4rem); }
}

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .treat, .treat--wide, .treat--hero, .treat--tall { grid-column: span 12; }
  /* taller on phones so the captions are not squeezed over the photo */
  .philo__stack { height: clamp(380px, 105vw, 470px); }
  .photo__cap { padding: 0.75rem 0.85rem; }
  .photo__cap b { font-size: 1rem; }
  .photo__cap span { font-size: 0.55rem; letter-spacing: 0.16em; }
  .philo__card--1, .philo__card--2, .philo__card--3 { rotate: 0deg; }
  .philo__card--3 { display: none; }
  .philo__card--1 { width: 72%; }
  .philo__card--2 { width: 60%; }
  .footer__grid { grid-template-columns: 1fr; }
  .fab__txt { display: none; }
  .fab { padding: 0.5rem; }
  .deck3d { min-height: 150vh; }
}

/* ============================================================
   REDUCED MOTION - what it actually asks for

   This used to be `*, *::before, *::after { animation-duration:
   0.01ms; transition-duration: 0.01ms }`, which turns off every
   animation AND every transition on the site. Switch Reduce Motion on
   in iOS or Android and the whole thing goes to stone - no fades, no
   colour changes, nothing. A lot of people have that setting on
   without knowing it.

   That is not what the preference asks for. It asks for no
   VESTIBULAR motion: no parallax, no large travel, no spinning, no
   zooming. Opacity and colour are explicitly fine. So those keep
   working, at a calm speed, and only movement stops.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    /* movement stops; fades and colour do not */
    transition-property: opacity, color, background-color, border-color,
      fill, stroke, box-shadow !important;
    transition-duration: 320ms !important;
    animation-iteration-count: 1 !important;
  }
  /* anything that moves, scales or spins is off outright */
  .orb, .grain { display: none; }
  .rv { opacity: 0; transform: none; filter: none; transition: opacity 420ms linear; }
  .rv.is-in { opacity: 1; }
}

/* --- price board: each duration is a way in, not a label --- */
.dur-picks { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.dur-pick {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34rem;
  padding: 0.3rem 0.62rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-ink-3);
  font: inherit;
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--d-mid) var(--ease-silk), color var(--d-mid) var(--ease-silk),
    background var(--d-mid) var(--ease-silk);
}
.dur-pick i { font-style: normal; font-weight: 600; color: var(--c-gold-2); }
.dur-pick:hover { border-color: var(--c-gold); color: var(--c-ink); background: var(--c-surface-2); }
.dur-pick:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }


/* ============================================================
   CARD OUTLINES

   The only thing this block touches is the edge. Fills, padding and
   type are left exactly as they were — an earlier attempt painted a
   gradient behind the cards and turned them gold, which is not what
   an outline is.

   At rest the hairline is warm and plainly visible instead of a grey
   line that disappears into the background. On hover it brightens and
   the card gains a real glow: a tight gold ring plus a soft bloom
   thrown outward.
   ============================================================ */
:root {
  /* 0.52 was measured against the page's near-black base and read
     3.2:1 there — but the philosophy and journey sections sit on GREEN
     gradients, where the very same border falls to 2.43:1. A gradient
     reports backgroundColor: transparent, so the probe never saw it.
     Brighter and more opaque, this holds 4.1:1 on the green and better
     still on the base. Still a 1px hairline. */
  --edge: rgba(222, 186, 126, 0.78);
  --edge-hi: rgba(212, 173, 109, 1);
  --glow: 0 0 0 1px rgba(212, 173, 109, 0.45), 0 0 30px -6px rgba(212, 173, 109, 0.6);
}
:root[data-theme="light"] {
  /* Deeper bronze than the gold used elsewhere in light mode. Gold at
     150,110,48 tops out at 4.6:1 on cream even fully opaque, so the
     light theme could never match the dark theme's hover. 107,74,23
     reaches 7.6:1 and still reads as warm metal, not as black.
     Measured: 3.3:1 at rest, 7.6:1 on hover — against dark's
     3.22 and 8.65. */
  --edge: rgba(107, 74, 23, 0.65);
  --edge-hi: rgb(107, 74, 23);
  --glow: 0 0 0 1px rgba(107, 74, 23, 0.55), 0 0 26px -7px rgba(107, 74, 23, 0.5);
}

.bezel,
.stamps,
.mcard,
.soon,
.voice,
.gift-card,
.vframe {
  border-color: var(--edge);
  transition:
    border-color var(--d-mid) var(--ease-silk),
    box-shadow var(--d-mid) var(--ease-silk),
    transform var(--d-mid) var(--ease-silk);
}

/* the larger surfaces keep their soft shadow under the glow */
/* EVERY card, not only the ones carrying `bezel--hover`. That
   modifier was opt-in and 14 of the 36 bezels on the home page did
   not have it — including both panels in the Find-us section, the
   philosophy cards, the pillars and the ritual steps. They looked
   dead because they were. `bezel--lg` is excluded: it wraps a whole
   page section rather than being a card. */
.bezel:not(.bezel--lg):hover,
.bezel:focus-within,
.stamps:hover,
.mcard:hover,
.soon:hover,
.voice:hover,
.gift-card:hover,
.vframe:hover,
.gal-tile:hover,
.deck3d__plate:hover,
.wq__opt:hover {
  border-color: var(--edge-hi);
  /* glow FIRST. box-shadow paints its first layer on top, so with the
     soft shadow leading, the dark wash sat over the gold ring and the
     glow was present in the CSSOM but invisible on screen. */
  box-shadow: var(--glow), var(--sh-lift);
  transform: translateY(-6px);
}

/* the small controls glow without the weight */
.chip:hover,
.lang-chip:hover,
.btn--ghost:hover,
.pill:hover,
.pill-sm:hover,
.dur-pick:hover,
.tag:hover,
.inp:hover,
.stepper__dot:hover,
.svc:hover,
.slot:hover:not(.is-taken),
.day:hover:not(.is-off):not(.is-blank),
.choice span:hover,
.bodyview:hover,
.vsize__b:hover,
.gtab:hover {
  border-color: var(--edge-hi);
  box-shadow: var(--glow);
}

/* a focused field keeps its own, louder ring — do not let the hover
   rule above quieten it */
.inp:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-glow), var(--inner-light);
}

/* the inner plate follows the shell so the two rims stay a pair */
.bezel__core { transition: border-color var(--d-mid) var(--ease-silk); }

/* the old transparent ::after ring is no longer doing anything */
.bezel::after { display: none; }

/* ============================================================
   HERO — ABOVE THE FOLD

   The rule this section is built to keep: on a 1024x768 laptop the
   headline, the sentence, BOTH buttons and the proof row are all on
   screen without scrolling. Check that before changing anything here.

   The headline is capped by viewport HEIGHT as well as width. Sizing
   display type from width alone is what pushed the buttons off a
   short screen — a wide 768px-tall laptop was getting the same
   headline as a tall monitor.
   ============================================================ */
.hero {
  padding-top: clamp(5.5rem, 4.2rem + 2.6vw, 8rem);
  padding-bottom: clamp(2rem, 1rem + 3vw, 4rem);
}
.hero__grid { gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.hero__copy { gap: clamp(0.75rem, 0.4rem + 1vw, 1.4rem); }

/* `.hero .hero__title` rather than `.hero__title`: the earlier rule
   has the same specificity and was winning on source order even from
   here, which left the headline at its full width-derived size. */
.hero .hero__title {
  font-size: min(var(--t-h1), calc(2.1rem + 4.1vh));
  line-height: 1.03;
}
/* a shorter measure reads faster and costs a line or two of height */
.hero__copy .lead {
  max-width: 46ch;
  font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.06rem);
}
.hero__actions { margin-top: clamp(0.2rem, 0.1rem + 0.4vw, 0.6rem); }
.hero__meta {
  margin-top: clamp(0.4rem, 0.2rem + 0.6vw, 1rem);
  gap: clamp(1rem, 0.6rem + 1.4vw, 2rem);
}

/* On a short screen the decoration gives up its room before the
   content does. */
@media (max-height: 860px) {
  .hero { padding-top: clamp(5rem, 4.4rem + 1.4vw, 6.4rem); padding-bottom: 1.5rem; }
  .hero__copy { gap: 0.7rem; }
  .hero__meta { margin-top: 0.3rem; }
  .scroll-cue { display: none; }
}

/* Chinese and Korean set much taller than Latin at the same size, and
   must not be broken mid-phrase the way Latin can be. */
html[lang="zh"] .hero .hero__title,
html[lang="ko"] .hero .hero__title {
  font-size: min(calc(var(--t-h1) * 0.76), calc(1.7rem + 3.2vh));
  line-height: 1.22;
  line-break: strict;
  word-break: keep-all;
}
/* Thai has no spaces between words; `loose` lets the browser use its
   dictionary instead of stranding a word on a line of its own. */
html[lang="th"] .hero .hero__title { line-break: loose; line-height: 1.3; }

/* ============================================================
   FIND US — the two panels are a pair

   They must read as one object split in two, so they share a height.
   `align-items: stretch` on the grid was being lost somewhere in the
   cascade, so it is stated here, last, along with the chain of
   height:100% the map needs to actually fill the space it is given.
   ============================================================ */
.visit { align-items: stretch; }
.visit > .bezel { display: flex; }
.visit > .bezel > .bezel__core { flex: 1 1 auto; height: auto; }
.visit__map { min-height: clamp(15rem, 10rem + 14vh, 20rem); }
.visit__map .bezel__core { display: flex; }
.visit__map iframe,
.visit__map .map-ph { flex: 1 1 auto; height: auto; min-height: 0; }

/* "Tomorrow · Fri 13 November" is a long line where "14:30" was
   expected. It wraps rather than running off, and balances so the
   second line is not one orphaned word. */
.dial__read b {
  min-width: 0;
  max-width: 100%;
  text-wrap: balance;
}

/* ============================================================
   SECTION HEADINGS — one shape everywhere

   Five of the six section heads on the home page were left-aligned
   and one was centred, which is what reads as "not aligned". They now
   share one shape, one measure and one rhythm, so the eye lands in the
   same place in every section.
   ============================================================ */
.section-head {
  display: grid;
  gap: clamp(0.5rem, 0.3rem + 0.6vw, 0.9rem);
  max-width: 64ch;
  margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 4rem);
}
.section-head .display { margin: 0; }
/* the sentence under a heading reads at a comfortable measure rather
   than running the full width of the page */
.section-head .lead { max-width: 56ch; }
.section-head .eyebrow { margin-bottom: 0.1rem; }

/* The journey's heading sat inside the horizontal track's shell,
   which is 1360px wide — wider than most screens — so it was pushed
   in from the left and clipped on the right. Give it the page's own
   width and gutter, independent of the track it introduces. */
/* The heading was being pushed out of the page's own column: this
   shell was given full width and the raw gutter, so it started 32px
   left of every other section heading on a wide screen. It keeps the
   page's max-width and centring like the others; only the TRACK below
   it needs to run full width. */
/* only the trailing hint is still inside the track */
.journey__viewport > .shell {
  width: 100%;
  max-width: var(--maxw);
  padding-inline: var(--gutter);
  margin-inline: auto;
  position: sticky;
  left: 0;
}
.journey__head { position: relative; z-index: 2; }
.journey__viewport > .shell > .section-head { max-width: 58ch; }

/* the source note sits clearly below the rail, not tucked under it */
.rev-rail + .tiny { margin-top: 1rem; }

:root[data-theme="light"] .bezel__core { border-color: rgba(28, 20, 12, 0.06); }
/* on hover the shell brightens; the core stays quiet so there is still
   only one outline */
.bezel:not(.bezel--lg):hover .bezel__core,
.bezel:focus-within .bezel__core { border-color: rgba(255, 255, 255, 0.11); }
:root[data-theme="light"] .bezel:not(.bezel--lg):hover .bezel__core,
:root[data-theme="light"] .bezel:focus-within .bezel__core { border-color: rgba(28, 20, 12, 0.1); }

/* ============================================================
   RAIL CONTROLS

   The rail hid its scrollbar and offered nothing in its place, so on
   a desktop with an ordinary mouse there was no way to move it at
   all. These are the affordances; js/rail.js is the behaviour.
   ============================================================ */
.rail { position: relative; }

/* No gradient edge fades. They have to be painted in the page's
   background colour to work, and this rail sits on a GREEN gradient
   section — so the fade drew a hard dark rectangle over the green and
   clipped the first card behind it. The arrows and the partly-visible
   next card are enough to say "this scrolls".

   The rail gets a gutter instead, so an arrow never sits on top of a
   card: the arrows live in the padding, not over the content. */
/* no gutter needed now that nothing sits beside the cards */
.rail { padding-inline: 0; }

/* A slim line under the rail, in place of arrow buttons. It says
   there is more to see, shows how far along you are, and can be
   dragged — all without laying chrome over the cards. */
.rail__track {
  position: relative;
  height: 3px;
  margin: 0.9rem auto 0;
  max-width: min(260px, 36%);
  border-radius: 999px;
  background: var(--c-hair);
  cursor: pointer;
  touch-action: none;
}
.rail__track::before {
  /* a taller invisible hit area — 3px is impossible to grab */
  content: "";
  position: absolute;
  inset: -10px 0;
}
.rail__thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-gold-2), var(--c-gold));
  transition: left 160ms var(--ease-silk), background 200ms var(--ease-silk);
}
.rail__track:hover .rail__thumb { background: var(--c-gold-2); }
.rail.is-static .rail__track { display: none; }

/* the rail itself reads as draggable */
.rev-rail { cursor: grab; }
.rev-rail.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.rev-rail.is-grabbing * { user-select: none; }
.rev-rail:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 6px; border-radius: var(--r-lg); }

@media (max-width: 760px) {
}

/* ============================================================
   PINNED CARDS

   The reviews hang from brass pushpins. The pin is drawn, not an
   image: ::before is the domed head, ::after the shaft below it.
   ============================================================ */
.review { position: relative; }

/* room at the top of each card for the pin to sit in */
.rev-rail .review__core { padding-top: 2.5rem; }

.review::before,
.review::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  z-index: 3;
  transition: transform 420ms var(--ease-spring), filter 420ms var(--ease-silk);
}
/* the shaft, leaning slightly, with the shadow it casts on the card */
.review::after {
  top: 1.05rem;
  width: 2px;
  height: 0.62rem;
  margin-left: -1px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, #b98f44, #7d5b23);
  transform-origin: 50% 0;
  transform: rotate(8deg);
}
/* the head: a dome, lit from the top left */
.review::before {
  top: 0.38rem;
  width: 0.92rem;
  height: 0.92rem;
  margin-left: -0.46rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffe9b8 0%, #e2b964 38%, #a9792e 70%, #6d4d18 100%);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.5) inset,
    0 3px 7px -2px rgba(0, 0, 0, 0.75),
    0 0 14px -4px var(--c-gold-glow);
}

/* The cards sit STRAIGHT. A card rotated even 1.6 degrees has a
   bounding box ~10px taller and ~10px wider than itself, and this
   container clips on both axes — which is what kept shaving the
   corners off. The pins give the pinboard character; the tilt only
   gave clipping. */
.rev-rail .review { rotate: 0deg; }

/* the pin drops in and settles, which is the movement worth having */
@keyframes pinDrop {
  0% { transform: translateY(-10px) scale(0.6); opacity: 0; }
  60% { transform: translateY(1px) scale(1.06); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes pinDropShaft {
  0% { transform: rotate(8deg) scaleY(0); opacity: 0; }
  60% { transform: rotate(8deg) scaleY(1.1); opacity: 1; }
  100% { transform: rotate(8deg) scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .rev-rail .review::before { animation: pinDrop 620ms var(--ease-spring) both; }
  .rev-rail .review::after { animation: pinDropShaft 620ms var(--ease-spring) both; }
  .rev-rail .review:nth-child(2)::before, .rev-rail .review:nth-child(2)::after { animation-delay: 90ms; }
  .rev-rail .review:nth-child(3)::before, .rev-rail .review:nth-child(3)::after { animation-delay: 180ms; }
  .rev-rail .review:nth-child(4)::before, .rev-rail .review:nth-child(4)::after { animation-delay: 270ms; }
  .rev-rail .review:nth-child(n+5)::before, .rev-rail .review:nth-child(n+5)::after { animation-delay: 340ms; }
}

/* ============================================================
   U-PINS

   The bent-wire kind, pressed over the edge of a photograph.
   ::before is the left pin, ::after the right one; each is an arch
   with no bottom, so it reads as a loop of wire going into the card.
   ============================================================ */
.philo__card { position: absolute; }   /* already, but this rule owns the pins */

.philo__card::before,
.philo__card::after {
  content: "";
  position: absolute;
  /* .bezel::after already exists — it is the card's hover ring, and it
     carries inset:-1px AND display:none. Both are inherited by this
     pin unless they are answered explicitly: display:none hid the
     right-hand pin entirely, and inset's left:-1px over-constrained
     it against right:26% so it sat on the wrong side. */
  display: block;
  left: auto;
  right: auto;
  bottom: auto;
  /* NARROW and TALL. The first version was 24x15 with a 14px radius,
     which is a bulldog clip: at those proportions the two sides are
     too far apart and too short to read as the legs of a pin. A
     hairpin is ~9px across and twice as tall, and the radius is
     exactly half the width so the top is a true semicircle. */
  top: -0.78rem;
  width: 9px;
  height: 22px;
  z-index: 4;
  pointer-events: none;
  border: 1.8px solid #c9a356;
  border-bottom: 0;
  border-radius: 4.5px 4.5px 0 0;
  /* light along the top of the bend, shadow down the right leg */
  border-top-color: #f6e6bd;
  border-left-color: #e0bd77;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 420ms var(--ease-spring), filter 420ms var(--ease-silk);
}
.philo__card::before { left: 28%; rotate: -5deg; }
.philo__card::after { right: 28%; rotate: 4deg; }
.philo__card--2::before { rotate: 6deg; }
.philo__card--2::after { rotate: -3deg; }

/* the small card only has room for one */
.philo__card--3::after { display: none; }
.philo__card--3::before { left: 50%; margin-left: -4.5px; rotate: -3deg; }

/* pressed home on hover: the wire sinks a little and brightens */
.philo__card:hover::before,
.philo__card:hover::after {
  /* pressed home: the legs sink, the bend stays put */
  transform: translateY(3px) scaleY(0.8);
  filter: brightness(1.18);
}

/* pushed in, once, as the card arrives */
@keyframes uPinPress {
  0% { transform: translateY(-9px) scaleY(1.25); opacity: 0; }
  58% { transform: translateY(1.5px) scaleY(0.9); opacity: 1; }
  100% { transform: translateY(0) scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .philo__card::before { animation: uPinPress 680ms var(--ease-spring) both; }
  .philo__card::after { animation: uPinPress 680ms var(--ease-spring) both; animation-delay: 110ms; }
  .philo__card--2::before { animation-delay: 150ms; }
  .philo__card--2::after { animation-delay: 250ms; }
  .philo__card--3::before { animation-delay: 320ms; }
}
@media (prefers-reduced-motion: reduce) {
  .philo__card::before, .philo__card::after { animation: none; }
}

/* ---- the same pin, on the treatment cards and the Find Us panels ----
   One pin on a treatment card, not two: thirteen cards with a pair
   each is a noticeboard, not a menu. The grid gap here is 0.7rem, so
   the pin straddles the card's top edge rather than standing proud of
   it - any taller and it touches the card above. */
.svc::before,
.visit__map::before,
.visit > .bezel:not(.visit__map)::before {
  content: "";
  position: absolute;
  display: block;
  left: 50%;
  margin-left: -4.5px;
  top: -0.5rem;
  width: 9px;
  height: 18px;
  z-index: 4;
  pointer-events: none;
  border: 1.8px solid #c9a356;
  border-bottom: 0;
  border-radius: 4.5px 4.5px 0 0;
  border-top-color: #f6e6bd;
  border-left-color: #e0bd77;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  rotate: -4deg;
  transition: transform 420ms var(--ease-spring), filter 420ms var(--ease-silk);
}
/* the pins are not all hammered in at the same angle */
.svc:nth-child(2n)::before { rotate: 3deg; }
.svc:nth-child(3n)::before { rotate: -7deg; }
.visit > .bezel:not(.visit__map)::before { rotate: 5deg; }

.visit__map::before,
.visit > .bezel:not(.visit__map)::before { top: -0.62rem; height: 22px; }

.svc:hover::before,
.visit__map:hover::before,
.visit > .bezel:not(.visit__map):hover::before {
  transform: translateY(3px) scaleY(0.8);
  filter: brightness(1.18);
}
@media (prefers-reduced-motion: no-preference) {
  .svc::before,
  .visit__map::before,
  .visit > .bezel:not(.visit__map)::before {
    animation: uPinPress 680ms var(--ease-spring) both;
  }
  .svc:nth-child(2n)::before { animation-delay: 90ms; }
  .svc:nth-child(3n)::before { animation-delay: 170ms; }
  .visit > .bezel:not(.visit__map)::before { animation-delay: 140ms; }
}
@media (prefers-reduced-motion: reduce) {
  .svc::before,
  .visit__map::before,
  .visit > .bezel:not(.visit__map)::before { animation: none; }
}
/* the pin lives above the card's top edge, so nothing on the way may
   clip it */
.svc-grid, .visit { overflow: visible; }


/* the photo must not cover its own pins */
.philo__card.bezel { overflow: visible; }
.philo__card .bezel__core { overflow: hidden; }

/* ============================================================
   THE KINNARI MARK

   The shop's own namesake, used as a quiet corner mark on the
   larger panels and as a watermark behind the price board. Hairline
   and low-opacity on purpose: a motif that announces itself is
   decoration, one you notice on the second look is identity.
   ============================================================ */
.bezel--lg > .bezel__core::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--c-gold);
  opacity: 0.12;
  pointer-events: none;
  -webkit-mask: url("../assets/img/kinnari.svg") center / contain no-repeat;
  mask: url("../assets/img/kinnari.svg") center / contain no-repeat;
  transition: opacity var(--d-slow) var(--ease-silk);
}
.bezel--lg:hover > .bezel__core::before { opacity: 0.2; }

/* behind the price board, very large and very faint */
.treat-grid { position: relative; }
.treat-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42rem, 70%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--c-gold);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  -webkit-mask: url("../assets/img/kinnari.svg") center / contain no-repeat;
  mask: url("../assets/img/kinnari.svg") center / contain no-repeat;
}
.treat-grid > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .bezel--lg:hover > .bezel__core::before { opacity: 0.12; }
}

/* ============================================================
   THE THEME BUTTON, THREE WAYS

   Light, Dark, Auto. Which glyph shows is driven by the CHOICE, not
   by the theme currently in force — otherwise Auto looks identical
   to whichever of the two it happens to have resolved to, and there
   is no way to tell that the device is in charge.
   ============================================================ */
.theme-toggle svg { transition: opacity 220ms var(--ease-silk), transform 320ms var(--ease-spring); }
.theme-toggle .i-sun,
.theme-toggle .i-moon,
.theme-toggle .i-auto { display: none; }
:root[data-theme-choice="light"] .theme-toggle .i-sun,
:root[data-theme-choice="dark"] .theme-toggle .i-moon,
:root[data-theme-choice="auto"] .theme-toggle .i-auto { display: block; }
/* Auto carries a small dot, so it reads as "following" rather than
   as a third unrelated mode */
.theme-toggle .i-auto { position: relative; }

/* "Call +66 ..." / "WhatsApp +91 ..." — the label is set apart so it
   reads as a label rather than as part of the number */
#ftPhone, #ftWa { display: block; }
#ftPhone::first-line, #ftWa::first-line { letter-spacing: 0.04em; }
.footer__col a[id^="ft"] { line-height: 1.7; }

/* ============================================================
   MOTION THAT DOES NOT DEPEND ON A CDN

   Every animation in motion.js begins `if (!hasGSAP) return`, and
   GSAP comes from cdnjs. On a network where that request is slow,
   filtered or blocked, the site works perfectly and never moves.

   The rotation belongs here anyway: it is one line of CSS and it was
   a JavaScript tween. The rest are fallbacks, used only when the
   library is genuinely absent.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* The circle turns on its own, library or no library.
     60s, not 180s. This mandala has 24 petals, so it has 24-fold
     rotational symmetry and looks identical every 15 degrees. At
     180s - 2 degrees a second - it took seven and a half seconds to
     reach a position distinguishable from where it started, and
     every instant between was a near-copy. It rotated perfectly and
     looked completely static. At 60s a symmetry period passes every
     two and a half seconds, which is slow enough to be calm and fast
     enough to be seen. */
  .dial__spin { animation: dialSpin 60s linear infinite; }
}
@keyframes dialSpin { to { transform: rotate(360deg); } }

/* ---- without GSAP, CSS does the headline and the dial ----
   TRANSFORM ONLY, and deliberately so. An entrance that animates
   opacity from 0 with fill-mode `both` holds that first keyframe for
   as long as the animation does not run - and an animation can fail
   to run. Then the headline is not un-animated, it is invisible, and
   that is a far worse bug than the one being fixed.

   `.ln` clips its own contents, so a translated line is hidden by its
   wrapper and needs no opacity to disappear. If these never run, the
   text sits exactly where it belongs and simply does not move. */
.no-gsap .hero__title .ln > span {
  animation: lnRise 1.1s var(--ease-silk) both;
}
.no-gsap .hero__title .ln:nth-child(2) > span { animation-delay: 0.12s; }
.no-gsap .hero__title .ln:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes lnRise {
  from { transform: translateY(108%); }
  to { transform: translateY(0); }
}
.no-gsap .hero__dial { animation: dialIn 1.4s var(--ease-spring) 0.3s both; }
@keyframes dialIn {
  from { transform: translateY(32px) scale(0.96); }
  to { transform: none; }
}
/* GSAP sets these inline before it animates them; with no GSAP they
   would otherwise sit at their start values forever */
.no-gsap .rv { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .dial__spin { animation: none; }
  .no-gsap .hero__title .ln > span,
  .no-gsap .hero__dial { animation: none; }
}

/* ---- the dot is a dot ----
   `.dial__key i` is two classes and an element; `.dial__kn` was one
   class, so the generic swatch won and the dot rendered as a dash.
   Scoped, it is specific enough to say what shape it is. */
/* The swatch has to look like the mark. The marker on the face
   gained a ring around it; this did not follow, so the one job a
   legend has - resembling the thing it explains - it had stopped
   doing. */
.dial__key .dial__kn {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--c-bg), 0 0 0 2.5px var(--ring-day-2);
  background: var(--c-gold);
}

/* ---- two rings, two colours ----
   The fastest way to tell two rings apart is not a caption, it is
   that they are not the same colour. Jade for the week, gold for
   today - your own two accents rather than borrowed ones. */
.dial__wtrack.is-today { opacity: 0.6; }
/* today's slice, as a lit gradient rather than a flat stroke */
.dial__wfill { stroke: url(#gradWeek); opacity: 1; }
.dial__wcap { stroke: var(--ring-week-2); opacity: 0.8; }
/* every day's fill, with today's a step brighter and heavier */
.dial__wfill { opacity: 0.6; }
.dial__wfill.is-today { opacity: 1; stroke-width: 4.5; }
.dial__wglow {
  fill: none;
  stroke: var(--ring-week-1);
  stroke-width: 10;
  stroke-linecap: round;
  opacity: 0.12;
  pointer-events: none;
}
.dial__wglow.is-today { opacity: 0.26; stroke-width: 13; }

.dial__key .dial__kw { background: linear-gradient(90deg, var(--ring-week-1), var(--ring-week-2)); }
.dial__key .dial__kn { background: var(--ring-day-1); }

/* ---- the hint ---- */
.dial__hint {
  display: block;
  min-height: 1.2rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-gold);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 220ms var(--ease-silk), transform 320ms var(--ease-spring);
}
.dial__hint.is-on { transform: none; }
.dial__hint.is-on { opacity: 1; }
/* the rings answer the pointer; the rest of the face does not */
.dial__wtrack, .dial__wfill, .dial__open, .dial__track, .dial__now {
}
.dial__now { pointer-events: all; }

/* ============================================================
   THE MENU TAB

   A second way into the menu, on the right edge, for a thumb that is
   already over there. It clicks the burger rather than reimplementing
   open/close, so there is still exactly one place that knows how the
   menu works.
   ============================================================ */
.railtab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-nav);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border: 1px solid var(--c-hair-strong);
  border-right: 0;
  border-radius: 0.9rem 0 0 0.9rem;
  background: var(--c-bg-raise);
  color: var(--c-gold);
  cursor: pointer;
  transition: transform 420ms var(--ease-spring), background 300ms var(--ease-silk);
}
.railtab:hover { transform: translateY(-50%) translateX(-3px); background: var(--c-surface-2); }
.railtab:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.railtab__txt {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.railtab__ico { display: grid; gap: 3px; }
.railtab__ico i {
  display: block;
  width: 11px;
  height: 1px;
  background: currentColor;
  transition: transform 320ms var(--ease-spring);
}
.railtab__ico i:nth-child(2) { width: 7px; }
.railtab:hover .railtab__ico i:nth-child(2) { transform: translateX(4px); }
/* while the menu is open the tab is behind it and would be a trap */
body.menu-open .railtab { opacity: 0; pointer-events: none; }
@media (max-width: 1000px) {
  /* the navbar's hamburger comes back at this width, and two ways
     into the same menu on a small screen is clutter */
  .railtab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .railtab:hover { transform: translateY(-50%); }
}

/* ---- at rest it is a line ----
   The gold edge from the reference: a hairline arc against the right
   margin, enough to say something is there. It opens into the full
   tab while the page is moving, and on hover or focus.

   The line NEVER leaves. A control that disappears completely is a
   control nobody knows about. */
.railtab {
  overflow: hidden;
  transition:
    transform 460ms var(--ease-spring),
    padding 460ms var(--ease-spring),
    background 300ms var(--ease-silk),
    border-color 300ms var(--ease-silk);
}
.railtab:not(.is-open):not(:hover):not(:focus-visible) {
  padding: 1.6rem 0;
  width: 5px;
  background: none;
  border-color: var(--c-gold);
  border-width: 0 0 0 2px;
  border-radius: 0;
}
.railtab:not(.is-open):not(:hover):not(:focus-visible) .railtab__txt,
.railtab:not(.is-open):not(:hover):not(:focus-visible) .railtab__ico {
  opacity: 0;
  transition: opacity 200ms linear;
}
.railtab__txt, .railtab__ico { transition: opacity 300ms var(--ease-silk) 120ms; }
/* the line is slim, so it gets a generous invisible hit area */
.railtab::before {
  content: "";
  position: absolute;
  inset: -0.75rem -0.6rem -0.75rem -1.5rem;
}
@media (prefers-reduced-motion: reduce) {
  .railtab { transition: none; }
}

/* ---- the navbar's hamburger, on desktop ----
   The tab does this job now. It stays below 1000px, where the tab is
   hidden and this would otherwise be the only way into the menu. */
@media (min-width: 1001px) {
  .nav__tools .burger { display: none; }
}

/* ---- today's hours, split at now ----
   The whole span stays as a quiet track - the shape of the day - and
   what is still to come is lit over it. Drawn whole, this arc is the
   same every day and says nothing; drawn in two pieces it measures
   the day running out. */
.dial__open { opacity: 0.26; }
.dial__left {
  fill: none;
  stroke: url(#gradDay);
  /* The subject of the dial. It was the same weight as the week
     ring that frames it, which is the hierarchy upside down. */
  stroke-width: 4.4;
  stroke-linecap: round;
  pointer-events: none;
}
.dial__left.is-lit { stroke-width: 5; }

/* ---- what you actually touch ----
   The rings are 2.5px wide. On a 200px dial that is about one and a
   half device pixels - a mouse target, never a finger one. These are
   the same arcs at 30 units wide and fully transparent, sitting over
   them. The visible rings take no pointer events at all, so they
   cannot swallow the event before the hit path sees it. */
.dial__hit {
  /* Wedges, not rings. A fingertip covers about forty device pixels
     and the two rings are seventeen apart, so no ring-shaped target
     can ever be big enough for one. These are pie slices: you touch
     the part of the circle a thing is in, not the line itself. */
  fill: transparent;
  stroke: none;
  pointer-events: all;
  cursor: pointer;
}
.dial__hit--fill { fill: transparent; pointer-events: all; }
/* the pad covers the whole dial, so the lit states are driven from
   the handler rather than from :hover on each shape */

.dial__wtrack, .dial__wfill, .dial__open, .dial__track, .dial__now, .dial__dot,
.dial__halo, .dial__wcap, .dial__tick, .dial__dow, .dial__q, .dial__index,
.dial__num, .dial__glow { pointer-events: none; }

/* lit by the hit path, not by :hover - on a touch screen :hover
   sticks after the finger has gone and the wrong ring stays bright */
/* The FILL lights, not the track. The track is the empty part of a
   day; brightening that made the dark half of each segment jump out,
   which reads as something being wrong rather than as the measurement
   it is. */
.dial__wfill.is-lit { opacity: 1; stroke-width: 5.5; }
.dial__wtrack.is-lit { opacity: 0.4; }
.dial__open.is-lit, .dial__track.is-lit { opacity: 1; stroke-width: 5; }
.dial__dot.is-lit { r: 6.5; }

/* ---- the day letters ----
   What finally tells the two rings apart. Not a caption: the outer
   ring is made of LETTERS and the inner one of CLOCK TIMES, so they
   read as different kinds of thing without being named. */
.dial__dow {
  /* jade, like the ring they belong to - the letters and their ring
     are one object and have to read as one */
  fill: var(--ring-week-2);
  opacity: 0.85;
  /* a serif at 13 rather than a semibold sans at 11: the weight was
     carrying legibility the size should have been carrying, and bold
     sans capitals on a clock face look like a dashboard */
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.dial__dow.is-today { opacity: 1; font-weight: 600; }
/* a colour picked to look right as a 2.5px stroke is not the same
   colour that works as 11px text: this one measured 3.96 on cream */
:root[data-theme="light"] .dial__dow { fill: #6e3c22; opacity: 1; }
:root[data-theme="light"] .dial__dow.is-today { opacity: 1; }

/* ============================================================
   THE SMALL FACE
   ============================================================
   A phone keeps the dial - it answers the only question anyone
   arrives with - but it cannot keep all of it. Forty-eight marks
   on a 220px circle is nine pixels between strokes, which is not a
   scale, it is noise; the half-hours go and the hours stay.

   The type goes UP, not down. Everything on this face is sized in
   viewBox units, so it shrinks with the circle: a size that reads
   at 446px is six pixels at 220. These are the sizes for this face.

   Last block in the file on purpose. A media query adds no
   specificity, and .dial__dow's base rule sits far below the
   responsive section - at the end, source order settles it.
   ============================================================ */
@media (max-width: 640px) {
  .dial { width: min(100%, 220px); }
  .dial__tick--half { display: none; }
  .dial__num { font-size: 24px; }
  .dial__q { font-size: 22px; }
  /* :root here too. The 1000px block above had to win against a
     base rule far below it, so it carries :root - and that made it
     outrank a plain .dial__dow here no matter the order. Matching
     specificity hands it back to source order, where this wins. */
  :root .dial__dow { font-size: 19px; }
}

/* ---- the engraving's gradient ----
   Lit from the same corner as the plate, so the cut and the surface
   agree about where the light is. */
:root {
  --rose-1: #f3dcb4;
  --rose-2: #c69c58;
  --rose-3: #6d4f22;
}
:root[data-theme="light"] {
  /* the engraving follows the gold: a bright side and a dark side,
     both of them actually gold */
  --rose-1: #dcb878;
  --rose-2: #b2873a;
  --rose-3: #7d5a1e;
}

/* the clock time on the NOW key */
#dialNowTime {
  /* the key is uppercased; a clock time is not an abbreviation and
     "12:21PM" shouts */
  text-transform: none;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink-2);
  margin-left: 0.3em;
  letter-spacing: 0.06em;
}

/* ============================================================
   PROSE — long-form text pages
   ============================================================
   privacy.html is the first page on this site that is simply
   READ. Everything else is a grid of objects, so nothing here set
   a paragraph: headings, lists and links all fell back to browser
   defaults. A page of plain text needs a measure, a rhythm and a
   link style of its own.
   ============================================================ */
.prose {
  max-width: 68ch;
  color: var(--c-ink-2);
  font-size: var(--t-body);
  line-height: 1.75;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-h4);
  line-height: 1.25;
  color: var(--c-ink);
  /* a heading belongs to what follows it, so the space above is
     much larger than the space below */
  margin: 2.8rem 0 0.6rem;
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05rem; }
.prose ul {
  margin: 0 0 1.3rem;
  padding-left: 1.1rem;
  list-style: none;
}
.prose li {
  position: relative;
  margin: 0 0 0.65rem;
  padding-left: 0.9rem;
}
/* a hairline dash rather than a bullet: the same mark the rest of
   the site uses for a list of facts */
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.45rem;
  height: 1px;
  background: var(--c-gold);
  opacity: 0.7;
}
.prose b { color: var(--c-ink); font-weight: 600; }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 0.3rem;
  background: var(--c-shell);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  white-space: nowrap;
}
.prose a {
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-line);
  transition: text-decoration-color 200ms var(--ease-silk);
}
.prose a:hover { text-decoration-color: var(--c-gold); }
.prose .tiny { color: var(--c-ink-3); }
