/* ==========================================================================
   The Baker Company — styles.css
   Mobile-first. Cream/brown editorial system. No framework.
   ========================================================================== */

/* Brand display face — Sentient (self-hosted) */
@font-face {
  font-family: "Sentient";
  src: url("assets/fonts/Sentient.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Palette — brand colors */
  --cream: #F9F5EE;
  --cream-2: #F0E9DC;
  --brown: #4A3B32;
  --brown-soft: #6B584B;
  --espresso: #261E1A;
  --oxblood: #5A1A14;
  --clay: #B08968;
  --line: rgba(74, 59, 50, 0.16);
  --line-light: rgba(249, 245, 238, 0.18);

  /* Type */
  --font-display: "Sentient", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, sans-serif;

  /* Rhythm */
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 16px; /* uniform site-wide */

  /* Fluid type scale */
  --text-hero: clamp(2.6rem, 8.2vw, 5.2rem);
  --text-h2: clamp(2rem, 5.2vw, 3.4rem);
  --text-h3: clamp(1.7rem, 4.2vw, 2.6rem);
  --text-body: clamp(1rem, 1.1vw, 1.125rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--brown);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  /* Subtle paper grain for warmth */
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}

body.wizard-open { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--espresso);
}

em { font-style: italic; }

button { font: inherit; cursor: pointer; }

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* Anchor targets clear the floating fixed nav */
main section[id], #story { scroll-margin-top: 6.5rem; }

.br-desk { display: none; }
@media (min-width: 720px) { .br-desk { display: block; } }

/* ==========================================================================
   LIQUID GLASS (Aave-style)
   Neutral clear glass: frosted backdrop + specular edge highlights everywhere;
   Chromium additionally refracts the backdrop through the #glass-lens SVG
   displacement filter. Safari/Firefox keep the frosted layer only.
   ========================================================================== */
:root {
  /* Clearer center, brighter rim, deeper soft shadow — canonical liquid glass */
  --glass-fill: rgba(255, 255, 255, 0.1);
  --glass-fill-strong: rgba(255, 255, 255, 0.42);
  --glass-edge: rgba(255, 255, 255, 0.5);
  --glass-specular: inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 1px rgba(255, 255, 255, 0.18),
    inset 1px 0 1px rgba(255, 255, 255, 0.2),
    inset -1px 0 1px rgba(255, 255, 255, 0.2);
  --glass-drop: 0 18px 44px rgba(38, 30, 26, 0.28), 0 3px 10px rgba(38, 30, 26, 0.14);
  --glass-drop-soft: 0 10px 28px rgba(38, 30, 26, 0.12), 0 2px 6px rgba(38, 30, 26, 0.07);
}

/* Reusable glass card (light sections) */
.glass-card {
  background: var(--glass-fill-strong);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow: var(--glass-specular), var(--glass-drop-soft);
}

.glass-chip {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--glass-specular), var(--glass-drop);
}

/* True lens refraction is applied per-element by LiquidGlass in app.js
   (Aave method: generated displacement maps via feImage + feDisplacementMap).
   Chromium gets the lens; Safari/Firefox keep the frosted layer above. */

/* ---------- Shared atoms ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--clay);
  flex: none;
}
.eyebrow-light { color: var(--clay); }

.section-title { font-size: var(--text-h2); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Buttons ---------- */
.btn {
  /* Every button is borderless liquid glass; edges come from the specular insets */
  --btn-bg-rgb: 74, 59, 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  white-space: nowrap;
  backdrop-filter: blur(14px) saturate(1.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.45);
  box-shadow: var(--glass-specular), var(--glass-drop);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}
@media (max-width: 480px) {
  .site-header .btn { padding: 0.65rem 1.1rem; font-size: 0.85rem; }
}
@media (max-width: 430px) {
  .site-header .brand-text { display: none; } /* badge carries the mark on small phones */
}
.btn-primary {
  --btn-bg-rgb: 90, 26, 20;
  background: rgba(90, 26, 20, 0.78); /* oxblood glass */
  color: var(--cream);
}
.btn-primary:hover { background: rgba(90, 26, 20, 0.92); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.3);
  color: var(--brown);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.55); }
/* Light button — clear glass, used on dark/photo backgrounds */
.btn-light {
  --btn-bg-rgb: 255, 255, 255;
  background: var(--glass-fill);
  color: #fff;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.24); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.55; cursor: wait; }

.cta-note {
  font-size: 0.8rem;
  color: var(--brown-soft);
  margin-top: 0.85rem;
}
.cta-note.center { text-align: center; }

/* ---------- Header ---------- */
/* Floating glass bar; colors adapt to the brightness of what's beneath it
   (app.js toggles .on-dark while a dark section sits under the bar) */
.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2rem, 72rem); /* follows the site container width */
  z-index: 40;
  border-radius: var(--radius);
  background: var(--glass-fill-strong);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--glass-specular), var(--glass-drop-soft);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.site-header .brand,
.site-header .site-nav a,
.site-header .btn-ghost {
  transition: color 0.4s ease, border-color 0.4s ease;
}
.site-header.on-dark {
  background: rgba(30, 23, 19, 0.3);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.3);
}
.site-header.on-dark .brand { color: var(--cream); }
.site-header.on-dark .site-nav a { color: rgba(249, 245, 238, 0.82); }
.site-header.on-dark .site-nav a:hover { color: #fff; }
.site-header.on-dark .btn-ghost {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
}
.site-header.on-dark .btn-ghost:hover {
  background: var(--cream);
  color: var(--espresso);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--brown);
}
.brand-badge {
  width: 2.6rem;
  height: auto;
  flex: none;
}

.site-nav {
  display: none;
  gap: 1.9rem;
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--brown-soft);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--oxblood); }
@media (min-width: 1060px) { .site-nav { display: flex; } }
.brand-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- Hero — full-bleed background slideshow ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(36rem, 100svh, 64rem); /* photo runs behind the floating nav */
  overflow: hidden;
  background: var(--espresso);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg .swiper-wrapper, .hero-slide { height: 100%; }
.hero-slide { position: relative; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
}
/* Readability scrim, per slide so captions sit above it */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(38, 30, 26, 0.58) 0%, rgba(38, 30, 26, 0) 62%),
    linear-gradient(
      to top,
      rgba(38, 30, 26, 0.86) 0%,
      rgba(38, 30, 26, 0.42) 46%,
      rgba(38, 30, 26, 0.18) 100%
    );
}
/* Progressive blur strip behind media captions: the backdrop softens toward
   the bottom edge while the caption text stays sharp above it */
.hero-slide::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7.5rem;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 100%);
}
.hero-caption {
  position: absolute;
  z-index: 2;
  bottom: 3.3rem;
  right: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  /* glass lozenge */
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--glass-specular);
}
.hero-pagination.swiper-pagination {
  bottom: 1.4rem;
  left: auto;
  right: 1.4rem;
  width: auto;
  z-index: 3;
}
.hero-pagination .swiper-pagination-bullet {
  background: var(--cream);
  opacity: 0.45;
}
.hero-pagination .swiper-pagination-bullet-active { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: clamp(7rem, 16vh, 10rem) clamp(3rem, 8vh, 5.5rem);
}
@media (max-width: 760px) {
  /* clear the glass caption pill so it never overlaps the CTA note */
  .hero-content { padding-bottom: 7rem; }
}
.hero .eyebrow { color: var(--clay); }
.hero-title {
  font-size: var(--text-hero);
  margin-bottom: 1.5rem;
  color: var(--cream);
  max-width: 15ch;
}
.hero-title em { color: var(--clay); }
.hero-sub {
  max-width: 34rem;
  color: rgba(249, 245, 238, 0.8);
  margin-bottom: 2.25rem;
}
.hero .cta-note { color: rgba(249, 245, 238, 0.66); }

/* Marquee band under hero */
.hero-band {
  border-block: 1px solid var(--line);
  padding-block: 1.05rem;
  overflow: hidden;
}
.hero-band-track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--brown-soft);
  white-space: nowrap;
}
/* Each chunk is one full loop of content; padding-right doubles as the seam gap,
   so shifting the track by exactly one chunk width (xPercent -50) loops seamlessly */
.hero-band-chunk {
  display: flex;
  flex: none;
  gap: 2.2rem;
  padding-right: 2.2rem;
}
.hero-band-track i { color: var(--clay); font-style: normal; }

/* ---------- Process / Trust ---------- */
.process { padding-top: var(--space-section); }

.steps { list-style: none; display: grid; gap: clamp(3.5rem, 8vw, 6rem); }

.step {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 820px) {
  .step { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .step-alt .step-media { order: 2; }
}

.step-media img,
.step-media video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-2);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--clay);
  display: block;
  margin-bottom: 0.75rem;
}
.step-num-light { -webkit-text-stroke-color: var(--clay); }

.step-title { font-size: var(--text-h3); margin-bottom: 0.9rem; }
.step-body p { color: var(--brown-soft); max-width: 30rem; }

/* ---------- Showroom (high-contrast espresso) ---------- */
.showroom {
  background: var(--espresso);
  color: var(--cream);
  margin-top: var(--space-section);
  padding-block: var(--space-section);
}
.showroom-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .showroom-grid { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; }
}
.showroom-title {
  font-size: var(--text-h2);
  margin-bottom: 1.25rem;
  color: var(--cream);
}
.showroom-lede {
  color: rgba(253, 251, 247, 0.72);
  max-width: 32rem;
  margin-bottom: 2.25rem;
}
.selection-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.selection-list li {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.showroom-media img,
.showroom-media video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.6; /* the floor pan is landscape footage */
  object-fit: cover;
  background: #322820;
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .showroom-media { align-self: center; }
}

/* ---------- Proof / Testimonials ---------- */
.proof { padding-block: var(--space-section); }
.proof-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.proof-stat {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brown-soft);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--glass-fill-strong);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 10px rgba(74, 59, 50, 0.06);
}
.proof-stat strong { color: var(--oxblood); font-weight: 700; }

.review-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 860px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.review-card {
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.8rem 1.7rem;
  background: var(--glass-fill-strong);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow: var(--glass-specular), var(--glass-drop-soft);
}
.review-card .quote-mark { color: var(--clay); margin-bottom: 1.1rem; }
.review-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--espresso);
  margin-bottom: 1.5rem;
}
.review-source { margin-top: auto; }
.review-source cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.review-source span {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

/* ---------- Recent work carousel ---------- */
.work { padding-bottom: var(--space-section); }
.work .section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.work-swiper {
  padding-inline: 1.25rem;
  /* continuous marquee: linear glide between slides */
}
.work-swiper .swiper-wrapper { transition-timing-function: linear; }
.work-swiper .swiper-slide {
  width: auto;
  margin-right: 1rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden; /* clips the caption blur strip to the rounded corners */
}
.work-swiper img,
.work-swiper video {
  display: block;
  height: clamp(14rem, 32vw, 22rem);
  width: auto;
  object-fit: cover;
  background: var(--cream-2);
}
.work-swiper video { aspect-ratio: 16 / 9; }
/* Progressive blur + soft tint behind the caption */
.work-swiper .swiper-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.5rem;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to top, black 25%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 25%, transparent 100%);
  background: linear-gradient(to top, rgba(38, 30, 26, 0.45), transparent);
}
.work-swiper figcaption {
  position: absolute;
  z-index: 1;
  bottom: 0.85rem;
  left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  /* glass lozenge */
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: var(--glass-specular);
}

/* ---------- Featured story (homeowner interview) ---------- */
.story { padding-bottom: var(--space-section); }
.story-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
}
.story-media {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
}
.story-media img,
.story-media video {
  display: block;
  width: 100%;
  height: auto; /* let aspect-ratio drive height, not the height="" attr hint */
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--espresso);
  border-radius: var(--radius);
}

/* ---------- Inline glass video player ---------- */
.glass-player {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  width: calc(100% - 1.6rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px) saturate(1.6) brightness(0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.6) brightness(0.8);
  box-shadow: var(--glass-specular), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.player-toggle {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.player-toggle .icon-play { margin-left: 2px; }
.glass-player[data-playing] .icon-play { display: none; }
.glass-player:not([data-playing]) .icon-pause { display: none; }
.player-time {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
}
.player-scrub {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(to right, #fff var(--scrub, 0%), rgba(255, 255, 255, 0.25) var(--scrub, 0%));
  outline-offset: 4px;
}
.player-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.player-scrub::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.story-media video { cursor: pointer; }
.story-player[hidden] { display: none; }

/* "Tap for sound" tag — darker glass fill + text-shadow so it reads over any
   frame (brighter than the work-card overlay would allow, and self-contained) */
.story-sound {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  border: none;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(30, 23, 19, 0.42);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: var(--glass-specular), 0 6px 20px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.story-sound svg { width: 15px; height: 15px; flex: none; }
.story-sound:hover { background: rgba(30, 23, 19, 0.58); transform: translateX(-50%) scale(1.04); }
.story-sound[hidden] { display: none; }
.story-copy .section-head { margin-bottom: 1.5rem; }
.story-lede { color: var(--brown-soft); max-width: 34rem; margin-bottom: 2rem; }
.story-quote {
  border-left: 2px solid var(--clay);
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}
.story-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  color: var(--espresso);
  max-width: 32rem;
}
.story-cite {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
}

/* ---------- Full-bleed statement band ---------- */
.statement {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(24rem, 62vh, 36rem);
  margin-bottom: var(--space-section);
  overflow: hidden;
}
.statement-bg {
  position: absolute;
  inset: -14% 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
}
/* Pure film break — just a whisper of a vignette for cohesion */
.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(38, 30, 26, 0.12), rgba(38, 30, 26, 0.2));
}

/* ---------- What happens next ---------- */
.next-steps { padding-bottom: var(--space-section); }
.next-grid {
  list-style: none;
  display: grid;
  gap: 2rem;
  counter-reset: none;
}
@media (min-width: 760px) { .next-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.next-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--clay);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--oxblood);
  margin-bottom: 1.1rem;
}
.next-grid h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.next-grid p { color: var(--brown-soft); font-size: 0.95rem; max-width: 24rem; }
.risk-note {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--oxblood);
}
.next-cta { margin-top: 1.9rem; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
  padding-block: var(--space-section);
}
.faq-inner { max-width: 50rem; }
.faq-card { padding: 0.9rem 1.8rem; }
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 500;
  color: var(--espresso);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  position: relative;
  width: 1rem;
  height: 1rem;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 1.5px;
  background: var(--oxblood);
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-list details p {
  padding: 0 0.25rem 1.5rem;
  color: var(--brown-soft);
  max-width: 42rem;
  overflow: hidden; /* required for the open/close height animation */
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--glass-fill-strong);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 -8px 24px rgba(38, 30, 26, 0.08);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta[hidden] { display: none; }
body.wizard-open .mobile-cta { display: none; }
@media (min-width: 760px) { .mobile-cta { display: none; } }

/* ---------- Closer — full-bleed ---------- */
.closer {
  position: relative;
  padding-block: calc(var(--space-section) * 1.2);
  overflow: hidden;
}
.closer-bg {
  position: absolute;
  inset: -14% 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
}
.closer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(38, 30, 26, 0.62), rgba(38, 30, 26, 0.72));
}
.closer-inner { position: relative; z-index: 1; text-align: center; }
.closer-badge {
  width: clamp(3.4rem, 7vw, 4.5rem);
  height: auto;
  margin: 0 auto 1.5rem;
}
.closer-title {
  font-size: var(--text-h2);
  margin-bottom: 2.25rem;
  color: var(--cream);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: rgba(253, 251, 247, 0.75);
  padding-block: 3.5rem 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; } }
.footer-badge { width: 3.2rem; height: auto; margin-bottom: 1rem; }
.footer-brand { color: var(--cream); font-size: 1.3rem; margin-bottom: 0.5rem; }
.footer-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.5rem;
}
.footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 245, 238, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-link:hover { color: var(--cream); border-color: var(--clay); }

/* Credentials row */
.footer-creds {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
  padding-block: 1.6rem 0.2rem;
}
.cred {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(249, 245, 238, 0.85);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
a.cred:hover { border-color: var(--clay); color: var(--cream); }
/* Association logos — uniform height, cream-tinted where the mark uses currentColor */
.cred-svg {
  display: block;
  height: 2.4rem;
  width: auto;
  color: rgba(249, 245, 238, 0.9);
}
.cred-img {
  display: block;
  height: 2.4rem;
  width: auto;
}
.cred-img-wide { height: 2.8rem; }
.cred-logo { background: rgba(255, 255, 255, 0.92); }
.cred-logo img { height: 2.4rem; width: auto; }

.footer-legal { padding-top: 1.5rem; font-size: 0.75rem; color: rgba(253, 251, 247, 0.45); }

/* ==========================================================================
   WIZARD OVERLAY
   ========================================================================== */
.wizard {
  position: fixed;
  inset: 0;
  z-index: 100;
  /* Liquid glass sheet — the page shows through, heavily frosted */
  background: rgba(249, 245, 238, 0.58);
  backdrop-filter: blur(34px) saturate(1.4);
  -webkit-backdrop-filter: blur(34px) saturate(1.4);
  display: flex;
  flex-direction: column;
  /* Hidden via [hidden] until opened; GSAP owns the slide-in transform.
     (No CSS transform here — GSAP would parse it as a fixed pixel offset.) */
}
.wizard[hidden] { display: none; }

.wizard-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: var(--glass-fill-strong);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.wizard-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.wizard-brand img { width: 1.7rem; height: auto; }
.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  color: var(--brown-soft);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
}
.wizard-back:hover { color: var(--brown); }
.wizard-back[hidden] { display: none; }
.wizard-close {
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--brown-soft);
  padding: 0.1rem 0.4rem;
  margin-left: auto;
}
.wizard-close:hover { color: var(--brown); }

.wizard-progress {
  height: 3px;
  background: var(--line);
}
.wizard-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--oxblood);
}
.wizard-step-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-soft);
  padding-top: 1.25rem;
}

.wizard-stage {
  position: relative;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wizard-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 5vh, 4rem) 1.25rem 3rem;
  overflow-y: auto;
}
.wizard-panel[hidden] { display: none; }

.wizard-card { width: 100%; max-width: 34rem; }
.wizard-card-wide { max-width: 52rem; }

.wizard-question {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  margin-bottom: 2rem;
}
.wizard-note {
  color: var(--brown-soft);
  margin: -1rem 0 1.75rem;
  max-width: 36rem;
}

.option-grid { display: grid; gap: 0.8rem; }

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.4rem;
  background: var(--glass-fill-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  color: var(--brown);
  font-weight: 500;
  font-size: 1rem;
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: var(--glass-specular), 0 4px 16px rgba(74, 59, 50, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.option-btn::after {
  content: "→";
  color: var(--clay);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.option-btn:hover, .option-btn:focus-visible {
  border-color: var(--brown);
  background: rgba(74, 59, 50, 0.04);
}
.option-btn:hover::after, .option-btn:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}
.option-btn.is-selected {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--cream);
}
.option-btn.is-selected::after { opacity: 1; transform: translateX(0); color: var(--cream); }

/* ---------- Thanks panel ---------- */
.thanks-card { text-align: center; }
.thanks-badge {
  width: clamp(3.2rem, 6vw, 4.2rem);
  height: auto;
  margin: 0 auto 1.4rem;
}
.thanks-card .eyebrow { justify-content: center; }
.thanks-card .eyebrow::before { display: none; }
.thanks-card .wizard-note { margin-inline: auto; }
.thanks-card .btn { margin-top: 0.5rem; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 0.9rem; }

.field { position: relative; }
.field input {
  width: 100%;
  padding: 1.15rem 3.3rem 1.15rem 1.25rem; /* right room for the check badge */
  font: inherit;
  font-size: 1rem;
  color: var(--brown);
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(38, 30, 26, 0.06), 0 6px 16px rgba(38, 30, 26, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: #9b938a; }
.field input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.2), 0 6px 16px rgba(38, 30, 26, 0.06);
}
.field input.is-invalid { border-color: #A4442E; }
.field input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(164, 68, 46, 0.18); }

/* Validity check badge — appears once a field is valid */
.field-check {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%) scale(0.5);
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.field-check svg { width: 0.95rem; height: 0.95rem; }
.field.is-valid .field-check { opacity: 1; transform: translateY(-50%) scale(1); }

/* SMS + terms consent */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-top: 0.3rem;
  cursor: pointer;
}
.consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-box {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(74, 59, 50, 0.3);
  box-shadow: 0 1px 2px rgba(38, 30, 26, 0.06);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.consent-box svg {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.consent input:checked + .consent-box {
  background: var(--oxblood);
  border-color: var(--oxblood);
}
.consent input:checked + .consent-box svg { opacity: 1; transform: scale(1); }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--clay); outline-offset: 2px; }
.consent.is-invalid .consent-box { border-color: #A4442E; }
.consent-text {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--brown-soft);
}
.consent-text a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-text a:hover { color: var(--oxblood); }

.form-error { color: #A4442E; font-size: 0.85rem; }

/* ---------- Calendly ---------- */
.calendly-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.calendly-wrap iframe {
  display: block;
  width: 100%;
  height: min(72vh, 700px);
  min-height: 540px;
  border: 0;
}

/* ---------- Motion hygiene ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
