/* ============================================================
 * iFix Homepage v2 — Development stylesheet
 * ============================================================
 *
 * This file is ISOLATED from production css/style.css.
 * Production CSS is untouched until cutover.
 *
 * Build plan: /opt/ifix-homepage-v2/SPEC.md
 *
 * Palette locked:
 *   --ink      #0a0a0a
 *   --paper    #ffffff
 *   --ember    #ff7d03
 *
 * Animation philosophy:
 *   Restrained · physical easing · meaningful motion only.
 *   No ambient idle motion. No parallax. No gradients on cards.
 *
 * ========================================================== */


/* === DESIGN TOKENS — locked, do not redefine elsewhere === */

:root {
  /* Core palette (only three colours allowed) */
  --ink:        #0a0a0a;
  --paper:      #ffffff;
  --ember:      #ff7d03;

  /* Ink derivatives */
  --ink-80:     #3a3a3a;
  --ink-60:     #6a6a6a;
  --ink-30:     #b5b5b5;
  --ink-08:     rgba(10, 10, 10, 0.08);
  --ink-04:     rgba(10, 10, 10, 0.04);

  /* Paper derivative */
  --paper-warm: #fafaf8;

  /* Ember derivatives */
  --ember-soft: rgba(255, 125, 3, 0.08);
  --ember-mid:  rgba(255, 125, 3, 0.18);
  --ember-dark: #e56e00;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: var(--font-sans);  /* alias for clarity; same font (SPEC §5.2) */

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  /* Layout */
  --max-width: 1500px;

  /* Motion — easing canon (IMMERSION SPEC §4.1): textura's exact curves.
     --ease-out-expo updated to canonical easeOutExpo; all immersion motion
     uses ONLY --ease-out-expo or --ease-in-out-quart. */
  --ease-out-expo:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-in-out-soft:  cubic-bezier(0.4, 0, 0.2, 1);  /* retained — used by pre-immersion rules */

  --dur-fast:   150ms;
  --dur-med:    350ms;
  --dur-slow:   500ms;
  --dur-stage:  700ms;

  --stagger:    120ms;
}


/* === RESET === */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;        /* IMMERSION §5.5 — Inter reads larger; calibrated base */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }


/* === REDUCED MOTION — required, see SPEC §7.7 === */

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


/* ============================================================
 * PHASE 1 — FOUNDATION
 *
 * Shared primitives reused by every later phase.
 * Defines ONCE: typography defaults, layout helpers,
 * background utils, button/chip/eyebrow/hairline/sr-only.
 *
 * Phase 2: Nav
 * Phase 3: Hero
 * Phase 4: Five-pillar grid (signature element)
 * Phase 5: Pillar detail sections
 * Phase 6: Trust block
 * Phase 7: Cross-sell + articles + contact
 * Phase 8: Footer
 *
 * ========================================================== */


/* === BASE TYPOGRAPHY === */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

h1 { letter-spacing: -0.04em; }
/* IMMERSION §5.3 — larger section headings (pillar-detail h2 overrides via !important) */
h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h3 { letter-spacing: -0.02em; }
h4 { letter-spacing: -0.01em; }
h5, h6 { letter-spacing: 0; }

p {
  color: var(--ink-80);
  line-height: 1.65;
}

small {
  font-size: 0.8125rem;   /* 13px at 16px base */
  color: var(--ink-60);
  line-height: 1.5;
}


/* === FOCUS === */

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}


/* === LAYOUT === */

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

.section {
  /* IMMERSION §5.4 — doubled section padding for textura breathing room */
  padding-block: clamp(64px, 10vw, 144px);
}

/* Eyebrow + H2 + subhead grouping */
.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-head > * + * {
  margin-top: var(--space-4);
}


/* === BACKGROUND UTILITIES === */

.bg-paper { background: var(--paper); }
.bg-warm  { background: var(--paper-warm); }
.bg-ink   { background: var(--ink); color: var(--paper); }


/* === PRIMITIVES === */

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;  /* 11px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ember);
  line-height: 1;
}

/* Button base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  line-height: 1;
  transition:
    background  var(--dur-med) var(--ease-out-expo),
    transform   var(--dur-med) var(--ease-out-expo);
  text-decoration: none;
}

/* Primary button */
.btn-primary {
  background: var(--ember);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ember-dark);
}

/* Outline button */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--ember-soft);
  border-color: var(--ember);
  color: var(--ink);
}

/* Arrow nudge inside any .btn */
.btn .arrow {
  transition: transform var(--dur-med) var(--ease-out-expo);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Chip */
.chip {
  display: inline-block;
  background: var(--ember-soft);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.6875rem;  /* 11px */
  font-weight: 500;
  line-height: 1;
  transition: background var(--dur-fast);
  cursor: default;
}

.chip:hover {
  background: var(--ember-mid);
}

/* Hairline divider */
.hairline {
  height: 1px;
  background: var(--ink-08);
  border: 0;
}

/* Screen-reader only utility */
.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;
}


/* ============================================================
 * PHASE 2 — NAV
 * ========================================================== */

/* Nav bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-08);
  height: 72px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .nav { height: 64px; }
}

/* Inner layout row */
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
}

/* Logo wordmark */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: 48px;
  width: auto;
}

@media (max-width: 768px) {
  .nav-inner {
    position: relative;
  }
  .nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-logo img {
    height: 48px;
  }
}

/* Logo placement (Ben 2026-05-26): navbar wordmark on DESKTOP only (top-left,
   black). On mobile + tablet (<=1024px) the navbar logo is hidden — the logo
   shows in the hero instead (see .hero-logo below). */
@media (max-width: 1024px) {
  .nav-logo { display: none; }
}

/* Nav links list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.nav-links > li {
  position: relative;
}

/* All nav links */
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-80);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.nav-links > li > a:hover,
.nav-links > li > a:focus-visible {
  color: var(--ember);
}

/* Chevron icon */
.chev {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-med) var(--ease-out-expo);
  flex-shrink: 0;
}

.nav-dropdown.open > a > .chev {
  transform: rotate(180deg);
}

/* Dropdown menu panel */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity  var(--dur-med) var(--ease-out-expo),
    transform var(--dur-med) var(--ease-out-expo);
  z-index: 200;
}

.nav-dropdown.open > .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown menu links */
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: var(--ink-80);
  border-radius: 6px;
  transition:
    background var(--dur-fast) var(--ease-out-expo),
    color var(--dur-fast) var(--ease-out-expo);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--ember-soft);
  color: var(--ink);
}

/* "View all" / "All services" links */
.dropdown-menu .dropdown-viewall {
  font-weight: 600;
  color: var(--ember);
}

.dropdown-menu .dropdown-viewall:hover,
.dropdown-menu .dropdown-viewall:focus-visible {
  color: var(--ember-dark);
  background: var(--ember-soft);
}

/* Hairline inside dropdown */
.dropdown-menu .hairline {
  margin: 4px 0;
}

/* Phone CTA */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ember);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 7px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out-expo);
}

.nav-phone:hover,
.nav-phone:focus-visible {
  background: var(--ember-dark);
  color: var(--ink);
}

/* Book button — compact override */
.nav-book {
  font-size: 0.78rem;
  padding: 9px 22px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  margin-left: 0; /* far left on mobile ("app menu"); display:none on desktop (Ben 2026-05-25) */
  flex-shrink: 0;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out-expo), opacity var(--dur-fast);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
 * NAV — MOBILE
 * ========================================================== */

@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .nav-phone {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink-08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px 16px 16px;
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li > a {
    padding: 11px 4px;
    font-size: 0.95rem;
    border-radius: 0;
    border-bottom: 1px solid var(--ink-08);
  }

  .nav-links > li:last-of-type > a {
    border-bottom: none;
  }

  /* Mobile: dropdown becomes accordion */
  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 8px;
    transition: max-height var(--dur-med) var(--ease-out-expo), padding var(--dur-med) var(--ease-out-expo);
  }

  .nav-dropdown.open > .dropdown-menu {
    max-height: 600px;
    pointer-events: auto;
    padding: 4px 8px 8px;
  }

  .dropdown-menu a {
    font-size: 0.88rem;
    padding: 8px 10px;
  }

  /* Keep book button visible on mobile, pinned to the far right (Ben 2026-05-25).
     margin-left:auto absorbs the free space so BOOK lands far right, with the
     hamburger far left and the absolutely-centered logo between them. */
  .nav-book {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
  }

}


/* ============================================================
 * PHASE 3 — HERO
 * ========================================================== */

/* Hero section */
.dev-hero {
  /* Asymmetric: keep generous top below the sticky nav, but trim the bottom —
     the pillar-grid below shares this same warm bg with no divider, so a large
     bottom pad here stacks with its top pad into one empty void. */
  padding-block: var(--space-24) var(--space-10);   /* 96px top / 40px bottom */
}

@media (max-width: 768px) {
  .dev-hero {
    padding-block: var(--space-16) var(--space-8);   /* 64px top / 32px bottom */
  }
}

/* Inner centering container */
.hero-inner {
  max-width: 920px;
  text-align: center;
  margin-inline: auto;
}

/* Eyebrow spacing */
.hero-inner .eyebrow {
  margin-bottom: var(--space-5);
  display: block;
}

/* H1 — IMMERSION typography overhaul (SPEC §5.3) */
.hero-h1 {
  /* Sized so the longest of the three stacked phrases ("iPads for Nan and pop.")
     fits on one line at both desktop (872px hero col) and mobile (~358px) widths. */
  font-size: clamp(20px, 6.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.04;
  margin-bottom: var(--space-8);   /* 32px — balances the 32px below the subhead (was 24px) */
  /* Keep each phrase on its own line — only the authored <br>s may break. */
  white-space: nowrap;
}


/* Subhead */
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-80);
  max-width: none;          /* was 640px — that cap forced a 2-line wrap */
  margin-inline: auto;
  margin-bottom: var(--space-8);   /* 32px — was 40px; even with the 32px above (h1 mb) */
  line-height: 1.6;
  white-space: nowrap;      /* keep on one line (fits the 872px hero column) */
}

@media (max-width: 768px) {
  .hero-sub {
    font-size: 16px;
    white-space: normal;    /* too long for a phone — allow wrap below 768px */
  }
}

/* CTA row */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

/* Trust strip — must stay on a single line across all widths */
.hero-trust {
  font-size: clamp(10px, 2.9vw, 14px);
  color: var(--ink-60);
  line-height: 1.5;
  white-space: nowrap;
}

.trust-dot {
  color: var(--ink-30);
  margin-inline: clamp(3px, 1vw, 6px);
}

.trust-star {
  color: var(--ember);
}


/* ============================================================
 * PHASE 4 — FIVE-PILLAR GRID
 * Layout: 3+2 asymmetric desktop, 2-col tablet, 1-col mobile.
 * Static structure only — animations in Phase 5.
 * ========================================================== */

/* Section wrapper */
.dev-pillar-grid {
  background: var(--paper-warm);
  /* Follows the hero on the same warm bg with no divider — pull the top in so the
     full .section top pad (up to 144px) doesn't stack with the hero's bottom pad. */
  padding-top: clamp(56px, 6vw, 72px);
}

/* 3+3 grid — six pillar cards, three per row */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card base (redesign — SPEC §5.2) */
.pillar-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  transition:
    transform 350ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1)),
    border-color 350ms var(--ease-out-expo);
  will-change: transform;
  cursor: pointer;
}

/* Whole-card click affordance — keyboard focus ring (mouse focus stays clean) */
.pillar-card:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
}

/* Ember accent bar — single shared identity element (SPEC §3.2) */
.pillar-accent {
  position: absolute;
  top: 0;
  left: 36px;
  width: 60px;
  height: 3px;
  background: var(--ember);
  transition: width 400ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1));
}

/* Accent widens to full card width on hover/focus */
.pillar-card:hover .pillar-accent,
.pillar-card:focus-within .pillar-accent { width: calc(100% - 72px); }

/* Eyebrow — ember, 11px (inherits from .eyebrow primitive) */
.pillar-card .eyebrow {
  margin-bottom: 0;
}

/* Icon placeholder — 40×40 reserved box (Phase 5 fills with SVG) */
.pillar-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Title — large, the card anchor (SPEC §3.3) */
.pillar-card .pillar-title {
  font-size: clamp(24px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  transition: color 350ms var(--ease-out-expo);
}
.pillar-card .pillar-title a {
  color: inherit;
  text-decoration: none;
}

/* Title shifts to ember when the card is hovered/focused */
.pillar-card:hover .pillar-title,
.pillar-card:focus-within .pillar-title { color: var(--ember); }
.pillar-card:hover .pillar-title a,
.pillar-card:focus-within .pillar-title a { color: inherit; }

/* Hook line */
.pillar-card .pillar-hook {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-80);
  margin: 0;
}

/* Flex spacer pushes meta + CTA to the card foot */
.pillar-spacer { flex: 1 1 auto; min-height: 8px; }

/* Meta row — price · cadence (SPEC §3.3) */
.pillar-card .pillar-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.pillar-card .pillar-meta .price-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.pillar-card .pillar-meta .meta-sep {
  color: var(--ink-30);
  font-weight: 700;
}
.pillar-card .pillar-meta .pillar-time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* Text-link CTA (mockup C1): demoted from full-width ember button to inline link */
.pillar-card .pillar-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 300ms var(--ease-out-expo);
}
.pillar-card .pillar-cta .arrow {
  transition: transform 300ms var(--ease-out-expo);
}
.pillar-card:hover .pillar-cta,
.pillar-card:focus-within .pillar-cta { color: var(--ember); }
.pillar-card .pillar-cta:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* Mobile (SPEC §5.2) */
@media (max-width: 720px) {
  .pillar-card {
    padding: 32px;
    min-height: auto;
  }
  .pillar-card .pillar-title { font-size: clamp(24px, 6vw, 30px); }
  .pillar-accent { left: 24px; }
}


/* ============================================================
 * PILLAR GRID — TABLET (640–1023px): 2 columns, Phone leads full-width
 * ========================================================== */

@media (max-width: 1023px) and (min-width: 640px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  /* Six cards pair evenly across three rows — no full-width lead, no orphan. */
  .pillar-card {
    grid-column: span 1;
  }
}


/* ============================================================
 * PILLAR GRID — MOBILE (<640px): single column
 * ========================================================== */

@media (max-width: 639px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pillar-card:nth-child(1),
  .pillar-card:nth-child(2),
  .pillar-card:nth-child(3),
  .pillar-card:nth-child(4),
  .pillar-card:nth-child(5) {
    grid-column: span 1;
  }
  /* Card padding / title sizing handled by the 720px redesign block (SPEC §5.2) */
}


/* ============================================================
 * PHASE 5 — SIGNATURE ANIMATIONS (SPEC §7)
 * Four layers: entrance cascade · hover/focus · sibling dim ·
 * click confirmation. Plus two-state icon morph. Reduced-motion
 * honoured at the foot of this block (SPEC §7.7).
 * ========================================================== */

/* --- Layer 3: two-state icon morph (currentColor cross-fade) --- */
.pillar-icon {
  position: relative;
  width: 40px;
  height: 40px;
  color: var(--ink-60);
  transition: color var(--dur-slow) var(--ease-in-out-soft);
}

.pillar-icon svg {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  transition: opacity var(--dur-slow) var(--ease-in-out-soft);
}

.icon-b { opacity: 0; }

.pillar-card:hover .icon-a,
.pillar-card:focus-within .icon-a { opacity: 0; }

.pillar-card:hover .icon-b,
.pillar-card:focus-within .icon-b { opacity: 1; }

.pillar-card:hover .pillar-icon,
.pillar-card:focus-within .pillar-icon { color: var(--ember); }


/* --- Layer 2: hover / focus lift --- */
.pillar-card {
  transition:
    transform    var(--dur-med) var(--ease-out-expo),
    box-shadow   var(--dur-med) var(--ease-out-expo),
    border-color var(--dur-med) var(--ease-out-expo),
    opacity      var(--dur-med) var(--ease-out-expo);
}

.pillar-card:hover,
.pillar-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 125, 3, 0.08);
  border-color: var(--ember);
}

/* Card-level hover drives the Book button + arrow (hover may sit on card) */
.pillar-card:hover .btn-primary,
.pillar-card:focus-within .btn-primary {
  background: var(--ember-dark);
}

.pillar-card:hover .arrow,
.pillar-card:focus-within .arrow {
  transform: translateX(4px);
}


/* --- Layer 2 (premium): sibling dim via :has() --- */
.pillar-grid:has(.pillar-card:hover) .pillar-card:not(:hover),
.pillar-grid:has(.pillar-card:focus-within) .pillar-card:not(:focus-within) {
  opacity: 0.5;
  transition: opacity var(--dur-med) var(--ease-out-expo);
}

/* JS fallback for browsers without :has() (toggles .dim on siblings) */
.pillar-card.dim {
  opacity: 0.5;
  transition: opacity var(--dur-med) var(--ease-out-expo);
}


/* --- Layer 1: entrance cascade (gated behind .js-anim) --- */
.js-anim .pillar-card {
  opacity: 0;
  transform: translateY(20px);
}

.js-anim .pillar-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity   var(--dur-stage) var(--ease-out-expo),
    transform var(--dur-stage) var(--ease-out-expo);
}

.js-anim .pillar-card:nth-child(1).in-view { transition-delay: 0ms; }
.js-anim .pillar-card:nth-child(2).in-view { transition-delay: 120ms; }
.js-anim .pillar-card:nth-child(3).in-view { transition-delay: 240ms; }
.js-anim .pillar-card:nth-child(4).in-view { transition-delay: 360ms; }
.js-anim .pillar-card:nth-child(5).in-view { transition-delay: 480ms; }
.js-anim .pillar-card:nth-child(6).in-view { transition-delay: 600ms; }

/* Already-in-view-on-load batch reveal: no stagger delay */
.js-anim .pillar-card.in-view-now { transition-delay: 0ms !important; }


/* --- Layer 4: click confirmation --- */
.pillar-card.clicking {
  transform: scale(0.985);
  border-color: var(--ember);
  transition:
    transform    80ms var(--ease-out-expo),
    border-color 80ms var(--ease-out-expo);
}

/* Fix: entrance-cascade stagger delay must not leak into hover/focus/click feedback.
   The nth-child(N).in-view rules above set transition-delay 0-600ms which is correct
   for the reveal animation, but stays applied forever once .in-view is added.
   Without this override, bottom 3 cards (delays 360/480/600ms) feel sluggish to
   hover and click. Same specificity as the nth-child rule, later in cascade = wins. */
.js-anim .pillar-card.in-view:hover,
.js-anim .pillar-card.in-view:focus-within,
.js-anim .pillar-card.in-view.clicking {
  transition-delay: 0s;
}


/* --- Reduced motion (SPEC §7.7) --- */
@media (prefers-reduced-motion: reduce) {
  /* Entrance off — cards always visible */
  .js-anim .pillar-card,
  .pillar-card {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Icon morph instant */
  .pillar-icon,
  .pillar-icon svg {
    transition: none;
  }

  /* Keep hover affordance, drop the lift transform */
  .pillar-card:hover,
  .pillar-card:focus-within {
    transform: none;
  }

  /* No click scale */
  .pillar-card.clicking {
    transform: none;
  }
}


/* ============================================================
 * PHASE 6 — PILLAR DETAIL SECTIONS (SPEC §8)
 * Two-column desktop (image ~40% / content ~60%), stacked mobile.
 * Alternating bg: sections 1,3,5 = --paper; 2,4 = --paper-warm.
 * ========================================================== */

/* Section bg defaults to --paper; alt variant uses --paper-warm */
.pillar-detail {
  background: var(--paper);
}

.pillar-detail--alt {
  background: var(--paper-warm);
}

/* Two-column grid: image col (2fr) + content col (3fr) */
.pillar-detail-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
}

/* Flipped layout: content left, image right */
.pillar-detail-inner--flip {
  grid-template-columns: 3fr 2fr;
}

/* Image column */
.pillar-detail-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
}

/* Placeholder panel — no real image asset available */
.pillar-detail-img--placeholder {
  display: flex;
  align-items: stretch;
}

.pd-placeholder-panel {
  width: 100%;
  min-height: 320px;
  background: var(--paper-warm);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pillar-detail--alt .pd-placeholder-panel {
  background: var(--paper);
}

/* Content column */
.pillar-detail-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pillar-detail-content .eyebrow {
  margin-bottom: 0;
}

.pillar-detail-content h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin: 0;
}

.pillar-detail-sub {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

.pillar-detail-content > p {
  font-size: 15px;
  color: var(--ink-80);
  line-height: 1.7;
  margin: 0;
}

/* Price list — hairline-bordered rows */
.pillar-detail-prices {
  border: 1px solid var(--ink-08);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.pillar-detail--alt .pillar-detail-prices {
  background: var(--paper-warm);
}

.pd-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  gap: 8px;
}

.pd-repair {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.pd-from {
  font-size: 14px;
  font-weight: 600;
  color: var(--ember);
  white-space: nowrap;
}

.pillar-detail-prices .hairline {
  margin: 0;
}

.pd-all-prices {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.pd-all-prices:hover {
  text-decoration: none;
  opacity: 0.75;
}

.pd-all-prices .arrow {
  transition: transform 0.2s ease;
}

.pd-all-prices:hover .arrow {
  transform: translateX(3px);
}

/* 3-tier price cards (data recovery) */
.pd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border: none;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.pd-tier-card {
  border: 1px solid var(--ink-08);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper);
}

.pillar-detail--alt .pd-tier-card {
  background: var(--paper-warm);
}

.pd-tier-card--anchor {
  border-color: var(--ember);
  background: var(--ember-soft);
}

.pillar-detail--alt .pd-tier-card--anchor {
  background: var(--ember-soft);
}

.pd-tier-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-80);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.pd-tier-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ember);
  line-height: 1.3;
}

/* Review block */
.pillar-detail-review {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-80);
  line-height: 1.65;
  border-left: 2px solid var(--ember);
  padding-left: 14px;
  margin: 0;
}

.pillar-detail-review cite {
  display: block;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink-60);
  margin-top: 6px;
}

/* CTA row */
.pillar-detail-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pillar-detail-ctas .btn {
  font-size: 0.82rem;
  padding: 13px 22px;
}


/* ============================================================
 * PILLAR DETAIL — TABLET (max-width: 900px)
 * Tighten gap; keep two columns down to 640px
 * ========================================================== */

@media (max-width: 900px) {
  .pillar-detail-inner,
  .pillar-detail-inner--flip {
    gap: 32px;
  }

  .pd-cards {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
 * PILLAR DETAIL — MOBILE (max-width: 768px)
 * Stack to single column; image always comes first
 * ========================================================== */

@media (max-width: 768px) {
  .pillar-detail-inner,
  .pillar-detail-inner--flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Image-first on all stacked variants */
  .pillar-detail-inner--flip .pillar-detail-img {
    order: -1;
  }

  .pd-placeholder-panel {
    min-height: 200px;
  }

  .pillar-detail-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .pillar-detail-ctas .btn {
    justify-content: center;
    width: 100%;
  }
}


/* ============================================================
 * PHASE 7 — VIDEOS (SPEC §9.1)
 * ========================================================== */

.dev-videos { background: var(--paper-warm); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === PILLAR-PREVIEW VIDEOS (2-up, sits BETWEEN sections, BEFORE each pillar) ===
   Uses negative margins to overlap into surrounding sections' padding-block
   (which is clamp(64px, 10vw, 144px)) so we get reasonable breathing room
   instead of 128-288px of total dead space. */
.pillar-videos {
  background: transparent;
  padding-block: var(--space-4);
  margin-top: clamp(-96px, -7vw, -40px);
  margin-bottom: clamp(-96px, -7vw, -40px);
  position: relative;
  z-index: 2;
}
.pillar-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.pillar-videos .lite-yt {
  aspect-ratio: 9/16;
  max-height: 480px;
}
@media (max-width: 640px) {
  .pillar-videos {
    margin-top: -32px;
    margin-bottom: -32px;
    padding-block: var(--space-3);
  }
  .pillar-videos-grid { gap: 12px; max-width: 100%; }
}


.lite-yt {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  border: 1px solid var(--ink-08);
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.lite-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lite-yt:hover img { transform: scale(1.04); opacity: 0.85; }

.lite-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.lite-yt:hover .lite-yt-play { background: #cc0000; transform: translate(-50%, -50%) scale(1.08); }

.lite-yt-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }

.lite-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ============================================================
 * PHASE 7 — AUTHORITY PANEL (SPEC §9.3)
 * ========================================================== */

.authority-panel { background: var(--ink); color: var(--paper); padding-block: 96px; }

.ap-wrap { max-width: 800px; margin-inline: auto; text-align: center; }

.fact-stage { position: relative; min-height: 240px; margin-bottom: 32px; }

.fact {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.fact.is-active { opacity: 1; pointer-events: auto; }

.fact-source { color: var(--ember); font-size: 11px; letter-spacing: 1.5px; }

.fact-num {
  color: var(--ember);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 120px);
  letter-spacing: -2px;
  line-height: 0.9;
  transform: scale(0.92);
  transition: transform 0.6s var(--ease-out-expo);
}

.fact.is-active .fact-num { transform: scale(1); }

.fact-label {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  line-height: 1.4;
  transform: translateY(8px);
  transition: transform 0.6s var(--ease-out-expo);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  text-align: center;
}

.fact.is-active .fact-label { transform: translateY(0); }

@media (max-width: 768px) {
  .fact-label { font-size: 16px; }
  .fact-stage { min-height: 220px; }
}

.fact-peek { overflow: hidden; margin-top: 8px; }

.fact-peek-track {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: peek-scroll 60s linear infinite;
}

@keyframes peek-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* REDUCED MOTION — authority-panel / fact */
@media (prefers-reduced-motion: reduce) {
  .authority-panel .fact-peek-track { animation: none; }
  .authority-panel .fact,
  .authority-panel .fact-num,
  .authority-panel .fact-label { transition: none; }
  .fact-stage {
    position: static;
    min-height: unset;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .fact { position: static; opacity: 1; pointer-events: auto; display: flex; }
  .fact:nth-child(n+4) { display: none; }
  @media (max-width: 768px) {
    .fact-stage { grid-template-columns: 1fr; }
    .fact:nth-child(n+2) { display: none; }
  }
}


/* ============================================================
 * PHASE 7 — REVIEWS (SPEC §9.2)
 * ========================================================== */

.dev-reviews { background: var(--ink); }

.dev-reviews .section-head h2 { color: var(--paper); }

.reviews-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .reviews-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid-v2 { grid-template-columns: 1fr; } }

.rv2-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rv2-stars { color: var(--ember); font-size: 13px; letter-spacing: 2px; }

.rv2-body {
  font-style: italic;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
}

.rv2-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--paper);
  display: block;
}

.rv2-src {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}


/* ============================================================
 * PHASE 7 — PARTNERS (SPEC §9.4)
 * ========================================================== */

.dev-partners {
  padding-block: 48px;
  background: var(--paper);
  overflow: hidden;
}

.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-partners 50s linear infinite;
}

.partners-track img {
  height: 45px;
  max-height: 45px;
  width: auto;
  object-fit: contain;
  margin-right: 72px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}

.partners-track img:hover { opacity: 1; filter: grayscale(0); }

@keyframes scroll-partners {
  from { transform: translateX(0); }
  to { transform: translateX(-12.5%); }
}

@media (max-width: 768px) {
  .partners-track img { height: 42px; max-height: 42px; margin-right: 48px; }
  .partners-track { animation-duration: 36s; }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; justify-content: center; flex-wrap: wrap; }
}

/* ============================================================
 * PHASE 8 — CROSS-SELL §10 / ARTICLES §11 / CONTACT §12 / BACK-TO-TOP
 * ========================================================== */

/* --- CROSS-SELL --- */
.dev-cross-sell { padding-block: 64px; }
.cross-sell-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.cross-sell-line1 { font-size: 1rem; font-weight: 500; color: var(--ink-80); margin: 0; }
.cross-sell-line2 { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin: 0; }
.cross-sell-sub { display: block; color: var(--ink-60); margin-bottom: var(--space-2); }
.dev-cross-sell .btn { margin-top: var(--space-2); }

/* --- ARTICLES --- */
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.article-card { display: block; background: var(--paper); border: 1px solid var(--ink-08); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--dur-med) var(--ease-out-expo), box-shadow var(--dur-med) var(--ease-out-expo); }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--ink-08); }
.article-card-thumb { height: 140px; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.article-card-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.article-card-thumb .cat-fb { font-size: 0.65rem; font-weight: 600; color: var(--ink-60); text-transform: uppercase; letter-spacing: 1px; }
.article-card-body { padding: var(--space-4); }
.article-card-body .eyebrow { margin-bottom: var(--space-2); }
.article-card-body h3 { font-size: 0.875rem; font-weight: 600; line-height: 1.35; margin-bottom: var(--space-2); }
.article-card-body p { font-size: 0.75rem; color: var(--ink-60); line-height: 1.45; margin: 0; }
.articles-viewall { text-align: center; margin-top: var(--space-8); }
.articles-viewall a { font-size: 0.875rem; font-weight: 600; color: var(--ember); }
.articles-viewall a:hover { color: var(--ember-dark); }
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .articles-grid { grid-template-columns: 1fr; } }

/* --- CONTACT --- */
.contact-h2 { text-align: center; margin-bottom: var(--space-10); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.contact-card { background: var(--paper); border: 1px solid var(--ink-08); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); transition: transform var(--dur-med) var(--ease-out-expo), box-shadow var(--dur-med) var(--ease-out-expo); }
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--ink-08); }
.contact-card h3 { font-size: 1.1rem; margin: 0; }
.contact-card address { font-style: normal; font-size: 0.875rem; color: var(--ink-80); }
.contact-hours { font-size: 0.875rem; color: var(--ink-60); margin: 0; }
.contact-card p { font-size: 0.875rem; margin: 0; }
.contact-link { font-size: 0.875rem; font-weight: 600; color: var(--ember); }
.contact-link:hover { color: var(--ember-dark); }
.contact-footer-line { text-align: center; margin-top: var(--space-10); font-size: 0.875rem; color: var(--ink-60); }
.contact-footer-line a { color: var(--ink); font-weight: 500; }
.contact-footer-line a:hover { color: var(--ember); }
/* Lite-map in dev context — restyle borders to token */
.dev-contact .lite-map { position: relative; width: 100%; height: 180px; border: 1px solid var(--ink-08); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: linear-gradient(135deg, #f1f3ee 0%, #e4e8de 100%); display: flex; align-items: center; justify-content: center; }
.dev-contact .lite-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(0deg, rgba(180,170,150,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(180,170,150,.18) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.dev-contact .lite-map-card { position: relative; z-index: 1; background: #fff; border-radius: var(--radius); padding: 12px 16px; box-shadow: 0 6px 20px rgba(0,0,0,.12); display: flex; align-items: center; gap: 12px; max-width: 90%; }
.dev-contact .lite-map-pin { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #ea4335; display: flex; align-items: center; justify-content: center; color: #fff; }
.dev-contact .lite-map-pin svg { width: 16px; height: 16px; fill: currentColor; }
.dev-contact .lite-map-text { font-size: 0.8rem; line-height: 1.4; color: #202124; }
.dev-contact .lite-map-text strong { display: block; font-weight: 600; margin-bottom: 1px; }
.dev-contact .lite-map-text small { color: #5f6368; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- BACK TO TOP --- */
.back-to-top { position: fixed; bottom: 32px; right: 32px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: var(--ember); color: var(--ink); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--dur-med) var(--ease-out-expo), transform var(--dur-med) var(--ease-out-expo); }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--ember-dark); }
@media (max-width: 768px) { .back-to-top { bottom: 20px; right: 20px; } }

/* ============================================================
 * PHASE 9 — FOOTER (SPEC §13)
 * ========================================================== */
.dev-footer { background: var(--ink); color: var(--paper); padding-block: 64px 40px; }
.footer-inner { }
.footer-brand { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.footer-wordmark { font-size: 1.1rem; font-weight: 700; color: var(--paper); letter-spacing: 0.5px; }
.footer-tagline { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-cols { display: grid; grid-template-columns: repeat(5,1fr); gap: 24px; }
.footer-col h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.5); margin-bottom: 12px; line-height: 1; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1; margin-bottom: 9px; text-decoration: none; }
.footer-col a:hover { color: var(--ember); }
.footer-hr { background: rgba(255,255,255,0.1); margin-block: 32px; }
.footer-areas { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.8; }
.footer-areas-label { display: inline-block; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-right: 8px; }
.footer-areas a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-areas a:hover { color: var(--ember); }
.footer-compliance { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.4); }
.footer-compliance a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-compliance a:hover { color: var(--ember); }
@media (max-width: 900px) { .footer-cols { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } .footer-compliance { flex-direction: column; } }

/* ──────────────────────────────────────────────────────────
   CENTRE-ALIGN OVERRIDE (Ben request, 2026-05-22)
   ────────────────────────────────────────────────────────── */
/* Section heads (eyebrow + H2 + intro subhead) */
.section-head,
.section-head .eyebrow,
.section-head h2,
.section-head .section-subhead,
.section-head p {
  text-align: center;
}

/* Hero stays centred (already is, but defensive) */
.dev-hero,
.dev-hero .hero-inner,
.dev-hero .eyebrow,
.dev-hero h1,
.dev-hero .hero-sub,
.dev-hero .hero-trust {
  text-align: center;
}
.dev-hero .hero-cta-row {
  justify-content: center;
}

/* Pillar grid cards — left-aligned in redesign (SPEC §5.1 override) */
.pillar-card,
.pillar-card .pillar-eyebrow,
.pillar-card h3,
.pillar-card .pillar-hook,
.pillar-card .pillar-meta,
.pillar-card .pillar-cta-row {
  text-align: left !important;
}
.pillar-card .pillar-ctas { justify-content: stretch !important; }
.pillar-card .pillar-chips,
.pillar-card .chip-row,
.pillar-card .pillar-cta-row {
  justify-content: flex-start !important;
}

/* Pillar detail sections */
.pillar-detail .pillar-detail-content,
.pillar-detail .pillar-detail-content .eyebrow,
.pillar-detail .pillar-detail-content h2,
.pillar-detail .pillar-detail-content .pillar-detail-sub,
.pillar-detail .pillar-detail-content p,
.pillar-detail .pillar-detail-content .pillar-detail-cta-row {
  text-align: center;
}
.pillar-detail .pillar-detail-content ul,
.pillar-detail .pillar-detail-content ol {
  list-style-position: inside;
  padding-left: 0;
  text-align: center;
}
.pillar-detail .pillar-detail-cta-row {
  justify-content: center;
}

/* Reviews block */
.dev-reviews .section-head,
.dev-reviews .review-card,
.dev-reviews .review-card .review-body,
.dev-reviews .review-card .review-author {
  text-align: center;
}

/* Videos block */
.dev-videos .section-head,
.dev-videos .video-grid,
.dev-videos .video-caption {
  text-align: center;
}

/* Articles */
.dev-articles .section-head,
.dev-articles .article-card,
.dev-articles .article-title,
.dev-articles .article-meta {
  text-align: center;
}

/* Cross-sell */
.dev-cross-sell,
.dev-cross-sell h2,
.dev-cross-sell p,
.dev-cross-sell .cross-sell-cta-row {
  text-align: center;
}
.dev-cross-sell .cross-sell-cta-row {
  justify-content: center;
}

/* Contact section */
.dev-contact .section-head,
.dev-contact .contact-grid,
.dev-contact .contact-card,
.dev-contact .contact-card h3,
.dev-contact .contact-card p,
.dev-contact .contact-phone-line {
  text-align: center;
}

/* Authority panel is already centred — leave it */

/* Partners marquee — natural left scroll, leave it */

/* FOOTER: deliberately NOT centred — 5-column footer reads better left-aligned in columns */

/* ──────────────────────────────────────────────────────────
   PILLAR DETAIL — single-column centred rework
   (Ben request, 2026-05-22 — overrides earlier two-column grid)
   ────────────────────────────────────────────────────────── */
.pillar-detail-inner,
.pillar-detail-inner--flip {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 32px;
  max-width: 720px;
  margin-inline: auto;
  grid-template-columns: none !important;
}

/* Image first (visual anchor), content second */
.pillar-detail-img    { order: 1; width: 100%; max-width: 720px; margin: 0 auto; }
.pillar-detail-content { order: 2; }

/* Image rendering — override the small HTML width/height attributes */
.pillar-detail-img img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Content column — centred, readable line length */
.pillar-detail-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.pillar-detail-content .eyebrow { margin: 0; }
.pillar-detail-content h2       { margin: 0; text-align: center; }
.pillar-detail-content > p,
.pillar-detail-content .pillar-detail-sub {
  max-width: 56ch;
  margin: 0 auto;
  text-align: center;
}

/* Prices block — centred container, rows keep flex-between layout */
.pillar-detail-prices {
  width: 100%;
  max-width: 480px;
  margin: 8px auto;
}
.pd-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-align: left;
  gap: 16px;
}
.pd-price-row .pd-from { text-align: right; white-space: nowrap; }

/* Review blockquote — centred italic pull-quote */
.pillar-detail-review,
blockquote.pillar-detail-review {
  text-align: center;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 8px auto;
  padding: 0;
  border: 0;
  color: var(--ink-80, #333);
}
.pillar-detail-review cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-style: normal;
  color: var(--ink-60, #666);
}

/* CTAs — centred row */
.pillar-detail-ctas,
.pillar-detail-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 720px) {
  .pillar-detail-inner { gap: 20px; max-width: 100%; }
  .pillar-detail-content { max-width: 100%; }
  .pillar-detail-img { max-width: 100%; }
  .pillar-detail-img img { max-height: 280px; aspect-ratio: 4/3; }
  .pillar-detail-content > p,
  .pillar-detail-content .pillar-detail-sub { max-width: 100%; }
  .pillar-detail-review { font-size: 16px; }
}

/* ──────────────────────────────────────────────────────────
   PILLAR DETAIL PRICES — truly centred (Ben, 2026-05-22)
   Override the flex-between left/right layout — show as a single
   centred line with a bullet separator. Reads as part of the
   centred editorial rhythm.
   ────────────────────────────────────────────────────────── */
.pillar-detail-prices {
  width: 100%;
  max-width: 480px;
  margin: 12px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.pd-price-row {
  display: flex !important;
  flex-direction: row;
  justify-content: center !important;
  align-items: baseline;
  gap: 10px;
  text-align: center;
  width: 100%;
  padding: 10px 0;
}

.pd-price-row .pd-repair,
.pd-price-row .pd-from {
  text-align: center !important;
  white-space: normal;
}

/* Inline bullet separator between name and price */
.pd-price-row .pd-repair::after {
  content: "·";
  display: inline-block;
  margin-left: 10px;
  color: var(--ember, #ff7d03);
  font-weight: 700;
}

/* Hairline divider between rows — full width of the prices block */
.pillar-detail-prices .hairline {
  width: 100%;
  height: 1px;
  background: var(--ink-08, rgba(10,10,10,0.08));
  border: 0;
  margin: 0;
}

/* Pillar card price-num (top grid) — left-aligned in redesign */
.pillar-card .price-num {
  display: inline;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
   PILLAR NUMBERED LABELS (Ben rewrite, 2026-05-22)
   Replaces SVG icons with editorial numbered eyebrows.
   ────────────────────────────────────────────────────────── */
.pillar-number {
  display: block;
  font-family: var(--font-sans, 'Poppins', system-ui, sans-serif);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ember, #ff7d03);
  margin: 0 auto 12px auto;
  text-align: center;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* Hide any leftover pillar-icon containers if they slipped through */
.pillar-card .pillar-icon { display: none; }

/* ──────────────────────────────────────────────────────────
   PILLAR DETAIL — NO IMAGE VARIANT
   Sections no longer have an image; rely on numbered eyebrow + typography.
   ────────────────────────────────────────────────────────── */
.pillar-detail-inner {
  /* Re-affirm single-column centred layout */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 28px;
  max-width: 1200px;
  margin-inline: auto;
}

/* The numbered eyebrow gets BIG editorial treatment in detail sections */
.pillar-detail-content .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember, #ff7d03);
  margin-bottom: 4px;
}

/* H2 in pillar detail — bigger now that there's no image competing */
.pillar-detail-content h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 8px 0;
  text-align: center;
}

/* Sub-headline — pull-quote weight */
.pillar-detail-content .pillar-detail-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink, #0a0a0a);
  font-weight: 400;
  max-width: 58ch;
  margin: 0 auto 16px auto;
  text-align: center;
}

/* Body paragraphs — readable centred */
.pillar-detail-content > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-80, #333);
  max-width: 56ch;
  margin: 0 auto;
  text-align: center;
}

/* ──────────────────────────────────────────────────────────
   PILLAR DETAIL — DRAMATIC TYPOGRAPHY REWORK
   (Ben rewrite v2, 2026-05-22 — kill numbers, big headings, visual weight)
   ────────────────────────────────────────────────────────── */

/* Kill leftover pillar-number rule */
.pillar-number { display: none !important; }

/* Section padding — generous but not bloated */
.pillar-detail.section {
  padding-block: clamp(72px, 9vw, 128px) !important;
}

/* Alternating background contrast — visible difference between sections */
.pillar-detail {
  background: var(--paper, #ffffff);
}
.pillar-detail--alt {
  background: var(--paper-warm, #f7f5f1) !important;
}

/* Eyebrow — small ember caps, tracked, sits above the accent line */
.pillar-detail-content .eyebrow {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--ember, #ff7d03) !important;
  margin: 0 0 24px 0 !important;
  text-align: center !important;
}

/* Ember accent bar BETWEEN eyebrow and H2 — gives each section a visual hook */
.pillar-detail-content .eyebrow::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--ember, #ff7d03);
  margin: 18px auto 0 auto;
}

/* H2 — much bigger, hero-scale typography */
.pillar-detail-content h2 {
  font-size: clamp(44px, 7.5vw, 84px) !important;
  font-weight: 700 !important;
  line-height: 1.0 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 28px 0 !important;
  text-align: center !important;
  color: var(--ink, #0a0a0a);
  max-width: 14ch;
  margin-inline: auto;
}

/* Pull-quote subtitle — bigger than body, lighter weight, more presence */
.pillar-detail-content .pillar-detail-sub {
  font-size: clamp(19px, 1.9vw, 24px) !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--ink, #0a0a0a) !important;
  max-width: 70ch !important;
  margin: 0 auto 36px auto !important;
  text-align: center !important;
}

/* Body paragraphs — slightly larger, comfortable reading rhythm */
.pillar-detail-content > p:not(.pillar-detail-sub) {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: var(--ink-80, #2a2a2a) !important;
  max-width: 75ch !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* NordVPN affiliate note — quieter than body copy, text-only, no image */
.pillar-detail-content > p.pd-affiliate {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--ink-60) !important;
  max-width: 52ch !important;
  margin: 4px auto 0 !important;
}
.pd-affiliate a {
  color: var(--ember);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pd-affiliate-note {
  display: block;
  font-size: 11px;
  color: var(--ink-30);
  margin-top: 4px;
}

/* Pillar-detail-content vertical rhythm */
.pillar-detail-content {
  gap: 18px !important;
  max-width: 1100px;
}

/* Hairline divider before prices block — creates rhythm */
.pillar-detail-prices {
  margin-top: 40px !important;
  padding-top: 32px;
  border-top: 1px solid var(--ink-08, rgba(10,10,10,0.08));
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

/* Review and CTAs spacing */
.pillar-detail-review { margin-top: 24px !important; }
.pillar-detail-ctas, .pillar-detail-cta-row { margin-top: 24px !important; }

/* Mobile tightening */
@media (max-width: 720px) {
  .pillar-detail.section { padding-block: 56px !important; }
  .pillar-detail-content h2 { font-size: clamp(40px, 12vw, 56px) !important; }
  .pillar-detail-content .pillar-detail-sub { font-size: 18px !important; }
  .pillar-detail-content > p:not(.pillar-detail-sub) { font-size: 16px !important; max-width: 100% !important; }
}


/* ============================================================
 * IMMERSION PASS — MOTION PRIMITIVES (additive, SPEC §4–§13)
 * Easing canon: --ease-out-expo (0.16,1,0.3,1) + --ease-in-out-quart (0.76,0,0.24,1).
 * Hidden initial states are gated behind html.js-reveal (JS adds it on boot) so the
 * page stays fully visible if JS fails to load — same safety model as .js-anim.
 * ========================================================== */

/* --- Lenis smooth-scroll helper CSS (official) — prevents scroll-behavior conflict --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* --- §7 IntersectionObserver scroll-reveal --- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1000ms var(--ease-out-expo) var(--reveal-delay, 0ms),
    transform 1000ms var(--ease-out-expo) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js-reveal [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
/* a11y: never leave a keyboard-focused element inside an un-revealed section invisible */
html.js-reveal [data-reveal]:focus-within { opacity: 1; transform: translateY(0); }

/* --- §6 Word-level text reveal --- */
html.js-reveal .is-split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition:
    opacity 800ms var(--ease-out-expo) calc(var(--word-i, 0) * 70ms),
    transform 800ms var(--ease-out-expo) calc(var(--word-i, 0) * 70ms);
  will-change: opacity, transform;
}
html.js-reveal .is-split.is-revealed .word,
html.js-reveal .is-split.is-loaded .word { opacity: 1; transform: translateY(0); }

/* --- §12 Slide-from-above for nav-adjacent (hero) elements (load animation) --- */
html.js-reveal [data-slide-down] { opacity: 0; transform: translateY(-16px); transition: opacity 900ms var(--ease-out-expo) var(--slide-delay, 0ms), transform 900ms var(--ease-out-expo) var(--slide-delay, 0ms); }
html.js-reveal [data-slide-down].is-loaded { opacity: 1; transform: translateY(0); }

/* --- §10 Stat count-up styling — tabular-nums avoids width jitter (CLS) --- */
.stat { font-variant-numeric: tabular-nums; }
.hero-trust .stat { font-weight: 600; color: var(--ink); }

/* --- §11 Animated link underlines (text links only — buttons/CTAs excluded) --- */
a.link, .dev-footer a, .dev-contact .contact-link, .dev-contact .contact-footer-line a, .articles-viewall a { position: relative; text-decoration: none; }
a.link::after, .dev-footer a::after, .dev-contact .contact-link::after, .dev-contact .contact-footer-line a::after, .articles-viewall a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--ease-out-expo); }
a.link:hover::after, .dev-footer a:hover::after, .dev-contact .contact-link:hover::after, .dev-contact .contact-footer-line a:hover::after, .articles-viewall a:hover::after { transform: scaleX(1); }

/* --- §13 Section dividers REMOVED 2026-05-27 (Ben). The hairline + ember dot
       between sections created uneven visual rhythm: the line sat ~96px below
       the next section's content but ~140-200px below the previous section's
       content. Section padding (64-144px each side) handles separation alone.
       'position: relative' kept defensively in case any descendant uses
       absolute positioning. --- */
.section + .section { position: relative; }

/* --- Card-redesign preservation: .pillar-card text-align: left (do NOT re-centre cards) --- */
.pillar-card { text-align: left; }

/* --- §4.3 Reduced-motion: every immersion animation resolves to its final state instantly --- */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal],
  html.js-reveal [data-slide-down],
  html.js-reveal .is-split .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   IMMERSION BUNDLE (Ben request, 2026-05-23)
   Adds: 1) hero scroll-driven transformation, 3) page grain overlay,
         4) ghost typography behind pillar detail sections,
         6) first-paragraph word reveal (no CSS change — reuses .word-split)
   ════════════════════════════════════════════════════════════════ */

/* ── 3. PAGE GRAIN ──────────────────────────────────────────────
   Subtle fractal noise overlay sitting above everything, blended via overlay.
   Removes the flat-white "screenshot" feel. Apple/Stripe/Vercel pattern. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* ── 1. HERO SCROLL TRANSFORM ───────────────────────────────────
   --hp (hero progress 0→1) updated via JS scroll listener.
   As user scrolls past hero, content drifts up + fades + scales down. */
.dev-hero {
  position: relative;
}
.dev-hero .hero-inner {
  --hp: 0;
  transform: translateY(calc(var(--hp) * -60px)) scale(calc(1 - 0.12 * var(--hp)));
  opacity: calc(1 - 1.3 * var(--hp));
  will-change: transform, opacity;
  transform-origin: center top;
}
@media (prefers-reduced-motion: reduce) {
  .dev-hero .hero-inner {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── 1b. SECTION SCROLL FADE (Ben request 2026-05-25) ───────────
   --sx (section-exit progress 0→1) is set per section by JS as it
   scrolls off the top. Same treatment as the hero (.hero-inner/--hp):
   drift up + scale down + fade out, tracked live (transition: none).
   Two selectors so this owns the section's opacity/transform in BOTH
   the pre-reveal and revealed states, overriding the one-shot
   [data-reveal] end-states — the per-element fade-IN cascade is
   untouched (children aren't direct > children of <main>). */
html.js-reveal main > section[data-reveal],
html.js-reveal main > section[data-reveal].is-revealed {
  --sx: 0;
  opacity: calc(1 - var(--sx));
  transform: translateY(calc(var(--sx) * -30px)) scale(calc(1 - 0.05 * var(--sx)));
  transform-origin: center top;
  transition: none;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal main > section[data-reveal],
  html.js-reveal main > section[data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── 4. GHOST TYPOGRAPHY (pillar detail ambient identity) ───────
   Big faint outlined word behind each pillar detail section. */
.pillar-detail {
  position: relative;
  overflow: hidden;
}
.pillar-detail::before {
  content: attr(data-bg-word);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display, var(--font-sans), 'Inter', sans-serif);
  font-size: clamp(160px, 28vw, 380px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ember, #ff7d03);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  user-select: none;
}
/* Ensure real content sits above the ghost layer */
.pillar-detail > .wrap,
.pillar-detail .pillar-detail-inner {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .pillar-detail::before { opacity: 0.04; }
}

/* ── 6. PARAGRAPH WORD-REVEAL TUNING ────────────────────────────
   First-paragraph reveals (added via HTML data-split) need slightly
   tighter stagger because paragraphs have more words. Drop from 70ms
   per word default to 35ms for any .word inside a paragraph. */
p.is-split .word {
  transition-delay: calc(var(--word-i, 0) * 35ms) !important;
}

/* ════════════════════════════════════════════════════════════════
   IMMERSION BUNDLE v2 — GHOST PARALLAX + HOVER MICRO-INTERACTIONS
   ════════════════════════════════════════════════════════════════ */

/* Ghost typography uses --ghost-drift (JS-set, -0.6 to +0.6) for parallax */
.pillar-detail::before {
  transform: translate(-50%, calc(-50% + var(--ghost-drift, 0) * 100px));
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .pillar-detail::before { transform: translate(-50%, -50%) !important; }
}

/* HOVER MICRO-INTERACTIONS on card surfaces (review/article/contact/video) */
.rv2-card,
.article-card,
.contact-card {
  transition:
    transform 350ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1)),
    border-color 350ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1)),
    box-shadow 350ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1));
  will-change: transform;
}
.rv2-card:hover,
.article-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
}

/* Reviews block — cards on dark, lift + faint ember border on hover */
.rv2-card:hover {
  border-color: rgba(255, 125, 3, 0.4);
  box-shadow: 0 8px 28px rgba(255, 125, 3, 0.12);
}

/* Article cards — light bg, soft drop shadow on hover */
.article-card:hover {
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.10);
  border-color: var(--ember, #ff7d03);
}

/* Contact cards — same treatment */
.contact-card:hover {
  border-color: var(--ember, #ff7d03);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
}

/* Partner logos — brighten on hover (they're greyscale by default) */
.partners-track .partner,
.partners-track img {
  transition: filter 300ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1)),
              transform 300ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1));
}
.partners-track .partner:hover,
.partners-track img:hover {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.05);
}

/* Footer suburb chips — colour shift on hover */
.footer-suburbs a,
.suburb-chip,
.footer-col a {
  transition: color 200ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1));
}
.footer-suburbs a:hover,
.suburb-chip:hover {
  color: var(--ember, #ff7d03);
}

/* Pillar-detail subtitle word-split should match heading rhythm (60ms stagger),
   tighter than body paragraphs (35ms). Subtitle is shorter — slower stagger feels right. */
.pillar-detail-sub.is-split .word {
  transition-delay: calc(var(--word-i, 0) * 60ms) !important;
}

/* Ensure data-stagger-children doesn't show a default initial flicker —
   children start invisible via the existing [data-reveal] rule. */
[data-stagger-children] > * {
  /* No additional rules needed — JS adds data-reveal which the existing rule handles */
}

@media (prefers-reduced-motion: reduce) {
  .rv2-card:hover,
  .article-card:hover,
  .contact-card:hover,
  .partners-track .partner:hover,
  .partners-track img:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   CONTINUOUS PARALLAX TRANSFORMS (--px-y set by JS)
   Each element applies its own Y-axis drift independent of reveal.
   The transform is composed via translate3d, no conflict with reveal
   transforms which use translateY.
   ════════════════════════════════════════════════════════════════ */
.hero-sub,
.hero-trust,
.dev-pillar-grid .section-head,
.authority-panel-number,
.authority-panel-label,
.dev-cross-sell h2,
.site-footer .footer-brand {
  transform: translate3d(0, var(--px-y, 0px), 0);
  /* Don't transition — JS rAF is the source of truth */
  will-change: transform;
}

/* When also revealed via [data-reveal], use a composed transform.
   Reveal handles opacity + initial Y offset; parallax adds the scroll-driven Y.
   Easiest path: don't apply parallax until is-revealed has settled.
   We do this by letting the reveal CSS take precedence via specificity. */
[data-reveal]:not(.is-revealed).hero-sub,
[data-reveal]:not(.is-revealed).hero-trust,
[data-reveal]:not(.is-revealed) {
  /* While not yet revealed, ignore parallax — reveal transform wins */
  transform: translateY(24px);
}

/* Once revealed, allow parallax to take over (transform = parallax Y only) */
.is-revealed.hero-sub,
.is-revealed.hero-trust {
  transform: translate3d(0, var(--px-y, 0px), 0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-sub,
  .hero-trust,
  .dev-pillar-grid .section-head,
  .authority-panel-number,
  .authority-panel-label,
  .dev-cross-sell h2,
  .site-footer .footer-brand {
    transform: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   TEXTURA CHARACTER + SCALE-CONTAINER REVEAL (2026-05-23)
   Two compounded animations:
   1. Each character drops from translate3d(0, 80px, 0) scale(0.3) → 0,0,0 scale(1)
   2. The .scale-container wrapper scales 0.5 → 1.0 simultaneously
   Net effect: heading explodes into existence character by character.
   ════════════════════════════════════════════════════════════════ */

/* The scale-container that wraps all chars in a single heading */
.scale-container {
  display: inline-block;
  transform: scale(0.5);
  transform-origin: center bottom;
  transition: transform 1200ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  will-change: transform;
}

/* When the parent element is revealed, scale-container grows to 1.0 */
.is-revealed .scale-container,
[data-reveal].is-revealed > .scale-container,
.is-split.is-revealed .scale-container,
.is-loaded .scale-container,
[data-slide-down].is-loaded .scale-container {
  transform: scale(1);
}

/* Char layer 1 (outer): the animated wrapper — translate + scale + opacity */
.char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 80px, 0) scale(0.3);
  transition:
    opacity 900ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 900ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  transition-delay: calc(var(--ci, 0) * 25ms);
  will-change: opacity, transform;
}

/* Char layer 2 (middle): overflow:initial — prevents clipping when char scales up beyond inline box */
.char-inner {
  display: inline-block;
  overflow: initial;
}

/* Char layer 3 (inner): the actual letter */
.char-glyph {
  display: inline-block;
}

/* Word wrapper — keeps each word's chars together so a heading wraps between
   words but never breaks a word mid-letter (e.g. "recov / ery") on mobile. */
.char-word {
  display: inline-block;
  white-space: nowrap;
}

/* Revealed state — char drops into place */
.is-revealed .char,
[data-reveal].is-revealed .char,
.is-split.is-revealed .char,
.is-loaded .char,
[data-slide-down].is-loaded .char {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Hero H1 stagger — slower than 25ms per char so it feels dramatic on the first paint */
.hero-h1 .char {
  transition-delay: calc(var(--ci, 0) * 22ms);
}

/* Pillar-detail H2 stagger — quicker so it doesn't outstay welcome */
.pillar-detail h2 .char {
  transition-delay: calc(var(--ci, 0) * 18ms);
}

/* If used inline (rare), reduce stagger further */
@media (max-width: 720px) {
  .char {
    transform: translate3d(0, 50px, 0) scale(0.5);
  }
  .scale-container {
    transform: scale(0.7);
  }
}

/* Reduced-motion fallback — show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .scale-container {
    transform: none !important;
  }
  .char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   NAV SLIDE-DOWN — entrance via transform (textura pattern);
   stays sticky to the top on scroll (top:0 sticky anchor).
   ════════════════════════════════════════════════════════════════ */
.nav[data-slide-down] {
  position: sticky;
  top: 0;
  opacity: 0;
  transition:
    opacity 900ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.nav[data-slide-down].is-loaded {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .nav[data-slide-down] {
    top: 0 !important;
    opacity: 1 !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   HOW IT WORKS — 3-step process block (upgrade pass 1, 2026-05-25)
   ════════════════════════════════════════════════════════════════ */

.dev-how-it-works {
  background: var(--paper-warm, #f7f5f1);
  padding-block: clamp(72px, 9vw, 128px);
  position: relative;
  overflow: hidden;
}

.dev-how-it-works .section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.dev-how-it-works .section-head .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember, #ff7d03);
  margin-bottom: 16px;
}

.dev-how-it-works .section-head h2 {
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  color: var(--ink, #0a0a0a);
}

.dev-how-it-works .section-subhead {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--ink-80, #2a2a2a);
  max-width: 50ch;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1100px;
  margin-inline: auto;
}

.how-step {
  position: relative;
  padding: 40px 32px;
  background: var(--paper, #ffffff);
  border: 1px solid var(--ink-08, rgba(10,10,10,0.08));
  border-radius: var(--radius-lg, 12px);
  text-align: left;
  transition:
    transform 350ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1)),
    border-color 350ms var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1));
}

.how-step:hover {
  transform: translateY(-3px);
  border-color: var(--ember, #ff7d03);
}

.how-step-num {
  display: block;
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ember, #ff7d03);
  margin-bottom: 20px;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.how-step-title {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: var(--ink, #0a0a0a);
}

.how-step-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-80, #2a2a2a);
  margin: 0;
}

@media (max-width: 720px) {
  .dev-how-it-works { padding-block: 56px; }
  .how-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .how-step { padding: 32px 24px; }
  .how-step-num { font-size: 48px; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .how-step:hover { transform: none !important; }
}


/* ════════════════════════════════════════════════════════════════
   PILLAR DETAIL — desktop width fix (2026-05-25)
   Mobile stays at default 640px. Desktop ≥1024px uses wider frame
   so sections don't feel like a thin centred column on wide screens.
   Reading widths (paragraphs / subtitles) stay at sensible ch values.
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .pillar-detail-content {
    max-width: 1100px;
  }
  .pillar-detail-content > p,
  .pillar-detail-content .pillar-detail-sub {
    max-width: 75ch;
  }
  .pillar-detail-prices {
    max-width: 720px;
  }
}


/* ════════════════════════════════════════════════════════════════
 * UPGRADE-2 (2026-05-25) — videos 3-up, prices tag-cloud, review cards,
 * console warning treatment, refurbished section.
 * Appended last so these rules win the cascade over the earlier
 * single-column-rework overrides (blockquote.pillar-detail-review,
 * flex-column .pillar-detail-prices). Scoped where needed for specificity.
 * ════════════════════════════════════════════════════════════════ */

/* ── Videos: 3-up desktop / 2-up tablet+mobile ── */
@media (max-width: 1023px) {
  .pillar-videos-grid > .lite-yt:nth-child(3) { display: none; }
}
@media (min-width: 1024px) {
  .pillar-videos-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 840px;
  }
}

/* ── Prices: inline tag-cloud (replaces row/hairline + pd-cards layouts) ── */
.pd-prices-cloud {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin: 16px auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}
.pd-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 999px;
  white-space: nowrap;
}
.pd-chip .pd-repair { font-size: 13px; font-weight: 500; color: var(--ink); }
.pd-chip .pd-from   { font-size: 13px; font-weight: 700; color: var(--ember); }
.pillar-detail--alt .pd-chip { background: var(--paper-warm); }
@media (max-width: 480px) {
  .pd-prices-cloud { gap: 8px; }
  .pd-chip { padding: 6px 10px; }
  .pd-chip .pd-repair, .pd-chip .pd-from { font-size: 12px; }
}

/* ── Per-pillar review cards: 3-up desktop, 1-up mobile.
   Scoped under .pillar-detail-content to beat blockquote.pillar-detail-review
   (centred italic, border:0, padding:0) and the centring overrides. The grid
   breaks out of the 640px content column (flex-shrink:0 + explicit width,
   centred by the content column's align-items:center) to fit 3 cards. ── */
.pillar-detail-content .pillar-detail-reviews {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  width: min(1040px, 94vw);
  max-width: none;
  margin: clamp(40px, 5vw, 64px) auto;
}
.pillar-detail-content .pillar-detail-reviews .pillar-detail-review {
  margin: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  max-width: none;
  color: var(--ink);
}
.pillar-detail--alt .pillar-detail-content .pillar-detail-reviews .pillar-detail-review {
  background: var(--paper-warm);
}
.pillar-detail-content .pillar-detail-reviews .review-stars {
  color: var(--ember);
  font-size: 14px;
  letter-spacing: 2px;
  text-align: left;
}
.pillar-detail-content .pillar-detail-reviews .review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  flex-grow: 1;
  max-height: 240px;
  overflow: hidden;
  position: relative;
  white-space: pre-wrap;
  text-align: left;
  font-style: normal;
}
.pillar-detail-content .pillar-detail-reviews .review-text::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.pillar-detail--alt .pillar-detail-content .pillar-detail-reviews .review-text::after {
  background: linear-gradient(transparent, var(--paper-warm));
}
.pillar-detail-content .pillar-detail-reviews .review-attribution {
  font-size: 12px;
  font-style: normal;
  color: var(--ink-60);
  font-weight: 500;
  text-align: left;
  display: block;
  margin: 0;
}
@media (max-width: 720px) {
  .pillar-detail-content .pillar-detail-reviews {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .pillar-detail-content .pillar-detail-reviews .review-text { max-height: 200px; }
}

/* ── Console "we do not fix remotes" warning treatment (inline red) ── */
.hook-warning {
  display: inline;
  color: #d11a1a;
  font-weight: 600;
}
.warning-red {
  color: #d11a1a;
  font-weight: 600;
}

/* ── Refurbished section (replaces dev-cross-sell) ── */
.dev-refurbished {
  background: var(--paper-warm);
  /* Top padding trimmed (was part of padding-block 128px). The white breathing
     room above the section now comes from the phone-repair pillar's own bottom
     padding, so the space under the "Book a repair / View full guide" CTAs stays
     WHITE right up to the section edge. */
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: clamp(72px, 9vw, 128px);
  position: relative;
  overflow: hidden;
  /* margin-top pull-up REMOVED (Ben 2026-05-26). The old negative margin
     (clamp(-128px,-9vw,-56px)) dragged the grey box up over the white
     phone-repair bottom, painting the transition under the CTAs grey. Grey now
     begins cleanly at the refurbished section's own top edge. */
  margin-top: 0;
}
.dev-refurbished .section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.dev-refurbished .section-head .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.dev-refurbished .section-head h2 {
  /* Two authored lines ("Replacement phones" / "Delivered to you"). Sized so
     the longer line fits the ~640px section-head column on one line — the old
     clamp(44px,7.5vw,84px) was so big "Replacement phones" wrapped to 3 lines. */
  font-size: clamp(28px, 8vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  color: var(--ink);
  white-space: nowrap;   /* only the authored <br> may break */
}
.dev-refurbished .section-subhead {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--ink-80);
  max-width: 50ch;
  margin: 0 auto;
}

/* Static tiles row */
.refurb-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  max-width: 1000px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.refurb-tile {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.refurb-tile-img {
  aspect-ratio: 1;
  background: #f9f9f9;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.refurb-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.refurb-tile-caption {
  font-size: 14px;
  color: var(--ink-80);
  margin: 0;
}
@media (max-width: 720px) {
  .refurb-tiles { grid-template-columns: 1fr; gap: 16px; }
  .refurb-tile { padding: 16px; }
}

/* Horizontal scroll carousel */
.refurb-carousel-wrap {
  margin-top: 32px;
  position: relative;
}
.refurb-carousel-wrap[data-empty="true"] { display: none; }
.refurb-carousel-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-60);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 0 16px;
}

/* Navigable "Top picks" carousel — native horizontal scroll-snap gives touch
   swipe + trackpad scroll for free; prev/next arrows, pointer drag and a gentle
   auto-advance are wired up in development.js. */
.refurb-carousel-stage { position: relative; }
.refurb-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* old Edge */
}
.refurb-carousel-viewport::-webkit-scrollbar { display: none; }  /* WebKit */
.refurb-carousel-viewport.dragging { scroll-snap-type: none; cursor: grabbing; }
.refurb-carousel {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 4px 2px 10px;   /* headroom for card lift + drop shadow */
}

/* Prev / next arrows */
.refurb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-08);
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(10, 10, 10, 0.14);
  transition: background var(--dur-med) var(--ease-out-expo),
              color var(--dur-med) var(--ease-out-expo),
              border-color var(--dur-med) var(--ease-out-expo);
}
.refurb-nav:hover { background: var(--ember); color: var(--paper); border-color: var(--ember); }
.refurb-nav:active { transform: translateY(-50%) scale(0.94); }
.refurb-nav[hidden] { display: none; }
.refurb-nav--prev { left: 4px; }
.refurb-nav--next { right: 4px; }

@media (max-width: 768px) {
  .refurb-carousel { gap: 14px; }
  .refurb-nav { width: 34px; height: 34px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .refurb-carousel-viewport { scroll-behavior: auto; }
}
.refurb-carousel-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: transform 250ms var(--ease-out-expo), border-color 250ms var(--ease-out-expo);
}
.refurb-carousel-card:hover {
  transform: translateY(-2px);
  border-color: var(--ember);
}
.refurb-carousel-card-img {
  aspect-ratio: 1;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.refurb-carousel-card-img img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.refurb-carousel-card .brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 4px;
}
.refurb-carousel-card .model {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.refurb-carousel-card .meta {
  font-size: 11px;
  color: var(--ink-60);
  margin: 0 0 8px;
}
.refurb-carousel-card .price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.refurb-top-pick-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #d62828;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(214, 40, 40, 0.35);
  pointer-events: none;
}

.refurb-cta-row {
  text-align: center;
  margin-top: clamp(32px, 4vw, 56px);
}

/* Security downloads chip cluster (Computer Repair pillar detail) */
.pd-security-downloads {
  width: 100%;
  max-width: 720px;
  margin: 4px auto 12px;
  text-align: center;
}
.pd-security-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-60);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
}
.pd-security-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pd-security-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-80);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.pd-security-chip:hover {
  background: var(--paper-warm);
  border-color: var(--ember);
  color: var(--ember);
  transform: translateY(-1px);
}
.pillar-detail--alt .pd-security-chip {
  background: var(--paper-warm);
}
.pillar-detail--alt .pd-security-chip:hover {
  background: var(--paper);
}

/* Hero fact marquee. Sits at bottom of hero, paper warm + ember to match brand */
.facts-strip {
  background: var(--paper-warm);
  color: var(--ink-80);
  padding: 14px 0;
  margin-top: 0;
}
/* When marquee directly follows the hero, collapse the hero's bottom padding so they butt right up */
.dev-hero:has(+ .facts-strip) {
  padding-bottom: var(--space-4) !important;  /* 16px instead of 40px desktop / 32px mobile */
}
/* Video carousel now sits directly under the facts marquee (Ben 2026-05-27).
   The marquee reads as a scrolling band in the shared warm field; keep its
   breathing room equal above and below by matching the carousel's top padding
   to the hero's collapsed bottom padding (both --space-4 = 16px). */
.facts-strip + .dev-videos {
  padding-top: var(--space-4) !important;
}
/* The pillar routing grid now follows the carousel — give it clean breathing
   room and suppress the section hairline + ember dot so the two scrolling
   strips (facts + videos) read as one connected unit flowing into the grid. */
.dev-videos.section + .dev-pillar-grid.section {
  padding-top: clamp(48px, 7vw, 88px) !important;
}
.facts-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.facts-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-facts 90s linear infinite;
}
.facts-track .fact {
  /* Override the Authority Panel rotator's generic .fact rule (position:absolute;opacity:0;display:flex column) */
  position: static;
  inset: auto;
  opacity: 1;
  display: block;
  pointer-events: auto;
  transition: none;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 32px;
  letter-spacing: 0.2px;
}
.facts-track .fact strong { font-weight: 700; color: var(--ember); }
.facts-track .fact em { font-style: italic; opacity: 0.6; font-weight: 500; color: var(--ink-60); }
.facts-track .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0.7;
  flex-shrink: 0;
}
@keyframes scroll-facts {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .facts-track { animation-duration: 60s; }
  .facts-track .fact { font-size: 0.7rem; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .facts-track { animation: none; }
}

/* ============================================================
 * UPGRADE 5 — warm-palette restyle of Authority Panel + Reviews
 * !important is intentional: the original .authority-panel and
 * .dev-reviews rule sets were authored for dark mode and win on
 * specificity/order; these modifiers override them. Refactor out
 * the !important when the dark-mode base rules are retired.
 * ========================================================== */

/* Authority Panel warm palette modifier (upgrade 5) */
.authority-panel--warm {
  background: var(--paper-warm) !important;
  color: var(--ink) !important;
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
}
.authority-panel--warm .fact-source.eyebrow {
  color: var(--ink-60) !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.authority-panel--warm .fact-num {
  color: var(--ember) !important;
  font-weight: 700;
}
.authority-panel--warm .fact-label {
  color: var(--ink-80) !important;
}
.authority-panel--warm .fact-peek-track {
  color: var(--ink-60);
  opacity: 0.7;
}
.authority-panel--warm .fact-peek {
  background: linear-gradient(180deg, transparent 0, var(--paper-warm) 100%);
}

/* Reviews warm palette (upgrade 5) */
/* 2026-05-27 (Ben): alternating section rhythm restored -
   scam(white) -> reviews(grey) -> partners(white) -> articles(grey)
   -> contact(white) -> footer(black). Reviews back to grey; the
   white-bg override added 2026-05-26 is reverted. */
#scam-recovery { padding-bottom: 64px !important; }

.dev-reviews--warm {
  background: var(--paper-warm) !important;
  color: var(--ink) !important;
  padding-top: 56px;
  padding-bottom: 80px;
}

/* Latest from iFix sits grey between two white sections */
.dev-articles { background: var(--paper-warm); }

/* Get in touch: explicit white (was bg-warm grey) */
.dev-contact { background: var(--paper); }
.dev-reviews--warm .section-head h2 { color: var(--ink) !important; }
.dev-reviews--warm .section-head p { color: var(--ink-60); }
.dev-reviews--warm .rv2-card {
  background: var(--paper) !important;
  border: 1px solid var(--ink-08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dev-reviews--warm .rv2-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}
.dev-reviews--warm .rv2-body { color: var(--ink-80); }
.dev-reviews--warm .rv2-name { color: var(--ink); font-weight: 600; }
.dev-reviews--warm .rv2-src { color: var(--ink-60); font-size: 0.75rem; }
.dev-reviews--warm .rv2-stars { color: var(--ember); }

/* ============================================================
   Upgrade 6 — REVERTED 2026-05-26 (Ben): orange logo moved back
   into the navbar; full-time hero logo removed (didn't read well
   on desktop, redundant with the navbar wordmark).
   Nav uses the image logo via .nav-logo / .nav-logo img above.

   2026-05-26 (Ben): hero logo RE-ADDED but scoped to mobile + iPad
   only (<=1024px) — kept off desktop, where it read as redundant.
   Black variant (ifix-logo-black.png) on the warm hero bg; joins the
   slide-down entrance cascade via [data-slide-down].
   ============================================================ */
.hero-logo { display: none; }
@media (max-width: 1024px) {
  .hero-logo {
    display: block;
    margin: 0 auto var(--space-5);
    width: clamp(160px, 44vw, 220px);
  }
  .hero-logo img { display: block; width: 100%; height: auto; }
}

/* ============================================================
   UPGRADE 8 — Founder hero background + speech bubble (2026-05-26)
   HTML: aside.hero-speech-bubble is a DIRECT child of .dev-hero,
   AFTER the .hero-inner div (so it escapes hero-inner's transform
   containing-block and can use the full-hero right gutter).
   Default = centered quote card below the hero (no overlap, all
   widths). Wide desktop (>=1366px) = float in the right gutter,
   clear of the centre-aligned hero text. Rollback: remove this
   block + restore development.html/css backups.
   ============================================================ */
.dev-hero {
  position: relative; /* already set elsewhere; idempotent */
}

.dev-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/founder-hero.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.00;
  z-index: 0;
  pointer-events: none;
}

.dev-hero > * {
  position: relative;
  z-index: 1;
}

/* Base = centred founder-quote card below the hero stats. */
.hero-speech-bubble {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  max-width: 540px;
  margin: 32px auto 0;
  padding: 30px 32px 28px;
  background: linear-gradient(158deg, #ffffff 0%, #fffaf0 100%);
  border: 1px solid rgba(200, 149, 42, 0.32);
  border-radius: 20px;
  box-shadow:
    0 20px 44px -16px rgba(70, 46, 0, 0.26),
    0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: left;
  line-height: 1.62;
}

/* Decorative opening quote, tucked behind the first line. */
.hero-speech-bubble::after {
  content: '\201C';
  position: absolute;
  top: 0.04em;
  left: 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.25rem;
  line-height: 1;
  color: var(--ember, #c8952a);
  opacity: 0.22;
  pointer-events: none;
}

.hero-speech-bubble p {
  margin: 0;
  position: relative;
  z-index: 1;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text, #2b2b2b);
}

/* Tail — a rotated square filled to match the bubble, so it reads as
   part of the card. Default points UP toward the trust strip above. */
.hero-speech-bubble::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 1px solid rgba(200, 149, 42, 0.32);
  border-right: none;
  border-bottom: none;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -3px -3px 10px -5px rgba(70, 46, 0, 0.14);
}

/* Wide desktop — float in the right-hand gutter, clear of the
   centre-aligned hero text; tail points LEFT toward the hero. */
@media (min-width: 1366px) {
  .hero-speech-bubble {
    position: absolute;
    right: 28px;
    bottom: 28px;
    top: auto;
    left: auto;
    margin: 0;
    max-width: 290px;
  }
  .hero-speech-bubble::before {
    top: 34px;
    left: -10px;
    transform: rotate(45deg);
    border: 1px solid rgba(200, 149, 42, 0.32);
    border-right: none;
    border-top: none;
    box-shadow: -3px 3px 10px -5px rgba(70, 46, 0, 0.14);
  }
}

/* ============================================================
 * VIDEO WALL — continuous autoplay-muted carousel (2026-05-26)
 * Lives under "How it works". Full-bleed marquee of live YouTube
 * embeds (9:16). Mirrors the .partners-track pattern.
 * ========================================================== */
.dev-videos { overflow: hidden; padding-block: 20px; }

/* Pull the carousel up tight under the 6-pillar grid: total gap from the
   bottom of the pillar cards to the top of the videos = 20px. Drop the
   pillar grid's bottom padding and suppress the inter-section hairline
   divider (+ ember dot) above the videos; the 20px is the padding-top above. */
.dev-pillar-grid { padding-bottom: 0; }

.video-wall-marquee {
  margin-top: 0;
  position: relative;
  /* Visible (not hidden) so the card shadows + centre-lift aren't clipped;
     horizontal containment is handled by .dev-videos overflow:hidden, and the
     black edge fade by the ::before/::after gradients below. */
  overflow: visible;
}

/* Black edge fade (Ben 2026-05-26): solid black at each side fading to
   transparent toward the centre, layered OVER the cards. Replaces the old
   transparency mask, which revealed the warm section bg and read as white. */
.video-wall-marquee::before,
.video-wall-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.video-wall-marquee::before { left: 0;  background: linear-gradient(90deg,  #000 0, transparent 100%); }
.video-wall-marquee::after  { right: 0; background: linear-gradient(270deg, #000 0, transparent 100%); }

.video-wall-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: scroll-video-wall 80s linear infinite;
}

/* Scroll pauses only while the section is parked off-screen (the videos pause
   too, via the IntersectionObserver). Otherwise continuous + non-interactive. */
.dev-videos.is-offscreen .video-wall-track { animation-play-state: paused; }

.video-wall-card {
  position: relative;
  flex-shrink: 0;
  /* 60% of the original clamp(168px,22vw,252px) per Ben. */
  width: clamp(101px, 13.2vw, 151px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px -10px rgba(10, 10, 10, 0.45);
  pointer-events: none;   /* fixed: not clickable, never resizes on interaction */
}

.video-wall-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

@keyframes scroll-video-wall {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .video-wall-card { width: clamp(90px, 27.6vw, 114px); }
  .video-wall-track { animation-duration: 55s; }
}

@media (prefers-reduced-motion: reduce) {
  .video-wall-track {
    animation: none;
    width: auto;
    overflow-x: auto;
    padding-inline: 16px;
    scroll-snap-type: x mandatory;
  }
  .video-wall-card { scroll-snap-align: start; }
}
