/* =========================================================
   Refine — style.css
   Editorial precision. Warm cream, disciplined gold accent,
   mono numerals as a quiet signature.
   ========================================================= */

/* Tiempos Headline — self-hosted, licensed copy, two styles only
   (regular + italic, no bold/light/etc.) to keep payload small.
   Used for body-copy prose specifically, not headlines — see
   --font-editorial below. */
@font-face {
  font-family: "Tiempos Headline";
  src: url("../fonts/TiemposHeadline-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tiempos Headline";
  src: url("../fonts/TiemposHeadline-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* -----------------------------
   1. Design tokens
   ----------------------------- */
:root {
  /* Palette — light (default) */
  --cream:          #FAFAF9;
  --cream-2:        #F4F1EA;
  --cream-3:        #EEEAE1;
  --gold:           #C9A84C;
  --gold-light:     #E7D39B;
  --gold-deep:      #A88732;
  --gold-soft:      rgba(201, 168, 76, 0.14);
  --charcoal:       #2C2C2C;
  --charcoal-soft:  #6E6E6E;
  --charcoal-mute:  #A8A8A8;
  --rule:           rgba(44, 44, 44, 0.10);
  --rule-strong:    rgba(44, 44, 44, 0.20);
  --shadow-nav:     0 1px 0 rgba(44, 44, 44, 0.06);
  --nav-blur:       rgba(250, 250, 249, 0.82);
  --error:          #B85450;
  --error-soft:     rgba(184, 84, 80, 0.12);

  /* Elevation */
  --shadow-card:    0 10px 24px -14px rgba(44, 44, 44, 0.18);
  --shadow-cta:     0 6px 20px -8px rgba(168, 135, 50, 0.55);
  --shadow-cta-hi:  0 10px 26px -10px rgba(168, 135, 50, 0.7);

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* Display: condensed heavy, universally available fallbacks. Impact ships on Mac + Windows. */
  --font-display: "Bebas Neue", "Oswald", "Anton", "Haettenschweiler", "Impact", "Franklin Gothic Bold", "Arial Narrow", sans-serif;
  /* Editorial: the reading serif for body-copy prose (subheads, descriptions,
     card copy) — distinct from --font-serif, which is reserved for the
     italic display accents (hero headline, "Period."). */
  --font-editorial: "Tiempos Headline", ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;

  /* Page vs. panel — the outer body is a warmer linen; each section sits as a panel on top */
  --bg-page:        #ECE7DC;

  /* Layout */
  --wrap:            72rem;
  --wrap-narrow:     44rem;
  --pad:             clamp(1.25rem, 4vw, 2rem);
  --gap-section:     clamp(4.5rem, 10vw, 8rem);
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-pill:     999px;

  /* Motion */
  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:        160ms;
  --dur-med:         320ms;
  --dur-slow:        640ms;
}

/* Palette — dark. Warm, low-contrast enough to feel cozy at night. */
[data-theme="dark"] {
  --cream:          #141311;
  --cream-2:        #1D1B17;
  --cream-3:        #27241E;
  --gold:           #DEBB65;
  --gold-light:     #F2E1AF;
  --gold-deep:      #F0CE7A;
  --gold-soft:      rgba(222, 187, 101, 0.16);
  --charcoal:       #EFEBE1;
  --charcoal-soft:  #A8A198;
  --charcoal-mute:  #6B6660;
  --rule:           rgba(239, 235, 225, 0.08);
  --rule-strong:    rgba(239, 235, 225, 0.18);
  --shadow-nav:     0 1px 0 rgba(0, 0, 0, 0.45);
  --nav-blur:       rgba(20, 19, 17, 0.72);
  --error:          #E58884;
  --error-soft:     rgba(229, 136, 132, 0.12);

  --shadow-card:    0 12px 30px -14px rgba(0, 0, 0, 0.55);
  --shadow-cta:     0 6px 20px -8px rgba(240, 206, 122, 0.35);
  --shadow-cta-hi:  0 10px 26px -10px rgba(240, 206, 122, 0.5);

  --bg-page:        #0A0908;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: var(--charcoal); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* -----------------------------
   3. Layout wrappers
   ----------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section {
  padding: clamp(1rem, 2.6vw, 2rem) clamp(1rem, 2.6vw, 2rem);
  position: relative;
}
.section:first-of-type { padding-top: 0; }

/* Panel treatment: each section's content sits in a rounded card on the page bg.
   The hero is exempt — it's a fixed-dark cinematic panel, see section 7. */
.section > .wrap {
  background: var(--cream);
  border-radius: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--rule);
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.25rem);
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 48rem; }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
  color: var(--charcoal);
  margin-top: 0.75rem;
}
.section-lede {
  font-family: var(--font-editorial);
  margin-top: 1rem;
  color: var(--charcoal-soft);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  max-width: 40rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.015em;
}

.nowrap { white-space: nowrap; }

/* -----------------------------
   4. Buttons & links
   ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  will-change: transform;
  border: 1px solid transparent;
}
.btn .btn-arrow {
  display: inline-block;
  width: 15px;
  height: 15px;
  transition: transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.btn > span { white-space: nowrap; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Actually transparent — a gold-tinted glass pill, not a solid fill.
   backdrop-filter blurs whatever is behind it (the hero's ambient blobs,
   or a flat panel elsewhere — either way it reads as glass, not paint).
   Depth/refraction comes from a stack of inset shadows (bright rim top-
   left where light "hits" the glass, soft shadow bottom-right, a faint
   overall inner glow) rather than a flat tint — that's what was reading
   weak/plasticky before. An SVG feTurbulence/feDisplacementMap distortion
   filter was tried too, but it hangs Chromium's compositor (reproduced,
   not a tooling fluke) — too risky for a real visitor's browser. */
.btn-primary {
  --btn-glass: color-mix(in srgb, var(--gold) 22%, transparent);
  background: var(--btn-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--gold-deep);
  box-shadow:
    0 10px 28px -12px rgba(168, 135, 50, 0.5),
    inset 1.5px 1.5px 1px -1px rgba(255, 255, 255, 0.85),
    inset -1.5px -1.5px 1px -1px rgba(255, 255, 255, 0.3),
    inset 0 0 10px 1px rgba(255, 255, 255, 0.12),
    inset 0 -8px 12px -8px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Magnetic prep — the JS writes --mx/--my as small pixel offsets */
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(165deg,
    var(--gold) 0%,
    rgba(201, 168, 76, 0.3) 30%,
    rgba(201, 168, 76, 0.05) 55%,
    rgba(201, 168, 76, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.45) 50%,
    transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover {
  --btn-glass: color-mix(in srgb, var(--gold) 30%, transparent);
  backdrop-filter: blur(20px) saturate(220%);
  -webkit-backdrop-filter: blur(20px) saturate(220%);
  box-shadow:
    0 14px 32px -12px rgba(168, 135, 50, 0.6),
    inset 1.5px 1.5px 1px -1px rgba(255, 255, 255, 0.95),
    inset -1.5px -1.5px 1px -1px rgba(255, 255, 255, 0.35),
    inset 0 0 12px 1px rgba(255, 255, 255, 0.16),
    inset 0 -8px 12px -8px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
.btn-primary:active { --my: 1px; filter: brightness(0.95); }

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.link-arrow::after { content: "→"; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover { color: var(--gold-deep); border-color: var(--gold); }
.link-arrow:hover::after { transform: translateX(3px); }

/* -----------------------------
   5. Wordmark
   ----------------------------- */
.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  line-height: 1;
  display: inline-block;
}
.wordmark-re { color: var(--gold); }
.wordmark-dot { color: var(--gold); }

/* -----------------------------
   6. Navigation
   ----------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition:
    background var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    padding var(--dur-med) var(--ease-out);
}
.site-nav.scrolled {
  background: var(--nav-blur);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-nav);
  padding: 0.7rem 0;
}


.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Wider than the content --wrap on purpose — nav chrome (logo, links)
     reads better closer to the true viewport edges than content prose does. */
  max-width: 88rem;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-links {
  display: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--charcoal-soft);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
  font-weight: 500;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: left var(--dur-fast) var(--ease-out), right var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { left: 0; right: 0; }

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: -0.5rem;
}

.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu (drawer under nav) */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 5.5rem var(--pad) 2rem;
  background: var(--cream);
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-out);
  z-index: 90;
  border-bottom: 1px solid var(--rule);
  max-height: 100vh;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: block; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  color: var(--charcoal);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu nav a::after {
  content: "→";
  color: var(--charcoal-mute);
  font-weight: 400;
}
.mobile-menu .btn { margin-top: 1.75rem; }

/* -----------------------------
   7. Hero — cinematic glass panel, theme-aware
   Follows the site-wide light/dark toggle like every other panel. The
   signature moment now lives in motion (cursor-reactive blobs) and
   material (liquid glass), not in a forced palette.
   ----------------------------- */
.hero-glass {
  margin: clamp(1rem, 2.6vw, 2rem);
  border-radius: clamp(18px, 2.4vw, 32px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: var(--cream);
  border: 1px solid var(--rule);
  min-height: clamp(34rem, 92vh, 56rem);
  display: flex;
  flex-direction: column;

  /* Cursor-reactive blob anchor, written by JS as percentages.
     Defaults to dead center when JS hasn't run yet (no-hover devices). */
  --cx: 50%;
  --cy: 50%;
}

/* Ambient motion backdrop — blurred gold blobs that drift on their own
   AND lean gently toward the cursor. Stands in for literal video: same
   cinematic depth, zero payload. */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
/* The cursor-linked blob: base position is static, JS drives only
   `transform` (compositor-only, no layout reflow) via --cx/--cy. JS
   already lerps frame-by-frame, so no CSS transition is layered on top
   — that would double-smooth into a laggy rubber-band feel.
   Kept deliberately faint and soft-edged (low opacity, gradient fades
   out well before the element bounds, heavy blur) — a solid, high-opacity
   circle at this size reads as a stain, not ambient light. */
.hero-ambient span:nth-child(1) {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--gold) 0%, rgba(0,0,0,0) 52%);
  opacity: 0.24;
  top: 10%;
  left: 29%;
  transform: translate(calc((var(--cx) - 50%) * 0.9), calc((var(--cy) - 50%) * 0.9));
}
.hero-ambient span:nth-child(2) {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, var(--gold-deep) 0%, rgba(0,0,0,0) 55%);
  opacity: 0.18;
  bottom: -14%; right: -4%;
  animation: driftB 26s ease-in-out infinite alternate;
}
.hero-ambient span:nth-child(3) {
  width: 24vw; height: 24vw;
  background: radial-gradient(circle, var(--charcoal) 0%, rgba(0,0,0,0) 60%);
  opacity: 0.05;
  top: 30%; right: 18%;
  animation: driftC 18s ease-in-out infinite alternate;
}
@keyframes driftA {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3vw, 4vh) scale(1.08); }
}
@keyframes driftB {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5vw, -6vh) scale(1.08); }
}
@keyframes driftC {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4vw, 5vh) scale(0.9); }
}
/* Fine grain so the glass has something texture-like to refract */
.hero-ambient::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(var(--charcoal-mute) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.12;
}

/* -----------------------------
   7b. Liquid-glass utilities
   ----------------------------- */
.liquid-glass {
  /* Theme-adaptive tint: a dark-charcoal wash in light mode (visible
     against the light hero), a light wash in dark mode — was hardcoded
     to a near-white tint from when the hero was permanently dark, which
     made it nearly invisible once the hero started following the theme
     toggle. */
  background: color-mix(in srgb, var(--charcoal) 7%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: none;
  box-shadow: inset 0 1px 1px color-mix(in srgb, var(--charcoal) 14%, transparent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(227, 195, 116, 0.55) 0%,
    rgba(227, 195, 116, 0.16) 22%,
    transparent 42%,
    transparent 60%,
    rgba(227, 195, 116, 0.16) 80%,
    rgba(227, 195, 116, 0.55) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong {
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.18), inset 0 1px 1px rgba(246, 241, 231, 0.18);
}

/* -----------------------------
   7c. Hero content
   ----------------------------- */
.hero-glass-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 8vh, 5rem);
}

.hero-badge {
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.hero-badge .status-dot { margin-right: 0.1rem; }
.hero-badge .hero-badge-pill {
  background: var(--gold);
  color: #1A1608;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(227, 195, 116, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 195, 116, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(227, 195, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 195, 116, 0); }
}

.hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.75rem, 8.5vw, 6.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  max-width: 17ch;
  margin: 0 auto 1.75rem;
}
.hero-title .accent {
  color: var(--gold);
}

/* Word-by-word stagger reveal — mirrors the entrance choreography the
   React build had, now driven by a single class toggle + CSS transitions
   (see main.js) instead of a component tree. */
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  padding-bottom: 0.1em;
}
.hero-title .word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 900ms cubic-bezier(0.2, 0.9, 0.25, 1),
    opacity 700ms cubic-bezier(0.2, 0.9, 0.25, 1);
}
.hero-title.hero-in .word-inner {
  transform: translateY(0);
  opacity: 1;
}
.hero-title .word:nth-child(1) .word-inner { transition-delay: 60ms; }
.hero-title .word:nth-child(2) .word-inner { transition-delay: 130ms; }
.hero-title .word:nth-child(3) .word-inner { transition-delay: 200ms; }
.hero-title .word:nth-child(4) .word-inner { transition-delay: 270ms; }
.hero-title .word:nth-child(5) .word-inner { transition-delay: 340ms; }
.hero-title .word:nth-child(6) .word-inner { transition-delay: 410ms; }

/* Surrounding hero elements arrive after the headline lands */
.hero-glass .hero-badge.reveal { transition-delay: 0ms; }
.hero-glass .hero-sub.reveal { transition-delay: 500ms; }
.hero-glass .hero-actions.reveal { transition-delay: 620ms; }
.hero-glass .hero-cta-note.reveal { transition-delay: 700ms; }
.hero-glass .hero-stats.reveal { transition-delay: 800ms; }
.hero-glass .hero-meta.reveal { transition-delay: 920ms; }

.hero-sub {
  font-family: var(--font-editorial);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
  color: var(--charcoal-soft);
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

/* Sets expectations right where the click happens — the gold pill above
   reads as confident/high-contrast, so this spells out plainly that it's
   just a free, no-commitment audit request, not something bigger. */
.hero-cta-note {
  font-size: 12.5px;
  color: var(--charcoal-mute);
  max-width: 30rem;
  margin: 0 auto clamp(2.25rem, 4.5vw, 3rem);
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.hero-stat {
  border-radius: 1.1rem;
  padding: 1.25rem 1.5rem;
  width: 168px;
  text-align: left;
}
.hero-stat svg {
  width: 22px; height: 22px;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: 2.35rem;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}
.hero-stat-label {
  font-size: 11.5px;
  color: var(--charcoal-soft);
  font-weight: 300;
  margin-top: 0.5rem;
  line-height: 1.3;
}

.hero-meta {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  padding: 1.5rem 0 clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  border-top: 1px solid var(--rule);
  margin: 0 clamp(1.5rem, 5vw, 3rem);
}
.hero-meta li { display: inline; }
.hero-meta li + li::before {
  content: "·";
  color: var(--charcoal-mute);
  margin: 0 0.85rem;
  opacity: 0.7;
}

/* -----------------------------
   8. Problem section
   ----------------------------- */
.problem { padding-top: clamp(3rem, 8vw, 5rem); }

.stats {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat { position: relative; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.25rem, 8vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: flex-start;
}
.stat-unit {
  font-size: 0.5em;
  color: var(--gold);
  margin-top: 0.35em;
  margin-left: 0.05em;
  font-weight: 500;
}
.stat figcaption {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 22rem;
  margin-bottom: 0.75rem;
}
.stat cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
}

.problem-copy {
  font-family: var(--font-editorial);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  color: var(--charcoal);
  max-width: 46rem;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* -----------------------------
   9. How it works
   ----------------------------- */
.steps {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.step {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.step-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: 0.005em;
  line-height: 0.98;
  margin-bottom: 1rem;
  color: var(--charcoal);
}
.step p {
  font-family: var(--font-editorial);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
  max-width: 32rem;
}

/* -----------------------------
   10. Services
   ----------------------------- */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.service {
  padding: 2rem;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition:
    background var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.service:hover {
  background: var(--cream-3);
  border-color: var(--rule);
  transform: translateY(-2px);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--charcoal);
}
.service p {
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--charcoal-soft);
}
.service-price {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
}
.price-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
}
.price {
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.price .per {
  font-size: 0.7em;
  color: var(--charcoal-soft);
  font-weight: 500;
}
.price-alt {
  font-size: 12px;
  color: var(--charcoal-mute);
  letter-spacing: 0.02em;
}

/* -----------------------------
   11. Pricing
   ----------------------------- */
.pricing-table-wrap {
  display: none;
  overflow-x: auto;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.pricing-table th,
.pricing-table td {
  padding: 1.25rem 1.35rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  vertical-align: middle;
}
/* Column headers: display font, uppercase — the tier names */
.pricing-table thead th {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--charcoal);
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-strong);
}
/* Row labels: mono eyebrow — the row descriptors */
.pricing-table tbody th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 500;
  width: 22%;
}
.pricing-table tbody td {
  color: var(--charcoal);
}
.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td { border-bottom: 0; }

.cell-price {
  font-family: var(--font-sans);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.pricing-cards {
  display: grid;
  gap: 1rem;
}
.pricing-card {
  padding: 1.75rem;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.pricing-card dl { display: grid; gap: 0.7rem; }
.pricing-card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 14px;
}
.pricing-card dt {
  color: var(--charcoal-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pricing-card dd {
  color: var(--charcoal);
  font-weight: 500;
  text-align: right;
}

.pricing-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.pricing-cta p {
  font-family: var(--font-editorial);
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}

/* -----------------------------
   11b. Preview — scroll-expand mockup
   Scroll-scrubbed: a small labeled card grows to fill the sticky
   viewport as the section scrolls past. Driven by plain JS (scroll
   progress → inline width/height/radius), not CSS transitions — smooth
   scrubbing needs to track the scrollbar exactly, not ease toward it.
   ----------------------------- */
.preview > .wrap { padding-bottom: 0; }

.expand-scroll {
  position: relative;
  height: 220vh;
}
.expand-sticky {
  position: sticky;
  top: 6rem;
  height: calc(100vh - 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}
.expand-card {
  position: relative;
  width: 46%;
  height: 58%;
  max-width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.expand-card:hover {
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
}
.expand-card:hover .expand-image { transform: scale(1.03); }
.expand-card:hover .expand-cta { background: var(--gold-soft); }

.expand-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: var(--cream-2);
}
.expand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rule-strong);
}
.expand-url {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--charcoal-mute);
}

.expand-image {
  flex: 1;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transition: transform 900ms var(--ease-out);
  will-change: transform;
}

.expand-cta {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  transition: background var(--dur-med) var(--ease-out);
}
.expand-cta svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .expand-card { width: 88%; height: 64%; border-radius: 22px; }
  .expand-cta { font-size: 12px; padding: 0.6rem 1rem; }
}

.preview-note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--charcoal-mute);
  text-align: center;
}

/* -----------------------------
   12. Before / After — the visual peak
   ----------------------------- */
.results { position: relative; }
.results::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--rule);
  top: 0; bottom: auto;
}

.ba {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-mute);
  padding: 0.5rem 0;
}
.ba-arrow svg { width: 40px; height: 24px; transform: rotate(90deg); }

.score-card {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--cream-2);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.score-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  margin-bottom: -0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.score-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 500;
}
.score-state {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(44,44,44,0.06);
  color: var(--charcoal-soft);
  font-weight: 500;
}

.score-num {
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1;
}
.score-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 15vw, 7.5rem);
  letter-spacing: -0.005em;
  color: var(--charcoal-mute);
  font-variant-numeric: tabular-nums;
}
.score-slash {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--charcoal-mute);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.score-meter {
  height: 4px;
  background: rgba(44,44,44,0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}
.score-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--charcoal-mute);
  border-radius: var(--radius-pill);
  transition: width 1.4s var(--ease-out);
}

.score-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.score-meta > div { display: flex; flex-direction: column; gap: 0.25rem; }
.score-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
}
.score-meta dd {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

/* After variant — the gold moment */
.ba-after {
  background: var(--cream);
  border-color: var(--gold-soft);
}
.ba-after::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--gold) 0%, transparent 55%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}
.ba-after .score-value { color: var(--gold); }
.ba-after .score-meter-fill { background: var(--gold); }
.ba-after .score-state {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.results-note {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--charcoal-mute);
  text-align: center;
}

/* -----------------------------
   13. About
   ----------------------------- */
.about-copy {
  font-family: var(--font-editorial);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}
.about-signoff {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

/* -----------------------------
   14. Contact
   ----------------------------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.audit-form { display: grid; gap: 1.35rem; }

.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 500;
}
.field-optional {
  color: var(--charcoal-mute);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  margin-left: 0.25rem;
}

.audit-form input,
.audit-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--charcoal);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
  resize: vertical;
}
.audit-form input::placeholder,
.audit-form textarea::placeholder {
  color: var(--charcoal-mute);
}
.audit-form input:hover,
.audit-form textarea:hover {
  border-color: var(--rule-strong);
}
.audit-form input:focus,
.audit-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  background: var(--cream);
}
.audit-form input[aria-invalid="true"],
.audit-form textarea[aria-invalid="true"] {
  border-color: #B85450;
  box-shadow: 0 0 0 3px rgba(184, 84, 80, 0.12);
}

.field-error {
  font-size: 12px;
  color: #B85450;
  min-height: 1em;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.field-error:empty { min-height: 0; }

.form-status {
  font-size: 14px;
  min-height: 1.2em;
  text-align: center;
  padding: 0.5rem 0;
}
.form-status.pending { color: var(--charcoal-soft); }
.form-status.success { color: var(--gold-deep); font-weight: 500; }
.form-status.error { color: #B85450; }
.form-status:empty { min-height: 0; padding: 0; }

/* Aside */
.contact-aside {
  padding: 2rem;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.contact-link:hover {
  border-color: var(--gold-soft);
  transform: translateY(-1px);
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-link-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.contact-link-value {
  display: block;
  font-size: 13px;
  color: var(--charcoal-soft);
  line-height: 1.35;
}
.contact-note {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

/* -----------------------------
   15. Footer
   ----------------------------- */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 8vw, 5rem);
}
.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}
.footer-links a {
  font-size: 14px;
  color: var(--charcoal-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-links a:hover { color: var(--gold-deep); }
.footer-email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.footer-email:hover { color: var(--gold-deep); border-color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -----------------------------
   16. WhatsApp floating button
   ----------------------------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(44,44,44,0.35);
  z-index: 80;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.whatsapp-float svg { width: 22px; height: 22px; }
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--gold-deep);
}

/* -----------------------------
   17. Reveal animations
   ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in stats/steps/services grids */
.stats .stat.reveal:nth-child(2) { transition-delay: 80ms; }
.stats .stat.reveal:nth-child(3) { transition-delay: 160ms; }
.steps .step.reveal:nth-child(2) { transition-delay: 100ms; }
.steps .step.reveal:nth-child(3) { transition-delay: 200ms; }
.services-grid .service.reveal:nth-child(2) { transition-delay: 80ms; }
.services-grid .service.reveal:nth-child(3) { transition-delay: 160ms; }
.services-grid .service.reveal:nth-child(4) { transition-delay: 240ms; }

/* -----------------------------
   17b. Theme toggle
   ----------------------------- */
.theme-toggle {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--charcoal-soft);
  transition:
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
  margin-right: 0.25rem;
  position: relative;
}
.theme-toggle:hover {
  color: var(--charcoal);
  background: var(--gold-soft);
}
.theme-toggle svg {
  width: 18px; height: 18px;
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
  position: absolute;
}
/* Show sun in dark mode (click → light), moon in light mode (click → dark) */
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-45deg) scale(0.7); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(45deg) scale(0.7); }

/* Mobile menu theme toggle: bigger and inline with menu */
.mobile-menu .theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

/* -----------------------------
   17d. Service card — gold sheen sweep on hover
   ----------------------------- */
.service {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--px, 50%) var(--py, 0%),
    var(--gold-soft),
    transparent 45%
  );
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.service:hover::before { opacity: 1; }
/* Edge-light border — the same gold mask-gradient trick as the hero's
   liquid-glass, dialed down so it reads as a quiet premium hairline
   rather than full glassmorphism (there's no busy bg here to blur). */
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg,
    var(--gold) 0%,
    rgba(201, 168, 76, 0.25) 22%,
    transparent 45%,
    transparent 100%);
  opacity: 0.35;
  transition: opacity var(--dur-med) var(--ease-out);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.service:hover::after { opacity: 0.85; }
.service h3 {
  position: relative;
  display: inline-block;
}
.service h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 380ms var(--ease-out);
}
.service:hover h3::after { width: 100%; }

/* -----------------------------
   17e. Score card — cursor tilt
   ----------------------------- */
.score-card {
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
  /* JS writes --tx/--ty (deg values, small) */
  --tx: 0deg;
  --ty: 0deg;
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty));
}
.score-card:hover {
  box-shadow: var(--shadow-card);
}
.score-card .score-num,
.score-card .score-meta {
  transform: translateZ(20px);
}
.score-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg,
    var(--gold) 0%,
    rgba(201, 168, 76, 0.22) 22%,
    transparent 45%,
    transparent 100%);
  opacity: 0.3;
  transition: opacity var(--dur-med) var(--ease-out);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.score-card:hover::after { opacity: 0.8; }

/* -----------------------------
   17f. Wordmark — quiet hover
   ----------------------------- */
.wordmark {
  transition: letter-spacing var(--dur-med) var(--ease-out);
}
.wordmark:hover {
  letter-spacing: -0.02em;
}
.wordmark-dot {
  display: inline-block;
  transition: transform var(--dur-med) var(--ease-out);
}
.wordmark:hover .wordmark-dot {
  transform: translateY(2px) scale(1.15);
}

/* -----------------------------
   17g. Nav-links — gold underline draws from left
   ----------------------------- */
.nav-links a::after {
  left: 0; right: auto;
  width: 0;
  transition: width var(--dur-med) var(--ease-out);
}
.nav-links a:hover::after {
  width: 100%;
}

/* -----------------------------
   17h. Step index — subtle glow on view
   ----------------------------- */
.step {
  transition: border-color var(--dur-med) var(--ease-out);
}
.step-index {
  position: relative;
  display: inline-block;
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.step:hover { border-color: var(--gold-soft); }
.step:hover .step-index {
  transform: translateX(2px);
  color: var(--gold-deep);
}

/* -----------------------------
   18. Responsive — tablet & up
   ----------------------------- */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stat figcaption { max-width: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .ba { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .ba-arrow svg { transform: rotate(0deg); }

  .footer-inner { grid-template-columns: auto 1fr auto; }
  .footer-links { justify-content: center; }
}

/* -----------------------------
   19. Responsive — desktop
   ----------------------------- */
@media (min-width: 900px) {
  .nav-links { display: flex; gap: 2rem; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .steps .step { padding-top: 2.25rem; }

  .pricing-table-wrap { display: block; }
  .pricing-cards { display: none; }

  .pricing-cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }

  .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; }
}

/* -----------------------------
   20. Reduced motion
   ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .status-dot { animation: none; }
}
