/* ==========================================================================
   Dr. D. Amulya Reddy — Consultant Endocrinologist
   Palette drawn from bone marble, oxblood, antique gold and forest-black.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone: #eee8dd;
  --bone-2: #e7e0d3;
  --bone-3: #dcd3c3;
  --line: rgba(24, 32, 28, 0.14);
  --line-strong: rgba(24, 32, 28, 0.26);
  --ink: #18201c;
  --ink-2: #464c46;
  --ink-3: #575b55;

  --ox: #742628;
  --ox-deep: #5a1c1e;
  --ox-glow: #a9383c;
  --gold: #9c7b45;
  --gold-2: #c7a56b;

  --forest: #0d1411;
  --forest-2: #141e19;
  --on-dark: #ece5d8;
  --on-dark-2: rgba(236, 229, 216, 0.72);
  --on-dark-3: rgba(236, 229, 216, 0.66);
  --line-dark: rgba(236, 229, 216, 0.16);

  /* derived & surface tokens (the Garden palette overrides these below) */
  --page-bg: var(--forest);
  --emph: var(--ox);
  --danger: var(--ox);
  --focus: var(--gold-2);
  --accent-rgb: 116, 38, 40;
  --emph-rgb: 116, 38, 40;
  --glow-rgb: 169, 56, 60;
  --gold-rgb: 156, 123, 69;
  --paper-rgb: 238, 232, 221;
  --paper2-rgb: 231, 224, 211;
  --forest-rgb: 13, 20, 17;
  --field-bg: #fffcf6;
  --field-rgb: 255, 252, 246;
  --btn-light-hover: #fffaf1;
  --shadow-accent: rgba(90, 28, 30, 0.55);
  --modal-scrim: rgba(8, 12, 10, 0.55);
  --menu-glow-rgb: 116, 38, 40;

  /* sections that sit on the living marble */
  --on-marble: var(--on-dark);
  --on-marble-2: var(--on-dark-2);
  --on-marble-strong: rgba(236, 229, 216, 0.88);
  --on-marble-3: var(--on-dark-3);
  --line-marble: var(--line-dark);
  --marble-emph: var(--gold-2);
  --marble-num: var(--gold-2);
  --prefix: var(--gold-2);
  --plate-bg: rgba(13, 20, 17, 0.62);
  --plate-line: rgba(236, 229, 216, 0.14);
  --plate-fg: #ece5d8;
  --plate-fg-2: rgba(236, 229, 216, 0.72);
  --plate-accent: var(--gold-2);
  --marble-icon: var(--gold-2);
  --marble-mark: var(--gold-2);
  --scrim-rgb: 8, 12, 10;
  --veil-rgb: 9, 14, 11;
  --veil-a: 0.7;
  --veil-b: 0.74;
  --halo: rgba(5, 8, 7, 0.9);
  --halo-2: rgba(5, 8, 7, 0.6);
  --glass-1: rgba(236, 229, 216, 0.07);
  --glass-2: rgba(236, 229, 216, 0.02);
  --chip-off: rgba(236, 229, 216, 0.09);
  --day-on: linear-gradient(160deg, #e4c993, #c7a56b 55%, #a8874f);
  --day-on-fg: var(--forest);
  --day-on-glow: rgba(199, 165, 107, 0.9);
  --step-bg: var(--forest);
  --step-lit-bg: var(--gold-2);
  --step-lit-fg: var(--forest);
  --track-fill: var(--gold-2);
  --track-fill-2: rgba(199, 165, 107, 0.6);
  --btn-marble-bg: var(--bone);
  --btn-marble-fg: var(--ink);
  --btn-marble-chip: var(--ox);
  --btn-marble-chip-fg: var(--bone);
  --btn-marble-hover: #fffaf1;
  --btn-marble-shadow: rgba(0, 0, 0, 0.7);
  --frame: rgba(199, 165, 107, 0.45);
  --portrait-bg: #cfcac0;
  --portrait-filter: sepia(0.08) saturate(0.97) contrast(1.02) brightness(0.95);
  --portrait-shade: rgba(30, 22, 16, 0.32);
  --portrait-fade: linear-gradient(#000 70%, transparent 100%);

  /* WebGL colours, read by marble.js and particles.js */
  --marble-mode: 0;
  --marble-c0: #090d0b;
  --marble-c1: #141e19;
  --marble-c2: #262e24;
  --marble-c3: #4a1012;
  --marble-c4: #d1ab70;
  --marble-c5: #141e19;
  --particle-ink: #18201c;
  --particle-accent: #742628;
  --particle-gold: #9c7b45;
  --theme-color: #0d1411;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Baskerville, "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4.4vw, 76px);
  --maxw: 1520px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
}

/* ---------- Garden palette: cream, sage, peony rose and honey ochre ---------- */
[data-palette="garden"] {
  --bone: #f1ece5;
  --bone-2: #e9e2d8;
  --bone-3: #dbd1c3;
  --line: rgba(35, 52, 58, 0.14);
  --line-strong: rgba(35, 52, 58, 0.26);
  --ink: #23343a;
  --ink-2: #4b5a5e;
  --ink-3: #5c686a;

  --ox: #3f5d52;
  --ox-deep: #324b42;
  --ox-glow: #a4545a;
  --gold: #9b7038;
  --gold-2: #ddab76;

  --forest: #22373a;
  --forest-2: #2b4447;
  --on-dark: #f1ece5;
  --on-dark-2: rgba(241, 236, 229, 0.78);
  --on-dark-3: rgba(241, 236, 229, 0.66);
  --line-dark: rgba(241, 236, 229, 0.16);

  --page-bg: #ebe4da;
  --emph: #a4545a;
  --danger: #a4454b;
  --focus: #3f5d52;
  --accent-rgb: 63, 93, 82;
  --emph-rgb: 164, 84, 90;
  --glow-rgb: 164, 84, 90;
  --gold-rgb: 155, 112, 56;
  --paper-rgb: 241, 236, 229;
  --paper2-rgb: 233, 226, 216;
  --forest-rgb: 34, 55, 58;
  --field-bg: #fffdf9;
  --field-rgb: 255, 253, 249;
  --btn-light-hover: #ffffff;
  --shadow-accent: rgba(35, 60, 52, 0.38);
  --modal-scrim: rgba(35, 52, 58, 0.42);
  --menu-glow-rgb: 164, 84, 90;

  --on-marble: #23343a;
  --on-marble-2: rgba(35, 52, 58, 0.84);
  --on-marble-strong: rgba(35, 52, 58, 0.9);
  --on-marble-3: rgba(35, 52, 58, 0.72);
  --line-marble: rgba(35, 52, 58, 0.16);
  --marble-emph: #a4545a;
  --marble-num: #86612d;
  --prefix: #7a5526;
  --plate-bg: rgba(255, 253, 249, 0.8);
  --plate-line: rgba(35, 52, 58, 0.12);
  --plate-fg: #23343a;
  --plate-fg-2: rgba(35, 52, 58, 0.72);
  --plate-accent: #86612d;
  --marble-icon: #3f5d52;
  --marble-mark: #9b7038;
  --scrim-rgb: 241, 236, 229;
  --veil-rgb: 241, 236, 229;
  --veil-a: 0.46;
  --veil-b: 0.52;
  --halo: rgba(241, 236, 229, 0.95);
  --halo-2: rgba(241, 236, 229, 0.7);
  --glass-1: rgba(255, 255, 255, 0.66);
  --glass-2: rgba(255, 255, 255, 0.42);
  --chip-off: rgba(35, 52, 58, 0.14);
  --day-on: linear-gradient(160deg, #ecc896, #ddab76 55%, #c99056);
  --day-on-fg: #23343a;
  --day-on-glow: rgba(201, 144, 86, 0.6);
  --step-bg: #f1ece5;
  --step-lit-bg: #ddab76;
  --step-lit-fg: #23343a;
  --track-fill: #c99056;
  --track-fill-2: rgba(201, 144, 86, 0.55);
  --btn-marble-bg: #3f5d52;
  --btn-marble-fg: #f7f3ec;
  --btn-marble-chip: #f7f3ec;
  --btn-marble-chip-fg: #3f5d52;
  --btn-marble-hover: #324b42;
  --btn-marble-shadow: rgba(35, 52, 58, 0.35);
  --frame: rgba(155, 112, 56, 0.5);
  --portrait-bg: #e3dfd9;
  --portrait-filter: sepia(0.04) saturate(0.98);
  --portrait-shade: rgba(60, 50, 40, 0.14);

  --marble-mode: 1;
  --marble-c0: #e7dfd3;
  --marble-c1: #f4f0e9;
  --marble-c2: #ddd2c2;
  --marble-c3: #d8a597;
  --marble-c4: #b5803f;
  --marble-c5: #a3b8a4;
  --particle-ink: #23343a;
  --particle-accent: #a4545a;
  --particle-gold: #b5803f;
  --theme-color: #f1ece5;
}
[data-palette="garden"] .hours__today::before { background: var(--emph); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--page-bg);
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
abbr[title] { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }
em { font-style: italic; }
[hidden] { display: none !important; }

::selection { background: var(--ox); color: var(--bone); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.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;
}

.skip {
  position: fixed; top: 14px; left: 14px; z-index: 300;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bone); color: var(--ink); font-weight: 500;
  transform: translateY(-180%); transition: transform 0.35s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- surfaces ---------- */
.marble {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

.paper {
  position: relative;
  background-color: var(--bone);
  background-image: url("../img/grain.png");
  background-size: 128px;
  color: var(--ink);
}

[data-theme="dark"] { color: var(--on-dark); }
[data-theme="marble"] { color: var(--on-marble); }

/* Without scripts or WebGL (file previews, old devices): a still frame of the
   same marble sits behind the page. Browsers only fetch it when it's shown. */
html:not(.js) body:not(.doc-page)::before,
.no-webgl body:not(.doc-page)::before {
  content: ""; position: fixed; top: 0; left: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh; pointer-events: none;
  background: var(--page-bg) url("../img/marble-classic.webp") center / cover no-repeat;
}
[data-palette="garden"]:not(.js) body:not(.doc-page)::before,
[data-palette="garden"].no-webgl body:not(.doc-page)::before { background-image: url("../img/marble-garden.webp"); }
.no-webgl .marble { display: none; }

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

/* ---------- type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 500; line-height: 1.2;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
}
.label__num {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 18px; letter-spacing: 0; text-transform: none;
  color: var(--gold);
}
.label__rule { width: 36px; height: 1px; background: currentColor; opacity: 0.45; }
[data-theme="dark"] .label { color: var(--on-dark-3); }
[data-theme="marble"] .label { color: var(--on-marble-3); }
[data-theme="dark"] .label__num { color: var(--gold-2); }
[data-theme="marble"] .label__num { color: var(--marble-num); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.6vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.022em;
}
.h2 em { font-weight: 400; color: var(--emph); }
[data-theme="dark"] .h2 em { color: var(--gold-2); }
[data-theme="marble"] .h2 em { color: var(--marble-emph); }

/* ---------- split text ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.14em; margin: 0 -0.04em -0.14em; }
.wi { display: inline-block; will-change: transform; }
.js [data-split] .wi { transform: translateY(108%); transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.js [data-split].is-in .wi { transform: none; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease-soft), transform 1.3s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-rule] { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-rule].is-in { transform: none; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ox);
  --fg: var(--bone);
  --chip: var(--bone);
  --chip-fg: var(--ox);
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 9px 0 30px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 16px; font-weight: 500; letter-spacing: 0.005em; white-space: nowrap;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.7s var(--ease-out), background-color 0.4s, color 0.4s, box-shadow 0.5s;
  box-shadow: 0 10px 30px -12px var(--shadow-accent);
  -webkit-tap-highlight-color: transparent;
}
.btn.is-magnet { transition: transform 0.25s var(--ease-out), background-color 0.4s, color 0.4s, box-shadow 0.5s; }
.btn:hover { --bg: var(--ox-deep); }
.btn__label { position: relative; display: block; overflow: hidden; line-height: 1.35; }
.btn__label > span { display: block; transition: transform 0.6s var(--ease-out); }
.btn__label > span + span { position: absolute; left: 0; top: 100%; }
.btn__chip {
  position: relative; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--chip); color: var(--chip-fg);
  transition: transform 0.6s var(--ease-out), background-color 0.4s;
}
.btn__chip svg { width: 16px; height: 16px; grid-area: 1 / 1; transition: transform 0.6s var(--ease-out); }
.btn__chip svg:last-child { transform: translateX(-210%); }
@media (hover: hover) {
  .btn:hover .btn__label > span { transform: translateY(-100%); }
  .btn:hover .btn__chip svg:first-child { transform: translateX(210%); }
  .btn:hover .btn__chip svg:last-child { transform: none; }
  .btn:hover .btn__chip { transform: scale(1.06); }
}
.btn:active { --bg: var(--ox-deep); }

.btn--light { --bg: var(--bone); --fg: var(--ink); --chip: var(--ox); --chip-fg: var(--bone); box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.7); }
.btn--light:hover, .btn--light:active { --bg: var(--btn-light-hover); }
[data-theme="marble"] .btn--light { --bg: var(--btn-marble-bg); --fg: var(--btn-marble-fg); --chip: var(--btn-marble-chip); --chip-fg: var(--btn-marble-chip-fg); box-shadow: 0 14px 40px -18px var(--btn-marble-shadow); }
[data-theme="marble"] .btn--light:hover, [data-theme="marble"] .btn--light:active { --bg: var(--btn-marble-hover); }

.btn--sm { height: 46px; padding: 0 6px 0 20px; gap: 12px; font-size: 14.5px; box-shadow: none; }
.btn--sm .btn__chip { width: 34px; height: 34px; }
.btn--sm .btn__chip svg { width: 13px; height: 13px; }

.btn--block { width: 100%; justify-content: space-between; }

.link-line { position: relative; display: inline-block; }
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.link-line:hover::after, .link-line:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  color: var(--on-marble);
  transition: transform 0.7s var(--ease-out), color 0.45s ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(var(--scrim-rgb), 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line-marble);
  opacity: 0; transition: opacity 0.45s ease, background-color 0.45s ease, border-color 0.45s;
}
.nav.is-scrolled::before, html:not(.js) .nav::before { opacity: 1; }
.nav[data-theme="light"] { color: var(--ink); }
.nav[data-theme="light"]::before { background: rgba(var(--paper-rgb), 0.8); border-color: var(--line); }
.nav[data-theme="dark"] { color: var(--on-dark); }
.nav[data-theme="dark"]::before { background: rgba(var(--forest-rgb), 0.6); border-color: var(--line-dark); }
.nav.is-hidden { transform: translateY(-104%); }
.nav-open .nav { transform: none; color: var(--on-dark); }
.nav-open .nav::before { opacity: 0; }

.nav__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 13px; view-transition-name: brand; }
.brand__mark { width: 34px; height: 34px; flex: none; color: var(--marble-mark); transition: color 0.45s; }
.nav[data-theme="dark"] .brand__mark, .nav-open .nav .brand__mark, .footer .brand__mark { color: var(--gold-2); }
.nav[data-theme="light"] .brand__mark { color: var(--gold); }
.brand__mark .dot { fill: var(--ox-glow); }
.brand__text { display: flex; flex-direction: column; gap: 5px; }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1; letter-spacing: -0.005em; }
.brand__sub { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.8; line-height: 1; }

.nav__links { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 40px); font-size: 15px; letter-spacing: 0.01em; }
.nav__links a { padding: 8px 0; opacity: 0.86; transition: opacity 0.3s; }
.nav__links a:hover { opacity: 1; }
.nav__right { display: flex; align-items: center; gap: 14px; }

.nav .btn--sm { --bg: var(--btn-marble-bg); --fg: var(--btn-marble-fg); --chip: var(--btn-marble-chip); --chip-fg: var(--btn-marble-chip-fg); }
.nav .btn--sm:hover { --bg: var(--btn-marble-hover); }
.nav[data-theme="dark"] .btn--sm { --bg: var(--bone); --fg: var(--ink); --chip: var(--ox); --chip-fg: var(--bone); }
.nav[data-theme="dark"] .btn--sm:hover { --bg: var(--btn-light-hover); }
.nav-open .nav .btn--sm { --bg: var(--bone); --fg: var(--ink); --chip: var(--ox); --chip-fg: var(--bone); }
.nav[data-theme="light"] .btn--sm { --bg: var(--ox); --fg: var(--bone); --chip: var(--bone); --chip-fg: var(--ox); }
.nav[data-theme="light"] .btn--sm:hover { --bg: var(--ox-deep); }

.menu-toggle { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.6s var(--ease-out), top 0.6s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.nav-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 520px) {
  .nav .btn--sm { display: none; }
  .brand__name { font-size: 19px; }
  .brand__mark { width: 30px; height: 30px; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(80% 50% at 85% 0%, rgba(var(--menu-glow-rgb), 0.38), transparent 70%),
    radial-gradient(70% 50% at 0% 100%, rgba(var(--gold-rgb), 0.14), transparent 70%),
    var(--forest);
  color: var(--on-dark);
  clip-path: circle(0px at calc(100% - var(--gutter) - 23px) calc(var(--nav-h) / 2));
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
}
.nav-open .menu { clip-path: circle(150vmax at calc(100% - var(--gutter) - 23px) calc(var(--nav-h) / 2)); visibility: visible; transition: clip-path 0.9s var(--ease-io), visibility 0s; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--serif); font-size: clamp(42px, 11vw, 64px); line-height: 1.12; letter-spacing: -0.015em;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease-soft), transform 0.9s var(--ease-out);
}
.menu__links a span { font-size: 15px; font-style: italic; color: var(--gold-2); letter-spacing: 0; }
.nav-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--i) * 70ms); }
.menu__foot { display: grid; gap: 22px; opacity: 0; transition: opacity 0.6s; }
.nav-open .menu__foot { opacity: 1; transition-delay: 0.55s; }
.menu__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--on-dark-3); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: stretch;
  padding: calc(var(--nav-h) + clamp(20px, 4vh, 56px)) 0 clamp(72px, 8vw, 130px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(34% 46% at 84% 46%, rgba(var(--scrim-rgb), 0.55), transparent 72%),
              linear-gradient(90deg, rgba(var(--scrim-rgb), 0.55) 0%, rgba(var(--scrim-rgb), 0.2) 45%, transparent 70%),
              linear-gradient(0deg, rgba(var(--scrim-rgb), 0.45) 0%, transparent 35%);
}
.hero__grid {
  position: relative;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(16px, 2vw, 32px);
}
.hero__role {
  grid-column: 1 / 8; grid-row: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.hero__role .label { font-size: 17px; letter-spacing: 0.16em; color: var(--on-marble); text-shadow: 0 1px 14px var(--halo); }
.hero__role-sub { font-size: 18px; color: var(--on-marble-2); letter-spacing: 0.01em; }

.hero__name {
  grid-column: 1 / 8; grid-row: 2;
  align-self: center;
  margin: clamp(24px, 5vh, 64px) 0 clamp(20px, 4vh, 48px);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 10.8vw, 184px);
  line-height: 0.84; letter-spacing: -0.035em;
  color: var(--on-marble);
}
.hero__name .line { display: block; }
.hero__name .indent { padding-left: 0.92em; }
.hero__prefix {
  display: block;
  font-style: italic; font-weight: 400;
  font-size: max(0.26em, 24px); letter-spacing: 0;
  color: var(--prefix);
  margin: 0 0 0.3em 0.06em;
  text-shadow: 0 1px 14px var(--halo), 0 0 2px var(--halo-2);
}

.hero__bottom {
  grid-column: 1 / 8; grid-row: 3;
  display: grid; gap: 30px; align-content: start;
}
.hero__lead {
  max-width: 32ch;
  font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5;
  color: var(--on-marble-2);
}
.hero__lead strong { font-weight: 500; color: var(--on-marble); }

.hero__aside {
  grid-column: 8 / 13; grid-row: 1 / 4;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 26px;
  padding-top: clamp(8px, 2vh, 24px);
}
.portrait {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 3 / 4;
}
.portrait__frame {
  position: absolute; inset: -14px -14px 18px 14px;
  border: 1px solid var(--frame);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 96%);
  mask-image: linear-gradient(#000 55%, transparent 96%);
}
.portrait__arch {
  position: relative; width: 100%; height: 100%;
  border-radius: 999px 999px 0 0; overflow: hidden;
  background: var(--portrait-bg);
  transform: translate3d(0, var(--py, 0px), 0);
  -webkit-mask-image: var(--portrait-fade);
  mask-image: var(--portrait-fade);
}
.portrait__arch img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  filter: var(--portrait-filter);
  transform: scale(var(--ps, 1));
  transform-origin: 50% 30%;
}
.portrait__arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 15%, transparent 55%, var(--portrait-shade));
}
.portrait__cap { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--on-marble-3); text-align: right; }

/* credentials: a small caption plate on the lower edge of the photo */
.creds {
  position: absolute; right: -6px; bottom: 7%; z-index: 2;
  width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  display: grid; gap: 7px;
  padding: 12px 16px 13px;
  border-radius: 14px;
  background: var(--plate-bg); border: 1px solid var(--plate-line);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.55);
  color: var(--plate-fg);
}
.creds dd { font-size: 13.5px; line-height: 1.5; color: var(--plate-fg); }
.creds .degrees span { display: block; white-space: nowrap; }
.creds dd em { font-family: var(--serif); font-size: 1.1em; color: var(--plate-accent); }
.creds__reg { display: flex; align-items: baseline; gap: 8px; padding-top: 7px; border-top: 1px solid var(--plate-line); }
.creds dt { font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--plate-fg-2); }
.creds .reg { font-size: 12.5px; color: var(--plate-fg-2); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }


/* hero entrance */
.js .hero [data-hero] { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease-soft), transform 1.4s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .hero.is-in [data-hero] { opacity: 1; transform: none; }
.js .portrait__arch { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); transition: clip-path 1.8s var(--ease-io) 0.35s; }
.js .portrait__arch img { --ps: 1.25; transition: transform 2.4s var(--ease-out) 0.35s; }
.js .hero.is-in .portrait__arch { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
.js .hero.is-in .portrait__arch img { --ps: 1; }
.js .portrait__frame { opacity: 0; transform: translate(-10px, 10px); transition: opacity 1.4s ease 1.2s, transform 1.8s var(--ease-out) 1.2s; }
.js .hero.is-in .portrait__frame { opacity: 1; transform: none; }

.hero__content { transform: translate3d(0, var(--hy, 0px), 0); opacity: var(--ho, 1); }

@media (max-width: 960px) {
  .hero__grid { grid-template-rows: none; }
  .hero__role { grid-column: 1 / -1; grid-row: 1; }
  .hero__aside { display: contents; }
  .portrait { grid-column: 1 / -1; grid-row: 2; justify-self: end; width: min(70vw, 420px); margin-top: 30px; }
  .portrait__frame { inset: -12px -12px 16px 12px; }
  .portrait__cap { display: none; }
  .hero__name { grid-column: 1 / -1; grid-row: 3; font-size: clamp(64px, 17vw, 148px); margin: 84px 0 18px; }
  /* on phones the credentials hang from the photo's faded lower edge, clear of the face */
  .creds { top: calc(100% - 30px); bottom: auto; }
  .hero__bottom { grid-column: 1 / -1; grid-row: 5; }
}
@media (max-width: 400px) {
  .care__fig { font-size: 13.5px; gap: 10px; }
}
@media (max-width: 520px) {
  .hero { padding-top: calc(var(--nav-h) + 22px); }
  .hero__role .label { font-size: clamp(14px, 4.1vw, 16px); letter-spacing: 0.12em; }
  .hero__role .label__rule { display: none; }
  .hero__role-sub { font-size: clamp(14px, 3.95vw, 16px); }
  .portrait { width: 74vw; margin-top: 26px; }
  .creds { padding: 10px 13px 11px; gap: 6px; right: -4px; }
  .creds dd { font-size: 12.5px; }
  .creds .reg { font-size: 12px; }
  .hero__name { margin: 80px 0 16px; }
}

/* ==========================================================================
   Arch edges between light and dark
   ========================================================================== */
.edge {
  position: absolute; left: 0; right: 0; height: clamp(48px, 7.5vw, 140px);
  background: inherit; pointer-events: none; z-index: 1;
  transform: scaleY(var(--c, 1));
}
.edge--top { bottom: calc(100% - 1px); transform-origin: 50% 100%; clip-path: ellipse(52% 100% at 50% 100%); }
.edge--bottom { top: calc(100% - 1px); transform-origin: 50% 0%; clip-path: ellipse(52% 100% at 50% 0%); }

/* ==========================================================================
   Endocrine care
   ========================================================================== */
.care { padding: clamp(80px, 13vh, 150px) 0 clamp(90px, 15vh, 170px); }
.care__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; margin-bottom: clamp(48px, 9vh, 110px); }
.care__head .label { grid-column: 1 / -1; margin-bottom: 28px; }
.care__head .h2 { grid-column: 1 / 9; }
.care__intro { grid-column: 9 / 13; font-size: 17.5px; color: var(--ink-2); max-width: 34ch; padding-bottom: 10px; }

.care__layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.care__visual {
  grid-column: 1 / 6;
  position: sticky; top: calc(var(--nav-h) + 3vh);
  height: calc(100vh - var(--nav-h) - 6vh);
  height: calc(100svh - var(--nav-h) - 6vh);
  max-height: 820px;
  align-self: start;
}
.care__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.care__still { display: none; position: absolute; inset: 0; background: url("../img/care-classic.webp") center / contain no-repeat; }
[data-palette="garden"] .care__still { background-image: url("../img/care-garden.webp"); }
html:not(.js) .care__still, .care--static .care__still { display: block; }
.care__fig {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; gap: 14px;
  font-size: 14.5px; color: var(--ink-3);
}
.care__fig-num { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); white-space: nowrap; }
.care__fig-name { position: relative; display: block; overflow: hidden; height: 1.6em; flex: 1; min-width: 0; }
.care__fig-name > span { position: absolute; left: 0; right: 0; top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform 0.8s var(--ease-out), opacity 0.5s; }
.care__fig-name > span:not(.is-current) { transform: translateY(110%); opacity: 0; }
.care__fig-name > span.is-leaving { transform: translateY(-110%); opacity: 0; }
.care__count {
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6vw, 96px); line-height: 1;
  color: var(--ink); letter-spacing: -0.03em;
  display: flex; gap: 10px; align-items: flex-start;
}
.care__count-digits { position: relative; display: inline-block; overflow: hidden; height: 1.12em; width: 1.12em; }
.care__count-digits > span { position: absolute; left: 0; top: 0; line-height: 1.12; transform: translateY(calc(var(--ci, 0) * -1.12em)); transition: transform 0.9s var(--ease-out); }
.care__count small { margin-top: 0.3em; font-size: 0.26em; font-style: italic; color: var(--ink-3); letter-spacing: 0; }

.care__list { grid-column: 7 / 13; counter-reset: care; }
.care-row {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; column-gap: 12px;
  padding: clamp(30px, 5.5vh, 56px) 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.7s ease;
}
.care-row:last-child { border-bottom: 1px solid var(--line); }
.js .care-row:not(.is-active) { opacity: 0.38; }
.care-row::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--emph); transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.care-row.is-active::before { transform: scaleX(1); }
.care-row__num { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold); padding-top: 0.55em; }
.care-row__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -0.015em;
}
.care-row__items {
  grid-column: 2;
  display: flex; flex-wrap: wrap; gap: 6px 0;
  margin: 18px 0 0 -32px;
  clip-path: inset(-4px -4px -4px 32px);
  font-size: 16.5px; line-height: 1.55; color: var(--ink-2);
}
.care-row__items li { display: inline-flex; align-items: center; }
.care-row__items li::before {
  content: ""; flex: none; width: 4px; height: 4px; margin: 0 14px; border-radius: 50%;
  background: var(--gold); opacity: 0.85; transform: translateY(1px);
}
.care-row__items strong { font-weight: 600; color: var(--ink); }

@media (max-width: 960px) {
  .care__head .h2 { grid-column: 1 / -1; }
  .care__intro { grid-column: 1 / -1; margin-top: 22px; }
  .care__layout { display: block; }
  .care__visual {
    position: sticky; top: 0; z-index: 2;
    height: 46vh; height: 46svh; max-height: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: calc(var(--nav-h) + 8px) var(--gutter) 0;
    background: inherit;
    background-color: var(--bone);
    background-image: url("../img/grain.png");
    background-size: 128px;
  }
  .care__visual::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: linear-gradient(var(--bone), rgba(var(--paper-rgb), 0)); pointer-events: none; }
  .care__stage { position: relative; height: 100%; }
  .care__canvas { height: calc(100% - 26px); }
  .care__still { bottom: 26px; }
  .care__count { font-size: 54px; }
  .care__fig { bottom: 6px; }
  .care__fig-name { height: 1.65em; }
  .care-row { grid-template-columns: 44px 1fr; padding: 34px 0; }
  .care-row__items { font-size: 16px; }
  .care-row__items { margin-left: -24px; clip-path: inset(-4px -4px -4px 24px); }
  .care-row__items li::before { margin: 0 10px; }
}
@media (min-width: 961px) {
  .care__stage { position: absolute; inset: 0; }
}
.care-row__fig { display: none; }
.care__dots { display: none; }

/* Phones: the seven areas become swipeable cards under the live figure */
@media (max-width: 760px) {
  .care__head { margin-bottom: 26px; }
  .care__visual {
    position: relative; top: auto; z-index: auto;
    height: min(88vw, 380px);
    margin: 0 0 14px; padding: 0;
    background: none;
  }
  .care__visual::after { display: none; }
  .care__list {
    position: relative;
    display: flex; align-items: stretch; gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 8px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    outline-offset: -2px;
  }
  .care__list::-webkit-scrollbar { display: none; }
  .care-row, .care-row:last-child {
    flex: 0 0 84%; scroll-snap-align: start;
    display: flex; flex-direction: column;
    padding: 22px 20px 24px;
    border: 1px solid var(--line); border-radius: 20px;
    background: rgba(var(--field-rgb), 0.5);
  }
  .care-row::before { left: 20px; right: 20px; width: auto; top: -1px; }
  .js .care-row:not(.is-active) { opacity: 0.5; }
  .care-row__num { padding-top: 0; margin-bottom: 6px; font-size: 17px; }
  .care-row__title { font-size: 30px; }
  .care-row__items { margin-top: 14px; font-size: 15.5px; }
  .care__dots { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
  .care__dots button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
  .care__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background-color 0.4s, transform 0.5s var(--ease-out); }
  .care__dots button[aria-current="true"]::before { background: var(--emph); transform: scale(1.3); }

  /* without scripts (file previews) or WebGL: each card carries its own still */
  html:not(.js) .care__visual, .care--static .care__visual { display: none; }
  html:not(.js) .care-row__fig, .care--static .care-row__fig { display: block; width: 100%; height: auto; max-height: 230px; object-fit: contain; margin: -6px 0 6px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: clamp(90px, 14vh, 170px) 0 clamp(110px, 17vh, 200px); background-color: var(--bone-2); }
.about .label { margin-bottom: 30px; }
.about__statement {
  max-width: 23ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -0.02em;
}
.about__statement em { color: var(--emph); }
.about__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(60px, 11vh, 130px);
}
.mini-title { font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 30px; }

.about__training { grid-column: 1 / 7; }
.timeline { position: relative; padding-left: 38px; }
.timeline__track { position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline__fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--emph); transform-origin: top; transform: scaleY(var(--tp, 0)); }
.timeline li { position: relative; padding: 0 0 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -38px; top: 0.62em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bone-2); border: 1px solid var(--line-strong);
  transition: background-color 0.5s, border-color 0.5s, transform 0.6s var(--ease-out);
}
.timeline li.is-lit::before { background: var(--emph); border-color: var(--emph); transform: scale(1.05); }
.timeline li.is-now::before { box-shadow: 0 0 0 5px rgba(var(--emph-rgb), 0.12); }
.timeline__deg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--serif); font-size: clamp(25px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }
.timeline__inst { display: block; margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.timeline__when { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--emph); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 12px;
  border: 1px solid rgba(var(--gold-rgb), 0.5); border-radius: 999px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #e2c58f, #9c7b45); }

.about__recog { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 46px; }
.seal { position: relative; width: clamp(150px, 13vw, 190px); aspect-ratio: 1; }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.seal__ring text { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--ink-2); }
.seal__core {
  position: absolute; inset: 24%;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ecd6a8 0%, #c9a66a 38%, #9c7b45 72%, #7d5f31 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 220, 0.35), inset 0 -8px 18px rgba(60, 40, 15, 0.35), 0 18px 34px -16px rgba(80, 55, 20, 0.6);
  color: #3a2a12;
  overflow: hidden;
}
.seal__core::after {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 250, 235, 0.55) 50%, transparent 60%);
  transform: translateX(-60%); animation: sheen 6s var(--ease-io) infinite 2s;
}
.seal__core span { position: relative; font-family: var(--serif); font-size: clamp(26px, 2.3vw, 34px); font-weight: 500; letter-spacing: 0.02em; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

.facts { display: grid; gap: 0; }
.facts > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font-family: var(--serif); font-size: clamp(22px, 1.8vw, 27px); line-height: 1.25; }
.facts dd .sep { color: var(--gold); padding: 0 0.3em; }
.facts abbr[title] { border-bottom-color: rgba(var(--gold-rgb), 0.45); }
.facts dd small { display: block; font-family: var(--sans); font-size: 15.5px; color: var(--ink-2); margin-top: 4px; }

@media (max-width: 960px) {
  .about__training, .about__recog { grid-column: 1 / -1; }
  .about__recog { margin-top: 72px; }
}

/* ==========================================================================
   Online consultation
   ========================================================================== */
.consult { padding: clamp(120px, 20vh, 230px) 0 clamp(110px, 18vh, 210px); }
.consult::before, .cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.consult::before { background: linear-gradient(180deg, rgba(var(--veil-rgb), 0.35), rgba(var(--veil-rgb), var(--veil-a)) 20%, rgba(var(--veil-rgb), var(--veil-b)) 82%, rgba(var(--veil-rgb), 0.45)); }
.consult .step__text, .consult .step__title, .consult .ready__list li, .consult .ready__note, .consult .hours__note,
.hero__lead, .hero__role-sub, .cta__note { text-shadow: 0 1px 16px var(--halo), 0 0 2px var(--halo-2); }
.cta::before { background: radial-gradient(60% 55% at 50% 48%, rgba(var(--veil-rgb), 0.6), transparent 75%); }
.consult > .wrap, .cta > .wrap { position: relative; }
.consult, .cta { position: relative; }
.consult__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: end; row-gap: 48px;
}
.consult__title { grid-column: 1 / 8; }
.consult__title .label { margin-bottom: 30px; }

.hours {
  grid-column: 8 / 13;
  padding: 28px 30px 30px;
  border: 1px solid var(--line-marble);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--glass-1), var(--glass-2));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hours__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.hours__label { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-marble-3); }
.hours__today { font-size: 13px; color: var(--on-marble-3); display: inline-flex; align-items: center; gap: 8px; }
.hours__today::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--marble-num); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week li {
  position: relative;
  display: grid; place-items: center;
  height: 46px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--on-marble-3);
  border: 1px solid var(--chip-off);
}
.week li.is-on { color: var(--day-on-fg); background: var(--day-on); border-color: transparent; box-shadow: 0 10px 22px -14px var(--day-on-glow); }
.week li.is-today::after { content: ""; position: absolute; bottom: -10px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--on-marble); }
.js .week li { opacity: 0; transform: translateY(10px) scale(0.92); transition: opacity 0.6s ease, transform 0.8s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 200ms); }
.js .hours.is-in .week li { opacity: 1; transform: none; }
.hours__time { margin-top: 28px; font-family: var(--serif); font-size: clamp(34px, 3vw, 46px); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.hours__time span { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; color: var(--on-marble-3); vertical-align: middle; margin: 0 0.5em 0 0.35em; }
.hours__note { margin-top: 10px; font-size: 15px; color: var(--on-marble-2); }
.hours__perk { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-marble); font-size: 16.5px; font-weight: 500; color: var(--on-marble); }
.hours__perk svg { flex: none; width: 19px; height: 19px; color: var(--marble-icon); }

.steps { position: relative; margin-top: clamp(80px, 13vh, 140px); }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.steps__track { position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line-marble); }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--track-fill), var(--track-fill-2)); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.step { position: relative; padding-right: 12px; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--serif); font-size: 24px; font-style: italic;
  color: var(--on-marble);
  background: var(--step-bg);
  border: 1px solid var(--line-marble);
  transition: background-color 0.6s, color 0.6s, border-color 0.6s;
}
.step.is-lit .step__num { background: var(--step-lit-bg); color: var(--step-lit-fg); border-color: var(--step-lit-bg); }
.step__title { margin-top: 30px; font-family: var(--serif); font-size: clamp(25px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -0.01em; }
.step__text { margin-top: 12px; font-size: 16.5px; line-height: 1.6; color: var(--on-marble-strong); max-width: 30ch; }

.ready {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(70px, 11vh, 120px);
  padding-top: 40px;
  border-top: 1px solid var(--line-marble);
}
.ready__head { grid-column: 1 / 5; }
.ready__title { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.01em; }
.ready__title em { color: var(--marble-emph); }
.ready__note { margin-top: 16px; font-size: 15.5px; color: var(--on-marble-strong); max-width: 34ch; }
.ready__list { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); }
.ready__list li {
  position: relative;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-marble);
  font-size: 17px; line-height: 1.5; color: var(--on-marble);
}
.ready__list li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--marble-icon); }
.ready__list li span small { display: block; color: var(--on-marble-3); font-size: 15px; }
.consult__cta { margin-top: clamp(60px, 9vh, 100px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.consult__cta p { font-size: 15px; color: var(--on-marble-3); max-width: 46ch; }

@media (max-width: 960px) {
  .consult__title, .hours { grid-column: 1 / -1; }
  .hours { max-width: 520px; }
  .steps__list { grid-template-columns: 1fr; row-gap: 44px; }
  .steps__track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .steps__fill { transform-origin: top; transform: scaleY(var(--sp, 0)); background: linear-gradient(180deg, var(--track-fill), var(--track-fill-2)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; }
  .step__title { margin-top: 12px; }
  .step__text { grid-column: 2; }
  .ready__head, .ready__list { grid-column: 1 / -1; }
  .ready__list { grid-template-columns: 1fr; margin-top: 26px; }
}
@media (max-width: 520px) {
  .hours { padding: 22px 18px 24px; border-radius: 18px; }
  .week { gap: 4px; }
  .week li { height: 42px; font-size: 12px; letter-spacing: 0; border-radius: 10px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: clamp(100px, 16vh, 190px) 0 clamp(110px, 17vh, 200px); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.faq__head { grid-column: 1 / 5; }
.faq__head .label { margin-bottom: 30px; }
.faq__list { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 0;
  font-family: var(--serif); font-size: clamp(23px, 2vw, 31px); line-height: 1.2; letter-spacing: -0.008em;
  transition: color 0.3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--emph); }
.qa__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 0.4s, border-color 0.4s, transform 0.6s var(--ease-out); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; margin: -0.75px 0 0 -6.5px; background: currentColor; transition: transform 0.6s var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--ox); border-color: var(--ox); color: var(--bone); transform: rotate(180deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__body { overflow: hidden; }
.qa__body > div { padding: 0 64px 32px 0; display: grid; gap: 14px; font-size: 17.5px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.qa__body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .faq__list { margin-top: 48px; }
  .qa summary { padding: 24px 0; }
  .qa__body > div { padding-right: 0; }
}

/* ==========================================================================
   Closing call to action
   ========================================================================== */
.cta { padding: clamp(150px, 24vh, 280px) 0 clamp(130px, 21vh, 240px); text-align: center; }
.cta__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(50px, 8.2vw, 140px); line-height: 0.92; letter-spacing: -0.03em;
}
.cta__title em { color: var(--marble-emph); }
.cta__actions { margin-top: clamp(44px, 7vh, 72px); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta__note { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--on-marble-3); }
.cta__note svg { width: 14px; height: 14px; color: var(--marble-icon); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--forest); color: var(--on-dark); padding: 72px 0 36px; border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.footer__id { grid-column: 1 / 7; display: grid; gap: 22px; align-content: start; }
.footer__mail { color: var(--on-dark-2); text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 4px; transition: color 0.3s, text-decoration-color 0.3s; }
.footer__mail:hover { color: var(--on-dark); text-decoration-color: currentColor; }
.footer__id p { font-size: 15px; color: var(--on-dark-3); line-height: 1.7; }
.footer__id .reg { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.footer__nav { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer__nav h3 { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 16px; }
.footer__nav ul { display: grid; gap: 10px; font-size: 15.5px; }
.footer__nav a { color: var(--on-dark-2); transition: color 0.3s; }
.footer__nav a:hover { color: var(--on-dark); }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line-dark);
  font-size: 14px; color: var(--on-dark-3);
}
.footer__bottom strong { color: var(--on-dark-2); font-weight: 500; }
@media (max-width: 760px) {
  .footer__id, .footer__nav { grid-column: 1 / -1; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Mobile booking bar
   ========================================================================== */
.bookbar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: none;
  transform: translateY(calc(100% + 30px)); transition: transform 0.7s var(--ease-out);
}
.bookbar .btn { width: 100%; justify-content: space-between; box-shadow: 0 18px 40px -16px rgba(20, 10, 10, 0.6); }
.bookbar.is-shown { transform: none; }
@media (max-width: 760px) { .bookbar { display: block; } }

/* ==========================================================================
   Consent dialog
   ========================================================================== */
.consent {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink);
  overflow: hidden;
}
.consent::backdrop { background: transparent; }
.consent__scrim {
  position: absolute; inset: 0;
  background: var(--modal-scrim);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.6s ease;
}
.consent.is-open .consent__scrim { opacity: 1; }
.consent__morph {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--bone);
  clip-path: inset(50% 50% 50% 50% round 999px);
  opacity: 0;
}
.consent__panel {
  position: absolute;
  left: 50%; top: 50%;
  width: min(680px, calc(100% - 32px));
  height: min(860px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  background-color: var(--bone);
  background-image: url("../img/grain.png");
  background-size: 128px;
  border-radius: 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 0;
}
.consent.is-open .consent__panel { opacity: 1; }
.consent__panel > * { transition: opacity 0.5s ease, transform 0.8s var(--ease-out); }
.consent:not(.is-ready) .consent__panel > * { opacity: 0; transform: translateY(14px); }
.consent__head { position: relative; padding: 34px 40px 24px; border-bottom: 1px solid var(--line); }
.consent__head .label { margin-bottom: 14px; }
.consent__title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1; letter-spacing: -0.015em; outline: none; }
.consent__title em { color: var(--emph); }
.consent__close {
  position: absolute; right: 26px; top: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  transition: background-color 0.3s, transform 0.6s var(--ease-out);
}
.consent__close:hover { background: var(--bone-3); transform: rotate(90deg); }
.consent__close svg { width: 14px; height: 14px; }
.consent__form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.consent__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 40px 30px; scrollbar-width: thin; scrollbar-color: var(--bone-3) transparent; }
.consent__intro { font-size: 16.5px; color: var(--ink-2); margin-bottom: 16px; }
.consent__points { counter-reset: pt; display: grid; }
.consent__points li {
  counter-increment: pt;
  position: relative;
  padding: 13px 0 13px 46px;
  border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
}
.consent__points li::before {
  content: counter(pt, decimal-leading-zero);
  position: absolute; left: 0; top: 12px;
  font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold);
}
.consent__points strong { color: var(--ink); font-weight: 600; }
.consent__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2); }
.field > span em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input {
  height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(var(--field-rgb), 0.6);
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field input:focus { outline: none; border-color: var(--ox); background: var(--field-bg); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12); }
.field.is-invalid input { border-color: var(--ox-glow); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), 0.14); }
.field__err { font-size: 13.5px; color: var(--danger); min-height: 0; }
.consent__date { grid-column: 1 / -1; font-size: 14px; color: var(--ink-3); }
.consent__date strong { font-weight: 500; color: var(--ink-2); }
.consent__foot { padding: 20px 40px 26px; border-top: 1px solid var(--line); background: rgba(var(--paper2-rgb), 0.6); display: grid; gap: 16px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; cursor: pointer; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  position: relative; width: 24px; height: 24px; margin-top: 0;
  border: 1.5px solid var(--line-strong); border-radius: 7px; background: var(--field-bg);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.check__box svg { position: absolute; inset: 3px; width: 15px; height: 15px; color: var(--bone); stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 0.45s var(--ease-out) 0.05s; }
.check input:checked + .check__box { background: var(--ox); border-color: var(--ox); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.check.is-invalid .check__box { border-color: var(--ox-glow); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), 0.14); animation: nudge 0.5s var(--ease-out); }
@keyframes nudge { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.consent__small { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.consent__small a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.consent__small a:hover { color: var(--emph); }

.consent__redirect {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px;
  padding: 40px; text-align: center;
  background-color: var(--bone);
  background-image: url("../img/grain.png");
  background-size: 128px;
}
.consent__redirect[hidden] { display: none; }
.consent__redirect-title { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.015em; }
.consent__redirect-title em { color: var(--emph); }
.consent__redirect-text { font-size: 15.5px; color: var(--ink-3); }
.progress { width: min(260px, 70%); height: 1px; background: var(--line-strong); overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--ox); transform-origin: left; transform: scaleX(0); }
.consent__redirect.is-going .progress span { transform: scaleX(1); transition: transform 1.3s var(--ease-io); }
.consent__redirect a { font-size: 14.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.is-locked { overflow: hidden; }

@media (max-width: 640px) {
  /* phones: the whole window scrolls like a page (no nested scroll box) */
  .consent { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .consent__panel { position: relative; width: 100%; height: auto; min-height: 100%; border-radius: 0; left: 0; top: 0; transform: none; box-shadow: none; overflow: visible; }
  .consent__head { position: sticky; top: 0; z-index: 2; background-color: var(--bone); background-image: url("../img/grain.png"); background-size: 128px; }
  .consent__form, .consent__body { flex: none; overflow: visible; }
  .consent__redirect { position: fixed; }
  .consent__head { padding: max(22px, env(safe-area-inset-top)) 22px 18px; }
  .consent__close { right: 16px; top: max(16px, env(safe-area-inset-top)); }
  .consent__body { padding: 20px 22px 26px; }
  .consent__points li { padding-left: 38px; font-size: 15.5px; }
  .consent__fields { grid-template-columns: 1fr; }
  .consent__foot { padding: 16px 22px max(18px, env(safe-area-inset-bottom)); gap: 14px; }
  .consent__foot .btn { width: 100%; justify-content: space-between; }
}

/* Inline consent (standalone page) */
.consent-inline { margin-top: 48px; border: 1px solid var(--line-strong); border-radius: 24px; overflow: hidden; background: rgba(var(--field-rgb), 0.35); }
.consent-inline .consent__fields { margin: 0; padding: 26px 32px 6px; border: 0; }
.consent-inline .consent__foot { padding: 22px 32px 28px; }
.consent-inline .consent__redirect { position: relative; inset: auto; min-height: 320px; }
@media (max-width: 640px) {
  .consent-inline .consent__fields { padding: 22px 20px 4px; }
  .consent-inline .consent__foot { padding: 18px 20px 24px; }
  .consent-inline .consent__foot .btn { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.doc-page { background-color: var(--bone); background-image: url("../img/grain.png"); background-size: 128px; color: var(--ink); min-height: 100vh; }
.doc-page .nav { color: var(--ink); }
.doc-page .nav::before { background: rgba(var(--paper-rgb), 0.82); border-color: var(--line); }
.doc-page .brand__mark { color: var(--gold); }
.doc-page .nav .btn--sm { --bg: var(--ox); --fg: var(--bone); --chip: var(--bone); --chip-fg: var(--ox); }
.doc-page .nav .btn--sm:hover { --bg: var(--ox-deep); }
.doc-back { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.doc-back svg { width: 15px; height: 15px; transition: transform 0.5s var(--ease-out); }
.doc-back:hover svg { transform: translateX(-4px); }

.doc { padding: calc(var(--nav-h) + clamp(50px, 10vh, 110px)) 0 clamp(90px, 14vh, 160px); }
.doc__head { max-width: 980px; }
.doc__head .label { margin-bottom: 26px; }
.doc__title { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 7.4vw, 116px); line-height: 0.92; letter-spacing: -0.03em; view-transition-name: doc-title; }
.doc__title em { color: var(--emph); }
.doc__meta { margin-top: 26px; font-size: 15px; color: var(--ink-3); }
.doc__layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(50px, 9vh, 100px); padding-top: 40px; border-top: 1px solid var(--line); }
.doc__toc { grid-column: 1 / 4; position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.doc__toc p { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.doc__toc ol { display: grid; gap: 4px; }
.doc__toc a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--ink-3); transition: color 0.3s, border-color 0.3s; }
.doc__toc a:hover, .doc__toc a.is-active { color: var(--ink); border-color: var(--ox); }
.doc__body { grid-column: 5 / 12; max-width: 70ch; }
@media (min-width: 961px) { .doc__layout--single .doc__body { grid-column: 1 / 10; } }
.doc__body > p:first-child { font-family: var(--serif); font-size: clamp(23px, 2vw, 29px); line-height: 1.35; color: var(--ink); margin-bottom: 18px; }
.doc__body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.01em; margin: 56px 0 16px; scroll-margin-top: calc(var(--nav-h) + 28px); }
.doc__body p, .doc__body li { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.doc__body p + p { margin-top: 14px; }
.doc__body ul { margin: 14px 0; display: grid; gap: 8px; }
.doc__body ul li { position: relative; padding-left: 24px; }
.doc__body ul li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.doc__body ol.consent__points li { font-size: 17px; }
.doc__body .consent-inline p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0; }
.doc__body .consent-inline .consent__redirect-title { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; color: var(--ink); }
.doc__body .consent-inline .consent__redirect-text { font-size: 15.5px; }
.doc__body .consent-inline .label { font-size: 12.5px; color: var(--ink-3); }
.doc__body strong { color: var(--ink); font-weight: 600; }
.doc__body a { color: var(--ox); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--accent-rgb), 0.35); }
.placeholder { background: rgba(var(--gold-rgb), 0.16); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.doc__actions { margin-top: 48px; padding-bottom: 12vh; }
.doc-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--ink-3); }
.doc-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.doc-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.doc-foot a:hover { color: var(--ink); }
.doc-foot a[aria-current="page"] { color: var(--ink); }
@media (max-width: 960px) {
  .doc__toc { display: none; }
  .doc__body { grid-column: 1 / -1; }
}

/* ==========================================================================
   Page transitions (cross-document view transitions)
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.45s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.75s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-18px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px); } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-split] .wi, .js [data-reveal], .js [data-rule], .js .hero [data-hero], .js .week li { opacity: 1 !important; transform: none !important; }
  .js .portrait__arch { clip-path: none !important; }
  .js .portrait__frame { opacity: 1 !important; transform: none !important; }
  .seal__ring { animation: none !important; }
}
