/* ===== Earthen Calm design system =====
   Off-white / sand / warm-grey palette, harmonized with the booking app
   (bg #FAF7F2 · text #3A332C · clay accent). All flat text/bg pairs ≥ 4.5:1. */
:root {
  --bg: #FAF7F2;          /* off-white base */
  --bg-2: #F3EDE3;        /* sand band — voice, chat header */
  --bg-3: #EDE5D8;        /* deeper sand — reserve, footer */
  --card: #FFFDF9;        /* warm off-white card surfaces */
  --ink: #3A332C;         /* primary text — deep warm grey-brown */
  --ink-soft: #675D50;    /* secondary text */
  --clay: #A9745A;        /* decorative accent — borders, washes */
  --clay-deep: #8A5238;   /* accent text: labels, prices, links, CTA fill */
  --clay-pale: #E9CDAF;   /* large accent over photo scrims only */
  --photo-ink: #F4EFE7;   /* text over photo scrims */
  --line: rgba(58, 51, 44, 0.16);
  --scrim: 33, 27, 22;    /* warm near-black for photo washes */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Manrope", "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-ink: invert(0.82) sepia(0.5) saturate(2) brightness(0.85); /* white logo → deep warm brown */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.js { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--clay-deep); color: var(--bg); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
/* Amendment 1: label as h2 must not inherit serif/16em-max-width from h2 rule */
.label {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--clay-deep); margin-bottom: 18px;
  font-family: var(--sans); font-weight: 600; max-width: none;
}
h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.1; letter-spacing: 0.005em; max-width: 16em; color: var(--ink);
}
.body-copy { font-size: 17px; line-height: 1.75; max-width: 34em; margin-top: 22px; color: var(--ink-soft); }

.section-light { background: var(--bg); color: var(--ink); padding: clamp(90px, 14vh, 160px) 0; }
.voice.section-light { background: var(--bg-2); }
.section-dark  { color: var(--photo-ink); } /* photo bands: light text over warm scrim */

/* ===== Grain ===== */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ===== Nav — always visible. Base = solid light translucent bar, dark text.
   On hero pages with JS, main.js toggles .visible when the hero leaves view:
   the un-.visible state floats transparent over the hero with photo-legible
   light text. Pages without a hero (blog) carry .nav-solid → always solid.
   No-JS fallback: solid bar everywhere (legible on every section). ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
              color 0.5s var(--ease), text-shadow 0.5s var(--ease);
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
}
/* Floating-over-hero state: transparent, light text over the photo scrim */
.has-js .nav:not(.visible):not(.nav-solid) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  color: var(--photo-ink);
  text-shadow: 0 1px 10px rgba(26, 21, 17, 0.7);
}
.has-js .nav:not(.visible):not(.nav-solid) .nav-logo {
  filter: drop-shadow(0 1px 6px rgba(26, 21, 17, 0.65)) drop-shadow(0 2px 16px rgba(26, 21, 17, 0.4));
}
.has-js .nav:not(.visible):not(.nav-solid) .nav-cta {
  border-color: rgba(233, 205, 175, 0.8); color: var(--photo-ink);
}
.has-js .nav:not(.visible):not(.nav-solid) .nav-cta:hover {
  background: rgba(244, 239, 231, 0.14);
}
.nav-brand { font-family: var(--serif); font-style: italic; font-size: 22px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links a { white-space: nowrap; }
.nav-links a { opacity: 0.85; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { border: 1px solid var(--clay); border-radius: 999px; padding: 8px 18px; color: var(--clay-deep); opacity: 1 !important; }
.nav-cta:hover { background: rgba(169, 116, 90, 0.1); }
@media (max-width: 480px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 14px; font-size: 11px; }
  .nav-cta { padding: 6px 12px; }
}
@media (max-width: 480px) {
  .nav-links a:nth-child(2) { display: none; } /* hide About: keeps Journal + RU + Reserve and room for the logo */
}
@media (max-width: 400px) {
  .nav-links a:nth-child(1):lang(ru) { display: none; } /* RU labels are longer — free room for the logo */
}

/* ===== Logo recolor: white script → deep warm brown on light backgrounds ===== */
.nav-logo, .reserve-logo { filter: var(--logo-ink); }

/* ===== Hero — bright B&W portrait, warm veil, soft center scrim ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: var(--photo-ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% center;
  filter: sepia(0.28) contrast(1.02) brightness(0.97); /* warms the B&W studio shot into the earthy family */
  animation: kenburns 30s var(--ease) infinite alternate;
}
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.08) translateY(-1.5%); } }
.hero-wash {
  position: absolute; inset: 0;
  background:
    /* top scrim: keeps the floating nav legible over the light upper photo */
    linear-gradient(180deg, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0) 26%),
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(var(--scrim), 0.6) 0%, rgba(var(--scrim), 0) 75%),
    linear-gradient(180deg, rgba(var(--scrim), 0.38) 0%, rgba(var(--scrim), 0.34) 45%, rgba(26, 21, 17, 0.94) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.hero-name { line-height: 1.05; }
.hero-logo { width: min(540px, 80vw); height: auto; margin: 0 auto; filter: drop-shadow(0 2px 10px rgba(26, 21, 17, 0.7)) drop-shadow(0 2px 28px rgba(26, 21, 17, 0.5)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-logo { height: 30px; width: auto; display: block; object-fit: contain; object-position: left center; }
.nav-brand { min-width: 0; }
.hero-sub { margin-top: 18px; font-size: 12px; font-weight: 500; letter-spacing: 0.5em; text-indent: 0.5em; color: var(--photo-ink); text-shadow: 0 1px 12px rgba(26, 21, 17, 0.6); }
.hero-line { margin-top: 26px; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 25px); color: var(--photo-ink); text-shadow: 0 1px 12px rgba(26, 21, 17, 0.6); }
.cta {
  display: inline-block; margin-top: 38px; padding: 16px 38px;
  border: 1px solid var(--clay); border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); position: relative; overflow: hidden;
  transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}
button.cta { background: none; font-family: inherit; line-height: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; }
.hero .cta { color: var(--photo-ink); border-color: rgba(233, 205, 175, 0.75); }
.cta::after {  /* shimmer sweep */
  content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%;
  background: linear-gradient(105deg, transparent, rgba(169, 116, 90, 0.28), transparent);
  transform: skewX(-18deg); transition: transform 0.7s var(--ease);
}
.cta:hover::after { transform: skewX(-18deg) translateX(330%); }
.cta:hover { border-color: var(--clay-deep); }
.hero .cta:hover { border-color: var(--clay-pale); }
.cta-solid { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--bg); }
.cta-solid:hover { background: #6F4029; border-color: #6F4029; }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span {
  display: block; width: 1px; height: 64px; background: rgba(244, 239, 231, 0.8);
  transform-origin: top; animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== Philosophy ===== */
.split-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.photo-portrait { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; }
.photo-portrait img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.22) saturate(0.95) brightness(0.98) contrast(1.03); }
@media (max-width: 820px) { .split-2 { grid-template-columns: 1fr; } .photo-portrait { order: -1; max-width: 420px; } }

/* ===== Credentials — education & experience in About ===== */
.credentials { margin-top: 38px; }
.credentials .label { margin-bottom: 14px; }
.credentials ul { list-style: none; max-width: 34em; }
.credentials li {
  position: relative; padding-left: 24px;
  font-size: 14.5px; line-height: 1.65; color: var(--ink-soft);
}
.credentials li + li { margin-top: 11px; }
.credentials li::before {
  content: ""; position: absolute; left: 0; top: 0.78em;
  width: 12px; height: 1px; background: var(--clay);
}

/* ===== Treatments — rows link through to booking ===== */
.treatments .wrap { position: relative; }
.t-list { list-style: none; margin-top: 40px; }
.t-group { margin-top: 56px; }
.t-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.3s var(--ease);
}
.t-name { font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 2.4vw, 25px); }
/* Stretched link: accessible name = treatment name; covers the whole row */
.t-link { color: inherit; transition: color 0.3s; }
.t-link::after { content: ""; position: absolute; inset: 0; }
.t-link:focus-visible { outline: none; }
.t-row:has(.t-link:focus-visible) { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
/* Amendment 4: targets .t-name .t-sub (HTML uses <span class="t-sub">) */
.t-name .t-sub { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-left: 10px; letter-spacing: 0.04em; }
.t-price { flex: none; margin-left: auto; color: var(--clay-deep); font-size: 15px; letter-spacing: 0.05em; }
.t-price small { color: var(--ink-soft); font-size: 12px; }
/* Always-visible clickability cue (no hover needed on touch) */
.t-arrow {
  flex: none; align-self: center; color: var(--clay-deep); font-size: 17px; line-height: 1;
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) {
  .t-row:hover { background: var(--card); }
  .t-row:hover .t-link { color: var(--clay-deep); text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 6px; text-decoration-thickness: 1px; }
  .t-row:hover .t-arrow { transform: translateX(6px); }
}
@media (max-width: 560px) {
  .t-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 36px 18px 8px; }
  .t-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
  .t-row:hover .t-arrow { transform: translateY(-50%) translateX(4px); }
}

/* ===== Setting — photo band, light text over warm scrim ===== */
.setting { position: relative; min-height: 80vh; min-height: 80svh; display: grid; align-items: end; overflow: hidden; }
.setting-media { position: absolute; inset: -12% 0; will-change: transform; }
.setting-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.8) contrast(1.02) sepia(0.12);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.setting-slide.is-active { opacity: 1; }
.setting-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--scrim), 0.6), rgba(var(--scrim), 0.68) 42%, rgba(var(--scrim), 0.94)); }
.setting-content { position: relative; z-index: 2; padding-top: 18vh; padding-bottom: 12vh; }
.setting .label { color: var(--photo-ink); }
.setting h2 { color: var(--photo-ink); }
/* h2.setting-stat inherits h2 sizing; stat-num is the oversized number */
.setting-stat { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px); max-width: 18em; }
.stat-num { font-size: clamp(64px, 10vw, 130px); font-style: italic; line-height: 1; display: block; color: var(--clay-pale); }
/* Evocative serif line — a pause between the stat and the proof row */
.setting-line {
  margin-top: 24px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4;
  color: var(--clay-pale); max-width: 22em;
}
/* Credential proof row — three quiet, factual anchors over the photo */
.setting-proof {
  margin-top: clamp(28px, 4.5vh, 40px); padding-top: 26px;
  border-top: 1px solid rgba(244, 239, 231, 0.28);
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 16px clamp(28px, 5vw, 64px);
}
.setting-proof li {
  position: relative; padding-left: 18px;
  font-size: 13.5px; font-weight: 500; line-height: 1.55;
  letter-spacing: 0.04em; color: var(--photo-ink);
  max-width: 21em;
}
.setting-proof li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay-pale);
}
@media (max-width: 640px) {
  .setting-proof { flex-direction: column; gap: 14px; }
  .setting-proof li { max-width: none; }
}

/* ===== Voice ===== */
/* Amendment 3: HTML uses figure/figcaption — selectors kept as-is */
.voice blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(25px, 3.5vw, 42px); line-height: 1.35; max-width: 24em; color: var(--ink); }
.voice figcaption { display: block; margin-top: 28px; font-style: normal; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay-deep); }

/* ===== Reserve — deep sand band, light ===== */
.reserve { background: var(--bg-3); padding: clamp(100px, 16vh, 180px) 0 0; text-align: center; }
.reserve-logo { width: min(340px, 70vw); margin: 0 auto; }
/* Amendment 2: h2.reserve-line must not be constrained by h2's max-width: 16em */
.reserve-line { margin-top: 30px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(20px, 2.6vw, 27px); color: var(--clay-deep); max-width: none; margin-left: auto; margin-right: auto; }
.reserve-meta { margin-top: 34px; font-style: normal; font-size: 14px; color: var(--ink-soft); }
.reserve-meta a { text-decoration: underline; text-underline-offset: 3px; }
.reserve-meta a:hover { color: var(--clay-deep); }
:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }
.footer {
  margin-top: clamp(70px, 10vh, 120px); padding: 22px 28px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ===== Animation initial states (JS removes) ===== */
.js .reveal, .js .reveal-soft { opacity: 0; transform: translateY(28px); }
.js .img-reveal img { transform: scale(1.08); }
.js .hero-name { opacity: 0; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .scroll-cue span, .cta::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-soft, .js .hero-name { opacity: 1 !important; transform: none !important; }
  .js .img-reveal img { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Concierge chat =====
   Vasili floats above everything (nav z-50, tmodal scrim z-70) on every page. */
.chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 64px; height: 64px; border-radius: 50%;
  border: none; cursor: pointer;
  background: radial-gradient(125% 125% at 30% 22%, var(--clay) 0%, var(--clay-deep) 58%, #6F4029 100%);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(58, 51, 44, 0.35), inset 0 1px 0 rgba(255, 253, 249, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(58, 51, 44, 0.4), inset 0 1px 0 rgba(255, 253, 249, 0.28);
}
.chat-launcher:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }
.chat-launcher svg { display: block; }

/* Breathing pulse ring — draws the eye until the chat is opened once */
.chat-launcher::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--clay); pointer-events: none;
  animation: chat-pulse 3.2s var(--ease) infinite;
}
@keyframes chat-pulse {
  0% { transform: scale(1); opacity: 0.65; }
  70%, 100% { transform: scale(1.42); opacity: 0; }
}
.chat-launcher.calm::before { animation: none; opacity: 0; }

/* Intro teaser — "Meet Vasili" card above the launcher */
.chat-teaser {
  position: fixed; right: 24px; bottom: 102px; z-index: 80;
  width: min(300px, calc(100vw - 32px));
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(58, 51, 44, 0.2);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.chat-teaser.show { opacity: 1; transform: none; }
.chat-teaser[hidden] { display: none; }
.chat-teaser::after { /* notch pointing to the launcher */
  content: ""; position: absolute; right: 24px; bottom: -7px;
  width: 12px; height: 12px; background: var(--card);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.chat-teaser-body {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 14px 38px 14px 18px; border-radius: 14px;
  color: inherit;
}
.chat-teaser-body:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
.chat-teaser-name {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 19px; line-height: 1.25; color: var(--clay-deep);
  margin-bottom: 4px;
}
.chat-teaser-line {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: 13px; line-height: 1.5; color: var(--ink-soft);
}
.chat-teaser-close {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--ink-soft); display: grid; place-items: center;
  border-radius: 6px; transition: color 0.3s;
}
.chat-teaser-close:hover { color: var(--ink); }
.chat-teaser-close:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 1px; }

.chat-card {
  position: fixed; right: 24px; bottom: 102px; z-index: 80;
  width: 360px; max-width: calc(100vw - 32px); max-height: 60vh;
  display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(58, 51, 44, 0.22);
  overflow: hidden;
  animation: chat-in 0.35s var(--ease);
}
.chat-card[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.chat-title { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--clay-deep); }
.chat-close {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--ink-soft); display: grid; place-items: center;
  border-radius: 6px; transition: color 0.3s;
}
.chat-close:hover { color: var(--ink); }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 120px;
}
.chat-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.chat-assistant {
  align-self: flex-start; border-bottom-left-radius: 4px;
  background: var(--bg-2); color: var(--ink);
}
.chat-user {
  align-self: flex-end; border-bottom-right-radius: 4px;
  background: rgba(169, 116, 90, 0.13); color: var(--ink);
  border: 1px solid rgba(169, 116, 90, 0.35);
}
.chat-link { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
.chat-link:hover { color: #6F4029; }

.chat-typing { display: flex; gap: 5px; align-items: center; padding: 14px; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--clay-deep);
  opacity: 0.4; animation: chat-dot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: 0.35; } 30% { opacity: 1; } }

.chat-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.chat-input input {
  flex: 1; min-width: 0; padding: 10px 14px;
  background: var(--bg); color: var(--ink);
  border: 1px solid rgba(58, 51, 44, 0.22); border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 400;
}
.chat-input input::placeholder { color: var(--ink-soft); }
.chat-input input:focus { outline: none; border-color: var(--clay-deep); }
.chat-send {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--clay-deep); color: var(--bg);
  cursor: pointer; display: grid; place-items: center; transition: background 0.3s;
}
.chat-send:hover { background: #6F4029; }
.chat-send:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  .chat-launcher { right: 16px; bottom: 16px; }
  .chat-teaser { right: 16px; bottom: 92px; width: min(300px, calc(100vw - 32px)); }
  .chat-card { right: 16px; left: 16px; width: auto; bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-card { animation: none !important; }
  .chat-launcher { transition: none !important; }
  .chat-launcher::before { animation: none !important; opacity: 0; }
  .chat-teaser { transition: none !important; transform: none; }
  .chat-typing span { animation: none !important; opacity: 0.8; }
}

/* Reserve dual CTAs */
.reserve-content .cta { margin-left: 8px; margin-right: 8px; }

/* ===== Treatment info card modal ===== */
html.tmodal-open { overflow: hidden; }
.tmodal-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 24px;
  background: rgba(33, 27, 22, 0.55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: tmodal-fade 0.3s var(--ease);
}
.tmodal-overlay[hidden] { display: none; }
@keyframes tmodal-fade { from { opacity: 0; } to { opacity: 1; } }
.tmodal {
  position: relative;
  width: min(560px, 100%); max-height: min(84vh, 720px); overflow-y: auto;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 38px 38px 34px;
  box-shadow: 0 24px 70px rgba(33, 27, 22, 0.35);
  animation: tmodal-in 0.4s var(--ease);
}
@keyframes tmodal-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.tmodal:focus { outline: none; }
.tmodal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-soft); transition: color 0.3s, background-color 0.3s;
}
.tmodal-close:hover { color: var(--ink); background: var(--bg-2); }
.tmodal-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(27px, 4vw, 34px); line-height: 1.15;
  color: var(--ink); padding-right: 34px;
}
.tmodal-sub {
  margin-top: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay-deep);
}
.tmodal-body { margin-top: 18px; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.tmodal-detail { margin-top: 16px; font-size: 14px; letter-spacing: 0.04em; color: var(--clay-deep); }
.tmodal-actions {
  margin-top: 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.tmodal-book {
  display: inline-block; padding: 15px 34px; border-radius: 999px;
  background: var(--clay-deep); color: var(--bg);
  font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background-color 0.3s;
}
.tmodal-book:hover { background: #6F4029; }
.tmodal-wa {
  font-size: 13px; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.3s;
  background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}
.tmodal-wa:hover { color: var(--clay-deep); }
@media (max-width: 560px) {
  /* Bottom sheet on small screens */
  .tmodal-overlay { padding: 0; align-items: end; grid-template-columns: 1fr; place-items: end stretch; }
  .tmodal {
    width: 100%; max-height: 86vh; max-height: 86svh;
    border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 30px 24px calc(28px + env(safe-area-inset-bottom));
    animation: tmodal-up 0.45s var(--ease);
  }
  @keyframes tmodal-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .tmodal-actions { align-items: stretch; }
  .tmodal-book { text-align: center; }
  .tmodal-wa { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tmodal-overlay, .tmodal { animation: none !important; }
}

/* ===== Journal ===== */
/* Blog pages: no hero, no main.js — nav carries .nav-solid so the base solid
   bar always shows. Pages are fully static; entrances are CSS-only. */

.journal-main { padding-top: clamp(110px, 16vh, 170px); }
.journal-head { margin-bottom: clamp(44px, 7vh, 76px); }
.journal-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6.5vw, 76px); line-height: 1.05;
  letter-spacing: 0.005em; color: var(--ink);
}
.journal-desc { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 34em; }

.journal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; padding-bottom: clamp(80px, 12vh, 140px);
}
@media (max-width: 1020px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .journal-grid { grid-template-columns: 1fr; gap: 24px; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(58, 51, 44, 0.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(58, 51, 44, 0.14); }
.post-card:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }

/* --- Card/banner photography: fixed-ratio frame, cover crop. Per-image
   focal points are tuned inline via object-position on the img. --- */
.post-art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--bg-2); /* warm sand while the photo loads */
}
/* Single-column mobile: taller frame so portrait photography breathes
   instead of being reduced to a tight eye-band crop */
@media (max-width: 680px) {
  .post-art { aspect-ratio: 4 / 3; }
}
.post-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-art img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .post-art img { transition: none; }
  .post-card:hover .post-art img { transform: none; }
}

.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.post-meta {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay-deep);
}
.post-title {
  margin-top: 12px;
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; line-height: 1.22; color: var(--ink); max-width: none;
}
.post-excerpt { margin-top: 12px; flex: 1; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.post-read {
  margin-top: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--clay-deep);
}
.post-card:hover .post-read { text-decoration: underline; text-underline-offset: 4px; }

/* --- Article reading layout --- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px clamp(80px, 12vh, 140px); }
.article-back {
  display: inline-block; margin-bottom: 28px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--clay-deep);
}
.article-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-art { aspect-ratio: 21 / 9; border-radius: 12px; }
@media (max-width: 680px) {
  .article-art { aspect-ratio: 16 / 10; }
}
.article-meta { margin-top: 32px; }
.article-title {
  margin-top: 14px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(33px, 5vw, 48px); line-height: 1.12;
  letter-spacing: 0.005em; color: var(--ink);
}
.article-body { margin-top: 34px; max-width: 65ch; }
.article-body p { font-size: 17px; line-height: 1.85; color: var(--ink); }
.article-body p + p { margin-top: 1.35em; }
.article-body h2 {
  margin: 1.9em 0 0.85em;
  font-size: clamp(25px, 3.2vw, 31px); line-height: 1.2; max-width: none;
}

/* --- Quiet end-of-article CTA row --- */
.article-cta {
  margin-top: clamp(56px, 9vh, 88px); padding-top: 38px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
}
.article-cta-line {
  width: 100%;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 20px; color: var(--ink-soft);
}
.article-cta .cta { margin-top: 0; padding: 13px 30px; }

/* Footer used standalone on blog pages (no reserve band above it) */
.footer-flat { margin-top: 0; background: var(--bg-3); }

/* CSS-only entrance for cards and article (no main.js on blog pages) */
@media (prefers-reduced-motion: no-preference) {
  .post-card, .article-wrap > * { animation: journal-rise 0.8s var(--ease) backwards; }
  .post-card:nth-child(2) { animation-delay: 0.07s; }
  .post-card:nth-child(3) { animation-delay: 0.14s; }
  .post-card:nth-child(4) { animation-delay: 0.21s; }
  .post-card:nth-child(5) { animation-delay: 0.28s; }
  .post-card:nth-child(6) { animation-delay: 0.35s; }
  .article-wrap > *:nth-child(2) { animation-delay: 0.06s; }
  .article-wrap > *:nth-child(3) { animation-delay: 0.12s; }
  .article-wrap > *:nth-child(4) { animation-delay: 0.18s; }
  .article-wrap > *:nth-child(n+5) { animation-delay: 0.24s; }
}
@keyframes journal-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
