/* ============================================================
   DISTRICT 507 GYM — SHARED STYLESHEET
   ============================================================ */

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; background: #ffffff; overflow-x: hidden; }
body { background: #ffffff; color: #111111; font-family: 'Epilogue', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --red:      #111111;
  --red-dark: #000000;
  --ice:      #00C8FF;
  --gold:     #FFB800;
  --black:    #060606;
  --white:    #E8E0D0;
  --gray-1:   #0f0f0f;
  --gray-2:   #171717;
  --gray-3:   #232323;
  --gray-4:   #333333;
  --muted:    rgba(17,17,17,.72);
  --display:  'Barlow Condensed', sans-serif;
  --body:     'Epilogue', sans-serif;
  --mono:     'Space Mono', monospace;
  --pad:      clamp(1.5rem, 4vw, 4rem);
  --max:      1280px;
  --nav-h:    72px;
}

/* ── SKIP NAVIGATION ────────────────────────────────────── */
.skip-link {
  position: absolute; top: -9999px; left: 1rem; z-index: 99999;
  background: #111111; color: #E8E0D0;
  padding: .75rem 1.5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  clip-path: none;
}
.skip-link:focus { top: 1rem; }

/* ── FOCUS VISIBLE ──────────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #0066FF;
  outline-offset: 3px;
}
/* Ensure form fields still show their custom focus state */
.cform-field input:focus-visible,
.cform-field textarea:focus-visible {
  outline: none;
  border-color: #0066FF;
  box-shadow: 0 0 0 2px rgba(0,102,255,.25);
}

/* ── GRAIN OVERLAY ──────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9000; opacity: 0.12;
}

/* ── DARK SECTION VARIABLE OVERRIDES ────────────────────── */
/* Sections that intentionally keep a dark background restore
   the muted/text variables so var(--muted) text stays legible */
section[style*="background:#090909"],
section[style*="background:#080808"],
section[style*="background:#060606"],
section[style*="background:#060b10"],
section[style*="background:#060d15"],
section[style*="background:#04080e"],
header[class*="recovery-hero"] {
  --muted: rgba(232,224,208,.65);
  --red: #E8E0D0;
  color: #E8E0D0;
}

/* ── PROGRESS BAR ───────────────────────────────────────── */
#prog {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--red); z-index: 8000; width: 0;
  transition: width .08s linear;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed; top: env(safe-area-inset-top); left: 0; right: 0; z-index: 500;
  padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(6,6,6,.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color .35s;
  border-bottom: 1px solid transparent;
}
/* Solid white fill for the iPhone safe-area zone above the nav.
   Must live on html (not .nav::before) — backdrop-filter on .nav
   creates a compositing layer that causes ::before to vanish on iOS
   Safari during scroll. */
html::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top);
  background: #ffffff;
  z-index: 9999; pointer-events: none;
}
.nav.scrolled {
  border-color: rgba(255,255,255,.08);
}
.nav-logo {
  font-family: var(--display); font-weight: 900;
  font-size: 1.85rem; letter-spacing: .06em; color: #FFFFFF;
  flex-shrink: 0; animation: nav-glitch 3s infinite; will-change: transform;
}
.nav-logo b { color: #FFFFFF; font-weight: inherit; }
.nav-links {
  display: flex; gap: 2.2rem; align-items: center;
}
.nav-links a {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(232,224,208,.5);
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--white);
  transition: width .25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }
.nav-btn {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; background: var(--white); color: #111111;
  padding: .6rem 1.4rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background .2s; flex-shrink: 0;
}
.nav-btn:hover { background: #d0c8b8; }
.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; border: none; background: none;
}
.nav-ham span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: .3s; }
.nav-ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer — slide in from right */
.nav-mobile {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(82vw, 340px);
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 2rem) 2rem 3rem;
  z-index: 498; gap: 0; overflow-y: auto;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.25,.46,.45,.94);
  pointer-events: none;
}
.nav-mobile.open { transform: translateX(0); pointer-events: auto; }
.nav-mobile a {
  font-family: var(--display); font-weight: 700; font-size: 1.4rem;
  letter-spacing: -.01em; color: rgba(17,17,17,.7);
  transition: color .2s, padding-left .2s;
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 1rem 0;
}
.nav-mobile a:hover, .nav-mobile a.active { color: #111111; padding-left: .4rem; }
.nav-mobile .nav-btn { display: inline-block; width: fit-content; font-size: .7rem; padding: .8rem 2rem; color: #111111; background: #111111; color: #E8E0D0; margin-top: 1.5rem; }

/* ── TICKER ─────────────────────────────────────────────── */
.ticker {
  background: var(--red); overflow: hidden; position: relative;
  padding: .72rem 0; border-top: none; border-bottom: none;
}
.ticker-track {
  display: flex; animation: ticker-scroll 32s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.tick-item {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255,255,255,.92);
  padding: 0 2.5rem; flex-shrink: 0;
}
.tick-item::after { content: '◆'; margin-left: 2.5rem; opacity: .5; font-size: .5rem; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── SECTION UTILITIES ──────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 5rem var(--pad); }
.section-sm { padding: 3rem var(--pad); }

.sec-eyebrow {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .9rem;
}
.sec-eyebrow::after {
  content: ''; height: 1px; width: 48px; background: var(--red);
}
.sec-eyebrow.center { justify-content: center; }
.sec-eyebrow.center::before { content: ''; height: 1px; width: 48px; background: var(--red); }
.sec-eyebrow.ice { color: var(--ice); }
.sec-eyebrow.ice::after { background: var(--ice); }

.sec-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3rem, 6.5vw, 7.5rem);
  line-height: .9; letter-spacing: -.01em;
}
.sec-title.xl {
  font-size: clamp(3.5rem, 8vw, 9.5rem);
}
.sec-title .accent { color: var(--red); }
.sec-title.center { text-align: center; }

.sec-desc {
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  color: var(--muted); line-height: 1.8; max-width: 560px;
}
.sec-desc.center { text-align: center; margin: 0 auto; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; padding: 1rem 2.2rem;
  transition: all .22s; white-space: nowrap;
}
.btn-primary {
  background: #111111; color: var(--white);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-primary:hover { background: #333333; }
/* On dark backgrounds, flip primary button to cream so it stands out */
section[style*="background:#090909"] .btn-primary,
section[style*="background:#080808"] .btn-primary,
section[style*="background:#060606"] .btn-primary,
section[style*="background:#060b10"] .btn-primary,
section[style*="background:#060d15"] .btn-primary,
section[style*="background:#04080e"] .btn-primary,
.hero .btn-primary,
.page-hero .btn-primary,
header[class*="recovery-hero"] .btn-primary {
  background: var(--white); color: #111111;
}
section[style*="background:#090909"] .btn-primary:hover,
section[style*="background:#080808"] .btn-primary:hover,
.hero .btn-primary:hover,
.page-hero .btn-primary:hover { background: #d0c8b8; }
.btn-outline {
  border: 1px solid rgba(17,17,17,.28); color: #111111;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
/* Restore light btn-outline inside dark sections */
section[style*="background:#090909"] .btn-outline,
section[style*="background:#080808"] .btn-outline,
section[style*="background:#060b10"] .btn-outline,
section[style*="background:#060d15"] .btn-outline,
section[style*="background:#04080e"] .btn-outline,
.page-hero .btn-outline,
header[class*="recovery-hero"] .btn-outline {
  border-color: rgba(232,224,208,.22); color: #E8E0D0;
}
section[style*="background:#090909"] .btn-outline:hover,
section[style*="background:#080808"] .btn-outline:hover,
section[style*="background:#060b10"] .btn-outline:hover,
section[style*="background:#060d15"] .btn-outline:hover,
.page-hero .btn-outline:hover,
header[class*="recovery-hero"] .btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94),
              transform .7s cubic-bezier(.25,.46,.45,.94);
}
.rv.on { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ── DIVIDERS ───────────────────────────────────────────── */
.rule { height: 1px; background: rgba(255,255,255,.07); }
.rule-red { height: 1px; background: rgba(0,102,255,.18); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  padding: 5rem var(--pad) 3rem;
  background: #f5f5f5;
  border-top: 1px solid rgba(0,0,0,.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 4rem;
}
.footer-brand .footer-logo {
  font-family: var(--display); font-weight: 900;
  font-size: 2.4rem; letter-spacing: -.02em; margin-bottom: 1rem;
}
.footer-brand .footer-logo b { color: var(--red); font-weight: inherit; }
.footer-brand p {
  font-size: .9rem; color: rgba(17,17,17,.68); line-height: 1.75;
  max-width: 290px; margin-bottom: 1.5rem;
}
.footer-col h3,
.footer-col h4 {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(17,17,17,.65); margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .9rem; }
.footer-col ul li a {
  font-size: .9rem; color: rgba(17,17,17,.65); transition: color .2s;
  line-height: 1.4;
}
.footer-col ul li a:hover { color: #111; }
.footer-contact p {
  font-size: .9rem; color: rgba(17,17,17,.65); line-height: 1.9;
}
.footer-contact strong {
  display: block; font-size: .62rem;
  font-family: var(--mono); letter-spacing: .18em;
  text-transform: uppercase; color: rgba(17,17,17,.65);
  margin-bottom: .4rem; margin-top: 1.4rem;
}
.footer-contact strong:first-child { margin-top: 0; }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center;
  gap: .65rem; text-align: center;
}
.footer-bottom p {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  color: rgba(17,17,17,.65); text-transform: uppercase;
}
.transparency-link {
  display: inline-block;
  background: linear-gradient(90deg, #7a4f00 0%, #c98a00 25%, #e8b800 45%, #ffd000 50%, #e8b800 55%, #c98a00 75%, #7a4f00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(200,138,0,.45);
  text-underline-offset: 3px;
  cursor: pointer;
  animation: gold-shimmer 3s linear infinite;
  transition: text-decoration-color .2s;
}
.transparency-link:hover {
  text-decoration-color: rgba(200,138,0,.9);
  animation-play-state: paused;
  background-position: right center;
}
@keyframes gold-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: 0% center; }
}
@media (prefers-reduced-motion: reduce) {
  .transparency-link { animation: none; background-position: 0% center; }
}
.footer-social { display: flex; gap: .75rem; flex-wrap: wrap; }
.footer-social a {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(17,17,17,.72);
  border: 1px solid rgba(0,0,0,.15); padding: .4rem .9rem;
  transition: all .2s;
}
.footer-social a:hover { border-color: #111; color: #111; }

/* ── PAGE HERO (subpages) ───────────────────────────────── */
.page-hero {
  min-height: 52svh; padding: calc(var(--nav-h) + env(safe-area-inset-top) + 5rem) var(--pad) 5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  background: #060606; color: #E8E0D0;
  --muted: rgba(232,224,208,.65);
  --red: var(--white);
}
.page-hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.28; filter: grayscale(20%);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 90%);
}
.page-hero-content { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; width: 100%; }
.page-hero-eyebrow {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1rem;
}
.page-hero-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(4rem, 10vw, 12rem);
  line-height: .88; letter-spacing: -.015em;
}
.page-hero-title .accent { color: var(--red); }
.page-hero-sub {
  font-size: clamp(.9rem, 1.2vw, 1.1rem);
  color: var(--muted); max-width: 500px; line-height: 1.7;
  margin-top: 2rem;
}

/* ── HOME HERO ──────────────────────────────────────────── */
.hero {
  height: 100svh; min-height: 680px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(4.5rem + env(safe-area-inset-top)) var(--pad) 4.5rem; position: relative; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17,17,17,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 90%);
}
.hero-ghost {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display); font-weight: 900;
  font-size: clamp(220px, 36vw, 550px);
  color: transparent; -webkit-text-stroke: 1px rgba(17,17,17,.06);
  letter-spacing: -.05em; pointer-events: none; user-select: none;
  white-space: nowrap; will-change: transform;
}
.hero-507-mobile {
  display: none;
}
.hero-slash {
  position: absolute; top: 0; right: 22%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent 5%, rgba(17,17,17,.15) 40%, rgba(17,17,17,.15) 65%, transparent 95%);
  transform: rotate(6deg);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1rem;
}
.hero-eyebrow::before { content: '// '; opacity: .45; }
.hero-title {
  font-family: var(--display); font-weight: 900;
  line-height: .86;
}
.hero-title .l1 {
  font-size: clamp(5rem, 14vw, 16rem); font-style: italic;
  display: block; letter-spacing: -.02em;
}
.hero-title .l2 {
  font-size: clamp(7rem, 22vw, 26rem);
  color: transparent; display: block;
  -webkit-text-stroke: 2px #111111;
  paint-order: stroke fill;
  letter-spacing: .02em; line-height: .82;
}

/* Glitch (hero only) */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: rgba(0,200,255,.6); animation: g1 5s infinite; clip-path: polygon(0 22%, 100% 22%, 100% 44%, 0 44%); }
.glitch::after  { color: rgba(0,102,255,.5);   animation: g2 5s infinite; clip-path: polygon(0 62%, 100% 62%, 100% 80%, 0 80%); }
@keyframes g1 { 0%,86%,100%{transform:none;opacity:0} 88%{transform:translate(-4px,2px);opacity:.75} 90%{transform:translate(3px,-2px);opacity:.75} 92%{opacity:0} }
@keyframes nav-glitch {
  0%,85%,100% { filter:none; transform:none; }
  87% { filter:drop-shadow(-4px 0 rgba(0,200,255,.7)) drop-shadow(4px 0 rgba(255,40,0,.6)); transform:translateX(-2px); }
  89% { filter:drop-shadow(4px 0 rgba(0,200,255,.7)) drop-shadow(-4px 0 rgba(255,40,0,.6)); transform:translateX(2px); }
  91% { filter:none; transform:none; }
}
@keyframes g2 { 0%,86%,100%{transform:none;opacity:0} 87%{transform:translate(4px,-2px);opacity:.75} 89%{transform:translate(-3px,1px);opacity:.75} 91%{opacity:0} }

.hero-bottom {
  margin-top: 2.5rem; display: flex; align-items: flex-end;
  justify-content: space-between; position: relative; z-index: 1;
  flex-wrap: wrap; gap: 2rem;
}
.hero-desc {
  font-size: 1rem; color: var(--muted);
  max-width: 310px; line-height: 1.7;
}
.hero-stats { display: flex; gap: 2.5rem; }
.hstat .n {
  font-family: var(--display); font-weight: 900;
  font-size: 2.7rem; color: #111111;
  display: block; line-height: 1;
}
.hstat .l {
  font-family: var(--mono); font-size: .56rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(17,17,17,.45);
  display: block; margin-top: .2rem;
}
.hero-scroll-cue {
  position: absolute; bottom: 3rem; right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: .7rem; z-index: 1;
}
.hero-scroll-cue span {
  font-family: var(--mono); font-size: .54rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(232,224,208,.28); writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: sl 2s ease infinite;
  transform-origin: top;
}
@keyframes sl {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  50.1%{ transform: translateY(0) scaleY(1); }
  100% { transform: translateY(100%) scaleY(0); }
}

/* ── STATS STRIP ────────────────────────────────────────── */
.stats-strip {
  padding: 4rem var(--pad);
  border-top: 1px solid rgba(0,0,0,.07);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.stats-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-left: 1px solid rgba(0,0,0,.07);
}
.stat-card {
  padding: 2rem 2rem 2rem 2rem;
  border-right: 1px solid rgba(0,0,0,.07);
  position: relative; overflow: hidden;
  transition: background .25s;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--red);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s;
}
.stat-card:hover { background: rgba(0,0,0,.02); }
.stat-card:hover::before { transform: scaleY(1); }
.stat-num {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.8rem, 4vw, 4.5rem); line-height: 1; display: block;
}
.stat-num .r { color: var(--red); }
.stat-num .g { color: var(--gold); }
.stat-lbl {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(17,17,17,.38);
  margin-top: .4rem; display: block;
}
.stat-desc { font-size: .82rem; color: var(--muted); margin-top: .8rem; line-height: 1.65; }

/* ── SERVICE CARDS ──────────────────────────────────────── */
.svc-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(0,0,0,.08);
}
.svc {
  background: #ffffff; padding: 3.5rem;
  position: relative; overflow: hidden;
  transition: background .35s; cursor: pointer;
}
.svc:hover { background: #f8f8f8; }
.svc::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(0,102,255,.055) 0%, transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.svc:hover::after { opacity: 1; }
.svc-num {
  font-family: var(--display); font-weight: 900;
  font-size: 5.5rem; color: rgba(0,0,0,.18);
  position: absolute; top: .5rem; right: 2rem; line-height: 1;
  pointer-events: none; transition: color .35s;
}
.svc:hover .svc-num { color: rgba(0,102,255,.1); }
.svc-icon { width: 42px; height: 42px; margin-bottom: 1.8rem; }
.svc-name {
  font-family: var(--display); font-weight: 900;
  font-size: 2.4rem; letter-spacing: -.02em;
  margin-bottom: .8rem; transition: color .25s;
}
.svc:hover .svc-name { color: var(--red); }
.svc-desc {
  font-size: .88rem; color: var(--muted);
  line-height: 1.75; max-width: 340px;
}
.svc-link {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.5rem;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
  position: relative; z-index: 2;
}
/* Full-card click area */
.svc-link::before {
  content: ''; position: absolute; inset: -200px -100px;
  z-index: -1;
}
.svc:hover .svc-link { opacity: 1; transform: none; }
.svc-link svg { width: 12px; }

/* ── RECOVERY CARDS ─────────────────────────────────────── */
.rec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(0,200,255,.07);
  max-width: var(--max); margin: 0 auto;
}
.rfeat {
  background: var(--black); padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
}
.rfeat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--ice), transparent);
}
.rfeat-temp {
  font-family: var(--display); font-weight: 900; font-size: 4.5rem;
  color: rgba(255,255,255,.04); position: absolute;
  top: .5rem; right: 1rem; pointer-events: none;
}
.rfeat-icon { display: block; margin-bottom: 1.4rem; line-height: 0; }
.rfeat-name {
  font-family: var(--display); font-weight: 900;
  font-size: 2.1rem; color: var(--ice); margin-bottom: .7rem;
}
.rfeat-desc { font-size: .85rem; color: rgba(232,224,208,.42); line-height: 1.7; }

/* ── PRICING CARDS ──────────────────────────────────────── */
.pricing-wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1040px; margin: 0 auto;
}
.pcard {
  border: 1px solid rgba(0,0,0,.12);
  padding: 2.8rem 2.4rem;
  position: relative; transition: transform .3s, border-color .3s;
}
.pcard:hover { transform: translateY(-4px); }
.pcard.feat {
  border-color: var(--red);
  background: linear-gradient(155deg, rgba(0,102,255,.04) 0%, transparent 45%);
}
.pcard.feat::before {
  content: 'MOST POPULAR';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  font-family: var(--mono); font-size: .5rem; letter-spacing: .2em;
  text-transform: uppercase; padding: .3rem .9rem;
}
.pt {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(17,17,17,.4); margin-bottom: 1.3rem;
}
.pa { font-family: var(--display); font-weight: 900; font-size: 5rem; line-height: 1; }
.pa sup { font-size: 2rem; vertical-align: super; }
.pp {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .15em;
  color: rgba(17,17,17,.4); text-transform: uppercase;
  margin: .25rem 0 1.8rem;
}
.pdiv { height: 1px; background: rgba(0,0,0,.1); margin: 1.6rem 0; }
.pf { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2.2rem; }
.pf li {
  font-size: .84rem; color: var(--muted);
  display: flex; align-items: center; gap: .65rem;
}
.pf li::before { content: '—'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.pcta {
  display: block; text-align: center;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; padding: .9rem;
  border: 1px solid rgba(0,0,0,.2); color: #111111;
  transition: all .2s;
}
.pcard.feat .pcta { background: var(--red); border-color: var(--red); color: var(--white); }
.pcta:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── TEAM CARDS ─────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; max-width: var(--max); margin: 0 auto;
}
.tmem {}
.tphoto {
  width: 100%; aspect-ratio: 3/4;
  position: relative; overflow: hidden;
  background: var(--gray-2); margin-bottom: 1.5rem;
}
.tphoto img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .5s;
  filter: grayscale(15%);
}
.tmem:hover .tphoto img { transform: scale(1.03); }
.tphoto-grad {
  position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(to top, #ffffff, transparent);
}
.ttag {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--mono); font-size: .56rem; letter-spacing: .2em;
  text-transform: uppercase; background: var(--red); color: var(--white);
  padding: .28rem .7rem;
}
.tname {
  font-family: var(--display); font-weight: 900;
  font-size: 2.4rem; letter-spacing: -.02em; line-height: 1;
}
.trole {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red);
  display: block; margin: .4rem 0 1rem;
}
.tbio { font-size: .85rem; color: var(--muted); line-height: 1.75; }

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testi-track {
  display: flex; gap: 1.2rem;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0 var(--pad) 1rem;
  cursor: grab; touch-action: pan-x;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-track:active { cursor: grabbing; }
.tcard {
  flex-shrink: 0; width: 340px;
  background: #fff;
  border-top: 3px solid rgba(0,0,0,.08);
  padding: 2.2rem 2rem;
  display: flex; flex-direction: column;
  transition: border-color .25s;
}
.tcard:hover { border-top-color: var(--red); }
.tcard.gold { border-top-color: #FFB800; }
.tstars { display: flex; gap: .2rem; margin-bottom: 1.2rem; }
.tstars span { color: #FFB800; font-size: .75rem; }
.ttext {
  font-size: .88rem; color: rgba(17,17,17,.7);
  line-height: 1.8; margin-bottom: auto;
  padding-bottom: 1.6rem; font-style: italic;
}
.tauthor { font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: #111; }
.thandle {
  font-family: var(--mono); font-size: .54rem; letter-spacing: .14em;
  color: rgba(17,17,17,.6); text-transform: uppercase;
  display: block; margin-top: .3rem;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,.1); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; cursor: pointer; gap: 2rem;
}
.faq-q span {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -.01em; transition: color .2s;
}
.faq-q:hover span { color: var(--red); }
.faq-icon {
  width: 28px; height: 28px; border: 1px solid rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .25s;
}
.faq-item.open .faq-icon { background: var(--red); border-color: var(--red); transform: rotate(45deg); }
.faq-icon svg { width: 12px; height: 12px; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  font-size: .9rem; color: var(--muted);
  line-height: 1.8; padding-bottom: 1.5rem;
}

/* ── CONTACT FORM AREA ──────────────────────────────────── */
.cinfo-block {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.cinfo-block:last-child { border-bottom: none; }
.cinfo-label {
  font-family: var(--mono); font-size: .56rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--red);
}
.cinfo-val {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  line-height: 1.1;
}
.cinfo-sub { font-size: .82rem; color: var(--muted); }

/* ── SCHEMA DATA ──── (visually hidden, SEO) ────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── BACK TO TOP ────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 400; border: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
#back-to-top.visible { opacity: 1; transform: none; }
#back-to-top:hover { background: #0052cc; }

/* ── CONTACT FORM ────────────────────────────────────────── */
.cform { display: flex; flex-direction: column; gap: 1.4rem; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cform-field { display: flex; flex-direction: column; gap: .5rem; }
.cform-field label {
  font-family: var(--mono); font-size: .55rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--red);
}
.cform-field input,
.cform-field textarea {
  background: #fff; border: 1px solid rgba(0,0,0,.18);
  padding: .85rem 1rem; font-family: var(--body); font-size: .9rem;
  color: #111; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s;
  border-radius: 0;
}
.cform-field input:focus,
.cform-field textarea:focus { border-color: var(--red); }
.cform-field textarea { min-height: 140px; resize: vertical; }
.cform-msg {
  display: none; padding: 1rem 1.2rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .15em;
  text-transform: uppercase;
}
.cform-msg.success { background: rgba(0,180,80,.08); color: #006630; border: 1px solid rgba(0,180,80,.2); }
.cform-msg.error   { background: rgba(0,102,255,.06);  color: var(--red); border: 1px solid rgba(0,102,255,.2); }
@media(max-width:600px){ .cform-row { grid-template-columns:1fr; } }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-btn { display: none; }
  .nav-ham { display: flex; }
  .hero { padding-bottom: 2rem; justify-content: flex-end; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
  .rec-pricing-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .pricing-wrap { grid-template-columns: 1fr; max-width: 400px; }
  .couples-family-grid { grid-template-columns: 1fr !important; max-width: 400px; margin-left: auto; margin-right: auto; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .values-grid { grid-template-columns: 1fr 1fr !important; }
  .facility-grid { grid-template-columns: 1fr !important; }
  .social-strip-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .social-cards-grid { grid-template-columns: 1fr 1fr 1fr !important; }
  .connect-grid { grid-template-columns: 1fr !important; }
  .section { padding: 3.5rem var(--pad); }
  .section-sm { padding: 2.5rem var(--pad); }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; }
  .tcard { width: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: center; }
  .hero-title .l1 { font-size: clamp(3.5rem, 18vw, 6rem); }
  .hero-title .l2 { font-size: clamp(5.5rem, 26vw, 9rem); }
  .values-grid { grid-template-columns: 1fr !important; }
  .social-cards-grid { grid-template-columns: 1fr !important; }

  /* ── COMPONENT PADDING ─── */
  .svc { padding: 2.2rem 1.5rem; }
  .svc-num { font-size: 3rem; right: 1rem; }
  .rfeat { padding: 2rem 1.5rem; }
  .pcard { padding: 2rem 1.5rem; }
  .stat-card { padding: 1.5rem 1.25rem; }

  /* ── GRIDS ────────────────*/
  .equip-grid { grid-template-columns: 1fr !important; }
  .feat-items-grid { grid-template-columns: 1fr !important; }
  .pricing-wrap { max-width: 100%; }
  .couples-family-grid { max-width: 100% !important; }

  /* ── HERO ─────────────────*/
  .hero-scroll-cue { display: none; }
  .hero-stats { gap: 1.5rem; }
  .hero-desc { max-width: 100%; }
  .hero-bottom { margin-top: .75rem; }
  .hero-title .l1 { margin-bottom: 0 !important; }
  .hero-title .l2 {
    display: block; text-align: right;
    font-size: 58vw;
    -webkit-text-stroke: 1px rgba(17,17,17,.25);
    margin-top: -.15em;
    margin-bottom: 1.25rem;
  }
  .hero-cta-row { margin-top: 1rem !important; }

  /* ── TYPOGRAPHY ───────────*/
  .page-hero { min-height: 38vh; }
  .page-hero-title { font-size: clamp(3rem, 14vw, 12rem); }
  .faq-q span { font-size: 1.1rem; }

  /* ── SPACING ──────────────*/
  .section { padding: 3rem var(--pad); }
  .section-sm { padding: 2rem var(--pad); }
}

@media (max-width: 600px) {
  .rec-pricing-desc { display: none; }
  .rec-pricing-card { padding: 1.8rem !important; }
  .rec-pricing-card .price-num { font-size: 3.5rem !important; }
  .rec-pricing-card ul { gap: .4rem !important; margin-bottom: 1.5rem !important; }
  .rec-pricing-btns { flex-direction: column; }
  .rec-pricing-btns a { text-align: center; }
}

@media (max-width: 480px) {
  .hero-title .l1 { font-size: clamp(2.8rem, 20vw, 5rem); }
  .hero-stats { display: none; }
  .hero-bottom { margin-top: 1rem; }
  .hstat .n { font-size: 2.2rem; }
  .page-hero-title { font-size: clamp(2.6rem, 16vw, 12rem); }
  .svc-name { font-size: 1.8rem; }
  .rfeat-name { font-size: 1.7rem; }
  .tname { font-size: 1.8rem; }
  .faq-q span { font-size: 1rem; }
  .footer-grid { gap: 2rem; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track { animation: none !important; }
  .glitch::before, .glitch::after { display: none !important; }
}
