/* UA HEADING METRICS FOR THE H-4 LOWERED HEADINGS, safire-wellness build 1, 2026-09-11.
   A lowered heading changes TAG, and the browser's own heading rules are keyed on the tag. These
   restore the original tag's UA font-size and margin at specificity zero, ahead of everything, so
   any author rule still wins. Chromium's measured values. */
:where(:is(h1,h2,h3,h4,h5,h6).was-h4){font-size:1em;margin-block-start:1.33em;margin-block-end:1.33em}

/* Safire Wellness — design tokens (v2, City Cave energy translated to Safire)
   Direction: City Cave MECHANICS (bright/dark alternation, one confident accent,
   bold display type, motion) carried into Safire's own electric-blue + green identity.
   Accent: electric sapphire blue (on-name) + vivid green. Dark core, bright relief.
   created: 2026-07-13 · created_by: peak-wellness (SPW) · rebuild per Mark's direction */

/* Self-hosted display type (SPIM: no external font CDN). Body uses system sans. */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('https://media.beargrassai.com/safire-wellness/fonts/archivo-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('https://media.beargrassai.com/safire-wellness/fonts/archivo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('https://media.beargrassai.com/safire-wellness/fonts/archivo-800.woff2') format('woff2');
}

:root {
  /* --- accents: electric blue (primary, on-name) + vivid green (secondary) --- */
  --blue:       #1f9df0;   /* electric sapphire — primary accent, every CTA */
  --blue-deep:  #0f6fd0;   /* hover / gradient depth */
  --blue-bright:#4fb6ff;   /* highlight on dark */
  --green:      #1fc39a;   /* vivid recovery green — secondary accent */
  --green-deep: #12a37e;
  --grad:       linear-gradient(118deg, var(--blue) 0%, var(--green) 100%); /* sapphire spectrum */

  /* --- dark core (blue-black, ties to sapphire) --- */
  --dark:       #0a1017;   /* deep blue-black — hero + primary dark ground */
  --dark-alt:   #0f1b28;   /* dark blue — alt dark band */
  --dark-card:  #13212f;   /* card surface on dark */

  /* --- bright relief --- */
  --light:      #ffffff;   /* pure white light section */
  --light-alt:  #eef4fa;   /* cool off-white (faint blue) alt light section */

  /* --- text --- */
  --ink:        #0e1720;   /* body ink on light */
  --ink-muted:  #55677a;   /* secondary text on light */
  --ink-light:  #f2f7fc;   /* primary text on dark */
  --ink-dim:    #93a8bd;   /* secondary text on dark (cool blue-gray) */

  /* --- rules / dividers --- */
  --line-dark:  rgba(120,180,240,.14);
  --line-light: rgba(14,23,32,.10);

  /* --- shadows --- */
  --shadow-sm:  0 6px 20px rgba(4,10,20,.28);
  --shadow-md:  0 20px 50px rgba(4,10,20,.40);
  --shadow-blue:0 16px 40px rgba(31,157,240,.28);

  /* --- radius --- */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill:999px;

  /* --- max-width --- */
  --max:        1180px;

  /* --- section rhythm --- */
  --hero-min:        clamp(400px, 56vh, 600px);
  --hero-min-home:   clamp(560px, 82vh, 860px);
  --hero-pad-y:      clamp(3rem, 7vw, 5.5rem);
  --section-y:       clamp(3.5rem, 8vw, 6.5rem);

  /* --- typography (display confidence: Archivo bold caps + Inter body) --- */
  --font-head: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* --- motion --- */
  --ease:       cubic-bezier(.2,.7,.2,1);
  --reveal-t:   .8s;
}

/* Safire Wellness — site styles (v2)
   City Cave mechanics: bright/dark alternation, confident bold-caps display, one punchy
   accent, motion (rotating hero + Ken Burns zoom + hover zoom + scroll reveals).
   Identity: electric blue + green. created: 2026-07-13 · SPW rebuild per Mark's direction */

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--dark);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--blue); }

/* DISPLAY CONFIDENCE: bold uppercase, tight-set headlines */
h1:where(:not([class*="was-h"])), h2:where(:not([class*="was-h"])), h3:where(:not([class*="was-h"])), h4:where(:not([class*="was-h"])) , :is(h1,h2,h3,h4,h5,h6):where(.was-h4) {
  font-family: var(--font-head);
  line-height: 1.04;
  margin: 0 0 .6em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
h1:where(:not([class*="was-h"])) { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2:where(:not([class*="was-h"])) { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3:where(:not([class*="was-h"])) { font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
.section { padding: var(--section-y) 0; }

/* dark section */
.section--dark { background: var(--dark); color: var(--ink-light); }
.section--dark h1:where(:not([class*="was-h"])), .section--dark h2:where(:not([class*="was-h"])), .section--dark h3:where(:not([class*="was-h"])) { color: var(--ink-light); }
.section--dark p, .section--dark li { color: var(--ink-dim); }
.section--dark a:not(.btn) { color: var(--blue-bright); }

/* dark-alt section */
.section--dark-alt { background: var(--dark-alt); color: var(--ink-light); }
.section--dark-alt h2:where(:not([class*="was-h"])), .section--dark-alt h3:where(:not([class*="was-h"])) { color: var(--ink-light); }
.section--dark-alt p { color: var(--ink-dim); }
.section--dark-alt a:not(.btn) { color: var(--blue-bright); }

/* light section (the bright relief) */
.section--light { background: var(--light); color: var(--ink); }
.section--light h1:where(:not([class*="was-h"])), .section--light h2:where(:not([class*="was-h"])), .section--light h3:where(:not([class*="was-h"])) { color: var(--ink); }
.section--light p { color: var(--ink-muted); }

/* light-alt section */
.section--light-alt {
  background: var(--light-alt);
  color: var(--ink);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.section--light-alt h2:where(:not([class*="was-h"])), .section--light-alt h3:where(:not([class*="was-h"])) { color: var(--ink); }
.section--light-alt p { color: var(--ink-muted); }

/* ============================================================
   ANNOUNCEMENT BAR (Kalispell)
   ============================================================ */
.announce-bar {
  background: var(--grad); color: #fff;
  text-align: center; font-family: var(--font-head); font-weight: 700;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
  padding: .55rem 1.25rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,16,23,.82);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem clamp(1.25rem, 5vw, 2.5rem);
  max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink-light);
}
.brand img { height: 34px; width: auto; }
.brand-mark { height: 34px; width: 34px; flex: none; display: block; }
.footer-brand { display: flex; align-items: center; gap: .5rem; }
.footer-brand .brand-mark { height: 26px; width: 26px; }
.nav { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; align-items: center; }
.nav a:not(.btn) {
  color: var(--ink-dim); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem 0; border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:not(.btn):hover, :where(body[data-page="about"]) .nav a:not(.btn)[href="/about"], :where(body[data-page="services"]) .nav a:not(.btn)[href="/services"] { color: var(--ink-light); border-color: var(--blue); }
.nav__cta { margin-left: .4rem; padding: .62rem 1.4rem; font-size: .8rem; }

/* ============================================================
   BUTTONS (confident blue pills)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 2.1rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1;
  cursor: pointer; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}
.btn--primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--blue-deep); border-color: var(--blue-deep); color: #fff;
  transform: translateY(-2px);
}
.btn--grad {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.btn--grad:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--ink-light);
  border-color: rgba(255,255,255,.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12); border-color: #fff; color: #fff; transform: translateY(-2px);
}
.btn--light { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }

/* ============================================================
   PAGE HERO (rotating images + Ken Burns zoom)
   ============================================================ */
.page-hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: var(--hero-min); background: var(--dark);
}
.page-hero--home { min-height: var(--hero-min-home); align-items: center; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
/* each slide stacked; crossfade via .is-active */
.page-hero__media img,
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s var(--ease);
  will-change: opacity, transform;
}
.page-hero__media img:first-child, .hero-slide.is-active { opacity: 1; }
.hero-slide.is-active { animation: kenburns 9s var(--ease) both; }
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.14); }
}
.page-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(92deg, rgba(10,16,23,.94) 0%, rgba(10,16,23,.76) 52%, rgba(10,16,23,.46) 100%),
    linear-gradient(0deg, rgba(10,16,23,.55) 0%, rgba(10,16,23,0) 45%);
}
.page-hero__inner {
  position: relative; z-index: 2; padding: var(--hero-pad-y) 0;
  color: var(--ink-light); max-width: var(--max); margin: 0 auto; width: 100%;
  padding-left: clamp(1.25rem, 5vw, 2.5rem); padding-right: clamp(1.25rem, 5vw, 2.5rem);
}
.page-hero h1:where(:not([class*="was-h"])) { color: #fff; max-width: 16ch; margin-bottom: .7rem; }
.page-hero--home h1:where(:not([class*="was-h"])) { max-width: 18ch; }
.page-hero .hero-sub {
  font-family: var(--font-body); font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--ink-light); opacity: .92; max-width: 46ch; margin-bottom: 2.2rem; line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.eyebrow--hero { color: var(--blue-bright); }

@media (max-width: 720px) {
  .page-hero__scrim {
    background: linear-gradient(180deg, rgba(10,16,23,.35) 0%, rgba(10,16,23,.85) 72%);
  }
}

/* ============================================================
   CTA BAND (accent gradient — a bright energetic beat)
   ============================================================ */
.cta-band { padding: clamp(2.25rem,5vw,3.25rem) 0; background: var(--grad); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band__text h2:where(:not([class*="was-h"])) { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.cta-band__text p { color: rgba(255,255,255,.9); margin: .4rem 0 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn--primary { background: #fff; color: var(--blue-deep); border-color: #fff; box-shadow: 0 10px 30px rgba(4,10,20,.25); }
.cta-band .btn--primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ============================================================
   INTRO LEDE (bright relief section)
   ============================================================ */
.intro-lede__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.intro-lede__text p { max-width: 52ch; }
.intro-lede__text p + p { margin-top: .5rem; }
.intro-lede__text .btn { margin-top: 1.5rem; }
.intro-lede__media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.intro-lede__media img {
  width: 100%; height: 420px; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.intro-lede__media:hover img { transform: scale(1.07); }

@media (max-width: 800px) {
  .intro-lede__inner { grid-template-columns: 1fr; }
  .intro-lede__media { order: -1; }
  .intro-lede__media img { height: 280px; }
}

/* ============================================================
   SERVICE CARD GRID (image zoom on hover)
   ============================================================ */
.card-grid__head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.card-grid__head p { max-width: 56ch; margin: 0 auto; }
.card-grid__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  background: var(--dark-card); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(79,182,255,.4); }
.service-card__imgwrap { overflow: hidden; }
.service-card__img { width: 100%; height: 230px; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__img { transform: scale(1.09); }
.service-card__body { padding: 1.5rem 1.6rem 1.8rem; }
.service-card__body h3:where(:not([class*="was-h"])) { color: var(--ink-light); margin-bottom: .5rem; }
.service-card__body p { color: var(--ink-dim); font-size: .95rem; margin-bottom: 1.1rem; }
.service-card__link { color: var(--blue-bright); font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.service-card__link:hover { color: #fff; }

@media (max-width: 900px) { .card-grid__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .card-grid__grid { grid-template-columns: 1fr; } }

/* ============================================================
   AMENITIES (home bright relief)
   ============================================================ */
.amenities__head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.amenities__head p { margin: 0 auto; }
.amenities__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem;
  max-width: 880px; margin: 0 auto;
}
.amenities__grid li {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; font-size: .92rem; color: var(--ink);
  display: flex; align-items: center; gap: .7rem;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.amenities__grid li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad); flex: none;
}
.amenities__grid li:hover { transform: translateY(-3px); border-color: rgba(31,157,240,.5); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) { .amenities__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .amenities__grid { grid-template-columns: 1fr; } }

/* ============================================================
   BENEFIT LIST (catalog pages)
   ============================================================ */
.benefit-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.benefit-list li {
  position: relative; padding: .5rem 0 .5rem 1.9rem; color: inherit;
  border-bottom: 1px solid var(--line-light);
}
.benefit-list li::before {
  content: ""; position: absolute; left: 0; top: .95rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--grad);
}
.section--dark .benefit-list li { border-color: var(--line-dark); }

/* ============================================================
   SERVICE DETAIL (services page — image zoom on hover)
   ============================================================ */
.service-detail__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
/* service-detail rows keep symmetric section padding so each alternating band is evenly spaced */
.service-detail--flip .service-detail__media { order: 2; }
.service-detail--flip .service-detail__text { order: 1; }
.service-detail__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.service-detail__media img { width: 100%; height: 440px; object-fit: cover; transition: transform 1.1s var(--ease); }
.service-detail__media:hover img { transform: scale(1.07); }
.service-detail__text .btn { margin-top: 1.25rem; }

@media (max-width: 800px) {
  .service-detail__inner { grid-template-columns: 1fr; }
  .service-detail--flip .service-detail__media { order: 0; }
  .service-detail--flip .service-detail__text { order: 0; }
  .service-detail__media img { height: 300px; }
}

/* ============================================================
   VALUES LIST (about)
   ============================================================ */
.values-list__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.values-list__head p { max-width: 56ch; }
.values-list__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.value-item {
  background: var(--dark-card); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: 2.1rem 2.35rem;
  transition: transform .25s var(--ease), border-color .25s;
}
.value-item:hover { transform: translateY(-4px); border-color: rgba(79,182,255,.4); }
.value-item__num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .5rem;
}
.value-item h3:where(:not([class*="was-h"])) { color: var(--ink-light); font-size: 1.4rem; margin-bottom: .5rem; }
.value-item p { color: var(--ink-dim); margin: 0; }
@media (max-width: 700px) { .values-list__grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT TEXT
   ============================================================ */
.about-text__inner { max-width: 68ch; }
.about-text p { font-size: 1.08rem; line-height: 1.7; }

/* ============================================================
   CONTACT / BOOKING
   ============================================================ */
.booking-cta { text-align: center; }
.booking-cta p { max-width: 52ch; margin: 0 auto 1.5rem; }
.booking-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.contact-info__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-info h3:where(:not([class*="was-h"])) { color: var(--ink-light); font-size: .95rem; margin-bottom: .25rem; }
.contact-info p, .contact-info address { color: var(--ink-dim); font-style: normal; }
.contact-info a { color: var(--blue-bright); }
.contact-block { margin-bottom: 1.75rem; }
@media (max-width: 720px) { .contact-info__inner { grid-template-columns: 1fr; } }

/* ============================================================
   LEGAL TEXT
   ============================================================ */
.legal-text { background: var(--light); }
.legal-text__inner { max-width: 72ch; }
.legal-text h1:where(:not([class*="was-h"])), .legal-text h2:where(:not([class*="was-h"])), .legal-text h3:where(:not([class*="was-h"])) { color: var(--ink); }
.legal-text p { color: var(--ink-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #060b11; border-top: 1px solid var(--line-dark);
  padding: 3.5rem 0 2rem; color: var(--ink-dim);
}
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-light); margin-bottom: .6rem; }
.footer-brand p { color: var(--ink-dim); font-size: .9rem; margin-top: .4rem; }
.footer-col h4:where(:not([class*="was-h"])) ,
.footer-col :is(h1,h2,h3,h4,h5,h6):where(.was-h4) { color: var(--ink-light); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.footer-col a { display: block; color: var(--ink-dim); font-size: .9rem; padding: .2rem 0; transition: color .18s; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .85rem;
}
.footer-bottom a { color: var(--ink-dim); }
.footer-bottom a:hover { color: var(--blue-bright); }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ============================================================
   EYEBROW / UTILITY
   ============================================================ */
.eyebrow {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--blue); margin: 0 0 .7rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); display: inline-block; }
.section--light .eyebrow, .section--light-alt .eyebrow { color: var(--blue-deep); }
.lede { font-size: 1.15rem; line-height: 1.6; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }

/* ============================================================
   SCROLL REVEAL (motion) — progressive + reduced-motion safe
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.has-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--reveal-t) var(--ease), transform var(--reveal-t) var(--ease); }
.has-js .reveal.in { opacity: 1; transform: none; }
.has-js .reveal.d1 { transition-delay: .08s; }
.has-js .reveal.d2 { transition-delay: .16s; }
.has-js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-slide.is-active { animation: none; }
  html { scroll-behavior: auto; }
}

/* ══ ADDITIONS, safire-wellness build 1, 2026-09-11 ═══════════════════════════════════════════════════════
   Written by mkcss.py. Every rule restores something v1 drew with markup or with script that the closed v2
   vocabulary cannot carry. Nothing here is new design and nothing here is a client preference.

   THE BRAND MARK. v1 inlines the same <svg> (13 paths, one two-stop gradient) in the header and the footer,
   aria-hidden beside the visible name. Decoration is stylesheet, not content, and H-5 refuses an <img alt="">,
   so the shell carries an empty <span class="brand-mark"> and this paints the identical file into it. The box
   is v1's own (`.brand-mark { height:34px; width:34px; display:block }`, `.footer-brand .brand-mark { 26px }`). */
.brand-mark { background: url("https://media.beargrassai.com/safire-wellness/media/safire-mark.svg") center / contain no-repeat }

/* ── INHERITED v1 DEFECT, FIXED, both measurements in the answer key. overflow.mjs (the only instrument here that
   can see it) measured 2026-09-11, all 13 routes, both sides: at 390 every route is exactly the viewport; at 320
   every route scrolls to 334 on v1 AND v2 -- the header's "Book a Session" pill (`.nav__cta`, 139px wide) inside a
   nav that starts at 189px. WCAG 1.4.10 Reflow forbids two-dimensional scrolling at 320. Measured at 340 the pill
   FITS (nav 189-334 in a 340 bar), so the rule below is scoped to ≤333px and can never fire at 340 or 390: it
   trims the pill's side padding from 1.4rem to .9rem (139px -> 123px, right edge 318 in a 320 viewport). Re-read
   after the fix: 320 scrollWidth 320 on v2, 390 unchanged (sweep, 0 differing pixels). */
@media (max-width: 333px) { .nav__cta { padding-left: .9rem; padding-right: .9rem } }

/* ── INHERITED v1 DEFECTS, FIXED: FOUR PHOTOGRAPH CROPS. MeatCheck 2026-09-12 (MEATCHECK.md, a reader who built none of
   it) found three heads cut by `object-fit: cover` at the default 50% 50% and one face half out of the phone hero — identical
   on both sides, so no parity instrument could see them. Kit item 10: a clipped element is fixed in v2 and declared, never
   reproduced for parity. Each rule moves only the focal point of one file; box, size and every other pixel are unchanged.
     IMG_0199-rotated.jpg   portrait 1512x2016 in landscape boxes (518x440 on /services, 1280x648 hero on /catalog/hydrogen-
                            inhalation): the head sat above the crop -> 50% 12%.
     peak-wellness_3-scaled.jpg  1600x900 in a 518x440 box on /services: the nearest person's head was cut by the LEFT edge
                            -> 0% 50% (anchor the left).
     peak-wellness_8-scaled.jpg  the cold-plunge hero at 390: the face sat at the right edge -> 72% 50% on the phone width only.
   Both measurements (before/after crops) are in MEATCHECK-crops-1.png; the pixel delta against v1 on those bands is the fix
   landing and is declared in the answer key. */
img[src$="/IMG_0199-rotated.jpg"] { object-position: 50% 12% }
.service-detail__media img[src$="/peak-wellness_3-scaled.jpg"] { object-position: 0% 50% }
@media (max-width: 720px) { .page-hero__media img[src$="/peak-wellness_8-scaled.jpg"] { object-position: 72% 50% } }

/* NOTHING ELSE TO ADD ON THIS SITE. Measured 2026-09-11 over all 13 frozen documents: no <br>-split lines inside
   <main> (no .ln), no converted controls (no .was-button), no phone drawer, no bg-photo, no form status line.
   The reveals are visible without script by v1's own `.reveal { opacity:1 }` rule; the hero's first slide
   paints by v1's own `.page-hero__media img:first-child { opacity:1 }`; the Ken Burns keyframe is finite and
   carried above. The additions are the mark above, the H-4 twins (PREFIX) and the inline utilities (inline.css). The dead
   `<a href="#">` on /book is drawn as <span class="btn btn--primary was-a">; `.btn` sets display, cursor, colour
   and decoration itself (styles.css:195), so no twin is needed for it. */

/* GLYPHS, generated by extract-v1.py 2026-09-05. Every inline SVG v1 carried, keyed by content hash and
   drawn as a mask so the element that carries it holds no markup. Decoration is stylesheet, not content. */

/* INLINE STYLES, generated by extract-v1.py 2026-09-05. v1 wrote these as style="" attributes; H-13 forbids the
   attribute, so each distinct declaration list is one utility class, named by hash, carried by the same element. */
.u-a5b6ed{text-align:center !important;margin-top:2.5rem !important}
.u-5b3766{margin-top:1.5rem !important;display:inline-flex !important}
.u-616598{max-width:72ch !important}
