/* assets/life-pass.css
   Sitewide "life pass" — brings the Home page's warmth, motion, and voice
   to every interior page. Loaded LAST (after hero-warmth.css, keeper-pages.css).
   Home (data-page="home") is structurally excluded from every rule.
   Spec: AH-20261108-163622-cypress-sitewide-life-pass-spec-v1-2
   Build: Codex (real profile via hermes kanban, task t_b576abb5)
   Base: site/v2-parity @ b6093a2

   Commits (each independently revertable):
   C1 — this skeleton (file created, links added to 28 HTML)
   C2 — ingredient 1: Fraunces italic h1 + gold <em> accent word
   C3 — ingredient 3: visible motes + shimmer (.hero-fx child + CSS) + delete dead layers from hero-warmth.css
   C4 — ingredient 4: livelier sections + warm photo bands
   C5 — ingredient 5: soft cards + vine dividers
   C6 — calmer variant overrides (keeper + privacy pages)
*/

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SKELETON — rules populated by commits C2–C6 below
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   C2 — INGREDIENT 1: Fraunces italic headline voice + gold <em> accent
   Spec §4.1: Fraunces 600 italic on interior .page-hero h1; gold #e8a83c
   on the one <em> accent word per headline.
   Revert effect: h1 falls back to Space Grotesk; gold accent gone.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body:not([data-page="home"]) .page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: .99;
  /* Existing color/size from styles.css:629 preserved — no color/size set here */
}

body:not([data-page="home"]) .page-hero h1 em {
  font-style: italic;
  color: #e8a83c;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   C3 — INGREDIENT 3: visible motes + shimmer (.hero-fx child)
   Spec §4.3. Home recipe: real DOM nodes (.ff spans), 4px gold glow.
   .hero-fx wrapper is position:absolute inside .page-hero — zero layout shift.
   Keyframes renamed lp-ff-drift / lp-shimmer to avoid collision with Home's
   ff-drift / shimmer / hero-ff-drift in parity.css + hero-warmth.css.
   Companion: dead radial-gradient mote layers deleted from hero-warmth.css.
   Revert effect: .hero-fx + CSS gone, warm scrim intact.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Container — absolute over hero, z-index:1 above ::before scrim, pointer-events:none */
body:not([data-page="home"]) .hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Mote base style — 4px gold glow node (Home recipe, hardcoded hex) */
body:not([data-page="home"]) .hero-fx .ff {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e8a83c;
  box-shadow: 0 0 8px 3px rgba(232,168,60,.5), 0 0 16px 5px rgba(232,168,60,.18);
}

/* 7 motes: nth-child 1,2,4,5,7 gold; 3,6 teal; durations staggered per spec */
body:not([data-page="home"]) .hero-fx .ff:nth-child(1) { left: 10%; top: 28%; animation-duration: 8.2s;  animation-delay: -1.3s; }
body:not([data-page="home"]) .hero-fx .ff:nth-child(2) { left: 24%; top: 65%; animation-duration: 7.1s;  animation-delay: -3.4s; width: 3px; height: 3px; }
body:not([data-page="home"]) .hero-fx .ff:nth-child(3) { left: 42%; top: 22%; animation-duration: 9.0s;  animation-delay: -5.1s;
  background: #22a88e;
  box-shadow: 0 0 8px 3px rgba(34,168,142,.4), 0 0 16px 5px rgba(34,168,142,.14); }
body:not([data-page="home"]) .hero-fx .ff:nth-child(4) { left: 63%; top: 46%; animation-duration: 7.6s;  animation-delay: -2.0s; }
body:not([data-page="home"]) .hero-fx .ff:nth-child(5) { left: 78%; top: 32%; animation-duration: 8.9s;  animation-delay: -4.5s; width: 3px; height: 3px; }
body:not([data-page="home"]) .hero-fx .ff:nth-child(6) { left: 88%; top: 68%; animation-duration: 6.7s;  animation-delay: -1.6s;
  background: #22a88e;
  box-shadow: 0 0 8px 3px rgba(34,168,142,.4), 0 0 16px 5px rgba(34,168,142,.14); }
body:not([data-page="home"]) .hero-fx .ff:nth-child(7) { left: 32%; top: 72%; animation-duration: 9.4s;  animation-delay: -6.0s; }

/* Shimmer layer — dedicated node, z-index:1, background-position only (no transform) */
body:not([data-page="home"]) .hero-fx .hero-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(232,168,60,.065) 50%, transparent 70%);
  background-size: 200% 100%;
}

/* Motion — all in prefers-reduced-motion: no-preference off-switch */
@media (prefers-reduced-motion: no-preference) {
  body:not([data-page="home"]) .hero-fx .ff {
    animation: lp-ff-drift 7s ease-in-out infinite alternate;
  }
  body:not([data-page="home"]) .hero-fx .hero-shimmer {
    animation: lp-shimmer 14s ease-in-out infinite;
  }
}

/* Keyframes — renamed lp-* to avoid collision with Home's ff-drift/shimmer */
@keyframes lp-ff-drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(10px,-16px) scale(1.12); }
  100% { transform: translate(-7px,9px) scale(.88); }
}
@keyframes lp-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Mobile budget: ≤480px reduce to 4 motes */
@media (max-width: 480px) {
  body:not([data-page="home"]) .hero-fx .ff:nth-child(5),
  body:not([data-page="home"]) .hero-fx .ff:nth-child(6),
  body:not([data-page="home"]) .hero-fx .ff:nth-child(7) {
    display: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   C4 — INGREDIENT 4: livelier sections + warm photo bands
   Spec §4.4. Revert effect: sections revert to flat dark, photo bands plain.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Warm section background — replaces flat #0d130f with green gradient */
body:not([data-page="home"]) main .section,
body:not([data-page="home"]) main .about-manifesto,
body:not([data-page="home"]) main .about-contact {
  background: linear-gradient(180deg, #0b1710, #0d1a12);
}

/* Section eyebrow / label — Fraunces italic gold with 2px gold-rule left border.
   NO font-size declared (preserves warm-retrofit.css:2116's responsive 13px floor).
   warm-retrofit.css:28 (.field-photo-copy .section-label) and scoped :not() variants
   are INTENDED to persist — only base font-family/style/color/border changed here. */
body:not([data-page="home"]) .section-label {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #e8a83c;
  border-left: 2px solid rgba(232,168,60,.28);
  padding-left: .7rem;
}

/* Section h2 — Fraunces italic (feel only; size/color preserved from cascade) */
body:not([data-page="home"]) main .section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* Photo band gold wash — PREPENDED to the full existing background stack.
   warm-retrofit.css:14 sets background: (2 scrim layers). This override uses
   background-image: with the gold wash as first layer + both scrims preserved
   verbatim. --dark computed hex = #2d2427 (parity.css:30 var(--dark)).
   Spec §2a MF-2: AC — computed backgroundImage must contain 3 gradient layers. */
body:not([data-page="home"]) .field-photo-band::before {
  background-image:
    linear-gradient(115deg, rgba(232,168,60,.08), transparent 45%),
    linear-gradient(to bottom, #2d2427 0%, rgba(20,16,18,0.22) 12%, rgba(20,16,18,0.48) 62%, #2d2427 100%),
    linear-gradient(90deg, rgba(20,16,18,0.64), transparent 70%);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   C5 — INGREDIENT 5: soft warm cards + vine dividers
   Spec §4.5. Revert effect: cards revert to current; vine dividers revert.
   Real interior card class names (grepped; NOT the placeholder .card):
     .keeper-hub-card — animals/pets hub species cards
     .keeper-card-mini — keeper cross-links row
     .build-flow — community/animals/services build-state cards
     .shop-item — portfolio product cards
     .p-svc-card — services offering cards
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Soft warm card treatment — radius + warm fill + gold border + depth shadow */
body:not([data-page="home"]) .keeper-hub-card,
body:not([data-page="home"]) .keeper-card-mini,
body:not([data-page="home"]) .build-flow,
body:not([data-page="home"]) .shop-item,
body:not([data-page="home"]) .p-svc-card {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(242,237,230,.05), rgba(232,168,60,.04));
  border: 1px solid rgba(232,168,60,.28);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Vine dividers — full families get 46px gold-glow vine.
   Home SVG vine protected by :not([data-page="home"]).
   5 keeper species pages EXCLUDED via main > .page-hero.keeper ~ .vine-divider (C6).
   Privacy has 0 vine-dividers (moot).
   The 3 data-page="animals" listing pages (animals/, animals/pets/, animals/endangered/)
   correctly receive the gold treatment (animals/pets/ hub has .page-hero.learning, not .keeper). */
body:not([data-page="home"]) .vine-divider {
  height: 46px;
  position: relative;
  overflow: visible;
  background: radial-gradient(60% 100% at 50% 0, rgba(232,168,60,.18), transparent 70%);
}
body:not([data-page="home"]) .vine-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,168,60,.28), transparent);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   C6 — CALMER VARIANT: keeper species pages + privacy page
   Spec §5. Applies on top of C2–C5 (loads last, specificity wins).
   Calmer = same palette, fewer moving parts. Readability is the hard floor.
   Keeper family 6: .page-hero.keeper (5 species pages only; 0 false positives)
   Privacy family 7: .page-hero.privacy (1 page)
   Revert effect: keeper + privacy fall back to full treatment.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── 6a. Motes: 3 only, drift speed halved (14s), shimmer OFF on calmer pages.
         Selector specificity wins over C3's 7-mote rule (same file, later source order). */

/* Show only first 3 ff nodes on calmer pages; hide 4-7 */
body:not([data-page="home"]) .page-hero.keeper .hero-fx .ff:nth-child(4),
body:not([data-page="home"]) .page-hero.keeper .hero-fx .ff:nth-child(5),
body:not([data-page="home"]) .page-hero.keeper .hero-fx .ff:nth-child(6),
body:not([data-page="home"]) .page-hero.keeper .hero-fx .ff:nth-child(7),
body:not([data-page="home"]) .page-hero.privacy .hero-fx .ff:nth-child(4),
body:not([data-page="home"]) .page-hero.privacy .hero-fx .ff:nth-child(5),
body:not([data-page="home"]) .page-hero.privacy .hero-fx .ff:nth-child(6),
body:not([data-page="home"]) .page-hero.privacy .hero-fx .ff:nth-child(7) {
  display: none;
}

/* Halve drift speed on the 3 remaining calmer motes */
@media (prefers-reduced-motion: no-preference) {
  body:not([data-page="home"]) .page-hero.keeper .hero-fx .ff,
  body:not([data-page="home"]) .page-hero.privacy .hero-fx .ff {
    animation-duration: 14s; /* doubled from 7s */
  }
}

/* Shimmer OFF on calmer pages (animationName → none) */
body:not([data-page="home"]) .page-hero.keeper .hero-fx .hero-shimmer,
body:not([data-page="home"]) .page-hero.privacy .hero-fx .hero-shimmer {
  animation: none;
}

/* ── 6b. Sections — warm gradient only, no extra photo band on calmer pages.
         The warm gradient from C4 is kept; no additional rules needed.
         (Keeper + privacy have no .field-photo-band by design — §3.) */

/* ── 6c. Vine divider EXCLUSION: 5 keeper species pages keep keeper-pages.css 28px hairline.
         Mechanism: main > .page-hero.keeper ~ .vine-divider (general sibling; vine-dividers
         are direct children of <main> and following siblings of the .page-hero.keeper hero).
         Specificity (0,3,1) beats C5 gold rule (0,2,1); both in life-pass.css loads LAST.
         See spec §1b v1.2 and Rook delta GO (AH-20261108-164147).
         AC: computed height on a keeper .vine-divider must be 28px (not 46px).
         The hub animals/pets/index.html has .page-hero.learning → not matched → gold correct. */

main > .page-hero.keeper ~ .vine-divider {
  height: 28px;
  overflow: hidden;
  background: none;
}

/* Restore keeper-pages.css:598 hairline and geometry, overriding C5 gold.
   keeper-pages.css loads BEFORE life-pass.css; reset the image explicitly. */
main > .page-hero.keeper ~ .vine-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: none;
  width: auto;
  height: auto;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 18px, var(--line-strong) 18px, var(--line-strong) 19px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SF-SHIP-1 ROUND 3 — Pure text-shadow glow, phone interior heroes
   Breakpoint: max-width:480px. Desktop UNTOUCHED. HOME FROZEN.
   Approach: layered text-shadow ONLY — no background, no padding,
   no border-radius, no box-decoration-break, no layout property.
   Line wraps and positions are IDENTICAL to c1c3407 baseline.
   Stepped alphas from tight (2px) to soft (40px); the glow is
   imperceptible as a shape — glyphs just lift off the photo.
   Specificity: (0,2,1). No !important needed.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
  body:not([data-page="home"]) .page-hero h1 {
    text-shadow:
      0 0  2px rgba(0, 0, 0, 0.90),
      0 0 10px rgba(0, 0, 0, 0.80),
      0 0 24px rgba(0, 0, 0, 0.60),
      0 0 40px rgba(0, 0, 0, 0.35);
  }

  /* em (gold accent word): slightly stronger tight layer for legibility. */
  body:not([data-page="home"]) .page-hero h1 em {
    text-shadow:
      0 0  2px rgba(0, 0, 0, 0.92),
      0 0 10px rgba(0, 0, 0, 0.84),
      0 0 24px rgba(0, 0, 0, 0.65),
      0 0 40px rgba(0, 0, 0, 0.38);
  }
}
