/* ============================================================
   Dr. Abhi Aesthetics — design system
   Palette tuned for a dark-open / light-body editorial flow.
   Spacing is an 8px grid throughout.
   ============================================================ */

:root {
  --jet: #0D0D0D;
  --charcoal: #161616;
  --charcoal-soft: #1E1E1E;
  --gold: #C9A24B;
  --gold-soft: #E8D5A8;
  --gold-ink: #7D6220;
  --beige: #EDE4D3;
  --beige-light: #F7F2E8;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-body: #3A3A3A;
  /* #6A6A6A measured 4.29:1 on --beige, just under AA; #5A5A5A clears it
     while staying clearly lighter than --ink-body */
  --ink-muted: #5A5A5A;
  --text-on-dark: #E8E8E8;
  --text-muted-dark: #9A9A9A;

  /* Surfaces are separate from the palette so dark mode can flip the light
     backgrounds without touching text that sits on permanently-dark sections
     (nav wordmark, CTA title, footer), which also reads --beige-light. */
  --surface: #FFFFFF;
  --surface-sunken: #F7F2E8;
  --surface-raised: #EDE4D3;
  --surface-glass: rgba(255, 255, 255, 0.94);

  /* The hero is no longer hardcoded dark: it follows the theme like
     everything else, so light mode is genuinely light top to bottom. */
  --hero-bg: var(--surface-sunken);
  --hero-fg: var(--ink);
  --hero-muted: var(--ink-muted);
  --hero-line: var(--hairline);
  --trust-bg: var(--surface-raised);
  --trust-fg: var(--ink);
  --dust-peak: 0.3;
  --grain-opacity: 0.02;

  --hairline: rgba(26, 26, 26, 0.12);
  /* Interactive component boundaries need 3:1 (WCAG 1.4.11); the decorative
     hairline above is ~1.3:1 and is only used for dividers and containers. */
  --hairline-strong: rgba(26, 26, 26, 0.48);
  --hairline-dark: rgba(232, 213, 168, 0.16);
  --error: #B3261E;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text: 'General Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* 8px grid */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;
  --s16: 128px;
  --s20: 160px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-fast: 0.2s;
  --t-base: 0.3s;
  --t-slow: 0.6s;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.10);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background-color: var(--surface);
  color: var(--ink-body);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

ul { margin: 0; padding: 0; list-style: none; }

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

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

/* ---------- Layout ---------- */

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

.wrap--narrow { max-width: 880px; }

/* Varied vertical rhythm — sections deliberately do NOT share one padding */
.section { position: relative; }
.section--xs { padding-block: clamp(40px, 6vw, 56px); }
.section--sm { padding-block: clamp(56px, 8vw, 80px); }
.section--md { padding-block: clamp(72px, 10vw, 112px); }
.section--lg { padding-block: clamp(88px, 12vw, 144px); }
.section--xl { padding-block: clamp(104px, 14vw, 176px); }

.section--beige { background-color: var(--surface-sunken); }
.section--white { background-color: var(--surface); }
.section--dark { background-color: var(--jet); color: var(--text-on-dark); }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 var(--s2);
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-ink);
}

.section--dark .eyebrow,
.cta .eyebrow,
.hero .eyebrow { color: var(--gold); }

.h-display {
  font-weight: 300;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.h-section {
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h-sub {
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: var(--s3) 0 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.section--dark .lead { color: var(--text-muted-dark); }

.prose p {
  margin: 0 0 var(--s2);
  max-width: 62ch;
}

.prose p:last-child { margin-bottom: 0; }

/* ---------- Divider ---------- */

.divider {
  display: block;
  width: 72px;
  height: 2px;
  margin: var(--s3) 0;
  overflow: visible;
}

.divider line { stroke: var(--gold); stroke-width: 1; }

.js .divider line {
  stroke-dasharray: 72;
  stroke-dashoffset: 72;
  transition: stroke-dashoffset 1s var(--ease-out);
}

.js .divider.is-visible line { stroke-dashoffset: 0; }

.divider--center { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.btn[data-magnetic] {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    transform 0.45s var(--ease-out);
}

.btn--primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--jet);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--gold-soft);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-lift);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--gold);
  color: var(--jet);
}

.btn--quiet {
  background-color: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  border-color: var(--gold);
  color: var(--gold-ink);
}

.btn--block { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--gold-ink);
  border-bottom: 1px solid transparent;
  transition: gap var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out),
    border-color var(--t-base) ease;
}

/* Chevron is drawn in CSS so the link text stays plain prose */
.link-more::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--t-base) var(--ease-out);
}

.link-more:hover,
.link-more:focus-visible {
  gap: 12px;
  color: var(--ink);
  border-bottom-color: currentColor;
}

.section--dark .link-more { color: var(--gold); }

/* ---------- Grain + gold dust ---------- */

.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dust {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dust span {
  position: absolute;
  bottom: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--gold);
  opacity: 0;
}

.js .dust span { animation: dust-rise linear infinite; }

.dust span:nth-child(1) { left: 8%;  animation-duration: 19s; animation-delay: 0s; }
.dust span:nth-child(2) { left: 21%; animation-duration: 26s; animation-delay: 3s; width: 2px; height: 2px; }
.dust span:nth-child(3) { left: 37%; animation-duration: 22s; animation-delay: 7s; }
.dust span:nth-child(4) { left: 52%; animation-duration: 30s; animation-delay: 1.5s; width: 2px; height: 2px; }
.dust span:nth-child(5) { left: 66%; animation-duration: 24s; animation-delay: 9s; }
.dust span:nth-child(6) { left: 79%; animation-duration: 28s; animation-delay: 5s; width: 4px; height: 4px; }
.dust span:nth-child(7) { left: 91%; animation-duration: 21s; animation-delay: 12s; width: 2px; height: 2px; }

@keyframes dust-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: var(--dust-peak); }
  80%  { opacity: calc(var(--dust-peak) * 0.55); }
  100% { transform: translateY(-78vh) translateX(16px); opacity: 0; }
}

/* ---------- Preloader ---------- */

.preloader { display: none; }

.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--jet);
  animation: preloader-out 0.4s ease 0.6s forwards;
}

.preloader__mark {
  width: 64px;
  height: auto;
  opacity: 0;
  animation: preloader-mark 0.6s var(--ease-out) forwards;
}

@keyframes preloader-mark {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes preloader-out {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- Custom cursor ---------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--t-base) ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background-color: var(--gold);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1px solid var(--gold);
  transition: opacity var(--t-base) ease, width var(--t-base) ease,
    height var(--t-base) ease, margin var(--t-base) ease,
    background-color var(--t-base) ease;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }

body.has-cursor .cursor-ring.is-hovering {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  background-color: rgba(201, 162, 75, 0.10);
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor summary,
body.has-cursor label { cursor: none; }

body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select { cursor: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--t-slow) ease, border-color var(--t-slow) ease;
}

/* The sticky header sits above the hero in flow, so a literally transparent
   bar would expose the white body background behind it. Matching the hero's
   own colour gives the intended seamless dark opening instead. */
[data-theme='dark'] body.has-dark-hero .site-header {
  background-color: var(--charcoal);
  border-bottom-color: transparent;
}

[data-theme='dark'] body.has-dark-hero .site-header .nav__wordmark { color: var(--beige-light); }
[data-theme='dark'] body.has-dark-hero .site-header .nav__link { color: var(--beige); }
[data-theme='dark'] body.has-dark-hero .site-header .nav__link:hover,
[data-theme='dark'] body.has-dark-hero .site-header .nav__link.is-active { color: var(--gold); }
[data-theme='dark'] body.has-dark-hero .site-header .nav__toggle span { background-color: var(--surface-sunken); }

body.has-dark-hero.is-past-hero .site-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--hairline);
}

body.has-dark-hero.is-past-hero .site-header .nav__wordmark { color: var(--ink); }
body.has-dark-hero.is-past-hero .site-header .nav__link { color: var(--ink-body); }
body.has-dark-hero.is-past-hero .site-header .nav__link:hover,
body.has-dark-hero.is-past-hero .site-header .nav__link.is-active { color: var(--gold-ink); }
body.has-dark-hero.is-past-hero .site-header .nav__toggle span { background-color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo { height: 36px; width: auto; }

.nav__wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--t-slow) ease;
}

.nav__menu { display: none; align-items: center; gap: var(--s4); }

.nav__link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-body);
  padding: 6px 0;
  transition: color var(--t-base) ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width var(--t-base) var(--ease-out);
}

.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--s1); flex-shrink: 0; }

.nav__cta {
  display: none;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.6875rem;
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background-color: var(--ink);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) ease,
    background-color var(--t-slow) ease;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__drawer {
  display: grid;
  grid-template-rows: 0fr;
  background-color: var(--surface);
  transition: grid-template-rows var(--t-base) var(--ease-out);
}

[data-theme='dark'] body.has-dark-hero:not(.is-past-hero) .nav__drawer { background-color: var(--jet); }

.nav__drawer.is-open { grid-template-rows: 1fr; }
.nav__drawer-inner { overflow: hidden; }

.nav__drawer .nav__link {
  display: block;
  padding: 16px 0;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}

[data-theme='dark'] body.has-dark-hero:not(.is-past-hero) .nav__drawer .nav__link {
  border-bottom-color: var(--hairline-dark);
}

.nav__drawer .nav__link::after { display: none; }

/* ---------- Mobile booking bar (lives in the sticky header) ---------- */

.bookbar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px var(--gutter);
  background-color: var(--gold);
  color: var(--jet);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Mobile bottom tab bar (5 tabs) ---------- */

.tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--charcoal);
  border-top: 1px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Gold pill sits behind the active tab; JS sets --tab-index per page */
.tabbar::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 25%;
  height: 40px;
  background-color: var(--gold);
  border-radius: 8px;
  transform: translateX(calc(var(--tab-index, 0) * 100%));
  transition: transform 0.3s ease;
  pointer-events: none;
}

.tabbar__item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  text-decoration: none;
  color: var(--text-muted-dark);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  transition: color var(--t-base) ease;
}

.tabbar__item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The pill is gold, so the active label must be ink to stay readable */
.tabbar__item.is-active { color: var(--jet); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--hero-bg);
  color: var(--hero-fg);
  padding-block: clamp(56px, 10vw, 96px) clamp(80px, 12vw, 128px);
  overflow: hidden;
}

.hero > .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}

.hero__title {
  color: var(--hero-fg);
  text-wrap: balance;
}

.hero__lead {
  margin: var(--s3) 0 var(--s5);
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--hero-muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* ---------- Trust strip (sits inside the dark block) ---------- */

.trust {
  position: relative;
  z-index: 1;
  background-color: var(--trust-bg);
  border-top: 1px solid var(--hero-line);
  padding-block: var(--s5);
  /* diagonal hand-off into the light body below */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 32px));
  padding-bottom: calc(var(--s5) + 32px);
}

.trust__grid {
  display: grid;
  gap: var(--s4);
  text-align: center;
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.trust__icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust__label {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--trust-fg);
}

/* ---------- Placeholder frames ---------- */

.frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--s4);
  background-color: var(--surface-sunken);
  border: 1px solid var(--gold);
  overflow: hidden;
}

.frame::before,
.frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  opacity: 0.8;
}

.frame::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.frame::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }

.frame__monogram {
  position: absolute;
  width: 52%;
  max-width: 160px;
  height: auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.08;
}

.frame__label {
  position: relative;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-align: center;
}

.frame--on-dark {
  background-color: var(--charcoal-soft);
  border-color: var(--hairline-dark);
}

.frame--on-dark .frame__label { color: var(--text-muted-dark); }
.frame--on-dark::before,
.frame--on-dark::after { opacity: 0.45; }

/* A frame holding a real photograph: keep the gold edge, drop the watermark
   furniture that only makes sense on an empty placeholder. */
.frame--photo { padding: 0; background-color: var(--surface-raised); }
.frame--photo::before,
.frame--photo::after { display: none; }

.frame--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame--hero { aspect-ratio: 4 / 3; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--tall { aspect-ratio: 3 / 4; }

/* ---------- Pending-content marking ---------- */

/* --ink-muted on --beige measures 4.29:1, just under AA; --ink-body clears it */
.pending {
  font-style: italic;
  color: var(--ink-body);
  background-color: var(--surface-raised);
  box-shadow: inset 0 -1px 0 var(--gold);
  padding: 0 0.25em;
}

.reserved {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--ink-muted);
}

.pending-note {
  margin: 0 0 var(--s4);
  padding: 14px 18px;
  background-color: var(--surface-sunken);
  border-left: 2px solid var(--gold);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-muted);
}

/* ---------- Credential ticker ---------- */

.ticker {
  margin-top: var(--s5);
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding-block: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: var(--s5);
}

.js .ticker__track { animation: ticker-slide 38s linear infinite; }

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.ticker__item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--gold);
  opacity: 0.6;
}

@keyframes ticker-slide {
  to { transform: translateX(-50%); }
}

/* ---------- Split layouts ---------- */

.split { display: grid; gap: var(--s6); align-items: center; }

/* ---------- Specialty cards ---------- */

.cards {
  display: grid;
  gap: var(--s3);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s4);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  transition: transform var(--t-base) var(--ease-out),
    border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}

.card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--s3);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title { font-size: 1.375rem; margin-bottom: var(--s2); }

.card__list { flex: 1; margin-bottom: var(--s3); }

.card__list li {
  padding: 7px 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--hairline);
}

.card__list li:first-child { border-top: 0; }

/* ---------- Feature row ---------- */

.features { display: grid; gap: var(--s5); }

.feature__icon {
  width: 28px;
  height: 28px;
  margin-bottom: var(--s2);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__title { font-size: 1.1875rem; margin-bottom: 6px; }

.feature__text { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }

/* ---------- Instagram callout ---------- */

.ig {
  display: grid;
  gap: var(--s4);
  align-items: center;
  padding: var(--s6) var(--s5);
  background-color: var(--surface-sunken);
  border: 1px solid var(--hairline);
}

.ig__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
}

.ig__handle {
  display: block;
  margin: 6px 0 var(--s2);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- Testimonials ---------- */

.quotes { display: grid; gap: var(--s3); }

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5) var(--s4);
  background-color: var(--surface);
  border: 1px solid var(--gold);
}

.quote__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 0.7;
  color: var(--gold-ink);
}

.quote__slot {
  flex: 1;
  margin: 0;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink-muted);
}

.quote__by {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Closing CTA ---------- */

.cta {
  position: relative;
  isolation: isolate;
  background-color: var(--jet);
  text-align: center;
  overflow: hidden;
}

.cta > .wrap { position: relative; z-index: 1; }

.cta__title {
  color: var(--beige-light);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta__text {
  margin: var(--s3) auto var(--s5);
  max-width: 48ch;
  color: var(--text-muted-dark);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: var(--s10) var(--s3);
  background-color: var(--charcoal);
  color: var(--text-muted-dark);
  font-size: 0.875rem;
}

.site-footer a { text-decoration: none; transition: color var(--t-base) ease; }
.site-footer a:hover { color: var(--gold); }

.footer__grid {
  display: grid;
  gap: var(--s5);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--hairline-dark);
}

.footer__brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer__logo { height: 32px; width: auto; }

.footer__wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--beige-light);
}

.footer__tagline {
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--gold);
}

.footer__heading {
  margin-bottom: var(--s2);
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--beige-light);
}

.footer__list li { padding: 2px 0; }

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.socials { display: flex; gap: 10px; }

.socials a,
.socials span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline-dark);
  border-radius: 50%;
  transition: border-color var(--t-base) ease, color var(--t-base) ease;
}

.socials a:hover { border-color: var(--gold); }
.socials svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.socials .is-placeholder { opacity: 0.3; cursor: default; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding-top: var(--s3);
  text-align: center;
  font-size: 0.75rem;
}

.footer__credit span { color: var(--gold); }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding-block: var(--s6) var(--s8);
  background-color: var(--surface-sunken);
  /* so a #booking arrival clears the sticky header */
  scroll-margin-top: var(--nav-h);
}

.crumbs {
  margin-bottom: var(--s3);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color var(--t-base) ease;
}
.crumbs a:hover { color: var(--gold-ink); }
.crumbs span { color: var(--gold-ink); }

.page-head__title {
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: -0.03em;
}

/* ---------- About editorial ---------- */

.bio + .bio { margin-top: var(--s6); }
.bio__title { font-size: 1.5rem; margin-bottom: var(--s2); }

.lede::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 4.25rem;
  font-weight: 400;
  line-height: 0.74;
  color: var(--gold-ink);
}

.spec-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--hairline);
}

.spec-list li:first-child { border-top: 0; }

.spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 1px;
  background-color: var(--gold);
}

.pullquote {
  max-width: 46rem;
  margin: 0 auto;
  padding-top: var(--s5);
  border-top: 1px solid var(--gold);
  text-align: center;
}

.pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.375rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.pullquote footer {
  margin-top: var(--s3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Services: concern-first entry ---------- */

.concerns { display: grid; gap: var(--s2); margin-top: var(--s5); }

.concern {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 96px;
  padding: var(--s3) var(--s4);
  background-color: var(--surface);
  border: 1px solid var(--hairline-strong);
  text-decoration: none;
  transition: border-color var(--t-base) ease, background-color var(--t-base) ease,
    transform var(--t-base) var(--ease-out);
}

.concern:hover,
.concern:focus-visible {
  border-color: var(--gold);
  background-color: var(--surface-sunken);
}

.concern__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.concern__title {
  display: block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.concern__text {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ---------- Services: category nav + lists ---------- */

.svc-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s1);
  padding-block: var(--s2);
  background-color: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.svc-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-body);
  transition: border-color var(--t-base) ease, color var(--t-base) ease,
    background-color var(--t-base) ease;
}

.svc-nav a:hover,
.svc-nav a.is-active {
  border-color: var(--gold);
  color: var(--gold-ink);
  background-color: var(--surface-sunken);
}

.svc-group { scroll-margin-top: 140px; }
.svc-group + .svc-group { margin-top: var(--s10); }

.svc-list { display: grid; gap: var(--s1); }

.svc {
  background-color: var(--surface);
  border: 1px solid var(--hairline-strong);
  transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}

.svc:hover,
.svc[open] { border-color: var(--gold); box-shadow: var(--shadow-soft); }

.svc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  padding: 16px 20px;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}

.svc summary::-webkit-details-marker { display: none; }

.svc__name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.svc__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.tag {
  padding: 5px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.svc__chev {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: transform var(--t-base) var(--ease-out);
}

.svc[open] .svc__chev { transform: rotate(180deg); }

.svc__body { padding: 0 20px 20px; border-top: 1px solid var(--hairline); }
.svc__body p { margin: 14px 0 10px; font-size: 0.9375rem; color: var(--ink-muted); }

.svc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Before / after compare ---------- */

.compare-wrap { max-width: 860px; margin-inline: auto; text-align: center; }

.compare {
  --pos: 50%;
  position: relative;
  margin-top: var(--s4);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--gold);
  overflow: hidden;
  touch-action: pan-y;
}

.compare__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare__panel--after { background-color: var(--surface-raised); }

.compare__panel--before {
  background-color: var(--charcoal);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__panel--before .frame__monogram { opacity: 0.14; }

.compare__cap {
  position: absolute;
  bottom: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.compare__panel--before .compare__cap { left: 16px; color: var(--gold-soft); }
.compare__panel--after .compare__cap { right: 16px; }

.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background-color: var(--gold);
  pointer-events: none;
}

.compare__knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--jet);
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}

.compare__knob svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 48px;
  height: 100%;
  cursor: ew-resize;
}

.compare__range::-moz-range-thumb {
  width: 48px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: ew-resize;
}

.compare__range:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.has-cursor .compare__range { cursor: none; }

/* ---------- Contact ---------- */

.quickbook { display: grid; gap: var(--s2); margin-top: var(--s4); }

.quickbook__btn {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 64px;
  padding: 16px 20px;
  background-color: var(--jet);
  border: 1px solid var(--gold);
  color: var(--beige-light);
  text-decoration: none;
  transition: background-color var(--t-base) ease, color var(--t-base) ease;
}

.quickbook__btn:hover,
.quickbook__btn:focus-visible { background-color: var(--gold); color: var(--jet); }

.quickbook__btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quickbook__label {
  display: block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

.quickbook__hint { display: block; font-family: var(--font-text); font-size: 0.75rem; opacity: 0.72; }

.contact-list { margin: 0; }

.contact-list > div {
  display: flex;
  gap: 14px;
  padding: var(--s2) 0;
  border-top: 1px solid var(--hairline);
}

.contact-list > div:first-child { border-top: 0; }

.contact-list svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 5px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-list dd { margin: 3px 0 0; color: var(--ink-body); }
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color var(--t-base) ease;
}
.contact-list a:hover { color: var(--gold-ink); }

.map {
  margin-top: var(--s4);
  border: 1px solid var(--hairline);
  overflow: hidden;
  line-height: 0;
}

.map iframe { width: 100%; height: 320px; border: 0; }

/* ---------- Forms ---------- */

.form-card {
  padding: var(--s5) var(--s3);
  background-color: var(--surface-sunken);
  border: 1px solid var(--hairline);
}

.form { display: flex; flex-direction: column; gap: var(--s2); }

.field { display: flex; flex-direction: column; gap: 6px; }

.field__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background-color: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-base) ease;
}

.field__input:focus { outline: none; border-color: var(--gold); }
.field__input:user-invalid { border-color: var(--error); }

textarea.field__input { min-height: 112px; resize: vertical; }

.form__status { margin: 0; font-size: 0.875rem; line-height: 1.6; }
.form__status--error { color: var(--error); }

.form__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: var(--s6) var(--s3);
  text-align: center;
}

.form__done svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form__done p { margin: 0; color: var(--ink-muted); }

.btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }







/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* Clip sits on an inner span added by script.js — a clipped node reports
   zero intersection area and would never trigger its own observer. */
.reveal-text { position: relative; display: inline-block; max-width: 100%; }

.js .reveal-text > span { display: inline-block; clip-path: inset(0 100% 0 0); }

.js .reveal-text::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

.js .reveal-text.is-visible > span { animation: text-wipe 1s var(--ease-in-out) forwards; }
.js .reveal-text.is-visible::after { animation: bar-wipe 1s var(--ease-in-out) forwards; }

@keyframes text-wipe {
  0%, 46% { clip-path: inset(0 100% 0 0); }
  100%    { clip-path: inset(0 0 0 0); }
}

@keyframes bar-wipe {
  0%     { transform: scaleX(0); transform-origin: left center; }
  45%    { transform: scaleX(1); transform-origin: left center; }
  46%    { transform: scaleX(1); transform-origin: right center; }
  100%   { transform: scaleX(0); transform-origin: right center; }
}

/* ============================================================
   Reduced motion — every animation above has a static fallback
   ============================================================ */

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

  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-text > span { clip-path: none; }
  .js .reveal-text::after { display: none; }
  .js .divider line { stroke-dashoffset: 0; }
  .js .ticker__track { animation: none; }
  .js .dust span { animation: none; display: none; }
  .preloader, .js .preloader { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   Mobile (< 768px): bottom tabs replace the hamburger
   ============================================================ */

@media (max-width: 47.99rem) {
  body { padding-bottom: 60px; }

  .tabbar { display: flex; }


  body.is-past-hero .bookbar { display: flex; }

  /* Horizontal scroll-snap for the specialty cards */
  .cards--swipe {
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: var(--s1);
    scrollbar-width: none;
  }

  .cards--swipe::-webkit-scrollbar { display: none; }
  .cards--swipe > * { scroll-snap-align: start; }

  .swipe-hint {
    margin: var(--s2) 0 0;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-align: center;
  }
}

@media (min-width: 48rem) {
  .swipe-hint { display: none; }
}

/* ============================================================
   Tablet (>= 768px)
   ============================================================ */

@media (min-width: 48rem) {
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: inline-flex; }

  .trust__grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .concerns { grid-template-columns: repeat(3, 1fr); }
  .concern { flex-direction: column; align-items: flex-start; min-height: 150px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .ig { grid-template-columns: auto 1fr auto; padding: var(--s8) var(--s6); }
  .form-card { padding: var(--s6); }
  .quickbook { grid-template-columns: repeat(3, 1fr); }
  .quickbook__btn { flex-direction: column; align-items: flex-start; min-height: 128px; }
  .map iframe { height: 360px; }
  .trust { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 56px)); padding-bottom: calc(var(--s5) + 56px); }
}

/* ============================================================
   Desktop (>= 1024px)
   ============================================================ */

@media (min-width: 64rem) {
  :root { --nav-h: 80px; }

  .nav__menu { display: flex; }
  .nav__toggle, .nav__drawer { display: none; }

  .hero { padding-block: clamp(96px, 9vw, 136px) clamp(112px, 11vw, 160px); }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s10); }

  .split { grid-template-columns: 1fr 1fr; gap: var(--s10); }

  /* Editorial asymmetry — image column deliberately narrower */
  .split--editorial {
    grid-template-columns: 0.38fr 0.62fr;
    gap: var(--s10);
    align-items: start;
  }

  .split--editorial > :first-child { position: sticky; top: calc(var(--nav-h) + 32px); }

  .cards { grid-template-columns: repeat(3, 1fr); }

  /* Stagger breaks the templated three-up rhythm */
  .cards--stagger > :nth-child(2) { transform: translateY(40px); }
  .cards--stagger > :nth-child(3) { transform: translateY(16px); }
  .cards--stagger > :nth-child(1):hover,
  .cards--stagger > :nth-child(2):hover,
  .cards--stagger > :nth-child(3):hover { box-shadow: var(--shadow-lift); }
  .cards--stagger > :nth-child(2):hover { transform: translateY(34px); }
  .cards--stagger > :nth-child(3):hover { transform: translateY(10px); }
  .cards--stagger > :nth-child(1):hover { transform: translateY(-6px); }

  .features { grid-template-columns: repeat(4, 1fr); }

  .svc-group {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: var(--s8);
    align-items: start;
  }

  .svc-group__head { position: sticky; top: calc(var(--nav-h) + 72px); }

  #hair.svc-group { grid-template-columns: 0.5fr 1.5fr; }

  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s10); align-items: start; }
}

/* ---------- Newly-opened block (stands in for testimonials) ---------- */

.newly-opened {
  display: grid;
  gap: var(--s5);
  align-items: center;
}

.newly-opened__photo {
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

@media (min-width: 48rem) {
  .newly-opened { grid-template-columns: 0.85fr 1.15fr; gap: var(--s8); }
  .newly-opened__photo { aspect-ratio: 3 / 4; max-height: none; }
}

/* ---------- Reserved-content lists (awaiting client confirmation) ---------- */

.reserved-intro {
  margin: 0 0 var(--s2);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.spec-list--reserved li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s1);
  color: var(--ink);
}

.spec-list--reserved .reserved {
  margin-top: 0;
  padding: 2px 10px;
  background-color: var(--surface-sunken);
  border: 1px dashed var(--gold);
  border-radius: 999px;
  font-size: 0.75rem;
  font-style: normal;
  white-space: nowrap;
}

/* ---------- Page photographs ---------- */

.about__room {
  margin-top: var(--s6);
  aspect-ratio: 4 / 3;
}

.services__room {
  margin-bottom: var(--s6);
  aspect-ratio: 16 / 9;
  max-height: 360px;
}

.contact__photo {
  margin-top: var(--s4);
  aspect-ratio: 4 / 3;
}

.pullquote .reserved { display: block; margin-top: 6px; }

/* .reserved is tuned for light surfaces; on the dark footer it needs the
   dark-surface muted tone (6.4:1) instead of --ink-muted (2.6:1). */
.site-footer .reserved { color: var(--text-muted-dark); }

/* ============================================================
   Dark mode — flips light surfaces only. Permanently-dark
   sections (hero, CTA band, footer) are already correct.
   ============================================================ */

[data-theme='dark'] {
  --hero-bg: var(--charcoal);
  --hero-fg: #FFFFFF;
  --hero-muted: var(--text-muted-dark);
  --hero-line: var(--hairline-dark);
  --trust-bg: var(--jet);
  --trust-fg: var(--beige-light);
  --dust-peak: 0.55;
  --grain-opacity: 0.035;
  --surface: #0D0D0D;
  --surface-sunken: #1E1E1E;
  --surface-raised: #161616;
  --surface-glass: rgba(13, 13, 13, 0.82);
  --ink: #E8E8E8;
  --ink-body: #CCCCCC;
  --ink-muted: #9A9A9A;
  --gold-ink: var(--gold);
  --hairline: rgba(232, 213, 168, 0.16);
  --hairline-strong: rgba(232, 213, 168, 0.34);
}

.js body,
.js .section,
.js .page-head,
.js .card,
.js .svc,
.js .quote,
.js .form-card,
.js .frame {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ---------- 1. Scroll progress ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0;
  height: 3px;
  background-color: var(--gold);
  pointer-events: none;
}

/* ---------- 2. Page transitions ---------- */

/* One-shot animations rather than a hidden resting state: if a class is ever
   missed, or JS dies mid-navigation, the page is still fully visible. */

.js body.page-enter { animation: page-in 0.3s ease both; }
.js body.page-leaving { animation: page-out 0.25s ease both; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes page-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ---------- 3. Theme toggle button ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }

/* ---------- 4. Blur-glass navbar ---------- */

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background-color: var(--surface-glass);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
  }

  [data-theme='dark'] body.has-dark-hero .site-header {
    background-color: rgba(13, 13, 13, 0.7);
  }

  body.has-dark-hero.is-past-hero .site-header {
    background-color: var(--surface-glass);
  }

  [data-theme='dark'] .site-header,
  body.has-dark-hero.is-past-hero .site-header {
    background-color: rgba(13, 13, 13, 0.7);
  }
}

/* In dark mode the header text follows the dark treatment on every page */
[data-theme='dark'] .nav__wordmark { color: var(--beige-light); }
[data-theme='dark'] .nav__link { color: var(--beige); }
[data-theme='dark'] .nav__link:hover,
[data-theme='dark'] .nav__link.is-active { color: var(--gold); }
[data-theme='dark'] .nav__toggle span { background-color: var(--beige-light); }
[data-theme='dark'] .nav__drawer { background-color: var(--surface); }

/* ---------- 5. Scroll to top ---------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 94;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.to-top::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
}

.to-top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }

.to-top:hover,
.to-top:focus-visible {
  background-color: var(--gold);
  color: var(--jet);
  transform: scale(1.1);
}

@media (max-width: 47.99rem) {
  .to-top {
    right: 16px;
    /* the social rail is gone; this now only has to clear the 60px tab bar */
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: 36px;
    height: 36px;
  }
  .to-top::after { inset: -4px; }
}

/* ---------- 6. Image reveal wipe ---------- */

.js .frame--photo { position: relative; overflow: hidden; }

.js .frame--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: var(--gold);
  transform: translateX(0);
  transition: transform 0.8s ease-in-out;
  pointer-events: none;
}

.js .frame--photo img {
  transform: scale(1.05);
  transition: transform 0.8s ease-in-out;
}

.js .frame--photo.revealed::after { transform: translateX(101%); }
.js .frame--photo.revealed img { transform: scale(1); }

/* ---------- 7. Cursor glow (replaces the dot + ring) ---------- */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle closest-side, rgba(201, 162, 75, 0.06) 0%, rgba(201, 162, 75, 0) 70%);
}

.cursor-glow.is-on { opacity: 1; }
.cursor-glow.is-light { opacity: 0.33; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .js body.page-enter,
  .js body.page-leaving {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js .frame--photo::after { display: none; }
  .js .frame--photo img { transform: none; transition: none; }
  .cursor-glow { display: none; }
  .to-top { transition: none; }
}

/* ---------- Navbar social icons ---------- */

.nav__social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  transition: opacity var(--t-base) ease, transform var(--t-base) ease;
}

.nav__social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__social a:hover,
.nav__social a:focus-visible { opacity: 0.75; transform: scale(1.1); }

/* ---------- Theme pill ---------- */

.theme-pill {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  width: 56px;
  height: 28px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--gold);
  border-radius: 14px;
  cursor: pointer;
}

.theme-pill__dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--gold);
  transition: transform 0.3s ease;
}

[data-theme='dark'] .theme-pill { background-color: rgba(232, 213, 168, 0.06); }
[data-theme='dark'] .theme-pill__dot { transform: translateX(28px); }

.theme-pill__icon {
  position: absolute;
  display: inline-flex;
  color: var(--gold-ink);
  opacity: 0.75;
  pointer-events: none;
}

.theme-pill__icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Light: dot sits left, the moon on the right shows what you switch to.
   Dark: dot slides right, the sun on the left does the same. */
.theme-pill__icon--moon { right: 7px; }
.theme-pill__icon--sun { left: 7px; display: none; }

[data-theme='dark'] .theme-pill__icon--moon { display: none; }
[data-theme='dark'] .theme-pill__icon--sun { display: inline-flex; color: var(--gold); }

@media (max-width: 47.99rem) {
  .nav__social { gap: 8px; }
  .nav__social a { width: 36px; height: 36px; }
  .nav__social svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-pill__dot { transition: none; }
  .nav__social a:hover { transform: none; }
}

/* ---------- Narrow phones: keep the header on one row ---------- */

@media (max-width: 30rem) {
  /* wordmark yields so the social icons, pill and logo always fit the gutter */
  .nav__wordmark { display: none; }
  .nav__social { gap: 6px; }
  .nav__social a { width: 32px; height: 32px; }
}

/* The actions cluster must never bleed past the wrap's gutter */
.nav__actions { min-width: 0; }
