/* ==========================================================================
   Dolce Medical Spa — "Light as Medicine"
   Design system. Brand-evolved palette: the real Dolce blue and orange read as
   the cool and warm ends of a therapeutic light spectrum, over warm paper.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Spectrum — cool end (the real Dolce blue, deepened) */
  --ink:        #08131C;
  --ink-2:      #0D1F2B;
  --deep:       #10293A;
  --blue-deep:  #1B6E96;
  --blue:       #29ABE2;   /* sampled from the official service menu */
  --glow:       #86D6F6;

  /* Spectrum — warm end (the real Dolce orange, used sparingly) */
  --amber:      #E8622A;   /* sampled from the official service menu */
  --amber-soft: #F0A480;

  /* Paper */
  --bone:       #F8F5F0;
  --paper:      #F0EBE3;
  --cream:      #E4DCD1;
  --taupe:      #A2968A;
  --taupe-deep: #6B6156;

  /* Semantic */
  --bg:         var(--bone);
  --fg:         var(--ink);
  --muted:      var(--taupe-deep);
  --rule:       rgba(8, 19, 28, 0.12);
  --rule-soft:  rgba(8, 19, 28, 0.07);

  /* Type */
  --display: "Cormorant Garamond", "Canela", "Instrument Serif", Georgia, serif;
  --script:  "Corinthia", "Snell Roundhand", cursive;
  --body:    "Switzer", "Neue Haas Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale — fluid, editorial */
  --t-mega:  clamp(3.2rem, 11vw, 11.5rem);
  --t-xl:    clamp(2.6rem, 6.4vw, 6rem);
  --t-lg:    clamp(2rem, 3.9vw, 3.6rem);
  --t-md:    clamp(1.5rem, 2.2vw, 2.1rem);
  --t-body:  clamp(1rem, 1.06vw, 1.115rem);
  --t-sm:    0.92rem;
  --t-label: 0.7rem;

  /* Space */
  --gutter:  clamp(1.25rem, 4.6vw, 5.5rem);
  --section: clamp(5.5rem, 13vh, 11rem);
  --wrap:    1440px;

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0.05, 0.2, 1);
  --dur:       0.75s;
}

/* ---------- 2. Reset ----------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--blue); color: #fff; }

.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-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--bone);
  font-size: var(--t-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Layout primitives ---------------------------------------- */

/* NOTE: never set width:100% on .wrap — it collapses the gutter. */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 980px; }
.wrap--text   { max-width: 720px; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--12 { grid-template-columns: repeat(12, 1fr); }

@media (max-width: 900px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--12 { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- 4. Type ------------------------------------------------------ */

.display {
  font-family: var(--display);
  font-weight: 300;                 /* Cormorant is high-contrast — light reads luxe */
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.display--mega { font-size: calc(var(--t-mega) * 1.06); line-height: 0.9; letter-spacing: -0.014em; }
.display--xl   { font-size: calc(var(--t-xl) * 1.04); line-height: 0.98; }
.display--lg   { font-size: calc(var(--t-lg) * 1.03); }
.display--md   { font-size: var(--t-md); line-height: 1.16; font-weight: 400; }

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-deep);
}

/* Calligraphic accent — for a single flourish word/eyebrow, used sparingly.
   Corinthia runs very small, so it needs a big size bump to sit with display type. */
.script {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--blue-deep);
  display: inline-block;
}
.script--xl { font-size: calc(var(--t-mega) * 1.35); }
.script--lg { font-size: calc(var(--t-xl) * 1.5); }
.script--md { font-size: calc(var(--t-lg) * 1.4); }
.dark .script, .hero .script { color: var(--glow); }

/* Outlined word — used once per page at most. */
.outline {
  -webkit-text-stroke: 1px currentColor;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.label {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.label::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.label--plain::before { display: none; }

.lede {
  font-size: clamp(1.1rem, 1.45vw, 1.4rem);
  line-height: 1.5;
  color: var(--taupe-deep);
  text-wrap: pretty;
}

.prose p + p { margin-top: 1.15em; }
.prose { color: var(--taupe-deep); text-wrap: pretty; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- 5. Buttons --------------------------------------------------- */

.btn {
  --btn-fg: var(--bone);
  --btn-bg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 2rem;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}

/* Warm light wipes across on hover — the spectrum motif, not a generic fill. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 45%, var(--amber) 130%);
  transform: translateX(-101%);
  transition: transform 0.6s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(8, 19, 28, 0.45); }
.btn:hover::before { transform: translateX(0); }

.btn__label { position: relative; display: block; overflow: hidden; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--rule);
}
.btn--ghost:hover { --btn-fg: var(--bone); border-color: transparent; }

.btn--light { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.btn--light:hover { --btn-fg: var(--bone); }

.btn--sm { padding: 0.75rem 1.4rem; font-size: 0.76rem; }

/* Text link with a wavelength underline that draws in. */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 6. Custom cursor -------------------------------------------- */

@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none; }

  .cursor {
    position: fixed;
    top: 0; left: 0;
    z-index: 999;
    pointer-events: none;
    mix-blend-mode: normal;
  }

  .cursor__dot {
    position: absolute;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--ink);
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }

  .cursor__halo {
    position: absolute;
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    border: 1px solid rgba(8, 19, 28, 0.28);
    background: radial-gradient(circle, rgba(41, 171, 226, 0.14), rgba(41, 171, 226, 0) 68%);
    backdrop-filter: blur(1px);
    transition: width 0.4s var(--ease), height 0.4s var(--ease),
                margin 0.4s var(--ease), background 0.4s var(--ease),
                border-color 0.4s var(--ease), opacity 0.3s;
  }

  /* Over an interactive target the halo opens and warms. */
  html.cursor-active .cursor__halo {
    width: 76px; height: 76px;
    margin: -38px 0 0 -38px;
    border-color: rgba(232, 98, 42, 0.4);
    background: radial-gradient(circle, rgba(232, 98, 42, 0.15), rgba(41, 171, 226, 0) 70%);
  }
  html.cursor-active .cursor__dot { transform: scale(0.4); }

  /* On dark sections the cursor inverts. */
  html.cursor-dark .cursor__dot { background: var(--bone); }
  html.cursor-dark .cursor__halo { border-color: rgba(248, 245, 240, 0.35); }

  html.cursor-hidden .cursor { opacity: 0; }
}

/* ---------- 7. Navigation ------------------------------------------------ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background 0.4s, backdrop-filter 0.4s,
              border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(1rem, 1.9vh, 1.6rem);
  transition: padding 0.4s var(--ease);
}

/* Glass on scroll. */
.nav.is-stuck {
  background: rgba(248, 245, 240, 0.72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom-color: var(--rule-soft);
}
.nav.is-stuck .nav__inner { padding-block: 0.72rem; }
.nav.is-hidden { transform: translateY(-102%); }

/* Over a dark hero. Set by main.js on any page that opens with .hero, and
   dropped once the hero scrolls away. */
.nav[data-theme="dark"] { color: var(--bone); }
.nav[data-theme="dark"].is-stuck {
  background: rgba(8, 19, 28, 0.66);
  border-bottom-color: rgba(248, 245, 240, 0.1);
}
/* An ink button on an ink hero is invisible — flip it. */
.nav[data-theme="dark"] .btn { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.nav[data-theme="dark"] .btn:hover { --btn-fg: var(--bone); }

.nav__logo { display: block; flex-shrink: 0; }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16em;
  line-height: 1;
}
.logo__mark {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.8vw, 1.85rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}
.logo__sub {
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.1rem);
}

.nav__link {
  position: relative;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  padding-block: 0.4rem;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.nav__link:hover { opacity: 1; }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__link[aria-current="page"] { opacity: 1; }
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--blue);
}

.nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav__phone {
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  opacity: 0.82;
}
.nav__phone:hover { opacity: 1; }

@media (max-width: 1080px) {
  .nav__links, .nav__phone { display: none; }
}

/* Mobile menu */
.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.nav[data-theme="dark"] .burger { border-color: rgba(248, 245, 240, 0.22); }

.burger span {
  position: absolute;
  left: 50%;
  width: 16px; height: 1px;
  margin-left: -8px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 24px; }

html.menu-open .burger span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
html.menu-open .burger span:nth-child(2) { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 1080px) { .burger { display: block; } }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--bone);
  padding: 7rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}
html.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }

.menu__links { display: flex; flex-direction: column; gap: 0.1rem; }

.menu__link {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.menu-open .menu__link { opacity: 1; transform: none; }

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 245, 240, 0.14);
  font-size: var(--t-sm);
  color: rgba(248, 245, 240, 0.66);
}

/* ---------- 8. Dark sections -------------------------------------------- */

.dark {
  background: var(--ink);
  color: var(--bone);
  --fg: var(--bone);
  --muted: rgba(248, 245, 240, 0.6);
  --rule: rgba(248, 245, 240, 0.16);
  --rule-soft: rgba(248, 245, 240, 0.09);
}
.dark .display em { color: var(--glow); }
.dark .btn { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.dark .btn:hover { --btn-fg: var(--bone); }
.dark .btn--ghost { --btn-bg: transparent; --btn-fg: var(--bone); border-color: var(--rule); }

/* ---------- 9. Texture & atmosphere ------------------------------------- */

/* Fine grain over everything — kills the flat-white look without a visible pattern. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* A soft light field — the "wavelength" wash behind pale sections. */
.aura { position: relative; isolation: isolate; }
.aura::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48% 60% at 14% 22%, rgba(41, 171, 226, 0.12), transparent 68%),
    radial-gradient(42% 54% at 88% 76%, rgba(232, 98, 42, 0.09), transparent 66%);
  filter: blur(14px);
}

.dark.aura::before {
  background:
    radial-gradient(50% 62% at 82% 18%, rgba(41, 171, 226, 0.2), transparent 66%),
    radial-gradient(46% 56% at 10% 86%, rgba(232, 98, 42, 0.13), transparent 64%);
}

/* ---------- 10. Reveals -------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease),
              clip-path 1.1s var(--ease), filter 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(34px); }
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="blur"]  { filter: blur(9px); transform: translateY(16px); }
[data-reveal="mask"]  { opacity: 1; clip-path: inset(0 0 100% 0); }
[data-reveal="scale"] { transform: scale(1.06); opacity: 1; clip-path: inset(0 0 100% 0); }

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

/* Word-by-word display reveal.
   The mask is `overflow:hidden`, so the box must be padded below the baseline
   or it shears the descenders off every g/y/p/j. The negative margin gives the
   padding back to the layout, and the span travels further than 100% so it
   still clears the enlarged box while hidden. */
   Display type runs a line-height below 1 (0.86 on --t-mega), so the inline box
   is SHORTER than the glyphs and the mask would shave ascenders too — hence
   padding on both sides. The span only ever travels downward, so top padding
   costs nothing at rest. */
.rev-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.24em;
  margin-bottom: -0.24em;
  padding-top: 0.16em;
  margin-top: -0.16em;
}
.rev-word > span {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 0.9s var(--ease);
}
.is-in .rev-word > span,
.rev-word.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .rev-word > span { transform: none !important; }
  .cursor { display: none !important; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
}

/* ---------- 11. Hero ----------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}

/* Grade the footage toward the brand spectrum + protect the type. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 19, 28, 0.9) 4%, rgba(8, 19, 28, 0.42) 42%, rgba(8, 19, 28, 0.5) 100%),
    radial-gradient(64% 52% at 76% 30%, rgba(41, 171, 226, 0.22), transparent 70%),
    radial-gradient(52% 44% at 18% 88%, rgba(232, 98, 42, 0.16), transparent 68%);
}

.hero__inner { position: relative; width: 100%; }

.hero__eyebrow { color: rgba(248, 245, 240, 0.72); margin-bottom: clamp(1.2rem, 3vh, 2rem); }

.hero__title { margin-bottom: 1.6rem; max-width: 16ch; }

/* Script accent in the hero — Corinthia's glyphs are small for their em, so it
   can run large without overpowering. Nudge it to overlap the line above. */
.hero__script {
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 0.8;
  margin-top: -0.12em;
  margin-left: -0.02em;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
}

.hero__lede {
  max-width: 46ch;
  color: rgba(248, 245, 240, 0.78);
  font-size: clamp(1.02rem, 1.15vw, 1.2rem);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* The hero is dark but isn't a .dark section, so buttons need the same flip —
   without this, .btn--ghost renders ink-on-ink and disappears entirely. */
.hero .btn { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.hero .btn:hover { --btn-fg: var(--bone); }
.hero .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: rgba(248, 245, 240, 0.3);
}
.hero .btn--ghost:hover { border-color: transparent; }

/* Scroll cue — a wavelength that pulses down. */
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.5);
  writing-mode: vertical-rl;
}
.scroll-cue__line {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, rgba(248, 245, 240, 0.06), var(--glow), rgba(248, 245, 240, 0.06));
  background-size: 100% 220%;
  animation: cue 2.6s var(--ease-soft) infinite;
}
@keyframes cue {
  0%   { background-position: 0 -110%; }
  100% { background-position: 0 110%; }
}
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* Floating light particles. */
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mote {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 214, 246, 0.85), rgba(134, 214, 246, 0) 70%);
  animation: drift linear infinite;
  opacity: 0;
}
@keyframes drift {
  0%   { opacity: 0; transform: translate3d(0, 12vh, 0) scale(0.6); }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 2vw), -22vh, 0) scale(1.15); }
}

/* ---------- 12. Marquee -------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--taupe-deep);
}
.marquee__item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---------- 13. Treatment index (editorial rows, not cards) ------------- */

.tx { border-top: 1px solid var(--rule); }

.tx__row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.4rem, 2.6vw, 2.15rem);
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.55s var(--ease), background 0.55s var(--ease);
  isolation: isolate;
}

.tx__row:hover { padding-left: 1.5rem; }

/* Warm light bleeds in from the left on hover. */
.tx__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(41, 171, 226, 0.09), rgba(232, 98, 42, 0.05) 42%, transparent 76%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.tx__row:hover::before { opacity: 1; }

.tx__num {
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
}

.tx__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

.tx__desc {
  margin-top: 0.5rem;
  max-width: 62ch;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.tx__price {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tx__price sub {
  display: block;
  font-family: var(--body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  vertical-align: baseline;
  margin-top: 0.3rem;
}

/* A featured row (the $59 intro) reads warmer. */
.tx__row--feature .tx__price { color: var(--amber); }

/* Hover image preview — follows the pointer, desktop only. */
.tx__peek {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  width: 260px; height: 330px;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border-radius: 2px;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.tx__peek img { width: 100%; height: 100%; object-fit: cover; }
.tx__peek.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
@media (max-width: 1080px), (pointer: coarse) { .tx__peek { display: none; } }

@media (max-width: 760px) {
  .tx__row { grid-template-columns: 1fr auto; row-gap: 0.35rem; }
  .tx__num { display: none; }
  .tx__price { align-self: start; }
}

/* ---------- 14. Spectrum / technology band ------------------------------ */

.spectrum__bar {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 30%, var(--glow) 46%, var(--amber-soft) 76%, var(--amber));
  transform-origin: left;
}

.spectrum__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 900px) { .spectrum__grid { grid-template-columns: 1fr; } }

.spec__wave { height: 40px; margin-bottom: 1.2rem; overflow: visible; }
.spec__wave path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.spec__item:nth-child(2) .spec__wave path { stroke: var(--glow); }
.spec__item:nth-child(3) .spec__wave path { stroke: var(--amber); }

.spec__name {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-bottom: 0.5rem;
}
.spec__body { font-size: 0.97rem; color: var(--muted); line-height: 1.6; }

/* ---------- 15. Stats ---------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.7rem;
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 16. Reviews -------------------------------------------------- */

.rev-rail {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
}
.rev-rail::-webkit-scrollbar { display: none; }

.rev-card {
  flex: 0 0 clamp(280px, 33vw, 420px);
  scroll-snap-align: start;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(248, 245, 240, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
}
.rev-card:hover { border-color: rgba(41, 171, 226, 0.4); transform: translateY(-3px); }

.dark .rev-card { background: rgba(248, 245, 240, 0.04); }

.rev-card__stars { display: flex; gap: 0.22rem; color: var(--amber); }
.rev-card__stars svg { width: 14px; height: 14px; fill: currentColor; }

.rev-card__quote {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.34;
  letter-spacing: -0.01em;
  flex-grow: 1;
}

.rev-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-sm);
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
}

/* Placeholder chip — every unverified review is visibly flagged until real
   copy replaces it. Remove .is-placeholder + this rule at launch. */
.rev-card.is-placeholder { border-style: dashed; border-color: rgba(232, 98, 42, 0.5); }
.rev-card.is-placeholder::before {
  content: "Placeholder — replace with a real review";
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(232, 98, 42, 0.4);
  border-radius: 100px;
}

/* ---------- 17. Locations ------------------------------------------------ */

.loc-state {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--rule);
}
@media (max-width: 860px) { .loc-state { grid-template-columns: 1fr; gap: 1rem; } }

.loc-state__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  position: sticky;
  top: 6rem;
  align-self: start;
  color: var(--taupe);
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.loc {
  position: relative;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: background 0.45s var(--ease);
  isolation: isolate;
}
.loc:hover { background: var(--paper); }

.loc__name {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  line-height: 1.1;
}
.loc__addr { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.loc__tel  { font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.loc__links { display: flex; gap: 1rem; margin-top: auto; padding-top: 1rem; font-size: var(--t-sm); }

/* ---------- 18. Accordion (FAQ) ----------------------------------------- */

.acc { border-top: 1px solid var(--rule); }

.acc__item { border-bottom: 1px solid var(--rule); }

.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(1.2rem, 2.2vw, 1.7rem);
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.24;
  letter-spacing: -0.012em;
  transition: color 0.35s, padding-left 0.5s var(--ease);
}
.acc__btn:hover { color: var(--blue-deep); padding-left: 0.6rem; }

.acc__sign {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.acc__sign::before, .acc__sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(0deg); }

.acc__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.6s var(--ease);
}
.acc__panel > div {
  padding-bottom: clamp(1.2rem, 2vw, 1.7rem);
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.62;
}

/* ---------- 18b. Editorial split (text + media) ------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__text { max-width: 44ch; }
/* Tighter split — smaller media column, less air. */
.split--tight { grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--tight { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Full-bleed cinematic image/video band with an overlaid line. */
.band {
  position: relative;
  min-height: clamp(60vh, 78vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--bone);
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img, .band__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.band__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(8,19,28,0.86) 2%, rgba(8,19,28,0.28) 46%, rgba(8,19,28,0.5) 100%),
    radial-gradient(60% 50% at 82% 24%, rgba(41,171,226,0.2), transparent 68%);
}
.band__inner { padding-block: clamp(3rem, 7vw, 5.5rem); width: 100%; }
.band__quote {
  max-width: 20ch;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

/* ---------- 18c. Meet Us — team cards ----------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
@media (max-width: 1080px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .team { grid-template-columns: 1fr; } }

/* Two featured practitioners — larger cards, wider frame, bio always shown. */
.team--duo {
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1040px;
}
.team--duo .tcard { aspect-ratio: 3 / 4; }
.team--duo .tcard__bio { max-height: 9rem; opacity: 1; margin-top: 0.6rem; }
@media (max-width: 560px) { .team--duo { grid-template-columns: 1fr; } }

/* Doctor cards — for transparent-background portrait cutouts (real site assets):
   a lit gradient "stage" holds the cutout, text sits in a solid block below so
   long bios stay readable. */
.doc-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
@media (max-width: 820px) { .doc-row { grid-template-columns: 1fr; max-width: 480px; } }

.doc {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(248, 245, 240, 0.04);
  border: 1px solid var(--rule);
  transition: transform 0.55s var(--ease), border-color 0.55s;
}
.doc:hover { transform: translateY(-5px); border-color: rgba(41, 171, 226, 0.4); }

.doc__stage {
  position: relative;
  height: clamp(280px, 32vw, 400px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 62% at 50% 12%, rgba(134, 214, 246, 0.22), transparent 66%),
    linear-gradient(170deg, var(--deep), var(--ink) 88%);
}
/* soft floor glow the figure stands on */
.doc__stage::after {
  content: "";
  position: absolute; left: 50%; bottom: -22%; transform: translateX(-50%);
  width: 90%; height: 46%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(41, 171, 226, 0.28), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
.doc__stage img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 1s var(--ease);
}
.doc:hover .doc__stage img { transform: scale(1.035); }

.doc__text { padding: clamp(1.3rem, 2vw, 1.8rem); }
.doc__role {
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glow);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.doc__role span { color: var(--muted); }
.doc__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.04;
  margin: 0.7rem 0 0.8rem;
}
.doc__bio { font-size: 0.94rem; line-height: 1.6; color: rgba(248, 245, 240, 0.7); }

.tcard {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep);
  aspect-ratio: 4 / 5;
}
.tcard__img { position: absolute; inset: 0; }
.tcard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.02);
  transition: transform 1.1s var(--ease), filter 0.7s var(--ease);
}
.tcard:hover .tcard__img img { transform: scale(1.06); filter: grayscale(0) contrast(1.05); }

.tcard__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,19,28,0.9) 6%, rgba(8,19,28,0.15) 52%, transparent 78%);
}
.tcard__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(1.1rem, 1.6vw, 1.5rem);
  color: var(--bone);
}
.tcard__role {
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.5rem;
}
.tcard__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
  line-height: 1.02;
}
.tcard__bio {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(248,245,240,0.72);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin-top 0.5s var(--ease);
}
.tcard:hover .tcard__bio { max-height: 9rem; opacity: 1; }

/* Placeholder team member — a soft monogram until a real portrait is added.
   Remove .tcard--ph styling + the notice when real people go in. */
.tcard--ph .tcard__img {
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(41,171,226,0.22), transparent 60%),
    linear-gradient(160deg, var(--deep), var(--ink));
}
.tcard--ph .tcard__mono {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 300;
  color: rgba(248,245,240,0.16);
}
.tcard--ph::after {
  content: "Placeholder";
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3;
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(232,98,42,0.45);
  border-radius: 100px;
  background: rgba(8,19,28,0.5);
}

/* ---------- 18c-2. Product cards (medical-grade skincare) --------------- */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.3rem);
}
@media (max-width: 860px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .prod-grid { grid-template-columns: 1fr; } }

.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(15rem, 22vw, 19rem);
  padding: clamp(1.3rem, 2vw, 1.8rem);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, var(--bone), var(--cream));
  border: 1px solid var(--rule);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s;
  will-change: transform;
}
.prod:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -26px rgba(8,19,28,0.4);
  border-color: transparent;
}
/* Light bloom sweeps up on hover — the spectrum motif. */
.prod::before {
  content: "";
  position: absolute;
  inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 80% 110%, rgba(41,171,226,0.18), transparent 62%),
    radial-gradient(70% 50% at 15% 120%, rgba(232,98,42,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.prod:hover::before { opacity: 1; }

.prod__cat {
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}
.prod__vial {
  width: 34px; height: 46px;
  margin: 1.2rem 0 auto;
  border-radius: 7px 7px 9px 9px;
  background: linear-gradient(160deg, rgba(41,171,226,0.5), rgba(27,110,150,0.7));
  position: relative;
  box-shadow: inset 0 -14px 18px -10px rgba(8,19,28,0.4);
}
.prod__vial::before {
  content: "";
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 9px;
  border-radius: 3px;
  background: var(--taupe-deep);
}
.prod:nth-child(4) .prod__vial, .prod:nth-child(5) .prod__vial, .prod:nth-child(6) .prod__vial {
  background: linear-gradient(160deg, rgba(240,164,128,0.6), rgba(232,98,42,0.72));
}
.prod__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.08;
  margin-top: 1.1rem;
}
.prod__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule-soft);
}
.prod__price {
  font-family: var(--display);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- 18d. Studio gallery (real interiors) ------------------------ */

.studios {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 230px);
  gap: clamp(0.5rem, 1vw, 0.9rem);
}
.studio {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  isolation: isolate;
}
.studio img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.studio:hover img { transform: scale(1.05); }
.studio__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 0.9rem 1.1rem;
  font-family: var(--display);
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  color: var(--bone);
  text-shadow: 0 1px 20px rgba(8,19,28,0.7);
}
.studio::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,19,28,0.62), transparent 46%);
  opacity: 0.85; transition: opacity 0.5s var(--ease);
}
.studio:hover::after { opacity: 1; }
/* editorial mosaic spans */
.studio--wide { grid-column: span 4; }
.studio--tall { grid-column: span 2; grid-row: span 2; }
.studio--sq   { grid-column: span 2; }
@media (max-width: 900px) {
  .studios { grid-template-columns: repeat(2, 1fr); }
  .studio--wide, .studio--tall, .studio--sq { grid-column: span 1; grid-row: span 1; }
  .studio--tall { grid-row: span 1; }
}

/* ---------- 19. Editorial figure ---------------------------------------- */

.fig { position: relative; overflow: hidden; }
.fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.fig:hover img { transform: scale(1.045); }

.fig__cap {
  margin-top: 0.9rem;
  font-size: var(--t-sm);
  color: var(--taupe);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.fig__cap::before {
  content: "";
  width: 1.2rem; height: 1px;
  background: var(--blue);
  flex-shrink: 0;
  transform: translateY(-0.3em);
}

/* Parallax layer inside a fixed-height frame. */
.frame { position: relative; overflow: hidden; }
.frame img {
  position: absolute;
  top: -13%; left: 0;
  width: 100%; height: 126%;   /* % margin resolves against width — use height */
  object-fit: cover;
  will-change: transform;
}

/* ---------- 20. Map ------------------------------------------------------ */

.map {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper);
  min-height: 460px;
}
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: grayscale(1) contrast(0.92) brightness(1.06); }

.map__card {
  position: absolute;
  top: clamp(1rem, 2vw, 1.8rem);
  left: clamp(1rem, 2vw, 1.8rem);
  z-index: 2;
  max-width: 320px;
  padding: clamp(1.3rem, 2vw, 1.8rem);
  border-radius: 3px;
  background: rgba(248, 245, 240, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(248, 245, 240, 0.6);
  box-shadow: 0 24px 60px -24px rgba(8, 19, 28, 0.4);
}

/* ---------- 21. Footer --------------------------------------------------- */

.foot { background: var(--ink); color: var(--bone); padding-top: clamp(4rem, 9vw, 7rem); position: relative; overflow: hidden; }

.foot__cta { padding-bottom: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid rgba(248, 245, 240, 0.14); }
.foot__cta-title { max-width: 16ch; margin-bottom: 1.8rem; }

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.8rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 980px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot__grid { grid-template-columns: 1fr; } }

.foot__head {
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.45);
  margin-bottom: 1.2rem;
}

.foot__list { display: flex; flex-direction: column; gap: 0.62rem; font-size: 0.95rem; }
.foot__list a { color: rgba(248, 245, 240, 0.78); transition: color 0.3s; }
.foot__list a:hover { color: var(--bone); }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.8rem;
  border-top: 1px solid rgba(248, 245, 240, 0.14);
  font-size: var(--t-sm);
  color: rgba(248, 245, 240, 0.5);
}
.foot__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* Oversized watermark wordmark. */
.foot__mark {
  font-family: var(--display);
  font-size: clamp(4rem, 20vw, 19rem);
  line-height: 0.78;
  letter-spacing: 0.04em;
  color: rgba(248, 245, 240, 0.05);
  text-align: center;
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.12em;
  padding-top: 1.5rem;
}

.social { display: flex; gap: 0.6rem; }
.social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 245, 240, 0.2);
  border-radius: 50%;
  transition: background 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease);
}
.social a:hover { background: rgba(248, 245, 240, 0.1); border-color: transparent; transform: translateY(-2px); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* Newsletter */
.news { display: flex; gap: 0.5rem; max-width: 380px; margin-top: 1rem; }
.news input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(248, 245, 240, 0.22);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: var(--t-sm);
  transition: border-color 0.35s;
}
.news input::placeholder { color: rgba(248, 245, 240, 0.4); }
.news input:focus { outline: none; border-color: var(--blue); }

/* ---------- 22. Page transition veil ------------------------------------ */

.veil {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--ink);
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
.veil.is-in  { clip-path: inset(0 0 0 0); transition: clip-path 0.6s var(--ease); }
.veil.is-out { clip-path: inset(100% 0 0 0); transition: clip-path 0.7s var(--ease); }

/* ---------- 22b. Opening shot (brand ident) ----------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(27, 110, 150, 0.28), transparent 60%),
    linear-gradient(160deg, var(--ink-2), var(--ink) 92%);
  color: var(--bone);
  overflow: hidden;
  will-change: clip-path;
  /* Failsafe: clears itself even if JS never runs (JS's .is-gone wins when present). */
  animation: introFailsafe 0.9s cubic-bezier(0.76, 0, 0.24, 1) 4s forwards;
}
@keyframes introFailsafe { to { clip-path: inset(0 0 100% 0); pointer-events: none; visibility: hidden; } }
/* the reveal: curtain wipes up */
.intro.is-out {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
.intro.is-gone { display: none; }

.intro__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.intro__mark {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 8rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  animation: introMark 1s var(--ease) 0.15s forwards;
}
.intro__sub {
  font-size: clamp(0.6rem, 1.4vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.6);
  opacity: 0;
  animation: introFade 0.8s var(--ease) 0.85s forwards;
}
/* the spectrum line draws across between mark and sub */
.intro__line {
  width: min(46vw, 420px);
  height: 2px;
  margin: 0.7rem 0 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 34%, var(--glow) 50%, var(--amber-soft) 74%, var(--amber));
  transform: scaleX(0);
  transform-origin: center;
  animation: introLine 0.9s var(--ease) 0.5s forwards;
}
.intro__tag {
  position: absolute;
  bottom: clamp(2rem, 6vh, 3.5rem);
  left: 0; right: 0;
  text-align: center;
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.4);
  opacity: 0;
  animation: introFade 0.8s var(--ease) 1.1s forwards;
}

@keyframes introMark { to { opacity: 1; transform: none; } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introLine { to { transform: scaleX(1); } }

/* Lock scroll while the intro is on screen. */
html.intro-lock, html.intro-lock body { overflow: hidden; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ---------- 23. Page header (interior pages) ---------------------------- */

.phead {
  padding-top: clamp(9rem, 18vh, 13rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  position: relative;
}
.phead__title { margin-block: 1rem 1.2rem; max-width: 18ch; }
.phead__lede { max-width: 52ch; }

/* ---------- 24. Utilities ------------------------------------------------ */

.stack   { display: flex; flex-direction: column; }
.gap-sm  { gap: 0.75rem; }
.gap     { gap: 1.5rem; }
.gap-lg  { gap: 3rem; }
.row     { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.mt      { margin-top: 1.5rem; }
.mt-lg   { margin-top: clamp(2rem, 5vw, 3.5rem); }
.center  { text-align: center; }
.balance { text-wrap: balance; }
.amber   { color: var(--amber); }
.blue    { color: var(--blue); }
