/* ==========================================================================
   ALFRED PROPERTY SERVICES — Shared Stylesheet
   Palette: Black #000000 / Neon Green #a9f00f
   Type:    Archivo (display) / IBM Plex Sans (body) / IBM Plex Mono (numbers)
   Static site, no build step. Mobile-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --ink: #0b0d09;            /* card / raised surface */
  --ink-2: #14170f;          /* hover surface */
  --green: #a9f00f;          /* brand accent — headlines, CTAs, icons ONLY */
  --green-dim: rgba(169, 240, 15, 0.22);   /* borders */
  --green-faint: rgba(169, 240, 15, 0.08); /* tints */
  --white: #ffffff;
  --gray: #b9bfb4;           /* body copy on black */
  --gray-2: #7d8378;         /* captions, small print */
  --danger: #ff5c5c;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1140px;
  --header-h: 68px;

  --shadow-green: 0 0 0 1px var(--green-dim), 0 18px 40px -18px rgba(169, 240, 15, 0.25);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--green); color: var(--black); }

/* Visible keyboard focus, brand-consistent */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.08;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.1rem); font-weight: 900; font-stretch: 112%; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-stretch: 110%; text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--green); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--white); }

/* Section eyebrow label — Archivo caps, tracks wide */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}

/* Numbers always mono — "math, not a projection" */
.num, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.small-print { font-size: 0.85rem; color: var(--gray-2); line-height: 1.55; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.25rem, 5vw, 4rem) 0; }
.section--band {
  background: var(--ink);
  border-top: 1px solid var(--green-dim);
  border-bottom: 1px solid var(--green-dim);
}

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.7rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 10px 28px -10px rgba(169, 240, 15, 0.55);
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(169, 240, 15, 0.7); }

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--green-dim);
}
.btn--secondary:hover { border-color: var(--green); color: var(--green); }

.btn--lg { font-size: 1.12rem; padding: 1.15rem 2.2rem; }
.btn--sm { font-size: 0.85rem; padding: 0.6rem 1.1rem; }

.btn--block { display: block; width: 100%; }

/* Text-level CTA (e.g., "Text Ken directly") */
.link-cta {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}
.link-cta:hover { color: var(--green); text-decoration: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  line-height: 1;
}
.badge--guaranteed { background: var(--green); color: var(--black); }
.badge--estimated {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--green-dim);
}

/* Trust badge row (hero + reuse) */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--white);
}
.trust-item svg { width: 20px; height: 20px; flex: none; stroke: var(--green); }

/* ---------- Cards ---------- */
.card {
  background: var(--ink);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card h3, .card h4 { margin-bottom: 0.5rem; }
.card--hover { transition: border-color 0.2s ease, background-color 0.2s ease; }
.card--hover:hover { border-color: var(--green); background: var(--ink-2); }

/* Stat card — report line-item styling */
.stat-card {
  background: var(--ink);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.stat-card__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.stat-card__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--white);
  line-height: 1.1;
}
.stat-card__note { font-size: 0.85rem; color: var(--gray-2); }

/* Step blocks (How It Works) */
.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.step__num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--2 .span-2 { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease;
}
.field input[type="number"] { font-family: var(--font-mono); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.field textarea { min-height: 130px; resize: vertical; }
.field__hint { font-size: 0.8rem; color: var(--gray-2); margin-top: 0.35rem; }

/* Honeypot — visually removed, still in DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-dim);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__logo img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}
.site-nav a:hover { color: var(--green); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 3px;
}
.site-nav .btn { margin-left: 0.25rem; }
/* Nav CTA: .site-nav a (0-1-1) outranks .btn--primary (0-1-0), so re-assert black text */
.site-nav a.btn--primary,
.site-nav a.btn--primary:hover { color: var(--black); }

/* ---------- Service Areas dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}
.nav-drop__btn:hover { color: var(--green); }
.nav-drop__btn svg { width: 14px; height: 14px; stroke: var(--green); transition: rotate 0.15s ease; }
.nav-drop.is-open .nav-drop__btn svg { rotate: 180deg; }
.nav-drop__menu {
  position: absolute;
  top: 100%;
  padding-top: 14px; /* hover bridge: no dead zone between button and menu */
  left: 50%;
  translate: -50% 0;
  background: transparent;
  border: none;
  min-width: 210px;
  display: none;
  z-index: 120;
}
.nav-drop__menu > div {
  background: var(--black);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.9);
}
.nav-drop.is-open .nav-drop__menu { display: block; }
@media (min-width: 1141px) {
  .nav-drop:hover .nav-drop__menu,
  .nav-drop:focus-within .nav-drop__menu { display: block; }
}
.site-nav .nav-drop__menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  border-bottom: none;
  font-size: 0.88rem;
}
.site-nav .nav-drop__menu a:hover { background: var(--ink-2); color: var(--green); }

/* Click-to-call in header (persistent, low-friction) */
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
}
.header-call svg { width: 17px; height: 17px; stroke: var(--green); }
.header-call:hover { color: var(--green); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--green); display: block; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--green-dim);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(169, 240, 15, 0.1);
    font-size: 1.05rem;
  }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--green); }
  .site-nav .btn { margin: 1rem 0 0; }
  .site-nav .btn + .btn { margin-top: 0.6rem; }
  .nav-drop__btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(169, 240, 15, 0.1);
    font-size: 1.05rem;
  }
  .nav-drop__menu {
    position: static;
    translate: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1.1rem;
    min-width: 0;
    background: transparent;
  }
  .site-nav .nav-drop__menu a { border-bottom: 1px solid rgba(169, 240, 15, 0.08); }
  .header-call span { display: none; } /* icon-only call button on small screens */
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  border-top: 1px solid var(--green-dim);
  border-bottom: 1px solid var(--green-dim);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-band .btn { margin-top: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--green-dim);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.site-footer__logo img { height: 84px; width: auto; margin-bottom: 0.9rem; }
.site-footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--gray); }
.site-footer a:hover { color: var(--green); }
.site-footer .mono { color: var(--white); }
.footer-ckaa { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; }
.footer-ckaa img { flex: none; border-radius: 50%; }

.site-footer__legal {
  border-top: 1px solid rgba(169, 240, 15, 0.12);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gray-2);
}
.site-footer__legal a { color: var(--gray-2); }
.site-footer__legal a:hover { color: var(--green); }

/* ---------- Cookie / analytics notice ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 2rem));
  background: var(--ink);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 150;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 0.88rem;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; color: var(--gray); }
.cookie-banner a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Media placeholders (photos/video to be added later) ---------- */
.placeholder-media {
  background: var(--ink);
  border: 1px dashed rgba(169, 240, 15, 0.35);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--gray-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 260px;
  padding: 1.5rem;
}
.placeholder-media--video { aspect-ratio: 16 / 9; min-height: 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }
.divider { border: none; border-top: 1px solid var(--green-dim); margin: clamp(2rem, 5vw, 3rem) 0; }

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

/* ==========================================================================
   HOME PAGE — Scroll-driven intro (bag pile → logo reveal)
   Base styles below are the FALLBACK / END STATE: bags hidden, logo visible,
   short static lead-in. Browsers without scroll-driven animation support
   (currently Firefox) and visitors with prefers-reduced-motion get this
   state with no pinned section and no animation.
   ========================================================================== */
.intro { position: relative; background: var(--black); }

.intro__sticky {
  position: relative;
  min-height: 66vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 3.5rem 0;
}

.intro__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(169, 240, 15, 0.12), transparent 55%);
  pointer-events: none;
}

.intro__logo {
  position: relative;
  z-index: 1;
  width: clamp(230px, 36vmin, 440px);
  height: auto;
}

/* Hidden unless the enhanced experience is active */
.intro .bagwrap,
.intro__cue,
.intro__hint,
.intro__skip { display: none; }

@keyframes bag-out {
  0%   { opacity: 1; scale: 1; }
  55%  { opacity: 0; scale: 0.78; }
  100% { opacity: 0; scale: 0.78; }
}
@keyframes cash-pop {
  0%   { opacity: 0; translate: 0 14px; scale: 0.5; }
  30%  { opacity: 1; translate: 0 0;    scale: 1.18; }
  55%  { opacity: 1; translate: 0 -10px; scale: 1; }
  100% { opacity: 0; translate: 0 -34px; scale: 0.95; }
}
@keyframes logo-settle {
  from { scale: 0.9; opacity: 0.85; }
  to   { scale: 1;   opacity: 1; }
}
@keyframes cue-fade { to { opacity: 0; } }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* -------- Enhanced: native CSS scroll-driven animation -------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 768px) {

    .intro {
      height: 400vh; /* total scroll distance for the sequence */
      view-timeline-name: --intro;
      view-timeline-axis: block;
    }

    .intro__sticky {
      position: sticky;
      top: 0;
      height: 100vh;
      min-height: 0;
      padding: 0;
    }

    .intro__logo {
      animation-name: logo-settle;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --intro;
      animation-range: contain 55% contain 100%;
    }

    /* Pile wrapper: out of grid flow so the logo stays perfectly centered */
    .intro__pile {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    /* Bag wrappers hold position/rotation/scale; the bag art and the $$$
       overlay animate independently on the same group range (opacity /
       translate / scale only — compositor-friendly). Animation longhands
       only — the `animation` shorthand would reset timeline and range. */
    .intro .bagwrap {
      display: block;
      position: absolute;
      left: var(--x);
      top: var(--y);
      width: clamp(72px, 12.5vmin, 150px);
      aspect-ratio: 120 / 140;
      translate: -50% -50%;
      rotate: var(--r);
      scale: var(--s);
      z-index: 2;
    }
    .intro .bag-art {
      display: block;
      width: 100%;
      height: auto;
      animation-name: bag-out;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --intro;
    }
    .intro .cash {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      font-family: var(--font-mono);
      font-weight: 600;
      font-size: clamp(1.5rem, 3.6vmin, 2.5rem);
      letter-spacing: 0.04em;
      color: var(--green);
      text-shadow: 0 0 14px rgba(169, 240, 15, 0.55);
      opacity: 0;
      animation-name: cash-pop;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --intro;
    }
    .intro .bagwrap:nth-child(even) { --bag-fill: #1a2309; }

    /* Pile groups: 30 bags, 3 per group, cleared one group at a time.
       Positions/rotation/scale are inline custom props on each bag;
       disappearance order (outer groups first, center last) lives here. */
    .intro .bag-g1 .bag-art,
    .intro .bag-g1 .cash { animation-range: contain 0%  contain 13%; }
    .intro .bag-g2 .bag-art,
    .intro .bag-g2 .cash { animation-range: contain 9%  contain 22%; }
    .intro .bag-g3 .bag-art,
    .intro .bag-g3 .cash { animation-range: contain 18% contain 31%; }
    .intro .bag-g4 .bag-art,
    .intro .bag-g4 .cash { animation-range: contain 27% contain 40%; }
    .intro .bag-g5 .bag-art,
    .intro .bag-g5 .cash { animation-range: contain 36% contain 49%; }
    .intro .bag-g6 .bag-art,
    .intro .bag-g6 .cash { animation-range: contain 45% contain 58%; }
    .intro .bag-g7 .bag-art,
    .intro .bag-g7 .cash { animation-range: contain 54% contain 67%; }
    .intro .bag-g8 .bag-art,
    .intro .bag-g8 .cash { animation-range: contain 63% contain 76%; }
    .intro .bag-g9 .bag-art,
    .intro .bag-g9 .cash { animation-range: contain 72% contain 85%; }
    .intro .bag-g10 .bag-art,
    .intro .bag-g10 .cash { animation-range: contain 81% contain 94%; }

    /* Scroll hint: top-center, semi-transparent, tells visitors the
       animation is scroll-driven (not a video). Fades over the first 12%. */
    .intro__hint {
      display: flex;
      position: absolute;
      top: calc(var(--header-h) + 1.1rem);
      left: 50%;
      translate: -50% 0;
      z-index: 4;
      flex-direction: column;
      align-items: center;
      gap: 0.15rem;
      padding: 0.85rem 1.6rem 0.95rem;
      text-align: center;
      background: rgba(0, 0, 0, 0.55);
      border: 1px solid var(--green-dim);
      border-radius: var(--radius);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      pointer-events: none;
      animation-name: cue-fade;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --intro;
      animation-range: contain 0% contain 12%;
    }
    .intro__hint svg {
      width: 20px;
      height: 20px;
      stroke: var(--green);
      animation: cue-bob 1.6s ease-in-out infinite;
    }
    .intro__hint-main {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.82rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--white);
    }
    .intro__hint-sub {
      font-family: var(--font-body);
      font-size: 0.78rem;
      color: var(--gray);
    }

    /* Skip control: top-right, visible immediately, clear of the cookie banner */
    .intro__skip {
      display: inline-block;
      position: absolute;
      top: calc(var(--header-h) + 1.1rem);
      right: 1.25rem;
      z-index: 5;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.75rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gray);
      border: 1px solid var(--green-dim);
      border-radius: 999px;
      padding: 0.5rem 1rem;
      background: rgba(0, 0, 0, 0.6);
    }
    .intro__skip:hover { color: var(--green); border-color: var(--green); text-decoration: none; }

    /* Scroll cue: visible at start, fades out over the first 10% */
    .intro__cue {
      display: flex;
      position: absolute;
      bottom: 2rem;
      left: 50%;
      translate: -50% 0;
      z-index: 3;
      flex-direction: column;
      align-items: center;
      gap: 0.4rem;
      color: var(--gray);
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.72rem;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      animation-name: cue-fade;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --intro;
      animation-range: contain 0% contain 10%;
    }
    .intro__cue svg {
      width: 22px;
      height: 22px;
      stroke: var(--green);
      animation: cue-bob 1.6s ease-in-out infinite; /* time-based bob */
    }
  }
}

/* ==========================================================================
   HOME PAGE — misc
   ========================================================================== */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }

/* Hero with a background photo (home). Image sits behind a heavy scrim so
   copy stays fully legible; treatment keeps the black + green identity. */
.hero--visual { position: relative; overflow: hidden; }
.hero--visual .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
  filter: saturate(0.7) contrast(1.05);
}
.hero--visual .hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.35) 45%, var(--black) 100%),
    linear-gradient(to right, rgba(0,0,0,0.6), transparent 65%);
  pointer-events: none;
}
.hero--visual .container { position: relative; z-index: 1; }

/* Card with a photo header (value prop trio on home) */
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--green-dim);
  filter: saturate(0.85);
  transition: filter 0.2s ease;
}
.card--photo:hover img { filter: saturate(1); }
.card--photo__body { padding: 1.6rem 1.5rem; }

/* Full-card service links (services hub) */
a.service-card { color: var(--gray); }
a.service-card:hover { text-decoration: none; }
.service-card .card--photo__body { display: flex; flex-direction: column; flex: 1; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-card:hover .btn { filter: brightness(1.08); }

/* Two-up photo band with captions (apartment turns) */
.photo-duo figure { margin: 0; }
.photo-duo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  filter: saturate(0.9);
}
.photo-duo figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Wide standalone image banner (Lexington skyline) */
.photo-banner { margin: 0; }
.photo-banner img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  display: block;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin: 2rem 0 2.25rem;
}
.hero .trust-row { border-top: 1px solid var(--green-dim); padding-top: 1.5rem; }
@media (min-width: 940px) {
  .hero .trust-row { justify-content: space-between; }
}

.founder-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 820px) {
  .founder-block { grid-template-columns: 300px 1fr; gap: 3rem; }
}
.founder-block img {
  border-radius: var(--radius);
  border: 1px solid var(--green-dim);
}

/* ==========================================================================
   IMPACT CALCULATOR
   ========================================================================== */
.calc-layout { display: grid; gap: 1.5rem; }
@media (min-width: 980px) {
  .calc-layout { grid-template-columns: 400px 1fr; align-items: start; }
  .calc-inputs { position: sticky; top: calc(var(--header-h) + 1rem); }
}

.calc-inputs { display: grid; gap: 1.35rem; }

/* Segmented control (Confidence scenario) */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  text-align: center;
  padding: 0.7rem 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  border-right: 1px solid var(--green-dim);
  margin: 0;
}
.segmented label:last-of-type { border-right: none; }
.segmented input:checked + label { background: var(--green); color: var(--black); }
.segmented input:focus-visible + label { outline: 2px solid var(--green); outline-offset: -2px; }

/* Yes/No toggle uses the same pattern, 2 columns */
.segmented--2 { grid-template-columns: repeat(2, 1fr); }

/* Markup slider */
.slider-wrap { display: grid; gap: 0.4rem; }
.slider-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--green);
}
input[type="range"].markup-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--green-dim);
  outline: none;
}
input[type="range"].markup-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 1px var(--green), 0 4px 14px -4px rgba(169,240,15,.8);
  cursor: pointer;
}
input[type="range"].markup-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 1px var(--green);
  cursor: pointer;
}
input[type="range"].markup-slider:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.slider-scale { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--gray-2); font-family: var(--font-mono); }

/* Units guardrail message */
.calc-guardrail {
  display: none;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--green-faint);
  color: var(--white);
}
.calc-guardrail.is-visible { display: block; }

/* ---------- Results ---------- */
.calc-results { display: grid; gap: 1.5rem; }
.calc-results[hidden] { display: none; }

/* Score panel (ungated) */
.score-panel {
  background: var(--ink);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
}
.score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.gauge { width: min(280px, 100%); flex: 0 1 280px; display: block; }
.gauge__track { stroke: var(--ink-2); }
.gauge__fill {
  stroke: var(--green);
  transition: stroke-dashoffset 0.2s linear;
}
.score-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.score-number {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(3.4rem, 8vw, 4.8rem);
  color: var(--green);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
}
.score-paw { width: 0.62em; height: 0.62em; flex: none; }
.score-outof {
  font-size: 0.78rem;
  color: var(--gray-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.tier-label {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  white-space: nowrap;
}
/* Big Bark Territory (score > 100): gauge pinned full + glow pulse */
.score-panel.is-overflow .gauge__fill {
  filter: drop-shadow(0 0 10px rgba(169, 240, 15, 0.85));
  animation: gauge-pulse 1.8s ease-in-out infinite;
}
.score-panel.is-overflow .score-number { text-shadow: 0 0 26px rgba(169, 240, 15, 0.55); }
@keyframes gauge-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(169, 240, 15, 0.7)); }
  50%      { filter: drop-shadow(0 0 18px rgba(169, 240, 15, 1)); }
}
.tier-scale { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.4rem; font-size: 0.78rem; color: var(--gray-2); font-family: var(--font-mono); }

/* Gated zone */
.gated { position: relative; }
.gated__content { display: grid; gap: 1.5rem; }
.gated.is-locked .gated__content {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}
.gate-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0;
  z-index: 5;
}
.gated.is-locked .gate-overlay { display: flex; }
.gate-card {
  width: min(460px, 100%);
  background: var(--black);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-green);
}
.gate-card h3 { margin-bottom: 0.4rem; }

/* Grand total + property value showcase */
.grand-total {
  text-align: center;
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  background: var(--ink);
  padding: 2rem 1.5rem;
}
.grand-total__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--green);
  line-height: 1.05;
  display: block;
}
.pv-showcase {
  text-align: center;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--green-faint), transparent 70%);
  padding: 2.5rem 1.5rem;
}
.pv-showcase__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 5.2rem);
  color: var(--white);
  line-height: 1.05;
  display: block;
  text-shadow: 0 0 40px rgba(169, 240, 15, 0.35);
}
.coffee-note { color: var(--gray-2); font-size: 0.82rem; font-style: italic; }

.form-status { font-size: 0.9rem; margin-top: 0.75rem; }
.form-status--error { color: var(--danger); }

/* ==========================================================================
   FAQ accordions (native details/summary)
   ========================================================================== */
.faq-list { display: grid; gap: 0.75rem; max-width: 820px; }
.faq-item {
  background: var(--ink);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item[open] summary { border-bottom: 1px solid var(--green-dim); }
.faq-item summary:hover { color: var(--green); }
.faq-item > div { padding: 1rem 1.25rem 1.25rem; }

/* Visible editorial placeholder for content Ken still needs to supply */
.needs-input {
  display: inline-block;
  background: rgba(255, 92, 92, 0.12);
  border: 1px dashed var(--danger);
  border-radius: var(--radius-sm);
  color: #ffb3b3;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
}


/* ================= Blog & articles ================= */
.article-body { max-width: 760px; }
.article-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 2.2rem 0 0.8rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 1.1rem; }
.article-body p:last-child { margin-bottom: 0; }

a.blog-card { color: var(--gray); display: flex; flex-direction: column; gap: 0.5rem; }
a.blog-card:hover { text-decoration: none; }
.blog-card h3 { font-size: 1.15rem; }


/* ================= Infographics ================= */
.infographic { margin-top: 2.75rem; }
.infographic__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 1.1rem;
}

/* --- Revenue model flow --- */
.info-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0.8rem; align-items: stretch; }
.info-flow__step {
  background: var(--ink);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
}
.info-flow__label {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.info-flow__step p { font-size: 0.9rem; color: var(--gray); margin: 0; }
.info-flow__arrow { align-self: center; display: flex; }
.info-flow__arrow svg { width: 26px; height: 26px; stroke: var(--green); }
.info-flow__result {
  margin-top: 0.9rem;
  border: 1px solid var(--green);
  background: var(--green-faint);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
}
.info-flow__result .info-flow__label { color: var(--green); }
.info-flow__result p { color: var(--gray); margin: 0; font-size: 0.95rem; }
@media (max-width: 760px) {
  .info-flow { grid-template-columns: 1fr; }
  .info-flow__arrow { justify-content: center; }
  .info-flow__arrow svg { transform: rotate(90deg); }
}

/* --- Service night timeline --- */
.info-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.info-timeline__step { position: relative; padding-top: 1.4rem; }
.info-timeline__step::before {
  content: "";
  position: absolute;
  top: 0.32rem;
  left: 0;
  right: -1.1rem;
  height: 2px;
  background: var(--green-dim);
}
.info-timeline__step:last-child::before { right: 0; }
.info-timeline__step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(169, 240, 15, 0.55);
}
.info-timeline__time {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.info-timeline__label {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin: 0.25rem 0 0.3rem;
}
.info-timeline__step p { font-size: 0.88rem; color: var(--gray); margin: 0; }
@media (max-width: 760px) {
  .info-timeline { grid-template-columns: 1fr; gap: 1.4rem; }
  .info-timeline__step { padding-top: 0; padding-left: 1.6rem; }
  .info-timeline__step::before { top: 0.4rem; bottom: -1.4rem; left: 5px; right: auto; width: 2px; height: auto; }
  .info-timeline__step:last-child::before { display: none; }
  .info-timeline__step::after { top: 0.15rem; }
}

/* --- Local vs national comparison --- */
.info-compare {
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr;
  border-top: 1px solid var(--green-dim);
}
.info-compare__row:first-child { border-top: 0; }
.info-compare__row > div { padding: 0.95rem 1.1rem; font-size: 0.9rem; }
.info-compare__head { background: var(--ink); }
.info-compare__head > div {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--gray-2);
}
.info-compare__head .is-alfred { color: var(--green); }
.info-compare__topic { color: var(--white); font-weight: 600; }
.info-compare__alfred { color: var(--gray); background: var(--green-faint); border-left: 1px solid var(--green-dim); border-right: 1px solid var(--green-dim); }
.info-compare__other { color: var(--gray-2); }
@media (max-width: 700px) {
  .info-compare__row { grid-template-columns: 1fr 1fr; }
  .info-compare__topic { grid-column: 1 / -1; padding-bottom: 0.2rem; }
  .info-compare__head .info-compare__topic { display: none; }
  .info-compare__alfred { border-left: 0; }
}


/* ==========================================================================
   v19 — Revenue Calculator port from the booth tool (V10.3.1)
   Speedometer gauge, price boxes, reveal FX, and one-page proposal print.
   ========================================================================== */

/* ---- Gauge wrap: logo above the speedometer ---- */
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; flex: 0 1 300px; }
.score-logo { width: min(120px, 40%); height: auto; display: block; }
.gauge.speedo { width: min(300px, 100%); }

/* ---- Speedometer ---- */
.speedo__bezel { stroke: rgba(169, 240, 15, 0.35); }
.speedo__needle { fill: #ff5c33; filter: drop-shadow(0 0 5px rgba(255, 92, 51, 0.7)); }
.speedo__needle-tail { fill: #c2401f; }
.score-panel.is-overflow .speedo__needle { fill: var(--green); filter: drop-shadow(0 0 10px var(--green)); }
.score-panel.is-overflow .speedo__needle-tail { fill: #6c9a0a; }
.speedo__hub { fill: #141a10; stroke: var(--green-dim); stroke-width: 2; }
.speedo__hub-dot { fill: var(--green); }
.speedo__caption { fill: var(--green); font-size: 14px; font-weight: 800; letter-spacing: 0.22em; font-family: var(--font-mono); }
.speedo-tick-minor { stroke: #3d4a2a; stroke-width: 1.5; }
.speedo-tick-major { stroke: var(--green); stroke-width: 2.5; }
.speedo-label { fill: #8b93a1; font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
.speedo-label.is-redline { fill: var(--green); }
.speedo-zone { fill: none; stroke-width: 7; }
.speedo-zone.is-redline { filter: drop-shadow(0 0 6px var(--green)); animation: redline-pulse 1.6s ease-in-out infinite; }
@keyframes redline-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---- Score landing / bump / shimmer ---- */
.score-panel { position: relative; overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s; }
.score-panel.is-landed { box-shadow: 0 0 0 1px var(--green-dim), 0 0 60px -10px rgba(169, 240, 15, 0.45); }
.score-panel.is-overflow { border-color: var(--green); }
.score-number.is-bumping { animation: score-bump 0.5s ease-out; }
@keyframes score-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.score-panel.is-shimmer::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(169, 240, 15, 0.18) 50%, transparent 70%);
  animation: panel-shimmer 1.2s ease-out;
  pointer-events: none;
}
@keyframes panel-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ---- Confetti / paw burst ---- */
.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -2rem;
  animation: confetti-fall 1.6s ease-in forwards;
}
@keyframes confetti-fall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to { transform: translateY(120vh) rotate(340deg); opacity: 0.7; }
}

/* ---- Live price boxes ---- */
.price-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin: 1rem 0 1.2rem; }
.price-box {
  background: var(--ink);
  border: 1px solid var(--green-dim);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  text-align: center;
}
.price-box__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-2); font-weight: 700; }
.price-box__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.35rem; color: var(--white); }
.price-box__note { font-size: 0.68rem; color: var(--gray-2); line-height: 1.3; }
.price-box--noi { border-color: var(--green); }
.price-box--noi .price-box__value { color: var(--green); }

/* ---- Score breakdown ---- */
.breakdown { background: var(--ink); border: 1px solid var(--green-dim); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.breakdown summary { cursor: pointer; font-weight: 700; color: var(--green); }
.breakdown-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--ink-2); font-size: 0.88rem; color: var(--gray); }
.breakdown-row .pts { font-family: var(--font-mono); color: var(--white); white-space: nowrap; }
.breakdown-row.is-total { border-bottom: none; font-weight: 700; color: var(--white); }
.breakdown-row.is-total .pts { color: var(--green); }

/* ---- Waiting ticker + nights block (inside grand total) ---- */
.waiting-ticker { display: flex; justify-content: center; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--ink-2); }
.waiting-ticker__label { font-size: 0.82rem; color: var(--gray-2); }
.waiting-ticker__value { font-size: 1.25rem; font-weight: 700; color: var(--green); }
.nights-block { display: flex; justify-content: center; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.55rem; }
.nights-block__label { font-size: 0.82rem; color: var(--gray-2); }
.nights-block__value { font-size: 1.05rem; font-weight: 700; color: var(--white); }

/* ---- 3-2-1 countdown overlay ---- */
.countdown-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 400; align-items: center; justify-content: center; }
.countdown-overlay.is-visible { display: flex; }
.countdown-inner { text-align: center; }
.countdown-num {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 22vw, 11rem);
  font-weight: 800;
  color: var(--green);
  text-shadow: 0 0 60px rgba(169, 240, 15, 0.6);
  display: inline-block;
  animation: countdown-pop 0.65s ease-out;
}
@keyframes countdown-pop {
  0% { transform: scale(1.6); opacity: 0; }
  40% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.9; }
}

/* ---- Big Bark mega flash ---- */
.mega-flash { display: none; position: fixed; inset: 0; z-index: 390; background: rgba(169, 240, 15, 0.28); align-items: center; justify-content: center; pointer-events: none; }
.mega-flash.is-visible { display: flex; animation: mega-pulse 5s ease-out; }
.mega-flash__inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.mega-flash__dog { width: clamp(220px, 38vh, 420px); height: auto; border-radius: 18px; border: 4px solid var(--green); box-shadow: 0 0 60px rgba(169, 240, 15, 0.55), 0 0 120px rgba(0, 0, 0, 0.6); }
.mega-flash.is-visible .mega-flash__dog { animation: mega-dog-pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.mega-flash__text { font-size: clamp(2rem, 8vw, 5rem); font-weight: 900; color: var(--green); text-shadow: 0 0 40px rgba(0, 0, 0, 0.8); letter-spacing: 0.05em; text-align: center; }
@keyframes mega-pulse {
  0% { opacity: 0; }
  8% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes mega-dog-pop {
  from { transform: scale(0.4) rotate(-8deg); }
  to { transform: scale(1) rotate(0deg); }
}

/* ---- Game Changer tier flash ---- */
.tier-flash { display: none; position: fixed; inset: 0; z-index: 390; background: rgba(169, 240, 15, 0.22); align-items: center; justify-content: center; pointer-events: none; }
.tier-flash.is-visible { display: flex; animation: tier-pulse 2s ease-out; }
.tier-flash__text { font-size: clamp(2rem, 8vw, 4.5rem); font-weight: 900; color: var(--green); text-shadow: 0 0 30px rgba(169, 240, 15, 0.8); letter-spacing: 0.06em; text-align: center; }
@keyframes tier-pulse {
  0% { opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---- Mute toggle ---- */
.mute-toggle { position: fixed; right: 14px; bottom: 14px; z-index: 300; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--green-dim); background: var(--ink-2); color: var(--white); font-size: 1.25rem; cursor: pointer; }
.mute-toggle.is-muted { opacity: 0.55; }

/* ---- Reduced motion: kill the pulses ---- */
@media (prefers-reduced-motion: reduce) {
  .speedo-zone.is-redline,
  .score-panel.is-overflow .gauge__fill,
  .countdown-num,
  .score-number.is-bumping { animation: none !important; }
}

/* ---- One-page proposal print card ---- */
.print-card { display: none; }
@media print {
  @page { size: letter portrait; margin: 0.4in; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; height: auto !important; overflow: visible !important; }
  body > * { display: none !important; }
  body > .print-card.is-printing { display: block !important; }
  .print-card { position: static; width: 100%; padding: 0; color: #000; background: #fff; font-family: Arial, Helvetica, sans-serif; }
  .print-card h2 { color: #000; font-size: 17px; }
  .print-card h3 { font-size: 15px; margin: 2px 0; color: #000; }
  .print-card h4 { margin: 4px 0 1px; font-size: 12px; color: #000; }
  .print-card .pc-accent { color: #000; font-weight: 800; }
  .print-card .pc-header { display: flex; align-items: center; gap: 16px; border-bottom: 3px solid #000; padding-bottom: 8px; margin-bottom: 8px; }
  .print-card .pc-header img { height: 48px; width: 48px; }
  .print-card table { width: 100%; border-collapse: collapse; margin: 4px 0; }
  .print-card td { padding: 3px 4px; border-bottom: 1px solid #ccc; font-size: 11.5px; }
  .print-card .pc-total { font-weight: 800; margin-top: 10px; }
  .pp-scorestrip { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 0; }
  .pp-score-num { font-size: 34px; font-weight: 800; line-height: 1; }
  .pp-tier { font-size: 16px; font-weight: 800; }
  .pp-context { font-size: 10.5px; color: #333; margin: 2px 0 4px; }
  .pp-cols { display: flex; gap: 24px; }
  .pp-cols > div { flex: 1; }
  .pp-urgency { font-weight: 800; text-decoration: underline; font-size: 13px; margin: 6px 0 2px; }
  .pp-links { font-size: 11.5px; margin: 6px 0 0; }
  .pp-links p { margin: 2px 0; }
  .print-card .pc-small { font-size: 9.5px; color: #555; }
}
