/*!
 * Dr. Spa stylesheet
 * © 2026 True2 Digital Marketing (Connor Marsac, South Lyon, MI).
 * All rights reserved. Proprietary preview supplied for evaluation only.
 * No license to copy, reproduce, host, modify or redistribute is granted.
 *
 * Brand: deep blue, red, grey.
 * Signature shapes: the medical plus, the EKG pulse line, the diagnostic card.
 */

/* ══════════════════════════════════════════════════════════════
   BRAND TOKENS  (the only block that changes per client)
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Blues */
  --navy-deep:   #04101F;   /* page base */
  --navy:        #071829;   /* panel */
  --navy-card:   #0B2137;   /* card */
  --navy-lift:   #103049;   /* card hover */
  --blue:        #1E63AE;   /* brand blue */
  --blue-bright: #4A9BE8;   /* water / glow */
  --blue-glow:   rgba(74,155,232,0.35);

  /* Red */
  --red:         #D62534;
  --red-bright:  #F03A4A;
  --red-glow:    rgba(214,37,52,0.42);

  /* Greys */
  --grey:        #93A3B8;   /* body text on dark */
  --grey-dim:    #5C6E85;   /* meta text */
  --steel:       #17293D;   /* hairline fills */
  --white:       #EDF3FA;

  /* Light sections */
  --light:       #EAEFF5;
  --light-card:  #FFFFFF;
  --ink:         #06131F;
  --ink-soft:    #45566A;

  /* Lines */
  --line:        rgba(255,255,255,0.085);
  --line-blue:   rgba(74,155,232,0.26);
  --line-red:    rgba(214,37,52,0.40);

  /* Type */
  --font-head: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shape */
  --r:   14px;
  --r-s: 8px;

  /* The plus-grid pattern, the brand texture */
  --plus-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg fill='none' stroke='%234A9BE8' stroke-opacity='0.14' stroke-width='1'%3E%3Cpath d='M17 12v10M12 17h10'/%3E%3C/g%3E%3C/svg%3E");
}

/* ══════════ RESET ══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Lenis drives the scroll. Native smooth-scroll fights it, so it is only
   left in place for the no-JS and reduced-motion paths, where Lenis
   deliberately never starts. */
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* ══════════ UTILITIES ══════════ */
.container { width: min(1220px, calc(100% - 3rem)); margin: 0 auto; }
.section { position: relative; padding-top: 7.5rem; padding-bottom: 7.5rem; }
.section.tight { padding-top: 5rem; padding-bottom: 5rem; }
.sec-light { background: var(--light); color: var(--ink); }
.sec-panel { background: var(--navy); }

/* Placeholder token styling. Makes every unverified fact impossible to miss. */
.ph {
  border-bottom: 1.5px dashed var(--red);
  color: inherit;
  padding-bottom: 1px;
  white-space: nowrap;
}

/* ── The plus chip. Dr. Spa's answer to Ace's skewed badge. ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(214,37,52,0.10);
  border: 1px solid var(--line-red);
  color: var(--red-bright);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}
.chip::before {
  content: '';
  width: 11px; height: 11px;
  flex: none;
  background: var(--red);
  clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%);
}
.chip.blue { background: rgba(74,155,232,0.10); border-color: var(--line-blue); color: var(--blue-bright); }
.chip.blue::before { background: var(--blue-bright); }
.sec-light .chip { background: rgba(214,37,52,0.08); color: #A81826; }

/* ── Section headings ── */
.eyebrow-row { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--white);
}
.sec-light .section-title { color: var(--ink); }
.section-title .r { color: var(--red-bright); }
.sec-light .section-title .r { color: var(--red); }

/* Hand-drawn underline on a highlight word. Borrowed from the True2 squiggle,
   redrawn as a pulse so it reads as Dr. Spa and not as True2. */
.pulse-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
/* Sits just inside the cap box. These headings are uppercase with no
   descenders, so the underline reads as a marker stroke rather than a gap. */
.pulse-word::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: 0.06em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14' preserveAspectRatio='none'%3E%3Cpath d='M0 9h44l7-7 6 12 7-9 6 4h84' fill='none' stroke='%23D62534' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.section-sub {
  margin-top: 1.3rem;
  color: var(--grey);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.85;
  max-width: 640px;
}
.sec-light .section-sub { color: var(--ink-soft); }

/* Giant outlined section number, parallaxed on scroll */
.sec-num {
  position: absolute;
  top: 2.5rem; right: 2rem;
  font-family: var(--font-head);
  font-size: clamp(6rem, 16vw, 15rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.055);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.sec-light .sec-num { -webkit-text-stroke-color: rgba(6,19,31,0.075); }
.section > .container { position: relative; z-index: 1; }

/* ══════════ BUTTONS ══════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border: 1.5px solid var(--red);
  border-radius: var(--r-s);
  cursor: pointer;
  box-shadow: 0 14px 34px -16px var(--red-glow);
  transition: background .35s ease, color .35s ease, border-color .35s ease,
              transform .4s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.btn > span { position: relative; z-index: 2; }
/* shine sweep */
.btn::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-18deg);
  transition: left .6s cubic-bezier(.22,1,.36,1);
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -16px var(--red-glow); }

.btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--blue-bright); color: var(--blue-bright); background: rgba(74,155,232,0.07); }
.sec-light .btn.ghost { color: var(--ink); border-color: rgba(6,19,31,0.25); }
.sec-light .btn.ghost:hover { color: var(--blue); border-color: var(--blue); background: rgba(30,99,174,0.07); }

.btn.sm { padding: 0.78rem 1.35rem; font-size: 0.72rem; }

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.arrow-link:hover svg { transform: translateX(6px); }
.sec-light .arrow-link { color: var(--blue); }

/* ══════════ SCROLL REVEALS ══════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; } .d5 { transition-delay: .40s; } .d6 { transition-delay: .48s; }

/* Word-mask headline reveal */
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-mask .word {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .95s cubic-bezier(.19,1,.22,1);
}
.word-mask.visible .word { transform: none; }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 1s cubic-bezier(.22,1,.36,1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .30s; }
.hero-copy > *:nth-child(4) { animation-delay: .44s; }
.hero-copy > *:nth-child(5) { animation-delay: .58s; }

/* ══════════ SCROLL PROGRESS BAR ══════════ */
#progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--red));
  z-index: 300;
  transition: width .1s linear;
}

/* ══════════ TOPBAR + NAV ══════════ */
#topbar {
  background: #030B14;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
#topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.55rem 0; }
#topbar b { color: var(--white); font-weight: 600; }
#topbar a:hover { color: var(--red-bright); }
#topbar .tb-right { display: flex; gap: 1.6rem; }

#nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(4,16,31,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
#nav.scrolled {
  background: rgba(4,16,31,0.97);
  box-shadow: 0 14px 40px -22px #000;
  border-bottom-color: var(--line-red);
}
.nav-inner {
  width: min(1300px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0.9rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  transition: padding .35s ease;
}
#nav.scrolled .nav-inner { padding: 0.6rem 0; }

/* Wordmark. Built in type so it works with no logo file. */
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  background: var(--red);
  border-radius: 10px;
  box-shadow: 0 8px 22px -10px var(--red-glow);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-mark::before {
  content: '';
  width: 18px; height: 18px;
  background: #fff;
  clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%);
}
.brand-text { line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.32rem; font-weight: 900;
  letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--white);
}
.brand-name .dot { color: var(--red); }
.brand-tag {
  display: block;
  margin-top: 3px;
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--grey-dim);
}

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links > li { position: relative; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  transition: color .3s ease;
}
/* Keep the label and its dropdown caret on one line. The markup has
   whitespace between them, so when the flex row tightens the caret wraps
   under the word. Inline-flex + nowrap pins it to the right of the label. */
.nav-links > li > a { display: inline-flex; align-items: center; }
.nav-links a:hover, .nav-links a.active { color: var(--red-bright); }
.nav-links > li:not(.nav-cta) > a { position: relative; padding-bottom: 6px; }
.nav-links > li:not(.nav-cta) > a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.nav-links > li:hover > a::after, .nav-links > li > a.active::after { transform: scaleX(1); }

.nav-arrow { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.5; margin-left: 3px; }
.dropdown {
  position: absolute; z-index: 10;
  top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #061422;
  border: 1px solid var(--line-blue);
  border-top: 3px solid var(--red);
  border-radius: var(--r-s);
  min-width: 268px;
  padding: 0.5rem 0;
  opacity: 0; visibility: hidden;
  box-shadow: 0 24px 50px -24px #000;
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s;
}
.dropdown::before { content: ''; position: absolute; left: -16px; right: -16px; top: -22px; height: 22px; }
.nav-links li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%); transition-delay: 0s; }
.dropdown a { display: block; padding: 0.72rem 1.25rem; font-size: 0.74rem; transition: background .25s ease, padding-left .25s ease; }
.dropdown a:hover { background: rgba(214,37,52,0.10); padding-left: 1.55rem; }

.nav-cta a {
  display: inline-block;
  background: var(--red); color: #fff !important;
  padding: 0.68rem 1.25rem;
  border-radius: var(--r-s);
  font-weight: 700;
  box-shadow: 0 10px 26px -12px var(--red-glow);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.nav-cta a:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px var(--red-glow); }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s ease, background .3s ease; }
.hamburger.open span { background: var(--red-bright); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mob-nav {
  position: fixed; inset: 0; z-index: 199;
  background: #030B14;
  background-image: var(--plus-grid);
  display: none; flex-direction: column;
  gap: 0.2rem;
  padding: 7.5rem 2rem 3rem;
  overflow-y: auto;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.01em; text-transform: uppercase;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  animation: mobIn .5s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes mobIn { to { opacity: 1; transform: none; } }
.mob-nav a:nth-child(1){animation-delay:.06s} .mob-nav a:nth-child(2){animation-delay:.11s}
.mob-nav a:nth-child(3){animation-delay:.16s} .mob-nav a:nth-child(4){animation-delay:.21s}
.mob-nav a:nth-child(5){animation-delay:.26s} .mob-nav a:nth-child(6){animation-delay:.31s}
.mob-nav a:nth-child(7){animation-delay:.36s} .mob-nav a:nth-child(8){animation-delay:.41s}
.mob-nav .mob-cta { color: var(--red-bright); border-bottom-color: var(--line-red); }

/* ══════════ HERO ══════════ */
#hero {
  position: relative;
  min-height: 94vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  padding-bottom: 6rem;
}

/* The water. Layered radial blobs drifting under a plus-grid, plus rising
   steam. All CSS, so it needs no client photography to look alive. */
.hero-water { position: absolute; inset: 0; overflow: hidden; }
.hero-water::before {
  content: '';
  position: absolute; inset: -25%;
  background:
    radial-gradient(42% 38% at 22% 30%, rgba(30,99,174,0.55), transparent 62%),
    radial-gradient(38% 34% at 76% 22%, rgba(74,155,232,0.34), transparent 60%),
    radial-gradient(46% 40% at 60% 82%, rgba(11,33,55,0.9), transparent 65%),
    radial-gradient(30% 26% at 88% 68%, rgba(214,37,52,0.18), transparent 62%);
  filter: blur(46px);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.03); }
}
/* caustic light bands on the water surface */
.hero-water::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(102deg, transparent 0 44px, rgba(74,155,232,0.055) 44px 46px),
    repeating-linear-gradient(-97deg, transparent 0 68px, rgba(255,255,255,0.028) 68px 70px);
  animation: caustic 14s linear infinite alternate;
}
@keyframes caustic {
  from { transform: translateX(-30px) skewY(-0.4deg); }
  to   { transform: translateX(30px)  skewY(0.4deg); }
}
.hero-grid { position: absolute; inset: 0; background-image: var(--plus-grid); opacity: .55; }
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,16,31,0.95) 8%, rgba(4,16,31,0.72) 48%, rgba(4,16,31,0.5) 100%),
              linear-gradient(to top, var(--navy-deep) 2%, transparent 40%);
}
/* cursor-follow ambient glow */
.hero-glow {
  position: absolute; width: 620px; height: 620px;
  left: 0; top: 0;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,155,232,0.16), transparent 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
#hero:hover .hero-glow { opacity: 1; }

/* rising steam */
.steam { position: absolute; bottom: 0; left: 0; right: 0; height: 60%; pointer-events: none; }
.steam i {
  position: absolute; bottom: -60px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.075), transparent 66%);
  filter: blur(14px);
  animation: steamUp 16s ease-in infinite;
}
.steam i:nth-child(1) { left: 8%;  animation-delay: 0s;   }
.steam i:nth-child(2) { left: 27%; animation-delay: 3.5s; width: 190px; }
.steam i:nth-child(3) { left: 51%; animation-delay: 7s;   }
.steam i:nth-child(4) { left: 72%; animation-delay: 10s;  width: 220px; }
.steam i:nth-child(5) { left: 89%; animation-delay: 13s;  }
@keyframes steamUp {
  0%   { opacity: 0; transform: translateY(0) scale(.7); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-460px) scale(1.7); }
}

.hero-copy { position: relative; z-index: 3; width: min(1220px, calc(100% - 3rem)); margin: 0 auto; padding: 6.5rem 0 0; }
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.05rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-transform: uppercase;
  max-width: 22ch;
}
.hero-h1 .r { color: var(--red-bright); }
.hero-sub {
  margin-top: 1.7rem;
  max-width: 560px;
  color: #B9C7D8;
  font-size: 1.06rem; font-weight: 300; line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-assure {
  margin-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--grey-dim);
}
.hero-assure span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-assure span::before {
  content: ''; width: 9px; height: 9px; flex: none; background: var(--blue-bright);
  clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%);
}

/* ── Floating vitals strip, overlaps the hero bottom edge ── */
.vitals {
  position: relative; z-index: 5;
  margin: -4.5rem auto 0;
  width: min(1220px, calc(100% - 3rem));
  background: rgba(11,33,55,0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-blue);
  border-radius: var(--r);
  box-shadow: 0 34px 70px -34px #000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.vital { padding: 1.9rem 1.6rem; border-right: 1px solid var(--line); position: relative; }
.vital:last-child { border-right: none; }
.vital::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--red); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.vital:hover::before { transform: scaleY(1); }
.vital-num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900;
  letter-spacing: -0.03em; color: var(--white); line-height: 1;
}
.vital-num small { font-size: .5em; color: var(--red-bright); margin-left: 2px; }
.vital-label {
  margin-top: 0.55rem;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-dim);
}

/* ══════════ EKG DIVIDER ══════════ */
.ekg {
  position: relative;
  height: 74px;
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
}
.ekg svg { width: 100%; height: 44px; }
.ekg path {
  fill: none; stroke: var(--red); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 260 2000;
  stroke-dashoffset: 2260;
  animation: beat 4.5s linear infinite;
  filter: drop-shadow(0 0 6px var(--red-glow));
}
@keyframes beat { to { stroke-dashoffset: 0; } }
.ekg .ekg-base { stroke: rgba(255,255,255,0.07); stroke-width: 1.4; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; filter: none; }

/* ══════════ BRAND TICKER ══════════ */
.ticker {
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--navy), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--navy), transparent); }
.ticker-track { display: flex; gap: 3.5rem; width: max-content; animation: slide 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker-item {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--grey-dim);
  white-space: nowrap;
  transition: color .3s ease;
}
.ticker-item:hover { color: var(--white); }
.ticker-item.sep { color: var(--red); }

/* ══════════ SYMPTOM CHECKER (the signature tool) ══════════ */
#checker { background: var(--navy); }
.chk-shell {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.6rem;
  align-items: start;
}
.chk-list {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.6rem;
  max-height: 560px;
  overflow-y: auto;
}
.chk-btn {
  display: flex; align-items: center; gap: 0.85rem;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: var(--r-s);
  padding: 0.95rem 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem; font-weight: 500; color: var(--grey);
  transition: background .28s ease, color .28s ease, padding-left .28s ease;
}
.chk-btn:hover { background: rgba(74,155,232,0.08); color: var(--white); padding-left: 1.25rem; }
.chk-btn .code {
  flex: none;
  min-width: 46px;
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-align: center;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--line-blue);
  border-radius: 5px;
  color: var(--blue-bright);
  transition: background .28s ease, color .28s ease, border-color .28s ease;
}
.chk-btn.active { background: rgba(214,37,52,0.12); color: #fff; padding-left: 1.25rem; }
.chk-btn.active .code { background: var(--red); border-color: var(--red); color: #fff; }

.chk-panel {
  background: var(--navy-card);
  background-image: var(--plus-grid);
  border: 1px solid var(--line-blue);
  border-radius: var(--r);
  padding: 2.4rem;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.chk-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
.chk-empty { display: grid; place-items: center; min-height: 360px; text-align: center; color: var(--grey-dim); }
.chk-empty .big {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey);
  margin-bottom: 0.6rem;
}
.chk-pulse-icon { width: 68px; height: 68px; margin: 0 auto 1.4rem; opacity: .5; }
.chk-pulse-icon path { fill: none; stroke: var(--blue-bright); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@keyframes chkIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.chk-result > * { animation: chkIn .55s cubic-bezier(.22,1,.36,1) both; }
.chk-result > *:nth-child(1){animation-delay:.02s} .chk-result > *:nth-child(2){animation-delay:.09s}
.chk-result > *:nth-child(3){animation-delay:.16s} .chk-result > *:nth-child(4){animation-delay:.23s}
.chk-result > *:nth-child(5){animation-delay:.30s} .chk-result > *:nth-child(6){animation-delay:.37s}

.chk-title { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.chk-codes { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.9rem 0 1.6rem; }
.chk-codes span {
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.32rem 0.65rem; border-radius: 4px;
  background: rgba(74,155,232,0.12); border: 1px solid var(--line-blue); color: var(--blue-bright);
}
.chk-block { margin-bottom: 1.5rem; }
.chk-block h4 {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-dim);
  margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.chk-block h4::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.chk-block ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  color: var(--grey); font-size: 0.95rem; line-height: 1.65;
}
.chk-block ul li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; background: var(--blue-bright);
  clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%);
}
.chk-try {
  background: rgba(74,155,232,0.08);
  border-left: 3px solid var(--blue-bright);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: 1.1rem 1.3rem;
}
.chk-try h4 { color: var(--blue-bright); }
.chk-try h4::after { background: var(--line-blue); }
.chk-stop {
  background: rgba(214,37,52,0.09);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: 1.1rem 1.3rem;
}
.chk-stop h4 { color: var(--red-bright); }
.chk-stop h4::after { background: var(--line-red); }
.chk-stop ul li::before { background: var(--red-bright); }
.chk-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.chk-note { font-size: 0.76rem; color: var(--grey-dim); line-height: 1.6; margin-top: 1.4rem; }

/* ══════════ SERVICES ══════════ */
.svc-grid { margin-top: 3.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc-card {
  position: relative;
  background: var(--light-card);
  border: 1px solid rgba(6,19,31,0.09);
  border-radius: var(--r);
  padding: 2.2rem 1.9rem 2rem;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, border-color .4s ease;
  transform-style: preserve-3d;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(30,99,174,0.07), transparent 55%);
  opacity: 0; transition: opacity .45s ease;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -32px rgba(6,19,31,0.5); border-color: var(--blue); }
.svc-card:hover::before { opacity: 1; }
/* red corner tick */
.svc-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid; border-width: 0 44px 44px 0;
  border-color: transparent var(--red) transparent transparent;
  transform: translate(44px,-44px);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.svc-card:hover::after { transform: none; }
.svc-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(30,99,174,0.10);
  border: 1px solid rgba(30,99,174,0.22);
  margin-bottom: 1.4rem;
  position: relative; z-index: 1;
}
.svc-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-size: 1.18rem; font-weight: 800;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 0.75rem;
}
.svc-card p { position: relative; z-index: 1; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.75; font-weight: 300; }
.svc-card .arrow-link { position: relative; z-index: 1; margin-top: 1.3rem; }

/* ══════════ ERROR CODE INDEX ══════════ */
#codes { background: var(--navy-deep); }
.code-tools { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.code-search {
  flex: 1 1 300px;
  position: relative;
}
.code-search input {
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-s);
  padding: 1rem 1.1rem 1rem 3rem;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.code-search input::placeholder { color: var(--grey-dim); }
.code-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(214,37,52,0.14); }
.code-search svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: none; stroke: var(--grey-dim); stroke-width: 2;
}
.code-count { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-dim); }

.code-grid { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.code-card {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 1.3rem 1.4rem;
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .35s ease, background .35s ease;
}
.code-card:hover { transform: translateY(-4px); border-color: var(--line-red); background: var(--navy-lift); }
.code-card .k {
  display: inline-block;
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 900; letter-spacing: 0.08em;
  color: var(--red-bright);
  margin-bottom: 0.55rem;
}
.code-card .m { font-family: var(--font-head); font-size: 0.98rem; font-weight: 700; color: var(--white); margin-bottom: 0.45rem; }
.code-card .d { font-size: 0.86rem; color: var(--grey); line-height: 1.65; font-weight: 300; }
.code-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--grey-dim); }
.code-foot { margin-top: 1.6rem; font-size: 0.79rem; color: var(--grey-dim); line-height: 1.7; }

/* ══════════ TIMELINE ══════════ */
.timeline { margin-top: 3.6rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--blue), transparent);
}
.tl-step { position: relative; padding-left: 5rem; padding-bottom: 3rem; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--navy-card);
  border: 2px solid var(--red);
  border-radius: 50%;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 900; color: var(--white);
  box-shadow: 0 0 0 8px var(--navy-deep);
  transition: transform .45s cubic-bezier(.22,1,.36,1), background .35s ease;
}
.tl-step:hover .tl-dot { transform: scale(1.08); background: var(--red); }
.tl-step h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.tl-step p { color: var(--grey); font-size: 0.96rem; line-height: 1.8; font-weight: 300; max-width: 620px; }

/* ══════════ REASONS (giant outlined numbers) ══════════ */
.reasons { margin-top: 3.4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 3rem; }
.reason { display: flex; gap: 1.5rem; padding: 1.8rem 0; border-top: 1px solid rgba(6,19,31,0.10); }
.reason-n {
  flex: none;
  font-family: var(--font-head); font-size: 3.4rem; font-weight: 900; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
  transition: color .4s ease;
}
.reason:hover .reason-n { color: var(--red); }
.reason h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; color: var(--ink); margin-bottom: 0.55rem; }
.reason p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.75; font-weight: 300; }

/* ══════════ COVERAGE ══════════ */
#coverage { background: var(--navy); }
.cov-grid { margin-top: 3.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.cov-map {
  border: 1px solid var(--line-blue);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--navy-card);
  min-height: 380px;
}
.cov-map iframe { width: 100%; height: 380px; border: 0; filter: grayscale(0.35) invert(0.9) hue-rotate(180deg) contrast(0.9); }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 1.8rem; }
.area-list li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-size: 0.88rem; color: var(--grey);
  transition: border-color .3s ease, color .3s ease, transform .3s ease;
}
.area-list li:hover { border-color: var(--line-red); color: var(--white); transform: translateX(4px); }
.area-list li::before {
  content: ''; width: 8px; height: 8px; flex: none; background: var(--red);
  clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%);
}

/* ══════════ CTA BAND + FORM ══════════ */
#book { position: relative; background: var(--navy-deep); overflow: hidden; }
#book::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(52% 62% at 18% 40%, rgba(30,99,174,0.30), transparent 62%),
              radial-gradient(44% 54% at 84% 66%, rgba(214,37,52,0.16), transparent 62%);
  filter: blur(30px);
}
.book-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.book-points { margin-top: 2.2rem; }
.book-points li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  color: var(--grey); font-size: 0.95rem; line-height: 1.65; font-weight: 300;
}
.book-points li b { color: var(--white); font-weight: 600; }
.book-points li::before {
  content: ''; margin-top: 0.4em; width: 11px; height: 11px; flex: none; background: var(--red);
  clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%);
}

.form-card {
  background: rgba(11,33,55,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-blue);
  border-radius: var(--r);
  padding: 2.2rem;
  box-shadow: 0 34px 70px -34px #000;
}
.form-card h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.form-card > p { color: var(--grey-dim); font-size: 0.85rem; margin-bottom: 1.6rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey-dim); margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(4,16,31,0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-size: 0.93rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field textarea { min-height: 108px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(214,37,52,0.13);
}
.field input::placeholder, .field textarea::placeholder { color: #46586D; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-note {
  margin-top: 1rem;
  font-size: 0.78rem; color: var(--grey-dim); text-align: center; line-height: 1.6;
}
.form-sent {
  display: none;
  margin-top: 1rem; padding: 0.9rem 1rem;
  background: rgba(74,155,232,0.10); border: 1px solid var(--line-blue); border-radius: var(--r-s);
  color: var(--blue-bright); font-size: 0.85rem; line-height: 1.6;
}
.form-sent.show { display: block; animation: chkIn .5s ease both; }

/* ══════════ FAQ ══════════ */
.faq { margin-top: 3rem; max-width: 880px; }
.faq-item { border-bottom: 1px solid rgba(6,19,31,0.11); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: none; border: none; cursor: pointer;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 700;
  color: var(--ink);
  transition: color .3s ease;
}
.faq-q:hover { color: var(--red); }
.faq-ico { flex: none; width: 22px; height: 22px; position: relative; }
.faq-ico::before, .faq-ico::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: var(--red); border-radius: 2px;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.faq-ico::before { width: 16px; height: 2.5px; transform: translate(-50%,-50%); }
.faq-ico::after  { width: 2.5px; height: 16px; transform: translate(-50%,-50%); }
.faq-item.open .faq-ico::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22,1,.36,1); }
.faq-a p { padding-bottom: 1.4rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.85; font-weight: 300; max-width: 720px; }

/* ══════════ FOOTER ══════════ */
#footer { background: #030B14; border-top: 1px solid var(--line); padding: 4.5rem 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.foot-grid h4 {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--white);
  margin-bottom: 1.1rem;
}
.foot-grid p, .foot-grid li { color: var(--grey-dim); font-size: 0.88rem; line-height: 1.9; font-weight: 300; }
.foot-grid a:hover { color: var(--red-bright); }
.foot-brand { margin-bottom: 1.2rem; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.76rem; color: #3E5064;
}

/* ══════════ STICKY MOBILE CALL BAR ══════════
   The floating glass pill from the True2 site, in Dr. Spa's brand: inset from
   the screen edges, rounded, blurred, shadowed. Call is the loud button.
   NOTE for the live build: when the chat widget gets pasted in, end the bar
   at right: 96px (True2 does this) so it never sits under the chat bubble. */
#callbar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 190;
  display: none;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(7,24,41,0.78);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
#callbar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  border-radius: 12px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  transition: transform 0.2s ease;
}
#callbar a:active { transform: scale(0.96); }
#callbar .call { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px var(--red-glow); }
#callbar .book { background: rgba(255,255,255,0.07); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
#callbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ══════════ SUBPAGE HERO ══════════ */
.sub-hero {
  position: relative;
  padding: 6.5rem 0 5rem;
  background: var(--navy-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.sub-hero .hero-water::before { filter: blur(58px); opacity: .8; }
.sub-hero-inner { position: relative; z-index: 2; }
.sub-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -0.035em; text-transform: uppercase;
  max-width: 18ch;
}
.sub-h1 .r { color: var(--red-bright); }
.crumbs { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--red-bright); }

/* Two-column prose + sidebar */
.split { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
.prose h2 { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; margin: 2.6rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; margin: 1.9rem 0 0.7rem; color: var(--white); }
.prose p { color: var(--grey); font-size: 1rem; line-height: 1.9; font-weight: 300; margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.4rem; }
.prose ul li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem;
  color: var(--grey); font-size: 0.98rem; line-height: 1.75; font-weight: 300;
}
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; background: var(--red);
  clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%);
}
.prose strong { color: var(--white); font-weight: 600; }

.side-card {
  position: sticky; top: 100px;
  background: var(--navy-card);
  background-image: var(--plus-grid);
  border: 1px solid var(--line-blue);
  border-radius: var(--r);
  padding: 1.9rem;
}
.side-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.7rem; }
.side-card p { color: var(--grey); font-size: 0.9rem; line-height: 1.75; font-weight: 300; margin-bottom: 1.4rem; }
.side-card .btn { width: 100%; justify-content: center; }
.side-list { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.side-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; font-size: 0.84rem; color: var(--grey-dim); }
.side-list li b { color: var(--white); font-weight: 600; text-align: right; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1080px) {
  .chk-shell { grid-template-columns: 1fr; }
  .chk-list { max-height: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.3rem; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .code-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  /* Direct child only. A bare descendant selector also hits the .ph span
     nested inside the phone link and blanks the number out. */
  #topbar .tb-right > span:first-child { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .vitals { grid-template-columns: repeat(2, 1fr); margin-top: -3rem; }
  .vital { border-bottom: 1px solid var(--line); }
  .vital:nth-child(2) { border-right: none; }
  .cov-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .reasons { grid-template-columns: 1fr; gap: 0; }
  #callbar { display: flex; }
  body { padding-bottom: 104px; }
}

@media (max-width: 620px) {
  /* Drop the strapline so the topbar stays one line and the phone stays visible */
  #topbar .container > span:first-child { display: none; }
  #topbar .container { justify-content: center; }
  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .chk-list { grid-template-columns: 1fr; }
  .chk-panel { padding: 1.6rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .code-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 4.5rem; }
  #hero { min-height: auto; padding-bottom: 8rem; }
  .tl-step { padding-left: 4.2rem; }
  .sec-num { top: 1rem; right: 0.5rem; }
}

/* ══════════ REDUCED MOTION ══════════ */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .word-mask .word { transform: none; }
  .hero-copy > * { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   SCROLL-SCRUB 3D HERO, Dr. Spa skin
   Re-tokenises the shared component. Component internals untouched.
   ══════════════════════════════════════════════════════════════ */
:root {
  --ssh-accent:       #D62534;
  --ssh-bg:           #04101F;
  --ssh-glass-bg:     rgba(11,33,55,0.72);
  --ssh-glass-border: rgba(74,155,232,0.26);
  --ssh-text-1:       #EDF3FA;
  --ssh-text-2:       #93A3B8;
}

#hero .ssh-pin { background: var(--navy-deep); }

/* the plus-grid texture sits over the picture, under the copy */
#hero .hero-grid { z-index: 1; opacity: 0.4; }

/* The tub is centred in frame, so the old side-lit scrim sat right on top of
   it and muted the whole thing. Vertical instead: dark where the copy is,
   clear through the middle where the spa lives. */
#hero .ssh-overlay-gradient {
  background:
    linear-gradient(to bottom,
      rgba(4,16,31,0.97) 0%,
      rgba(4,16,31,0.90) 34%,
      rgba(4,16,31,0.72) 50%,
      rgba(4,16,31,0.34) 63%,
      rgba(4,16,31,0.10) 78%,
      rgba(4,16,31,0.40) 93%,
      var(--navy-deep) 100%);
}

/* Copy sits centred above the spa, which is the composition this component
   was built for. Its `font:` shorthand resets family and weight, so each of
   those has to be restated rather than inherited. */
#hero .ssh-intro {
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 4.5rem 1.5rem 0;
  pointer-events: none;
}
#hero .ssh-intro-inner {
  width: min(880px, 100%);
  margin: 0 auto;
}
#hero .ssh-intro .chip { pointer-events: auto; }
#hero .ssh-intro .hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.95rem, 4.8vw, 3.9rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-transform: uppercase;
  color: var(--white);
  max-width: none;
  margin: 0 auto;
  text-shadow: 0 6px 40px rgba(4,16,31,0.65);
}
#hero .ssh-intro .hero-sub {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.8;
  color: #C3D0E0;
  max-width: 580px;
  margin: 1.2rem auto 0;
  text-shadow: 0 2px 22px rgba(4,16,31,0.8);
}
#hero .ssh-intro .hero-actions {
  justify-content: center;
  margin-top: 1.8rem;
  pointer-events: auto;
}
/* The assurance row repeats what the vitals strip says a screen later, and
   in the pinned hero it just crowds the spa. */
#hero .ssh-intro .hero-assure { display: none; }

#hero .ssh-card-inner {
  background: var(--ssh-glass-bg);
  border-color: var(--ssh-glass-border);
  border-radius: var(--r);
  border-left: 3px solid var(--red);
}
#hero .ssh-card-num {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--red-bright);
}
#hero .ssh-card-inner h3 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
}
#hero .ssh-card-inner p { font-family: var(--font-body); font-weight: 300; color: var(--grey); }
#hero .ssh-scroll-hint { font-family: var(--font-head); letter-spacing: 0.18em; color: var(--grey-dim); }
#hero .ssh-progress .dot { background: rgba(255,255,255,0.16); }
#hero .ssh-progress .dot.is-active { background: var(--red); box-shadow: 0 0 12px var(--red-glow); }

/* The component centres its mobile cards with `transform: translateX(-50%)`,
   but its own scroll handler writes an inline `transform: translateY(...)`
   every frame, which wins and throws the card off the right edge. Pin the
   card with left/right instead so no transform is needed to centre it. */
@media (max-width: 880px) {
  #hero .ssh-card,
  #hero .ssh-card[data-card="0"],
  #hero .ssh-card[data-card="1"],
  #hero .ssh-card[data-card="2"] {
    left: 5%;
    right: 5%;
    width: auto;
    top: auto;
    bottom: 9%;
  }
}

/* Reduced motion or no GSAP: no pin, the wide frame held still. */
#hero.film-static .ssh-pin { height: auto; min-height: 88vh; padding: 7rem 0 6rem; }
#hero.film-static .ssh-cards,
#hero.film-static .ssh-progress,
#hero.film-static .ssh-scroll-hint { display: none; }
#hero.film-static .ssh-intro { position: relative; }

/* ══════════════════════════════════════════════════════════════
   CINEMATIC HERO
   Photoreal frames with a scroll-driven camera move over them. No WebGL:
   per the Scroll-Cinema playbook, the 3D feeling comes from the camera
   move, not from the picture being real-time 3D.
   ══════════════════════════════════════════════════════════════ */
.film { position: absolute; inset: 0; overflow: hidden; background: var(--navy-deep); }
.film::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(120% 92% at 50% 46%, transparent 40%, rgba(4,16,31,0.62) 100%);
}

.film-frame {
  position: absolute;
  inset: -2%;                     /* bleed, so the push-in never shows an edge */
  background-position: center 46%;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  transform-origin: 52% 58%;      /* push toward the control panel, not dead centre */
  backface-visibility: hidden;
}
.film-frame.is-wide  { background-image: url('assets/hero-wide.jpg'); }
.film-frame.is-close { background-image: url('assets/hero-panel.jpg'); opacity: 0; }

@media (max-width: 880px) {
  .film-frame.is-wide  { background-image: url('assets/hero-wide-sm.jpg'); }
  .film-frame.is-close { background-image: url('assets/hero-panel-sm.jpg'); }
}

/* Live steam over the still, so the frame breathes instead of sitting there.
   Screen blend keeps it reading as vapour lit from below rather than smoke. */
.film-steam { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.5; }
.film-steam i {
  position: absolute;
  bottom: 18%;
  width: 30vw; height: 30vw;
  min-width: 220px; min-height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206,228,255,0.16), rgba(206,228,255,0.05) 42%, transparent 68%);
  filter: blur(26px);
  animation: filmSteam 19s ease-in infinite;
}
.film-steam i:nth-child(1) { left: 12%; animation-delay: 0s; }
.film-steam i:nth-child(2) { left: 31%; animation-delay: 4.2s; }
.film-steam i:nth-child(3) { left: 49%; animation-delay: 8.1s; }
.film-steam i:nth-child(4) { left: 66%; animation-delay: 12.4s; }
.film-steam i:nth-child(5) { left: 82%; animation-delay: 15.8s; }
@keyframes filmSteam {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  16%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate3d(3vw, -46vh, 0) scale(1.9); }
}

/* Fine grain. The single cheapest thing that stops a render looking clean
   enough to read as CGI. */
.film-grain {
  position: absolute; inset: -60%;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: filmGrain 0.7s steps(3) infinite;
}
@keyframes filmGrain {
  0%   { transform: translate3d(0, 0, 0); }
  33%  { transform: translate3d(-3%, 2%, 0); }
  66%  { transform: translate3d(2%, -3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Subpage heroes hold the same photograph with a very slow drift. */
.sub-film .film-frame.is-wide {
  animation: subDrift 34s ease-in-out infinite alternate;
}
@keyframes subDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-1.2%, -1.4%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .film-steam, .film-grain { display: none; }
  .sub-film .film-frame.is-wide { animation: none; transform: scale(1.05); }
}

/* ══════════════════════════════════════════════════════════════
   MOTION PACK
   Ported from the Gardens by Aaron Hammer build, which is the
   smoothest set we have shipped. Same curves, same durations, same
   mobile behaviour, retimed for this palette.
   ══════════════════════════════════════════════════════════════ */

/* Base reveal gets Gardens' will-change hint so the compositor
   promotes it before the transition starts instead of during it. */
.reveal { will-change: transform, opacity; }

/* Gardens' word-mask timing, slightly deeper travel so heavy Archivo
   caps clear the mask cleanly */
.word-mask .word { transition: transform 0.95s cubic-bezier(0.16,1,0.3,1); will-change: transform; }

/* Gardens' mobile signature: cards slide in from alternating sides
   instead of all rising together. Slower and softer than desktop. */
@media (max-width: 768px) {
  .svc-card.reveal,
  .code-card.reveal,
  .reason.reveal,
  .tl-step.reveal,
  .form-card.reveal,
  .side-card.reveal {
    transition: opacity 1.1s ease-out,
                transform 1.1s cubic-bezier(0.22,1,0.36,1);
    will-change: transform, opacity;
  }
  .svc-card.reveal:not(.visible),
  .code-card.reveal:not(.visible),
  .reason.reveal:not(.visible),
  .tl-step.reveal:not(.visible),
  .form-card.reveal:not(.visible),
  .side-card.reveal:not(.visible) { transform: translateX(-60px); }

  .svc-card:nth-child(even).reveal:not(.visible),
  .code-card:nth-child(even).reveal:not(.visible),
  .reason:nth-child(even).reveal:not(.visible),
  .tl-step:nth-child(even).reveal:not(.visible) { transform: translateX(60px); }

  /* Headline word-reveal: slower and smoother on mobile, Gardens curve */
  .word-mask .word { transition: transform 1.3s cubic-bezier(0.19,1,0.22,1); }
}

/* Desktop: surfaces unveil upward behind a curtain with a soft zoom
   settle. Gardens clips the IMG, never the tile, because a clipped tile
   reads as zero area to IntersectionObserver and the reveal never fires.
   Same rule here: the clip lives on an inner .unveil, never on .reveal. */
@media (min-width: 769px) {
  .unveil {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: clip-path;
  }
  .reveal.visible .unveil,
  .unveil.visible {
    clip-path: inset(0 0 0 0);
    animation: pic-settle 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .d1 .unveil { transition-delay: 0.10s, 0s; }
  .d2 .unveil { transition-delay: 0.20s, 0s; }
  .d3 .unveil { transition-delay: 0.30s, 0s; }
  @keyframes pic-settle {
    from { transform: scale(1.05); }
    to   { transform: none; }
  }
}

/* ── Micro-interactions, straight from the Gardens pack ──
   These are the ones that read as "expensive" on a phone, because they
   fire on :active as well as :hover. Touch gets the same feedback. */
.brand { transition: transform 0.25s cubic-bezier(0.22,1,0.36,1); }
.brand:hover { transform: scale(1.02); }
.brand:active { transform: scale(0.97); }

.svc-icon { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), background 0.4s ease, border-color 0.4s ease; }
.svc-card:hover .svc-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(214,37,52,0.10);
  border-color: rgba(214,37,52,0.3);
}
.svc-card:hover .svc-icon svg { stroke: var(--red); }
.svc-icon svg { transition: stroke 0.4s ease; }

.vital { transition: transform 0.3s ease; }
.vital:hover { transform: translateY(-3px); }
.vital-num { transition: color 0.3s ease; }
.vital:hover .vital-num { color: var(--red-bright); }

.code-card .k { transition: letter-spacing 0.35s ease; }
.code-card:hover .k { letter-spacing: 0.14em; }

/* tap and click feedback, fires identically on touch and mouse */
.nav-links a:active,
.dropdown a:active,
.mob-nav a:active,
.foot-grid a:active,
.arrow-link:active,
.area-list li:active,
.chk-btn:active { opacity: 0.6; }

.foot-grid a { transition: color 0.18s, padding-left 0.2s; }
.foot-grid a:hover, .foot-grid a:active { padding-left: 0.35rem; }
.mob-nav a { transition: color 0.18s, padding-left 0.22s; }
.mob-nav a:hover, .mob-nav a:active { padding-left: 0.4rem; }

.btn:active { transform: scale(0.96); }
.btn.ghost:active { transform: scale(0.96); }

/* ── Card tilt, wired in site.js. Desktop pointer only. ── */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt-inner { transform: translateZ(28px); transform-style: preserve-3d; }
.svc-card .svc-icon { transform-style: preserve-3d; }

/* ── Section entrance: a hairline that draws itself in ── */
.rule-draw {
  display: block; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue-bright), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22,1,0.36,1);
  margin-bottom: 2.6rem;
}
.reveal.visible .rule-draw, .rule-draw.visible { transform: scaleX(1); }

/* ── Light sections get the brand texture too, so they stop reading flat ── */
.sec-light {
  background:
    radial-gradient(60% 50% at 88% 6%, rgba(30,99,174,0.07), transparent 62%),
    radial-gradient(46% 40% at 4% 96%, rgba(214,37,52,0.05), transparent 60%),
    var(--light);
}

@media (prefers-reduced-motion: reduce) {
  .unveil { clip-path: none !important; animation: none !important; }
  .ssh-pin { height: auto !important; }
}

/* ── Hero on a phone: same centred composition, tighter shade because the
      spa fills more of a portrait frame. ── */
@media (max-width: 880px) {
  #hero .ssh-intro { padding-top: 4rem; }
  .sub-hero .hero-vignette {
    background:
      linear-gradient(to bottom, rgba(4,16,31,0.95) 0%, rgba(4,16,31,0.86) 46%, rgba(4,16,31,0.58) 72%, rgba(4,16,31,0.88) 100%);
  }
  #hero .ssh-overlay-gradient {
    background:
      linear-gradient(to bottom,
        rgba(4,16,31,0.97) 0%,
        rgba(4,16,31,0.92) 40%,
        rgba(4,16,31,0.55) 58%,
        rgba(4,16,31,0.12) 74%,
        rgba(4,16,31,0.70) 94%,
        var(--navy-deep) 100%);
  }
  #hero .ssh-intro .hero-sub { font-size: 0.96rem; }
  #hero .ssh-scroll-hint { display: none; }
}

/* ── Subpage 3D backdrop. Same scene as the homepage hero, no pin. ── */
.sub-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.sub-hero .hero-vignette {
  z-index: 2;
  background:
    linear-gradient(100deg,
      rgba(4,16,31,0.97) 0%,
      rgba(4,16,31,0.93) 30%,
      rgba(4,16,31,0.74) 52%,
      rgba(4,16,31,0.34) 78%,
      rgba(4,16,31,0.14) 100%),
    linear-gradient(to top, var(--navy-deep) 0%, transparent 34%),
    linear-gradient(to bottom, rgba(4,16,31,0.55) 0%, transparent 26%);
}
.sub-h1, .crumbs { text-shadow: 0 4px 30px rgba(4,16,31,0.85); }
.sub-hero-inner { z-index: 3; }
.sub-hero { min-height: 62vh; max-height: 78vh; display: flex; align-items: center; }

@media (max-width: 880px) {
  .sub-hero .hero-vignette {
    background:
      linear-gradient(to bottom, rgba(4,16,31,0.95) 0%, rgba(4,16,31,0.84) 52%, rgba(4,16,31,0.55) 78%, rgba(4,16,31,0.88) 100%);
  }
}
