/* ==========================================================================
   Bright Smile Dental
   --------------------------------------------------------------------------
   One organising idea: every boundary between dark and light on this site is
   the same curve as the logo mark — a smile. The page opens as one long teal
   night (hero + marquee + numbers) and breaks into paper at the services
   section. Apricot appears only where the brand is being warm at you.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */

:root {
  /* Paper side */
  --paper:        #F7F4EE;
  --surface:      #FFFFFF;
  --tint:         #ECF6F4;
  --mint:         #DCEFEC;
  --line:         #E4DED2;
  --line-soft:    #EEE9DE;

  /* Night side */
  --night:        #08201D;
  --night-2:      #0B322D;
  --teal:         #0C5F59;
  --teal-bright:  #158A7E;

  /* Ink */
  --ink:          #0F2321;
  --ink-soft:     #4C605D;
  --ink-faint:    #7C8D8A;

  /* Accent — used sparingly, and never as body text on paper */
  --apricot:      #EE9E6E;
  --apricot-ink:  #A8511B;

  --danger:       #B4451F;

  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --header-h:     4.75rem;
  --wrap:         76rem;
  --gutter:       clamp(1.15rem, 4.5vw, 2.75rem);
  --radius:       1.25rem;
  --radius-lg:    2rem;

  /* One easing for everything that moves. Slow out, no bounce — the whole
     brief is "this will not be sudden". */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm:    0 1px 2px rgba(15, 35, 33, .05), 0 6px 18px -10px rgba(15, 35, 33, .18);
  --shadow-md:    0 2px 4px rgba(15, 35, 33, .04), 0 18px 40px -20px rgba(15, 35, 33, .30);
  --shadow-lg:    0 30px 70px -34px rgba(8, 32, 29, .45);
}

/* ---- Reset --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Locks the page while the preloader runs, and while the mobile menu is open */
html.cine-loading, body.cine-loading,
html.is-locked, body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }
/* Balance headline ragging — the hero sets its own lines, so it opts out. */
.h1, .h2, .h3 { text-wrap: balance; }
.hero-title, .hero-title .reveal-line { text-wrap: wrap; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2.5px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--apricot); color: var(--night); }

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

.h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(1.95rem, 4.2vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 0.55rem;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--arc-tick) no-repeat center / contain;
  mask: var(--arc-tick) no-repeat center / contain;
}
.eyebrow--light { color: var(--apricot); }

.text-muted { color: var(--ink-soft); }

/* The smile tick used by every eyebrow — the logo curve at 12px */
:root {
  --arc-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M3 3 Q16 14 29 3' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

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

.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--top { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5.5rem)); }
.section--flush { padding-top: 0; }
.section--tint { background: var(--tint); }

/* Measure is set on each element in its own font — a `ch` of Bricolage at
   5rem is nothing like a `ch` of Figtree at 1rem, so a shared container
   width wraps the display type far too early. */
.section-head .h1,
.section-head .h2 { margin-top: 0.9rem; }
.section-head .h1 { max-width: 15ch; }
.section-head .h2 { max-width: 19ch; }
.section-head .lead { margin-top: 1.15rem; max-width: 50ch; }
.section-head.narrow .lead { max-width: 44ch; }

/* Left rail, not centred — the page reads down one edge */
.column { max-width: 52rem; margin-top: clamp(2.25rem, 4vw, 3.25rem); }

.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.stack-gap { margin-top: 1.4rem; }

/* ---- Views (the site is one document; each view behaves as a page) -------- */

.view { display: none; }
.view.is-active { display: block; }

/* ---- Skip link ----------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--teal);
  color: #fff;
  border-radius: 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background-color 0.35s var(--ease-soft), color 0.35s var(--ease-soft);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, .16);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-arrow {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(0.22em); }

.btn-lg { padding: 1.02rem 1.75rem; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--teal);
  box-shadow: inset 0 0 0 1.5px rgba(12, 95, 89, .3);
}
.btn-ghost::before { background: var(--mint); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }

.btn-cine-ghost {
  --btn-bg: transparent;
  --btn-fg: #F1EDE4;
  box-shadow: inset 0 0 0 1.5px rgba(241, 237, 228, .28);
  backdrop-filter: blur(2px);
}
.btn-cine-ghost::before { background: rgba(241, 237, 228, .12); }
.btn-cine-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(241, 237, 228, .6); }

/* On dark ground the primary action is apricot — the accent's one big moment */
.night .btn-primary,
.cta-band .btn-primary {
  --btn-bg: var(--apricot);
  --btn-fg: #22120A;
}
.night .btn-primary::before,
.cta-band .btn-primary::before { background: #fff; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft), backdrop-filter 0.5s;
}
.site-header.is-stuck {
  background: rgba(247, 244, 238, .88);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-right: auto;
}
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.72rem;
  background: var(--teal);
  color: #fff;
  transition: transform 0.5s var(--ease);
}
.brand-mark svg { width: 84%; height: 84%; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-word { display: flex; flex-direction: column; }
.brand-word small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

/* Over the hero the header sits on night, so it inverts */
.is-over-night .brand { color: #F4EFE6; }
.is-over-night .brand-mark { background: rgba(244, 239, 230, .12); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .25); }
.is-over-night .brand-word small { color: rgba(244, 239, 230, .55); }
.is-over-night .nav-links a { color: rgba(244, 239, 230, .82); }
.is-over-night .nav-links a::after { background: var(--apricot); }
.is-over-night .nav-links a[aria-current='page'] { color: #fff; }
.is-over-night .nav-toggle { color: #F4EFE6; }
.is-over-night .nav-cta { --btn-bg: var(--apricot); --btn-fg: #22120A; }

.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.9rem);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding-block: 0.4rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-soft);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.42rem;
  background: var(--teal);
  -webkit-mask: var(--arc-tick) no-repeat center / 100% 100%;
  mask: var(--arc-tick) no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current='page']::after { transform: scaleX(1); }
.nav-links a[aria-current='page'] { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta { padding: 0.62rem 1.1rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.8rem;
  color: var(--ink);
}
.nav-toggle .bars { display: block; width: 1.35rem; height: 0.7rem; position: relative; }
.nav-toggle .bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.25s;
}
.nav-toggle .bars i:first-child { top: 0; }
.nav-toggle .bars i:last-child { bottom: 0; }
.nav-toggle[aria-expanded='true'] .bars i:first-child { transform: translateY(0.34rem) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars i:last-child { transform: translateY(-0.34rem) rotate(-45deg); }

/* ---- Mobile menu --------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  padding: calc(var(--header-h) + 1.75rem) var(--gutter) 2.5rem;
  background: var(--night);
  color: #F1EDE4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }

.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(241, 237, 228, .13);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu.is-open .m-link { opacity: 1; transform: none; }
.mobile-menu.is-open .m-link:nth-child(1) { transition-delay: 0.14s; }
.mobile-menu.is-open .m-link:nth-child(2) { transition-delay: 0.20s; }
.mobile-menu.is-open .m-link:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu.is-open .m-link:nth-child(4) { transition-delay: 0.32s; }
.m-link svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--apricot); }
.m-link[aria-current='page'] { color: var(--apricot); }

.m-cta { margin-top: 1.9rem; }
.mobile-menu .m-cta { --btn-bg: var(--apricot); --btn-fg: #22120A; }

.m-emergency {
  margin-top: 1.4rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(241, 237, 228, .6);
}
.m-emergency a { color: #F1EDE4; border-bottom: 1px solid rgba(241, 237, 228, .35); }

/* ==========================================================================
   The night — hero, marquee, numbers, and the smile edge that ends it
   ========================================================================== */

.night {
  position: relative;
  background: var(--night);
  color: #EFEAE0;
}

.night-edge {
  position: relative;
  height: clamp(3rem, 7vw, 7rem);
  margin-top: -1px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q720 120 1440 0 L1440 120 L0 120 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q720 120 1440 0 L1440 120 L0 120 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

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

.hero-cine {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + 3rem) clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}

/* The operatory lamp, reclaimed: a warm pool of light breathing at a calm
   rate rather than an interrogation beam. Falls back to this gradient. */
.hero-cine::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 52% at 50% 44%, rgba(238, 158, 110, .13), transparent 70%),
    radial-gradient(90% 70% at 50% 100%, rgba(21, 138, 126, .20), transparent 65%),
    linear-gradient(160deg, var(--night) 10%, #0A2A26 55%, var(--night-2) 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
}
.hero-canvas.is-live { opacity: 1; }

.hero-cine-inner { position: relative; z-index: 2; }

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(3rem, 9.4vw, 8rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: #FBF8F2;
  max-width: 15ch;
}
.hero-title .reveal-line { display: block; }
.hero-title em {
  font-style: normal;
  position: relative;
  color: var(--apricot);
}

/* The signature: the headline's last two words are underscored by the logo
   curve, drawn by hand after the lines have settled. */
.drawn::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: -0.06em;
  height: 0.16em;
  background: var(--apricot);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M4 5 Q100 25 196 5' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M4 5 Q100 25 196 5' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease) 0.9s;
}
.is-drawn .drawn::after { transform: scaleX(1); }

.hero-sub {
  margin-top: 1.6rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.55;
  color: rgba(239, 234, 224, .78);
}

.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .64);
}
.hero-meta span { display: flex; align-items: center; gap: 0.55rem; }
.hero-meta span::before {
  content: '';
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--apricot);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .68);
  transition: color 0.4s var(--ease-soft);
}
.scroll-cue:hover { color: #EFEAE0; }
.scroll-cue .mouse {
  width: 1.35rem;
  height: 2.15rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(239, 234, 224, .35);
  position: relative;
}
.scroll-cue .mouse::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.42rem;
  width: 0.22rem;
  height: 0.42rem;
  margin-left: -0.11rem;
  border-radius: 999px;
  background: var(--apricot);
  animation: wheel 2.4s var(--ease-soft) infinite;
}
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(0.75rem); opacity: 0; }
}

/* ---- Marquee ------------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(239, 234, 224, .12);
  padding-block: clamp(0.85rem, 1.6vw, 1.15rem);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  padding-right: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(239, 234, 224, .62);
}
.marquee-track .dot {
  font-style: normal;
  color: var(--apricot);
  padding-inline: 1.6rem;
  font-size: 0.62em;
}
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---- Numbers ------------------------------------------------------------- */

.section--onnight { padding-bottom: clamp(3rem, 6vw, 5rem); }
.section--onnight .eyebrow { color: var(--apricot); }
.section--onnight .h2 { color: #FBF8F2; max-width: 22ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}
.stat { border-top: 1px solid rgba(239, 234, 224, .16); padding-top: 1.1rem; }
.stat .count {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #FBF8F2;
  font-variant-numeric: tabular-nums;
}
.stat p {
  margin-top: 0.7rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(239, 234, 224, .62);
}
.stats-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(239, 234, 224, .58);
  max-width: 62ch;
}

/* ==========================================================================
   Paper side
   ========================================================================== */

/* ---- Service cards ------------------------------------------------------- */

.cards { margin-top: clamp(2rem, 3.5vw, 2.75rem); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.4s var(--ease-soft);
}
.card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.4rem;
  background: var(--teal);
  -webkit-mask: var(--arc-tick) no-repeat center / 100% 100%;
  mask: var(--arc-tick) no-repeat center / 100% 100%;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
a.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
a.card:hover::after { transform: scaleX(1); }
.card .icon { width: 3.1rem; height: 3.1rem; border-radius: 0.9rem; }
.card .h3 { margin-top: 1.1rem; }
.card p { margin-top: 0.55rem; color: var(--ink-soft); font-size: 0.97rem; }
.card.is-static .h3 + p { margin-top: 0.5rem; }

.card-link {
  margin-top: auto;
  padding-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
}
.card-link svg { width: 0.85rem; height: 0.85rem; transition: transform 0.45s var(--ease); }
a.card:hover .card-link svg { transform: translateX(0.25rem); }

/* ---- Trust strip --------------------------------------------------------- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem;
  background: var(--paper);
}
.trust-item svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--teal); margin-top: 0.15rem; }
.trust-item strong { display: block; font-weight: 600; font-size: 0.98rem; }
.trust-item span { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }

/* ---- Why ----------------------------------------------------------------- */

.why {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.why-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-item img { width: 3.5rem; height: 3.5rem; flex: none; }
.why-item p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ==========================================================================
   Price list — the emotional core of the brand, so it is set as a document:
   mono figures, tabular alignment, hairline rules. Nothing decorative.
   ========================================================================== */

.pricelist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1.5rem;
  padding: 1.4rem clamp(1.1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.4s var(--ease-soft);
}
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: #FCFAF6; }

.p-name {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.p-amount {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--teal);
  white-space: nowrap;
}
.p-note {
  grid-column: 1 / -1;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

.price-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  white-space: nowrap;
}

.price-row.is-feature { background: var(--tint); }
.price-row.is-feature:hover { background: #E5F2EF; }

.price-row.is-custom { background: #FBF9F4; }
.price-row.is-custom .p-amount {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.32rem;
}

/* ---- Note card ----------------------------------------------------------- */

.note-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.4rem;
  padding: 1.25rem 1.4rem;
  background: var(--mint);
  border-radius: var(--radius);
  color: #0B3E3A;
}
.note-card svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--teal); margin-top: 0.1rem; }
.note-card p { font-size: 0.97rem; line-height: 1.6; }
.note-card.is-wide { margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 52rem; }

/* ---- Dentists ------------------------------------------------------------
   No portraits: the roster is set like the price list, because credentials
   are a record and that is the vocabulary this site already uses for records.
   -------------------------------------------------------------------------- */

.roster {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.25rem clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.35rem, 2.6vw, 1.9rem) clamp(1.1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.4s var(--ease-soft);
}
.roster-row:last-child { border-bottom: 0; }
.roster-row:hover { background: #FCFAF6; }

.roster-id { display: flex; gap: 0.95rem; align-items: flex-start; }

.monogram {
  flex: none;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--mint);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dentist-role {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
}
.dentist-quals { margin-top: 0.35rem; font-size: 0.9rem; color: var(--ink-faint); }

.roster-body p { font-size: 1rem; color: var(--ink-soft); }

.chips { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: var(--tint);
  color: #0B3E3A;
}

/* ---- How a visit goes ----------------------------------------------------
   The only numbered thing on the site, because it is the only real sequence.
   -------------------------------------------------------------------------- */

.visit {
  position: relative;
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.visit-step { position: relative; padding-top: 2.9rem; }
/* the rail each step hangs from */
.visit-step::before {
  content: '';
  position: absolute;
  top: 1.15rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.visit-step:last-child::before { right: 40%; }

.visit-n {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.visit-step p { margin-top: 0.5rem; font-size: 0.97rem; color: var(--ink-soft); }

/* ---- Reviews -------------------------------------------------------------- */

.rating-bar {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem clamp(1.15rem, 2.5vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rating-score { display: flex; align-items: center; gap: 1rem; }
.rating-score strong {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.rating-score span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.stars { display: flex; gap: 0.15rem; color: var(--apricot); }
.stars svg { width: 1.05rem; height: 1.05rem; }

.reviews {
  margin-top: 1rem;
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.review {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.45rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review blockquote {
  margin: 0.85rem 0 0;
  font-size: 1.01rem;
  line-height: 1.6;
  color: var(--ink);
}
.review blockquote::before { content: '\201C'; }
.review blockquote::after  { content: '\201D'; }

.review figcaption {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
/* The smile again, this time separating a patient from their words */
.review figcaption::before {
  content: '';
  width: 1.9rem;
  height: 0.6rem;
  margin-bottom: 0.55rem;
  background: var(--mint);
  -webkit-mask: var(--arc-tick) no-repeat center / contain;
  mask: var(--arc-tick) no-repeat center / contain;
}
.r-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.r-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.reviews--teaser { margin-top: clamp(2rem, 3.5vw, 2.75rem); }
.section--tint .review { border-color: transparent; }

.reviews-more {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.rating-inline strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---- FAQ ----------------------------------------------------------------- */

.faq {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 52rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem clamp(1.1rem, 2.5vw, 1.6rem);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: background-color 0.35s var(--ease-soft);
}
.faq-q:hover { background: #FCFAF6; }

.plus {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--tint);
  transition: background-color 0.4s var(--ease-soft), transform 0.5s var(--ease);
}
.plus i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 2px;
  margin: -1px 0 0 -0.35rem;
  border-radius: 2px;
  background: var(--teal);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.plus i:last-child { transform: rotate(90deg); }
.faq-q[aria-expanded='true'] .plus { background: var(--teal); transform: rotate(90deg); }
.faq-q[aria-expanded='true'] .plus i { background: #fff; }
.faq-q[aria-expanded='true'] .plus i:last-child { opacity: 0; }

.faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.5s var(--ease);
}
.faq-a-inner {
  padding: 0 clamp(1.1rem, 2.5vw, 1.6rem) 1.4rem;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.99rem;
  line-height: 1.65;
}

/* ---- CTA band ------------------------------------------------------------ */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6.5vw, 5rem) clamp(1.5rem, 5vw, 4rem) clamp(2.75rem, 5.5vw, 4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--teal) 0%, #0A4A46 55%, var(--night-2) 100%);
  color: #EFEAE0;
  text-align: center;
}
/* Paper dips into the band along the same smile curve */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(2.25rem, 5vw, 4.5rem);
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L1440 0 Q720 120 0 0 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L1440 0 Q720 120 0 0 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.cta-band .h2 { max-width: 20ch; margin-inline: auto; color: #FBF8F2; }
.cta-band p {
  margin: 0.95rem auto 0;
  max-width: 50ch;
  color: rgba(239, 234, 224, .76);
  font-size: 1.02rem;
}
.cta-band .btn { margin-top: 1.9rem; }

/* ==========================================================================
   Booking
   ========================================================================== */

.contact-grid {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}

.form-card {
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.privacy-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1.05rem;
  margin-bottom: 1.6rem;
  border-radius: 0.9rem;
  background: var(--tint);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #0B3E3A;
}
.privacy-note svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--teal); margin-top: 0.12rem; }

.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.form-row.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.field { display: flex; flex-direction: column; }

label {
  font-size: 0.87rem;
  font-weight: 600;
  margin-bottom: 0.42rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.opt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.input, .select, .textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease-soft), background-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.textarea { min-height: 6.5rem; resize: vertical; }
.select { appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234C605D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(21, 138, 126, .13);
}
.input[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--danger); }

.err {
  min-height: 0;
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 0.35rem;
  display: none;
}
.err.is-shown { display: block; }

.form-foot {
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.form-success { text-align: center; padding: 2rem 0 1rem; }
.form-success[hidden] { display: none; }
.tick {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
}
.tick svg { width: 1.6rem; height: 1.6rem; }
.form-success p { max-width: 40ch; margin: 0.6rem auto 0; color: var(--ink-soft); font-size: 0.98rem; }

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

.info-card {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card + .info-card,
.info-card + .map-frame,
aside .map-frame { margin-top: 0.9rem; }

.info-card.emergency {
  background: linear-gradient(150deg, var(--teal) 0%, #0A4A46 100%);
  border-color: transparent;
  color: #EFEAE0;
}
.badge-e {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--apricot);
}
.badge-e svg { width: 0.95rem; height: 0.95rem; }
.phone {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #FBF8F2;
}
.phone a { border-bottom: 2px solid transparent; transition: border-color 0.35s var(--ease-soft); }
.phone a:hover { border-color: var(--apricot); }
.emergency-note { margin-top: 0.5rem; font-size: 0.93rem; line-height: 1.55; color: rgba(239, 234, 224, .74); }

.info-row { display: flex; gap: 0.8rem; align-items: flex-start; padding-block: 0.55rem; }
.info-row + .info-row { border-top: 1px solid var(--line-soft); }
.info-row > svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--teal); margin-top: 0.28rem; }
.info-row .k {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.info-row .v { font-size: 0.97rem; line-height: 1.5; margin-top: 0.15rem; }
.info-row .v a { border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.info-row .v a:hover { border-color: var(--teal); }

.hours { width: 100%; }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.22rem;
  font-size: 0.95rem;
}
.hours-row span:first-child { font-weight: 600; }
.hours-row span:last-child { font-family: var(--font-mono); font-size: 0.87rem; color: var(--ink-soft); }

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame img { width: 100%; }
.map-pin-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.map-pin-label svg { width: 0.9rem; height: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--night);
  color: rgba(239, 234, 224, .68);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
  font-size: 0.95rem;
}
.site-footer .brand { color: #F4EFE6; margin-right: 0; }
.site-footer .brand-mark { background: rgba(244, 239, 230, .1); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .22); }
.site-footer .brand-word small { color: rgba(244, 239, 230, .5); }

.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
}
.footer-blurb { margin-top: 1rem; max-width: 34ch; line-height: 1.6; }

.footer-disclaimer {
  margin-top: 1.25rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.75rem;
  background: rgba(239, 234, 224, .06);
  border: 1px solid rgba(239, 234, 224, .1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(239, 234, 224, .64);
  max-width: 42ch;
}
.footer-disclaimer strong { color: rgba(239, 234, 224, .8); font-weight: 500; }

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--apricot);
  margin-bottom: 0.9rem;
}
.footer-links li { padding-block: 0.28rem; line-height: 1.5; }
.footer-links a { transition: color 0.3s var(--ease-soft); }
.footer-links a:hover { color: #F4EFE6; }

.footer-note {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(239, 234, 224, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(239, 234, 224, .58);
}
.footer-note a { color: rgba(239, 234, 224, .7); }

/* ==========================================================================
   The cinematic layer
   ========================================================================== */

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

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--night);
  color: #EFEAE0;
  transition: clip-path 1s var(--ease), opacity 0.4s linear 0.6s;
}
.preloader.is-done {
  /* Lifts along the smile curve, the same edge that ends the night */
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
}
.pre-inner { width: min(22rem, 78vw); text-align: center; }

.pre-mark { width: 4.5rem; margin: 0 auto 1.25rem; }
.pre-mark svg { width: 100%; }
.pre-mark .smile {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 1.1s var(--ease) forwards;
}
.pre-mark .dot { opacity: 0; animation: pop 0.5s var(--ease) 0.75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.pre-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pre-bar {
  margin-top: 1.35rem;
  height: 2px;
  border-radius: 2px;
  background: rgba(239, 234, 224, .16);
  overflow: hidden;
}
.pre-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--apricot);
  transition: width 0.35s var(--ease-soft);
}
.pre-count {
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .58);
}

/* ---- View wipe ----------------------------------------------------------- */

.view-wipe {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  pointer-events: none;
}
.view-wipe span {
  flex: 1;
  background: var(--night);
  transform: scaleY(0);
  transform-origin: bottom;
}
.view-wipe.is-in span { animation: wipe-in 0.42s var(--ease-soft) forwards; }
.view-wipe.is-out span { animation: wipe-out 0.5s var(--ease) forwards; }
.view-wipe span:nth-child(2) { animation-delay: 0.045s; }
.view-wipe span:nth-child(3) { animation-delay: 0.09s; }
.view-wipe span:nth-child(4) { animation-delay: 0.135s; }
.view-wipe span:nth-child(5) { animation-delay: 0.18s; }
@keyframes wipe-in  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wipe-out { from { transform: scaleY(1); transform-origin: top; } to { transform: scaleY(0); transform-origin: top; } }

/* ---- Scroll progress ----------------------------------------------------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 95;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--apricot);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---- Grain --------------------------------------------------------------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 110;
  pointer-events: none;
  opacity: .04;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(-3%, 2%); }
  40%      { transform: translate(2%, -3%); }
  60%      { transform: translate(-2%, -2%); }
  80%      { transform: translate(3%, 1%); }
}

/* ---- Cursor -------------------------------------------------------------- */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--apricot);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  box-shadow: inset 0 0 0 1.5px rgba(12, 95, 89, .45);
  transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), box-shadow 0.35s var(--ease-soft);
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-hot .cursor-ring {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  box-shadow: inset 0 0 0 1.5px var(--apricot);
}
body.on-night .cursor-ring { box-shadow: inset 0 0 0 1.5px rgba(239, 234, 224, .45); }
body.on-night.cursor-hot .cursor-ring { box-shadow: inset 0 0 0 1.5px var(--apricot); }
body.has-cursor a, body.has-cursor button { cursor: none; }
body.has-cursor { cursor: none; }

/* ==========================================================================
   Reveals
   ========================================================================== */

.reveal, .reveal-fade {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in, .reveal-fade.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.09s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.27s; }

.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}
.reveal-line.is-in > span { transform: none; }

/* The eyebrow keeps its arc tick even while it is a masked line */
.eyebrow.reveal-line { display: flex; }

/* Room under the hero lines so the hand-drawn arc isn't cropped by the mask.
   The negative margin cancels the padding, so leading is unchanged. */
.hero-title .reveal-line { padding-bottom: 0.26em; margin-bottom: -0.26em; }
.hero-title .reveal-line:nth-child(1) > span { transition-delay: 0.06s; }
.hero-title .reveal-line:nth-child(2) > span { transition-delay: 0.16s; }
.hero-title .reveal-line:nth-child(3) > span { transition-delay: 0.26s; }

/* Arc underline on inner-page headlines */
.arc-underline { position: relative; white-space: nowrap; }
.arc-underline::after {
  content: '';
  position: absolute;
  left: -0.03em;
  right: -0.03em;
  bottom: -0.1em;
  height: 0.14em;
  background: var(--apricot);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M4 5 Q100 25 196 5' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M4 5 Q100 25 196 5' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.95s var(--ease) 0.35s;
}
.reveal.is-in .arc-underline::after { transform: scaleX(1); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 62rem) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 52rem) {
  :root { --header-h: 4.25rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .hero-cine { align-items: center; }
  .scroll-cue { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; }
  .roster-row { grid-template-columns: 1fr; }
  .visit-step::before { display: none; }
  .p-amount { grid-column: 1; grid-row: auto; order: 2; }
  .p-note { order: 3; }
  .price-row.is-custom .p-amount { padding-top: 0; }
}

@media (max-width: 30rem) {
  .brand-word small { display: none; }
  .hero-meta { gap: 0.4rem 1rem; font-size: 0.68rem; }
  .why-item { flex-direction: column; gap: 0.85rem; }
}

/* Coarse pointers get no custom cursor and no hover-lift */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

/* ==========================================================================
   Reduced motion — the site still works, it just stops performing
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .reveal-fade { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
  .drawn::after, .arc-underline::after { transform: scaleX(1); }
  .marquee-track { animation: none; }
  .grain { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

/* ==========================================================================
   Print — the price list and the contact details are the parts people print
   ========================================================================== */

@media print {
  .site-header, .mobile-menu, .preloader, .grain, .cursor-dot, .cursor-ring,
  .view-wipe, .scroll-progress, .scroll-cue, .marquee, .hero-canvas, .cta-band { display: none !important; }
  .view { display: block !important; }
  body { background: #fff; color: #000; }
  .night, .site-footer { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
