/* =========================================
   RIENVOR — Production Stylesheet v5.0
   Ultra-minimal luxury advisory
   Production Baseline — hardened · refined · stable
   ========================================= */

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  /* Colour */
  --bg:               #0a0a0b;
  --surface:          #111114;
  --surface-raised:   #17171b;
  --border:           rgba(212, 175, 55, 0.14);
  --border-subtle:    rgba(255, 255, 255, 0.06);
  --text:             #f0ece2;
  --text-muted:       #a89f90;
  --text-soft:        #6b6359;
  --accent:           #c9a84c;
  --accent-hover:     #dbbe6a;
  --accent-dim:       rgba(201, 168, 76, 0.08);
  --rust:             #cf6a43;   /* below-the-line tension (light theme overrides) */

  /* Shadow */
  --shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.30);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.40);
  --shadow-lg:  0 20px 64px rgba(0, 0, 0, 0.50);

  /* Radius */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* Spacing scale (8px base) */
  --sp-1:  0.5rem;    /*  8px */
  --sp-2:  1rem;      /* 16px */
  --sp-3:  1.5rem;    /* 24px */
  --sp-4:  2rem;      /* 32px */
  --sp-5:  2.5rem;    /* 40px */
  --sp-6:  3rem;      /* 48px */
  --sp-8:  4rem;      /* 64px */
  --sp-10: 5rem;      /* 80px */
  --sp-12: 6rem;      /* 96px */
  --sp-14: 7rem;      /* 112px */
  --sp-16: 8rem;      /* 128px */

  /* Type scale */
  --text-xs:   0.72rem;
  --text-sm:   0.85rem;
  --text-base: 0.9375rem;
  --text-md:   1.0625rem;
  --text-lg:   1.25rem;

  /* Container */
  --container: 1160px;

  /* Transitions */
  --ease:      0.26s ease;
  --ease-slow: 0.5s ease;

  /* Header height — single source of truth */
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-8);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
  /* Extremely subtle diagonal texture */
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 60px,
    rgba(212, 175, 55, 0.012) 60px,
    rgba(212, 175, 55, 0.012) 61px
  );
}

/* Fixed watermark — positioned so it never clips into content */
body::before {
  content: "RIENVOR";
  position: fixed;
  bottom: 3%;
  right: 3%;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(212, 175, 55, 0.022);
  pointer-events: none;
  z-index: -1;
  white-space: nowrap;
  user-select: none;
  /* Clamp to viewport so it never causes horizontal scroll */
  max-width: 100vw;
  overflow: hidden;
}

/* Vignette overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 50%, rgba(0, 0, 0, 0.42) 100%);
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease);
}

ul { list-style: none; padding: 0; }

button, input, textarea, select { font: inherit; }

/* Suppress default tap highlight on all interactive elements */
button, a, .btn, label { -webkit-tap-highlight-color: transparent; }

/* =========================================
   TYPOGRAPHY SYSTEM
   ========================================= */
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.015em;
  margin-top: 0;
  color: var(--text);
}

/* Hero display */
h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--text);
}

/* Section heading */
h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Card / sub-heading */
h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
}

p {
  margin-top: 0;
  color: var(--text-muted);
}

strong { color: var(--text); font-weight: 600; }

/* =========================================
   LAYOUT
   ========================================= */
.container {
  width: min(100% - var(--sp-4), var(--container));
  margin-inline: auto;
}

/* =========================================
   ACCESSIBILITY
   ========================================= */
.hidden-focusable {
  position: absolute;
  top: -200px;
  left: var(--sp-2);
  background: var(--accent);
  color: #000;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  font-size: var(--text-sm);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.03em;
}

.hidden-focusable:focus { top: var(--sp-2); }

/* Focus ring — visible, restrained */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

/* =========================================
   PAGE ANIMATIONS
   ========================================= */
main {
  animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
  main { animation: none; opacity: 1; }
  .hero::before, .page-hero::before { animation: none; }
  .btn, .pillar-card, .approach-item, .blog-teaser, .work-item {
    transition: border-color 0.1s ease, color 0.1s ease;
  }
  .btn:hover, .pillar-card:hover, .approach-item:hover { transform: none; }
  .main-nav { transition: none; }
  .nav-overlay { transition: none; }
}

/* =========================================
   Z-INDEX MAP
   body::before / body::after : -1
   .site-header               : 1000
   .scroll-progress           : 1100
   .nav-overlay               : 998
   .main-nav (mobile drawer)  : 999
   .whatsapp-cta              : 500
   .modal                     : 2000
   .hidden-focusable          : 9999
   ========================================= */

/* =========================================
   SCROLL PROGRESS INDICATOR
   ========================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  opacity: 0.85;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-fill { transition: none; }
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.90);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  width: min(100% - var(--sp-4), var(--container));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* Logo */
.logo {
  flex-shrink: 0;
  /* Prevent logo from ever being crowded by nav */
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Mobile-only contextual page label beside RIENVOR wordmark */
.page-label {
  display: none; /* hidden by default — shown only at mobile breakpoint */
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  opacity: 0.75;
  white-space: nowrap;
  margin-left: 0.55em;
  line-height: 1;
  align-self: center;
  /* Subtle vertical nudge to optically align with serif wordmark cap-height */
  padding-top: 0.1em;
}

.logo a {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
  transition: color var(--ease);
  white-space: nowrap;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .logo a:hover { color: var(--accent); }
}

/* =========================================
   DESKTOP NAV
   Displayed on screens wider than 768px
   Hidden from mobile — critical architecture
   ========================================= */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.main-nav a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color var(--ease);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--text); }
}

.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

/* =========================================
   HAMBURGER — hidden by default (desktop)
   ========================================= */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--sp-1);
  /* 44×44 touch target */
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, width 0.28s ease;
  transform-origin: center;
  pointer-events: none;
}

/* Hamburger → X */
.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================
   NAV OVERLAY — hidden on desktop
   ========================================= */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   HERO
   ========================================= */
.hero,
.page-hero {
  padding: var(--sp-16) 0 var(--sp-10);
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 130%;
  background: radial-gradient(ellipse at 25% 35%, rgba(201, 168, 76, 0.065), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content,
.page-hero .container {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: var(--sp-3);
}

.hero-subhead {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: var(--sp-4);
  letter-spacing: 0.01em;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.hero-sep {
  color: var(--border);
  font-size: 0.7em;
  opacity: 0.6;
  /* Prevent separator from orphaning */
  flex-shrink: 0;
}

.hero-descriptor {
  font-size: var(--text-sm);
  color: var(--text-soft);
  margin-top: var(--sp-2);
  letter-spacing: 0.04em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  align-items: center;
}

.trust-contact {
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.trust-contact a {
  color: var(--accent);
  opacity: 0.8;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  transition: opacity var(--ease), border-color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .trust-contact a:hover {
    opacity: 1;
    border-color: var(--accent);
  }
}

/* Inner page hero subhead */
.page-subhead {
  font-size: var(--text-md);
  max-width: 680px;
  color: var(--text-muted);
  margin-top: var(--sp-3);
  line-height: 1.7;
}

/* =========================================
   BUTTON SYSTEM
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--ease), border-color var(--ease),
              color var(--ease), box-shadow var(--ease), transform 0.2s ease;
  min-height: 44px;
  white-space: nowrap;
  /* Prevent button text compression */
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  border-color: var(--accent);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.22);
  }
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    border-color: rgba(201, 168, 76, 0.35);
    color: var(--text);
    transform: translateY(-2px);
  }
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    border-color: rgba(201, 168, 76, 0.35);
    color: var(--text);
    transform: translateY(-2px);
  }
}

.btn:active { transform: scale(0.98); }

/* =========================================
   CARD SYSTEM
   ========================================= */
.about-card,
.pillar-card,
.approach-item,
.service-pillar,
.work-item,
.blog-teaser,
.contact-card,
.cta-card,
.about-note {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  transition: border-color var(--ease), box-shadow var(--ease), transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-card:hover,
  .pillar-card:hover,
  .approach-item:hover,
  .service-pillar:hover,
  .work-item:hover,
  .blog-teaser:hover,
  .contact-card:hover,
  .cta-card:hover,
  .about-note:hover {
    transform: translateY(-3px);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
  }
}

/* =========================================
   SECTION RHYTHM
   ========================================= */
.section-header {
  margin-bottom: var(--sp-6);
}

/* When two approach sections sit back-to-back, collapse the shared
   boundary so the pair reads as one calm block rather than two long
   scrolls. Content and per-card spacing are unchanged. */
.approach + .approach {
  padding-top: var(--sp-8);
  border-top: none;
}

.section-header h2 {
  margin-bottom: var(--sp-2);
}

.section-subhead-sm {
  font-size: var(--text-sm);
  color: var(--text-soft);
  letter-spacing: 0.02em;
  margin-top: var(--sp-1);
}

/* =========================================
   TRUST STRIP
   ========================================= */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  row-gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.trust-strip span {
  transition: color var(--ease);
  white-space: nowrap;
}

.trust-sep {
  color: var(--border);
  font-size: 0.55rem;
  flex-shrink: 0;
  opacity: 0.6;
}

@media (hover: hover) and (pointer: fine) {
  .trust-strip span:not(.trust-sep):hover { color: var(--accent); }
}

/* =========================================
   MODAL
   ========================================= */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.22s, opacity 0.22s ease;
  padding: var(--sp-4);
  /* Prevent any body scroll when modal is open */
}

/* When hidden attribute present: truly hidden, no display */
.modal[hidden] {
  display: none !important;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  margin-bottom: var(--sp-2);
  color: var(--accent);
}

.modal-content p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: var(--text-sm);
}

.modal-close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  /* Guaranteed touch target */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover { color: var(--accent); }
}

/* =========================================
   SERVICE LINKS — inline interactive terms
   ========================================= */
.service-link {
  cursor: pointer;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: color var(--ease), border-color var(--ease);
  font-weight: 500;
  display: inline;
}

@media (hover: hover) and (pointer: fine) {
  .service-link:hover {
    color: var(--accent);
    border-color: var(--accent);
  }
}

/* =========================================
   WHATSAPP CTA — floating pill
   ========================================= */
.whatsapp-cta {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-4);
  z-index: 500;
  background: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background var(--ease), border-color var(--ease),
              color var(--ease), box-shadow var(--ease);
  box-shadow: var(--shadow-sm);
  /* Hard cap prevents overflow on very small screens */
  max-width: calc(100vw - 2rem);
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-cta:hover {
    background: var(--surface-raised);
    border-color: var(--accent);
    color: var(--accent);
  }
}

.whatsapp-cta.expanded {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.12);
}

/* =========================================
   PILLAR CARDS (homepage)
   ========================================= */
.pillars {
  padding: var(--sp-14) 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

/* When pillars are accordion panels, stack them vertically */
.pillars-grid.ops-panel-stack {
  display: flex;
  flex-direction: column;
}

.pillar-card {
  position: relative;
  padding: var(--sp-6) var(--sp-4);
}

.pillar-number {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: var(--sp-3);
}

.pillar-card h3 {
  margin-bottom: var(--sp-2);
}

.pillar-card p {
  font-size: var(--text-sm);
  line-height: 1.75;
}

/* =========================================
   OPS-PANEL ACCORDION (homepage + services)
   ========================================= */
.ops-panel {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--ease), background var(--ease);
}

.ops-panel[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--surface-raised);
}

/* Toggle button — the always-visible header */
.ops-panel-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-5) var(--sp-4);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.ops-panel-toggle:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: -3px;
}

.ops-panel-head {
  display: block;
}

.ops-panel-head .pillar-number {
  margin-bottom: var(--sp-1);
}

.ops-panel-head h3 {
  margin: 0;
}

.ops-panel-head .work-category {
  margin-bottom: var(--sp-1);
}

/* Plus / minus icon */
.ops-panel-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Chevron built from two short strokes meeting at a point (pointing down) */
.ops-panel-icon::before,
.ops-panel-icon::after {
  content: "";
  position: absolute;
  top: 45%;
  width: 9px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}

.ops-panel-icon::before {
  left: 1px;
  transform: rotate(45deg);
  transform-origin: center;
}

.ops-panel-icon::after {
  right: 1px;
  transform: rotate(-45deg);
  transform-origin: center;
}

/* Expanded: rotate whole chevron to point up */
.ops-panel[aria-expanded="true"] .ops-panel-icon {
  transform: rotate(180deg);
}

/* Collapsible content — approved grid-rows technique */
.ops-panel-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.ops-panel[aria-expanded="true"] .ops-panel-content {
  grid-template-rows: 1fr;
}

.ops-panel-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.ops-panel[aria-expanded="true"] .ops-panel-inner {
  opacity: 1;
}

/* Padding lives on an inner wrapper so collapsed height is truly 0 */
.ops-panel-inner-pad {
  padding: 0 var(--sp-4) var(--sp-5);
}

.ops-panel-inner-pad p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-muted);
}

.ops-panel-inner-pad ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-panel-inner-pad li {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-muted);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ops-panel-inner-pad li:last-child {
  border-bottom: none;
}

/* Lead verb brighter than its description, so the steps scan at a glance. */
.ops-panel-inner-pad li strong {
  color: var(--text);
  font-weight: 600;
}

/* Stack of panels */
.ops-panel-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (prefers-reduced-motion: reduce) {
  .ops-panel-content { transition: grid-template-rows 0.01s; }
  .ops-panel-inner { transition: none; }
  .ops-panel-icon { transition: none; }
}

/* =========================================
   APPROACH
   ========================================= */
.approach {
  padding: var(--sp-14) 0;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

/* Sub-block labels within the merged approach section */
.approach-subhead {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: var(--sp-4);
}

.approach-subhead--spaced {
  margin-top: var(--sp-8);
}

.approach-item {
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .approach-item:hover {
    background: var(--surface-raised);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }
}

.approach-step {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: var(--sp-3);
  font-style: italic;
}

.approach-item h3 {
  margin-bottom: var(--sp-2);
}

.approach-item p {
  font-size: var(--text-sm);
}

.engagement-note {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-left: 1px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.engagement-note p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================
   IMPACT SECTION
   ========================================= */
.impact-section {
  padding: var(--sp-12) 0;
}

/* Homepage proof band — reuses .case-study-metrics component from the Work page */
.proof-band {
  padding: var(--sp-12) 0;
  position: relative;
  overflow: hidden;
}

/* Warm radial lift so the proof band reads as its own moment, not more of
   the same dark field. */
.proof-band::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse at 70% 15%, rgba(201, 168, 76, 0.055), transparent 60%);
  pointer-events: none;
}

.proof-band > .container {
  position: relative;
}

.proof-band .case-study-metrics {
  justify-content: center;
  margin-bottom: var(--sp-6);
}

/* Proof is the page's strongest asset — give the headline numbers room to land. */
.proof-band .case-metric-value {
  font-size: clamp(2.4rem, 6.5vw, 3.6rem);
}
.proof-band .case-metric-arrow {
  font-size: 2.4rem;
}

.proof-band-cta {
  text-align: center;
}

/* Founder note — judgment beside the proof; the human signal */
.founder-note {
  max-width: 600px;
  margin: var(--sp-5) auto;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.founder-note-by {
  display: block;
  margin-top: var(--sp-2);
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =========================================
   RATING LAYER — animated representative proof.
   Design law: only the rating moves. The curve draws, the number counts
   up and pauses at the 4.0 install-conversion line. Reduced-motion safe.
   ========================================= */
.rating-layer {
  max-width: 600px;
  margin: 0 auto var(--sp-6);
}
.rl-readout {
  text-align: center;
  margin-bottom: var(--sp-2);
  line-height: 1;
}
.rl-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 8vw, 4rem);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.rl-star {
  color: var(--accent);
  font-size: 0.5em;
  margin-left: 0.12em;
  vertical-align: 0.45em;
}
.rl-state {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.rl-svg {
  display: block;
  width: 100%;
  height: 168px;
  overflow: visible;
}
.rl-grid {
  stroke: var(--border);
  stroke-width: 1;
}
.rl-curve {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Leading head appears only AFTER the line finishes — never ahead of it. */
.rl-end { fill: var(--accent); opacity: 0; }
.rating-layer.is-drawing .rl-end { opacity: 1; transition: opacity 0.4s ease 1.85s; }

/* Live wake — small dots stream backward from the head, so the leading edge
   reads as advancing even though it holds at 4.2. Starts after the draw.
   The one perpetual motion we allow: the rating is live / monitored. */
.rl-trail { fill: var(--accent); opacity: 0; }
.rating-layer.is-drawing .rl-trail    { animation: rlTrail 1.5s linear 1.9s infinite; }
.rating-layer.is-drawing .rl-trail.t2 { animation-delay: 2.4s; }
.rating-layer.is-drawing .rl-trail.t3 { animation-delay: 2.9s; }
@keyframes rlTrail {
  0%   { transform: translate(0, 0);        opacity: 0; }
  20%  { opacity: 0.5; }
  100% { transform: translate(-54px, 7px);  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-trail, .case-trail { animation: none !important; opacity: 0; }
}
.rl-marks {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: 0.4rem;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
.rl-mark--line { color: var(--accent); opacity: 0.85; }
.rl-mark--end { text-align: right; }
@media (max-width: 480px) {
  .rl-svg { height: 140px; }
  .rl-marks { font-size: 0.66rem; }
  .rl-mark--line { display: none; }
}

.impact-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.impact-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 200px;
}

.impact-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  transition: all var(--ease);
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  /* 44px touch target minimum */
  min-height: 44px;
}

.impact-tab[aria-selected="true"] {
  background: var(--accent-dim);
  border-color: var(--border);
  color: var(--accent);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .impact-tab:not([aria-selected="true"]):hover {
    color: var(--text-muted);
    border-color: var(--border);
  }
}

.impact-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color var(--ease);
}

.impact-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}

.impact-description {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
}

.impact-note {
  font-size: var(--text-xs);
  color: var(--text-soft);
  margin-top: var(--sp-3);
  letter-spacing: 0.04em;
}

/* =========================================
   DIAGNOSTIC — Private Advisory Instrument
   :has() used for progressive enhancement.
   Core interaction (radio + JS result) works universally.
   ========================================= */
/* =========================================
   STOREFRONT PRESSURE DIAGNOSTIC (SPD)
   Replaces old questionnaire diagnostic
   ========================================= */

/* Section wrapper — inherits .diagnostic spacing */
.spd-section {
  padding: var(--sp-16) 0;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Header */
.spd-header {
  max-width: 640px;
  margin-bottom: var(--sp-10);
}

/* Two-column grid */
.spd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}

/* ── LEFT: Controls ── */
.spd-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spd-input-group {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--ease);
}

.spd-input-group:last-child {
  border-bottom: none;
}

.spd-input-group:focus-within {
  background: rgba(201, 168, 76, 0.018);
}

.spd-input-label {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 0 0 var(--sp-3) 0;
  cursor: default;
  user-select: none;
}

.spd-input-num {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Segment row (horizontal) */
.spd-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Segment column (vertical, for longer labels) */
.spd-segment--col {
  flex-direction: column;
  gap: 4px;
}

/* Segment button */
.spd-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  transition: background var(--ease), border-color var(--ease),
              color var(--ease), opacity var(--ease);
  /* Touch target safety */
  -webkit-tap-highlight-color: transparent;
}

.spd-segment--col .spd-seg-btn {
  justify-content: flex-start;
  padding: 0.5rem 0.85rem;
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .spd-seg-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(201, 168, 76, 0.25);
    color: var(--text);
  }
}

/* Active / selected state */
.spd-seg-btn.is-active,
.spd-seg-btn[aria-pressed="true"] {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.32);
  color: var(--text);
}

.spd-seg-btn:active {
  transform: scale(0.98);
}

/* Secondary inputs — visually lighter, same function */
.spd-input-group[data-group="scale"],
.spd-input-group[data-group="confidence"] {
  background: transparent;
}

.spd-input-group[data-group="scale"] .spd-input-label,
.spd-input-group[data-group="confidence"] .spd-input-label {
  opacity: 0.78;
}

.spd-input-group[data-group="scale"] .spd-input-num,
.spd-input-group[data-group="confidence"] .spd-input-num {
  opacity: 0.35;
}

.spd-input-group[data-group="scale"] .spd-seg-btn,
.spd-input-group[data-group="confidence"] .spd-seg-btn {
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.72rem;
}

@media (hover: hover) and (pointer: fine) {
  .spd-input-group[data-group="scale"] .spd-seg-btn:hover,
  .spd-input-group[data-group="confidence"] .spd-seg-btn:hover {
    border-color: rgba(201, 168, 76, 0.18);
    color: var(--text-muted);
  }
}

.spd-input-group[data-group="scale"] .spd-seg-btn.is-active,
.spd-input-group[data-group="confidence"] .spd-seg-btn.is-active {
  background: rgba(201, 168, 76, 0.055);
  border-color: rgba(201, 168, 76, 0.22);
  color: var(--text-muted);
}
.spd-live {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* Ambient glow — inherits existing pattern */
.spd-live::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -30%;
  width: 90%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.045) 0%, transparent 70%);
  pointer-events: none;
}

/* Live header row */
.spd-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.spd-live-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin: 0;
}

.spd-live-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.spd-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-soft);
  flex-shrink: 0;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.spd-status-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
}

.spd-status-label {
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

/* ── Progress indicator (counter + bar) ── */
.spd-progress {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spd-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2);
}

.spd-progress-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
}

.spd-progress-count {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-soft);
  transition: color 0.4s ease;
}

.spd-progress-count #spd-progress-count {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.spd-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.spd-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: rgba(201, 168, 76, 0.45);
  transition: width 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Indicators ── */
.spd-indicators {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}

.spd-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spd-indicator-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2);
}

.spd-indicator-name {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
}

.spd-indicator-state {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-style: italic;
  transition: color 0.4s ease;
  white-space: nowrap;
}

/* Bar track */
.spd-bar-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

/* Bar fill */
.spd-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: rgba(201, 168, 76, 0.45);
  transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.7s ease,
              opacity 0.5s ease;
}

/* Inverse fill (higher = better, colour muted when low) */
.spd-bar-fill--inverse {
  background: rgba(201, 168, 76, 0.28);
}

/* Elevated pressure state — still restrained */
.spd-bar-fill.is-high {
  background: rgba(201, 168, 76, 0.62);
}

/* ── Observations ── */
.spd-observations {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-4);
}

.spd-obs-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0.5;
  margin: 0 0 var(--sp-2) 0;
}

.spd-obs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.spd-obs-item {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: var(--sp-2);
  border-left: 1px solid rgba(201, 168, 76, 0.2);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.spd-obs-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.spd-obs-item--idle {
  font-style: italic;
  color: var(--text-soft);
  border-left-color: var(--border-subtle);
  opacity: 1;
  transform: translateY(0);
}

/* ── Result Block ── */
.spd-result-block {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-4);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spd-result-block.visible {
  opacity: 1;
}

.spd-result-eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.55;
  margin: 0 0 var(--sp-1) 0;
}

.spd-result-state {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0;
  transition: color 0.4s ease;
}

/* ── CTA Block ── */
.spd-cta-block {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
  pointer-events: none;
}

.spd-cta-block[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.spd-cta-note {
  font-size: var(--text-xs);
  color: var(--text-soft);
  line-height: 1.8;
  margin: 0 0 var(--sp-3) 0;
  font-style: italic;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

.spd-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ── Email capture ── */
.spd-capture {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

.spd-capture-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.spd-capture-row {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.spd-capture-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  transition: border-color var(--ease);
}

.spd-capture-input:focus {
  outline: none;
  border-color: var(--accent);
}

.spd-capture-btn {
  flex: 0 0 auto;
}

.spd-capture-note {
  font-size: var(--text-xs);
  color: var(--text-soft);
  line-height: 1.7;
  margin: var(--sp-2) 0 0 0;
  font-style: italic;
  opacity: 0.8;
}

/* On successful send, fold the input away, keep the confirmation */
.spd-capture.is-sent .spd-capture-label,
.spd-capture.is-sent .spd-capture-row {
  display: none;
}

.spd-capture.is-sent .spd-capture-note {
  color: var(--accent);
  font-style: normal;
  opacity: 1;
}

/* Share (copy assessment) */
.spd-share {
  margin-top: var(--sp-3);
}

.spd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-soft);
  transition: color var(--ease);
}

.spd-share-icon {
  position: relative;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Two overlapping squares = copy glyph */
.spd-share-icon::before,
.spd-share-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.3px solid currentColor;
  border-radius: 2px;
}

.spd-share-icon::before { top: 0; left: 0; }
.spd-share-icon::after {
  bottom: 0;
  right: 0;
  background: var(--surface, #111114);
}

.spd-share-btn.is-copied { color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .spd-share-btn:hover { color: var(--text-muted); }
}

/* Secondary CTA recedes — consultative, not urgent */
.spd-cta-buttons .btn-ghost {
  opacity: 0.65;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

@media (hover: hover) and (pointer: fine) {
  .spd-cta-buttons .btn-ghost:hover {
    opacity: 1;
  }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .spd-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .spd-live {
    position: static;
  }
}

@media (max-width: 640px) {
  .spd-section {
    padding: var(--sp-10) 0;
  }

  .spd-segment {
    gap: 5px;
  }

  .spd-seg-btn {
    font-size: 0.72rem;
    padding: 0.4rem 0.7rem;
  }

  .spd-live {
    padding: var(--sp-4) var(--sp-3);
  }

  .spd-cta-buttons {
    flex-direction: column;
  }

  .spd-cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spd-bar-fill {
    transition: width 0.1s ease;
  }
  .spd-obs-item,
  .spd-result-block,
  .spd-cta-block {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  padding: var(--sp-16) 0;
}

.cta-card {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-12) var(--sp-10);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* Restrained ambient glow — accent warmth without aggression */
.cta-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.04), transparent 65%);
  pointer-events: none;
}

.cta-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: var(--sp-4);
}

.cta-card h2 {
  margin-bottom: var(--sp-4);
}

.cta-card > p {
  font-size: var(--text-base);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  line-height: 1.8;
  color: var(--text-muted);
}

.cta-buttons {
  justify-content: center;
  gap: var(--sp-3);
}

.cta-card .trust-contact {
  margin-top: var(--sp-5);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-12) 0 var(--sp-8);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.035), transparent 65%);
  pointer-events: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: start;
}

.footer-wordmark {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: var(--sp-3);
  transition: color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-wordmark:hover { color: var(--accent); }
}

.footer-descriptor {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: var(--sp-3);
}

.footer-email-link {
  font-size: var(--text-sm);
  color: var(--text-soft);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: color var(--ease), border-color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-email-link:hover {
    color: var(--accent);
    border-color: var(--accent);
  }
}

.footer-nav {
  padding-top: 0.35rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-soft);
  letter-spacing: 0.04em;
  transition: color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--accent); }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal-links {
  display: flex;
  gap: var(--sp-4);
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-legal-links a:hover { color: var(--accent); }
}

.footer-founder {
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* =========================================
   GRID LAYOUTS (other pages)
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

/* =========================================
   SERVICES PAGE
   ========================================= */
.services-detailed {
  padding: var(--sp-10) 0;
}

.services-detailed .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
}

/* =========================================
   WORK PAGE
   ========================================= */
.work-list {
  padding: var(--sp-10) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.work-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: var(--sp-2);
}

.work-note {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-soft);
  font-size: var(--text-sm);
}

/* =========================================
   BLOG PAGE
   ========================================= */
.blog-posts-grid {
  padding: var(--sp-10) 0;
}

.blog-posts-grid .container {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-date {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: var(--sp-2);
}

.read-more {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .read-more:hover { color: var(--accent-hover); }
}

/* Published (live) teaser */
.blog-status--live {
  color: var(--accent);
  opacity: 1;
}

.blog-teaser-link {
  color: inherit;
  transition: color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .blog-teaser-link:hover { color: var(--accent); }
}

.blog-read-more {
  margin-top: var(--sp-3);
}

.blog-read-more a {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: border-color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .blog-read-more a:hover { border-color: var(--accent); }
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-10) 0;
}

.contact-email a {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--accent);
}

.form-status {
  margin-top: var(--sp-2);
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-form .btn { width: 100%; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

input, textarea {
  width: 100%;
  padding: 0.85rem var(--sp-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: var(--text-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.contact-form select {
  width: 100%;
  padding: 0.85rem var(--sp-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: var(--text-sm);
  transition: border-color var(--ease);
}

input:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
  outline: none;
  border-color: var(--accent);
}

.contact-form select:focus-visible {
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
  outline: none;
  border-color: var(--accent);
}

.contact-form select option {
  background: var(--surface);
  color: var(--text);
}

input::placeholder, textarea::placeholder { color: var(--text-soft); }
textarea { resize: vertical; min-height: 130px; }

/* =========================================
   LEGAL PAGES
   ========================================= */
.legal-page {
  padding: var(--sp-12) 0;
}

.legal-container {
  max-width: 700px;
}

.legal-container h1 {
  margin-bottom: var(--sp-3);
}

.legal-container h2 {
  margin-top: var(--sp-8);
  font-size: 1.65rem;
  margin-bottom: var(--sp-2);
}

.legal-container p {
  font-size: var(--text-sm);
  line-height: 1.85;
  margin-bottom: var(--sp-3);
}

.legal-container ul li {
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
  font-size: var(--text-sm);
  line-height: 1.75;
  list-style: disc;
  margin-left: var(--sp-3);
}

.legal-container a { color: var(--accent); }

/* =========================================
   ARTICLE PAGE (Insights)
   ========================================= */
.article {
  padding: var(--sp-12) 0 var(--sp-10);
}

.article .container {
  max-width: 720px;
}

.article-head {
  margin-bottom: var(--sp-8);
}

.article-category {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: var(--sp-3);
}

.article-title {
  margin-bottom: var(--sp-4);
}

.article-standfirst {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--text-muted);
}

.article-body p {
  font-size: var(--text-sm);
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.article-body h2 {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  font-size: 1.5rem;
}

.article-close {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.article-cta {
  margin-top: var(--sp-5);
}

.article-cta a {
  color: var(--accent);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: border-color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .article-cta a:hover { border-color: var(--accent); }
}

.article-back {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
}

.article-back a {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .article-back a:hover { color: var(--accent); }
}

@media (max-width: 480px) {
  .article { padding: var(--sp-8) 0 var(--sp-6); }
  .article-head { margin-bottom: var(--sp-6); }
}

/* ── Research report elements ─────────────
   Aggregate-data report (app-ratings-study): headline stat band, complaint
   bars, method box. Theme-aware via vars; static (no JS dependency). */
.report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.report-stat { text-align: center; }
.report-stat-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.report-stat-unit { font-size: 0.6em; }
.report-stat-label {
  display: block;
  margin-top: 0.45rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}
.report-bars {
  margin: var(--sp-5) 0 var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.report-bar-row {
  display: grid;
  grid-template-columns: 132px 1fr 46px;
  align-items: center;
  gap: var(--sp-2);
}
.report-bar-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: right;
}
.report-bar-track {
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.report-bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.report-bar-val {
  font-size: var(--text-sm);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.report-bars-note {
  font-size: var(--text-sm);
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: var(--sp-5);
}
.report-method {
  margin: var(--sp-6) 0;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.report-method p { font-size: var(--text-sm); color: var(--text-soft); line-height: 1.65; }
.report-method-head {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: var(--sp-2);
}

@media (max-width: 640px) {
  .report-stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-2); }
  .report-bar-row { grid-template-columns: 92px 1fr 42px; }
  .report-bar-label { font-size: var(--text-xs); }
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-content {
  padding: var(--sp-10) 0 var(--sp-4);
}

.about-text p {
  margin-bottom: var(--sp-3);
  line-height: 1.9;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.about-text p:last-child { margin-bottom: 0; }

.about-note h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin-bottom: var(--sp-2);
}

/* Discipline cards grid — space above */
.about-disciplines {
  margin-top: var(--sp-8);
}

/* NDA note below email in founder sidebar */
.about-nda-note {
  margin-top: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.6;
}

/* Principles section — confidentiality + engagement model */
.about-principles {
  padding: var(--sp-10) 0;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* =========================================
   SERVICES PAGE
   ========================================= */

/* Engagement model section — distinct background band */
.services-model {
  padding: var(--sp-12) 0;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Services stack — scoped override for .services-detailed container.
   Replaces the global .services-detailed .container grid with a
   vertical full-width layout suited to capability-statement pillars. */
.services-detailed .services-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* Service pillar — content density override */
.service-pillar {
  padding: var(--sp-6) var(--sp-5);
}

.service-pillar h3 {
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.service-pillar p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}

.service-pillar p:last-of-type {
  margin-bottom: var(--sp-4);
}

/* Capability list within service pillars */
.service-pillar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.service-pillar ul li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-3);
  position: relative;
}

.service-pillar ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--accent);
  opacity: 0.45;
}

/* About-grid spacing override for selector/confidentiality pair */
.services-model .about-grid {
  margin-top: var(--sp-8);
}

@media (max-width: 768px) {
  .service-pillar {
    padding: var(--sp-5) var(--sp-4);
  }
}

@media (max-width: 480px) {
  .service-pillar {
    padding: var(--sp-4) var(--sp-3);
  }
}

/* =========================================
   UTILITY
   ========================================= */
.note-muted {
  font-size: var(--text-sm);
  color: var(--text-soft);
}

/* =========================================
   RESPONSIVE — 1024px (tablet landscape)
   ========================================= */
@media (max-width: 1024px) {
  .pillars-grid,
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .impact-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
  }

  .impact-tab {
    width: auto;
    flex: 1 1 130px;
    text-align: center;
    min-width: 130px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-4);
  }
}

/* =========================================
   RESPONSIVE — 768px (mobile breakpoint)
   NAVIGATION ARCHITECTURE CHANGE:
   - Desktop nav hidden, not just moved
   - Hamburger visible
   - Drawer nav appears
   ========================================= */
@media (max-width: 768px) {

  /* Show hamburger button */
  .mobile-nav-toggle {
    display: flex;
  }

  /* Reveal contextual page label beside logo on mobile */
  .page-label {
    display: inline-block;
  }

  /* MOBILE NAV DRAWER — replaces desktop nav entirely */
  .main-nav {
    /* Take over full-width from below header */
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    /* Not 100vw — prevents scrollbar width issues */
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-1) 0 var(--sp-3);
    z-index: 999;
    /* Hidden default state — pointer-events off + invisible */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Open state — JS adds .active */
  .main-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Show overlay */
  .nav-overlay {
    display: block;
  }

  /* Nav link rows */
  .main-nav a {
    padding: 1rem var(--sp-4);
    width: 100%;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-subtle);
    /* Guaranteed 52px touch target height */
    min-height: 52px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color var(--ease), background var(--ease);
  }

  .main-nav a:last-child { border-bottom: none; }

  .main-nav a.active {
    color: var(--text);
    background: rgba(201, 168, 76, 0.04);
  }

  /* Remove desktop underline indicator — not applicable in drawer */
  .main-nav a.active::after { display: none; }

  /* Hero responsive */
  .hero, .page-hero {
    padding: var(--sp-12) 0 var(--sp-8);
  }

  /* Grids collapse to single column */
  .pillars-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  /* Diagnostic */
  .diagnostic {
    padding: var(--sp-10) 0;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services-detailed .container {
    grid-template-columns: 1fr;
  }

  /* Blog */
  .blog-posts-grid .container {
    grid-template-columns: 1fr;
  }

  /* Impact tabs */
  .impact-tabs {
    gap: var(--sp-1);
  }

  /* WhatsApp pill — tuck in on mobile */
  .whatsapp-cta {
    right: var(--sp-2);
    bottom: var(--sp-3);
  }
}

/* =========================================
   RESPONSIVE — 480px (small mobile)
   ========================================= */
@media (max-width: 480px) {
  .container {
    width: calc(100% - var(--sp-3));
  }

  .hero, .page-hero {
    padding: var(--sp-8) 0 var(--sp-6);
  }

  h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); }
  h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }

  .btn {
    padding: 0.8rem 1.4rem;
    font-size: var(--text-xs);
  }

  /* Buttons stack full-width on small screens */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
    /* Re-allow shrink for stacked layout */
    flex-shrink: 1;
  }

  .hero-subhead {
    font-size: var(--text-base);
    gap: 0.4em;
  }

  .trust-strip {
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-2);
  }

  .trust-sep { display: none; }

  .pillar-card,
  .approach-item,
  .about-card,
  .about-note {
    padding: var(--sp-4) var(--sp-3);
  }

  .diagnostic {
    padding: var(--sp-8) 0;
  }

  .diagnostic-header {
    margin-bottom: var(--sp-6);
  }

  .impact-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-tab {
    text-align: center;
    min-width: unset;
    width: 100%;
    flex: none;
  }

  .impact-card {
    padding: var(--sp-5) var(--sp-4);
  }

  .cta-card {
    padding: var(--sp-8) var(--sp-5);
  }

  .cta-card > p {
    font-size: var(--text-sm);
    margin-bottom: var(--sp-6);
  }

  .modal-content {
    padding: var(--sp-5) var(--sp-4);
    border-radius: var(--radius-md);
  }

  .contact-form {
    padding: var(--sp-4);
  }

  .whatsapp-cta {
    font-size: 0.68rem;
    padding: 0.45rem 0.75rem;
    right: var(--sp-2);
    bottom: var(--sp-2);
  }

  .footer-bottom {
    gap: var(--sp-2);
  }

  .engagement-note {
    padding: var(--sp-3) var(--sp-4);
  }
}

/* =========================================
   RESPONSIVE — 390px (iPhone-class)
   ========================================= */
@media (max-width: 390px) {
  :root {
    --header-h: 68px;
  }

  .logo a { font-size: 1.55rem; }

  h2 { font-size: clamp(1.65rem, 7vw, 2rem); }

  .hero-buttons { gap: var(--sp-1); }

  .trust-strip { font-size: 0.65rem; }

  .pillar-card,
  .approach-item {
    padding: var(--sp-3) var(--sp-2);
  }

  .footer-legal-links {
    gap: var(--sp-2);
  }
}

/* =========================================
   RESPONSIVE — 360px (compact Android)
   ========================================= */
@media (max-width: 360px) {
  :root {
    --header-h: 64px;
  }

  .logo a { font-size: 1.45rem; }

  h2 { font-size: clamp(1.6rem, 7vw, 1.9rem); }

  .hero-buttons { gap: var(--sp-1); }

  .trust-strip { font-size: 0.64rem; }

  .pillar-card,
  .approach-item {
    padding: var(--sp-3) var(--sp-2);
  }

  .footer-legal-links {
    gap: var(--sp-2);
  }
}

/* =========================================
   RESPONSIVE — 320px (edge case)
   ========================================= */
@media (max-width: 320px) {
  :root {
    --header-h: 60px;
  }

  .container {
    width: calc(100% - 1rem);
  }

  .logo a { font-size: 1.3rem; }
}
/* =========================================
   CONTACT PAGE — ADDITIONS
   Scoped classes replacing inline styles.
   Append to end of style.css.
   ========================================= */

/* Honeypot field — utility trap class */
.visually-trap {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Direct email link spacing — contact card */
.contact-direct-email {
  margin-top: var(--sp-3);
}

/* NDA note spacing — below direct email */
.contact-nda-note {
  margin-top: var(--sp-2);
}

/* WhatsApp button — contact card inline */
.contact-wa-btn {
  margin-top: var(--sp-2);
  display: inline-flex;
}

/* Contact form column — mirrors .contact-form card treatment */
.contact-form-col {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-form-col .btn.form-submit-btn {
  width: 100%;
  margin-top: var(--sp-1);
}

.form-trust-note {
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.02em;
  margin-top: var(--sp-1);
}

/* Contact card heading — Cormorant display size */
.contact-card-heading {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-3);
  line-height: 1.12;
}

/* Form heading — sub-display */
.contact-form-heading {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-1);
}

/* Contact section wrapper — controls vertical rhythm */
.contact-section {
  padding: var(--sp-10) 0;
}

/* Engagement note section — consistent with about-principles banding */
.engagement-note-section {
  padding: var(--sp-10) 0 var(--sp-6);
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.engagement-note-heading {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}

/* WhatsApp secondary block — contact card */
.contact-whatsapp-block {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}

/* Premium select styling — overrides browser-default appearance site-wide */
select {
  width: 100%;
  padding: 0.85rem var(--sp-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: var(--text-sm);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color var(--ease), box-shadow var(--ease);
  /* Remove native browser chrome on all engines */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Custom chevron — accent-tinted SVG arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23c9a84c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none' opacity='0.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-2) center;
  background-size: 14px 8px;
  padding-right: calc(var(--sp-2) + 22px);
  cursor: pointer;
}

select:focus-visible {
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
  outline: none;
  border-color: var(--accent);
}

select option {
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

/* Responsive — contact section */
@media (max-width: 768px) {
  .contact-section {
    padding: var(--sp-8) 0;
  }

  .engagement-note-section {
    padding: var(--sp-8) 0 var(--sp-5);
  }

  .contact-form-col {
    padding: var(--sp-4);
  }
}

@media (max-width: 480px) {
  .contact-card-heading {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .contact-section {
    padding: var(--sp-6) 0;
  }

  .contact-whatsapp-block {
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
  }
}

/* =========================================
   WORK PAGE — MANDATE GROUP ARCHITECTURE
   ========================================= */

.work-mandate-group {
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.work-mandate-group--alt {
  background: var(--surface);
}

.work-mandate-header {
  max-width: 680px;
  margin-bottom: var(--sp-8);
}

.work-mandate-header h2 {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.work-mandate-intro {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
}

.work-mandate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
}

/* Work items inside mandate grid — full prose, no h3 size regression */
.work-mandate-grid .work-item h3 {
  margin-bottom: var(--sp-3);
}

.work-mandate-grid .work-item p {
  font-size: var(--text-sm);
  line-height: 1.85;
}

/* Single-item mandate group: don't stretch card full width */
.work-mandate-grid.single-item {
  grid-template-columns: minmax(300px, 680px);
}

@media (max-width: 768px) {
  .work-mandate-group {
    padding: var(--sp-8) 0;
  }

  .work-mandate-header {
    margin-bottom: var(--sp-6);
  }
}

@media (max-width: 480px) {
  .work-mandate-group {
    padding: var(--sp-6) 0;
  }

  .work-mandate-header h2 {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
  }

  .work-mandate-intro {
    font-size: var(--text-xs);
  }
}

/* =========================================
   WORK PAGE — FEATURED CASE STUDY
   ========================================= */

.case-study {
  padding: var(--sp-14) 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}

.case-study-inner {
  max-width: 880px;
}

.case-study-head {
  max-width: 680px;
  margin-bottom: var(--sp-8);
}

.case-study-head h2 {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.case-study-context {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

/* Metric row */
.case-study-metrics {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5);
  margin-bottom: var(--sp-8);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 96px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-metric-label {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.case-metric-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1;
  color: var(--text);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.case-metric--accent .case-metric-value {
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .case-metric:hover {
    transform: translateY(-3px);
  }
  .case-metric:hover .case-metric-label {
    color: var(--text-muted);
  }
  .case-metric:hover .case-metric-value {
    color: var(--accent);
    text-shadow: 0 0 18px rgba(201, 168, 76, 0.28);
  }
}

.case-metric-arrow {
  display: flex;
  align-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.6;
  padding: 0 var(--sp-1);
}

/* Rating-recovery chart */
.case-chart {
  margin: 0 0 var(--sp-8);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.case-chart-svg {
  display: block;
  width: 100%;
  height: 180px;
  overflow: visible;
}

.case-chart-axis {
  stroke: var(--border-subtle);
  stroke-width: 1;
}

.case-chart-ref {
  stroke: var(--text-soft);
  stroke-width: 1;
  opacity: 0.4;
}

.case-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Draw-in animation */
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.case-chart.visible .case-chart-line {
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  stroke-dashoffset: 0;
}

.case-chart-dot {
  fill: var(--text-soft);
}

.case-chart-dot--accent {
  fill: var(--accent);
}

/* Live wake at the chart's leading edge — same language as the Rating Layer */
.case-trail { fill: var(--accent); opacity: 0; }
.case-chart.visible .case-trail    { animation: rlTrail 1.5s linear 1.6s infinite; }
.case-chart.visible .case-trail.t2 { animation-delay: 2.1s; }
.case-chart.visible .case-trail.t3 { animation-delay: 2.6s; }

.case-chart-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.case-chart-mark {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.case-chart-mark--end {
  color: var(--accent);
}

.case-chart-note {
  font-size: var(--text-xs);
  color: var(--text-soft);
  opacity: 0.7;
  font-style: italic;
  margin: var(--sp-2) 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .case-chart-line { stroke-dashoffset: 0; transition: none; }
}

@media (max-width: 480px) {
  .case-chart { padding: var(--sp-4); }
  .case-chart-svg { height: 150px; }
  .case-chart-caption { flex-direction: column; gap: 4px; }
}

/* Body columns */
.case-study-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.case-study-subhead {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: var(--sp-2);
}

.case-study-col p {
  font-size: var(--text-sm);
  line-height: 1.85;
  color: var(--text-muted);
}

.case-study-note {
  margin-top: var(--sp-2);
}

@media (max-width: 768px) {
  .case-study {
    padding: var(--sp-10) 0;
  }

  .case-study-head {
    margin-bottom: var(--sp-6);
  }

  .case-study-body {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
}

@media (max-width: 480px) {
  .case-study {
    padding: var(--sp-8) 0;
  }

  .case-study-head h2 {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
  }

  .case-study-metrics {
    padding: var(--sp-4);
    gap: var(--sp-4);
  }

  /* Arrow reads awkwardly when metrics wrap to a column — hide it */
  .case-metric-arrow {
    display: none;
  }
}

/* =========================================
   WORK PAGE — REPRESENTATIVE SNAPSHOTS
   ========================================= */

.snapshots-section {
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}

.snapshots-header {
  max-width: 620px;
  margin-bottom: var(--sp-8);
}

.snapshots-header h2 {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.snapshots-subtext {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
}

/* Two-column grid (2×2 for four cards) */
.snapshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

/* Card shell */
.snapshot-card {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease), transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .snapshot-card:hover {
    transform: translateY(-3px);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
  }

  /* Dim SVG lines slightly on hover — subtle depth shift */
  .snapshot-card:hover .snapshot-overlay-svg {
    opacity: 0.85;
  }
}

/* ── Placeholder visual container ─────── */
.snapshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--sp-2) var(--sp-3);
  position: relative;
  overflow: hidden;
}

/* Per-card background tints — each environment feels distinct */
.snapshot-placeholder--a {
  background: linear-gradient(145deg, #111115 0%, #14120e 100%);
}

.snapshot-placeholder--b {
  background: linear-gradient(145deg, #111114 0%, #121115 100%);
}

.snapshot-placeholder--c {
  background: linear-gradient(145deg, #0f1113 0%, #111115 100%);
}

/* Scanline texture overlay */
.snapshot-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  pointer-events: none;
  z-index: 2;
}

/* Bottom fade — label legibility */
.snapshot-placeholder::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.65), transparent);
  pointer-events: none;
  z-index: 2;
}

/* SVG fills the placeholder */
.snapshot-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: opacity var(--ease-slow);
}

.snapshot-placeholder-label {
  font-family: "Inter", sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  position: relative;
  z-index: 3;
  opacity: 0.7;
}

/* Card body */
.snapshot-body {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

/* Index number */
.snapshot-index {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.45;
  margin: 0;
}

/* Card heading */
.snapshot-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

/* Context */
.snapshot-context {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* Proof line */
.snapshot-proof {
  font-size: var(--text-xs);
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border-subtle);
}

/* Footnote */
.snapshots-footnote {
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0;
  padding-top: var(--sp-1);
}

/* ── Interaction polish: mandate cards ── */
/* Work items already inherit card hover from the card system.
   Add an accent border reveal on hover for extra operational feel. */
@media (hover: hover) and (pointer: fine) {
  .work-mandate-grid .work-item:hover {
    border-color: rgba(201, 168, 76, 0.18);
  }

  /* Confidentiality / about-note cards */
  .about-principles .about-note:hover {
    border-color: rgba(201, 168, 76, 0.18);
  }
}

/* Responsive — 2 col at tablet */
@media (max-width: 1024px) {
  .snapshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .snapshot-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--sp-2));
  }
}

/* Responsive — 1 col at mobile */
@media (max-width: 768px) {
  .snapshots-section {
    padding: var(--sp-8) 0;
  }

  .snapshots-header {
    margin-bottom: var(--sp-6);
  }

  .snapshots-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .snapshot-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .snapshots-section {
    padding: var(--sp-6) 0;
  }

  .snapshot-body {
    padding: var(--sp-3) var(--sp-3) var(--sp-4);
  }
}

/* =========================================
   LEGAL PAGES — META NOTE
   ========================================= */

/* Replaces inline style="margin-bottom: var(--sp-8)" on .note-muted
   in privacy.html and terms.html */
.legal-meta {
  margin-bottom: var(--sp-8);
}

/* =========================================
   404 PAGE
   ========================================= */

.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}

.error-code {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.18);
  user-select: none;
  margin-bottom: var(--sp-4);
}

.error-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.error-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  max-width: 520px;
}

.error-body {
  color: var(--text-muted);
  font-size: var(--text-sm);
  max-width: 400px;
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

.error-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}

.error-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: var(--sp-6) auto;
}

.error-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  list-style: none;
  padding: 0;
}

/* =========================================
   IMAGE INTEGRATION
   hero-visual · founder-portrait · service-visual
   ========================================= */

/* ── Hero Visual ──────────────────────────
   Absolutely fills .hero (which already has
   position: relative; overflow: hidden).
   Sits at z-index 0 — same layer as ::before
   radial-gradient, below hero-content (z-index 1).
   Does not affect layout flow.
   ─────────────────────────────────────── */
.hero-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-visual-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.18;
  filter: grayscale(50%) contrast(1.1);
  animation: heroImgFadeIn 1.2s ease forwards;
}

@keyframes heroImgFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.18; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-bg img {
    animation: none;
    opacity: 0.13;
  }
}

/* ── Founder Portrait ─────────────────────
   Content image inside .about-note card.
   Negative margins bleed it to card edges
   at top; border-radius matches card top corners.
   .about-note padding is sp-5/sp-4 (desktop)
   and sp-4/sp-3 (≤480px) — margins match exactly.
   ─────────────────────────────────────── */
/* Contained, editorial headshot — restrained footprint, framed crop,
   refined monochrome. Reads as an executive bio portrait rather than a
   full-bleed banner. Tokens unchanged from the site system. */
.founder-portrait-wrap {
  width: clamp(150px, 42%, 188px);
  margin: 0 0 var(--sp-4);
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.founder-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: grayscale(60%) contrast(1.04);
  transition: filter var(--ease-slow);
}

@media (hover: hover) and (pointer: fine) {
  .about-note:hover .founder-portrait {
    filter: grayscale(38%) contrast(1.02);
  }
}

/* Mobile has no hover to lighten the portrait, so soften the monochrome
   at rest for a more natural look on phones. Desktop is left unchanged. */
@media (max-width: 768px) {
  .founder-portrait {
    filter: grayscale(30%) contrast(1.03);
  }
}

@media (max-width: 480px) {
  .founder-portrait-wrap {
    width: 150px;
    margin: 0 0 var(--sp-3);
  }
}

/* ── Services proof ───────────────────────
   The same Rating Layer object as the homepage, leaner (no metric tiles /
   founder note): cross-surface recognition is the point. Replaces the old
   decorative .service-visual-band image between detailed + model sections.
   ─────────────────────────────────────── */
.services-proof {
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Rating sim ───────────────────────────
   Phase 3 — the one interactive instance. A single slider: drag your rating,
   feel the 4.0 line. States carry the thesis — below the line strains (rust),
   at/above it rests (gold). Leads to the real Rating Check. Distinct from the
   5-input Storefront Pressure Diagnostic; deliberately spare. */
.rating-sim {
  padding: 0 0 var(--sp-12);
}
.rsim {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.rsim-readout {
  line-height: 1;
  margin-bottom: 0.45rem;
}
.rsim-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
.rsim-star {
  color: var(--accent);
  font-size: 0.5em;
  margin-left: 0.1em;
  vertical-align: 0.42em;
  transition: color 0.3s ease;
}
.rsim-cue {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 auto var(--sp-5);
  min-height: 1.1em;
  transition: color 0.3s ease;
}
/* below the line: tension */
.rsim.is-below .rsim-value,
.rsim.is-below .rsim-star,
.rsim.is-below .rsim-cue { color: var(--rust); }

.rsim-track-wrap {
  position: relative;
  padding: 0 2px;
}
/* the 4.0 line — fixed at centre (slider runs 3.0–5.0, so 4.0 = 50%) */
.rsim-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 18px;
  background: var(--text-soft);
  opacity: 0.7;
  pointer-events: none;
}
.rsim-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  margin: 0;
}
.rsim-slider:focus-visible { box-shadow: 0 0 0 3px var(--accent-dim); }
.rsim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rsim-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rsim.is-below .rsim-slider::-webkit-slider-thumb { background: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.rsim.is-below .rsim-slider::-moz-range-thumb     { background: var(--rust); box-shadow: 0 0 0 1px var(--rust); }

.rsim-scale {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
.rsim-scale-mid { color: var(--accent); }
/* Install-conversion meter — the consequence of the rating you set.
   Directional fill (rust below the line, gold above); reads the same
   states as the readout. Not a forecast. */
.rsim-impact {
  max-width: 380px;
  margin: var(--sp-5) auto 0;
  text-align: left;
}
.rsim-impact-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.rsim-impact-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.rsim-impact-state {
  font-size: var(--text-sm);
  color: var(--accent);
  transition: color 0.3s ease;
}
.rsim.is-below .rsim-impact-state { color: var(--rust); }
.rsim-impact-track {
  display: block;
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.rsim-impact-fill {
  display: block;
  height: 100%;
  width: 48%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 0.35s ease, background 0.3s ease;
}
.rsim.is-below .rsim-impact-fill { background: var(--rust); }
.rsim-impact-note {
  font-size: var(--text-xs);
  color: var(--text-soft);
  margin-top: 0.55rem;
  line-height: 1.5;
}
.rsim-cta-link {
  margin-top: var(--sp-5);
}

@media (prefers-reduced-motion: reduce) {
  .rsim-value, .rsim-star, .rsim-cue,
  .rsim-impact-state, .rsim-impact-fill,
  .rsim-slider::-webkit-slider-thumb,
  .rsim-slider::-moz-range-thumb { transition: none; }
}

/* =========================================
   HERO EYEBROW — trim audience clause on small screens
   ========================================= */
@media (max-width: 600px) {
  .hero-eyebrow .eyebrow-extended {
    display: none;
  }
}

/* =========================================
   EMAIL COPY FEEDBACK
   ========================================= */
.email-copied-note {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.78em;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.email-copied-note.visible {
  opacity: 1;
}

/* =========================================
   OPS-PANEL STAT LINE (proof under pillar titles)
   ========================================= */
.ops-panel-stat {
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

/* =========================================
   SNAPSHOTS — TRACK RECORD AT A GLANCE
   ========================================= */
.snapshots-trackrecord {
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.snapshots-trackrecord li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4);
  border-left: 2px solid var(--accent);
  background: rgba(201, 168, 76, 0.03);
}

.trackrecord-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--accent);
}

.trackrecord-label {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

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

@media (max-width: 480px) {
  .snapshots-trackrecord {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   ENGAGEMENT TIMELINE (homepage — "what happens after you engage")
   ========================================= */
.timeline-arc {
  margin: var(--sp-5) 0 var(--sp-6);
}

.timeline-arc-svg {
  width: 100%;
  height: auto;
  display: block;
}

.timeline-arc-axis { stroke: var(--border-subtle); stroke-width: 1; }
.timeline-arc-ref  { stroke: var(--text-soft); stroke-width: 1; opacity: 0.55; }
.timeline-arc-div  { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }

.timeline-arc-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.timeline-arc-dot { fill: var(--text-soft); }
.timeline-arc-dot--accent { fill: var(--accent); }

.timeline-arc-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}

.timeline-arc-mark {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.timeline-arc-mark--mid { color: var(--accent); }
.timeline-arc-mark--end { color: var(--accent); }

.timeline-arc-note {
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--text-soft);
}

.engagement-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 1024px) {
  .engagement-timeline { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .engagement-timeline { grid-template-columns: 1fr; }
}

.timeline-phase {
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  border-top: 2px solid var(--accent);
  background: rgba(201, 168, 76, 0.025);
}

.timeline-phase-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.timeline-phase-when {
  margin-top: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.timeline-phase h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: var(--text-md);
}

.timeline-phase p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 540px) {
  .timeline-arc-caption { justify-content: flex-start; gap: var(--sp-3); }
}

/* =========================================
   LIGHT THEME — opt-in via html[data-theme="light"]
   Dark is the default; this block ONLY overrides, so the dark
   baseline cannot regress. Palette mirrors the client deliverables
   (cream surface, ink text, deep gold accent).
   ========================================= */
html[data-theme="light"] {
  --bg:               #eceae4;
  --surface:          #ffffff;
  --surface-raised:   #f5f2ea;
  --border:           #e7d9a6;
  --border-subtle:    #ded7c7;
  --text:             #1a1a1a;
  --text-muted:       #555049;
  --text-soft:        #8a857c;
  --accent:           #8a6d1f;
  --accent-hover:     #6f5616;
  --accent-dim:       #fbf3da;
  --rust:             #bf5a38;
  --shadow-sm:  0 2px 12px rgba(26, 22, 12, 0.08);
  --shadow-md:  0 8px 32px rgba(26, 22, 12, 0.10);
  --shadow-lg:  0 20px 64px rgba(26, 22, 12, 0.14);
}

/* Surfaces that hardcode dark values the variables can't reach */
html[data-theme="light"] .site-header { background: rgba(236, 234, 228, 0.85); }
html[data-theme="light"] .whatsapp-cta { background: rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .snapshot-placeholder--a { background: linear-gradient(145deg, #fbf3da 0%, #f0e7cf 100%); }
html[data-theme="light"] .snapshot-placeholder--b { background: linear-gradient(145deg, #ffffff 0%, #f1ece0 100%); }
html[data-theme="light"] .snapshot-placeholder--c { background: linear-gradient(145deg, #f6f3ea 0%, #ece5d4 100%); }
html[data-theme="light"] .timeline-arc-div { stroke: rgba(26, 22, 12, 0.10); }
html[data-theme="light"] body::before { color: rgba(26, 22, 12, 0.030); }
html[data-theme="light"] body::after {
  background: radial-gradient(ellipse at 50% 0%, transparent 60%, rgba(26, 22, 12, 0.05) 100%);
}
@media (max-width: 768px) {
  html[data-theme="light"] .main-nav { background: rgba(236, 234, 228, 0.98); }
}

/* Buttons keep the brand's BRIGHT gold fill (the deep --accent is for text
   only — used solid it reads as olive). Matches the dark-mode button. */
html[data-theme="light"] .btn-primary {
  background: #211d17;
  border-color: #211d17;
  color: #f4efe3;
  box-shadow: 0 2px 10px rgba(33, 29, 23, 0.16);
}
html[data-theme="light"] .btn-primary:hover {
  background: #363025;
  border-color: #363025;
  box-shadow: 0 4px 16px rgba(33, 29, 23, 0.24);
}

/* Hero photo is a dark image — keep it a faint light wash on cream,
   not a grey smudge. */
html[data-theme="light"] .hero-visual-bg img {
  opacity: 0.10;
  filter: grayscale(70%) brightness(1.25) contrast(0.92);
}

/* Eyebrows in rust — the deliverable's signature warm accent (gold stays
   for body links/labels). Bump hero eyebrow to full opacity so it reads. */
html[data-theme="light"] .hero-eyebrow,
html[data-theme="light"] .cta-eyebrow,
html[data-theme="light"] .diagnostic-eyebrow,
html[data-theme="light"] .spd-live-eyebrow,
html[data-theme="light"] .spd-result-eyebrow,
html[data-theme="light"] .error-eyebrow {
  color: var(--rust);
}
html[data-theme="light"] .hero-eyebrow { opacity: 0.92; }

/* Warm highlight callout, like the deliverable's "fix" box */
html[data-theme="light"] .engagement-note {
  border: 1px solid var(--border);
  border-left: 2px solid var(--rust);
}

/* =========================================
   THEME TOGGLE — injected into .main-nav by main.js
   ========================================= */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { border-color: var(--accent); background: var(--accent-dim); }
}
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .theme-icon { width: 18px; height: 18px; display: block; }
.theme-toggle .theme-icon--moon { display: none; }
html[data-theme="light"] .theme-toggle .theme-icon--sun  { display: none; }
html[data-theme="light"] .theme-toggle .theme-icon--moon { display: block; }
/* Toggle lives in the header bar — always visible, including mobile.
   Logo takes the free space so nav + toggle group on the right. */
.header-container > .logo { margin-right: auto; }

/* Smooth fade when switching theme. The class is added by the toggle and
   removed after the transition, so it never affects page load or hovers. */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.35s ease, color 0.35s ease,
              border-color 0.35s ease, fill 0.35s ease, stroke 0.35s ease,
              box-shadow 0.35s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-transition, html.theme-transition * { transition: none !important; }
}

/* =========================================
   HOME HERO — TWO-COLUMN WITH 3D DEVICE
   Text left, rotating phone right. Collapses
   to a single centred column below 900px.
   ========================================= */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: var(--sp-8);
  align-items: center;
}

.hero-grid .hero-content {
  max-width: 640px;
}

.hero--home {
  padding: var(--sp-12) 0 var(--sp-10);
}

.hero--home h1 {
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
}

.hero-microcopy {
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── 3D phone ─────────────────────────────
   Pure CSS 3D: a scene with perspective, an
   entrance-spin wrapper, and a swaying body
   whose thickness is faked with stacked
   layers. The device is deliberately a dark
   physical object in BOTH themes.
   ─────────────────────────────────────── */
.hero-device {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone-scene {
  position: relative;
  perspective: 1400px;
  padding: var(--sp-2) var(--sp-6) var(--sp-4);
}

/* Soft ground shadow */
.phone-scene::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 62%;
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(7px);
  pointer-events: none;
}

.phone-spin,
.phone3d {
  transform-style: preserve-3d;
}

.phone-spin {
  animation: phoneIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone3d {
  position: relative;
  width: clamp(230px, 22vw, 280px);
  aspect-ratio: 9 / 18.6;
  animation: phoneSway 14s ease-in-out 1.4s infinite;
}

/* JS pointer-tilt takes over the transform */
.phone3d.is-tilting {
  animation: none;
  transition: transform 0.22s ease-out;
}

@keyframes phoneIn {
  from { opacity: 0; transform: rotateY(-150deg) scale(0.86); }
  to   { opacity: 1; transform: rotateY(0deg) scale(1); }
}

@keyframes phoneSway {
  0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
  25%      { transform: rotateY(-15deg) rotateX(3deg); }
  75%      { transform: rotateY(17deg) rotateX(-4deg); }
}

.phone-face,
.phone-back,
.phone-thick span {
  position: absolute;
  inset: 0;
  border-radius: 42px;
}

/* Fake thickness: nine stacked slices between the faces */
.phone-thick span {
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.phone-thick span:nth-child(1) { transform: translateZ(-9px); }
.phone-thick span:nth-child(2) { transform: translateZ(-6.8px); }
.phone-thick span:nth-child(3) { transform: translateZ(-4.5px); }
.phone-thick span:nth-child(4) { transform: translateZ(-2.3px); }
.phone-thick span:nth-child(5) { transform: translateZ(0px); }
.phone-thick span:nth-child(6) { transform: translateZ(2.3px); }
.phone-thick span:nth-child(7) { transform: translateZ(4.5px); }
.phone-thick span:nth-child(8) { transform: translateZ(6.8px); }
.phone-thick span:nth-child(9) { transform: translateZ(9px); }

.phone-face {
  transform: translateZ(11px);
  backface-visibility: hidden;
  background: #101013;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.phone-back {
  transform: rotateY(180deg) translateZ(11px);
  backface-visibility: hidden;
  background: linear-gradient(150deg, #191920 0%, #0c0c0f 65%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-cam {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.phone-cam::before,
.phone-cam::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2c2c34, #050506 70%);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.phone-cam::before { top: 7px; left: 7px; }
.phone-cam::after  { bottom: 7px; right: 7px; }

.phone-back-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  color: rgba(201, 168, 76, 0.45);
  text-indent: 0.35em;
}

/* ── Screen ── */
.phone-screen {
  position: absolute;
  inset: 9px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(172deg, #17181d 0%, #101116 55%, #0c0d12 100%);
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 12px 16px 16px;
  font-family: "Inter", sans-serif;
}

.ps-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: rgba(240, 236, 226, 0.75);
  padding: 2px 4px 0;
}

.ps-sig {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}
.ps-sig i {
  width: 3px;
  border-radius: 1px;
  background: rgba(240, 236, 226, 0.65);
}
.ps-sig i:nth-child(1) { height: 4px; }
.ps-sig i:nth-child(2) { height: 6px; }
.ps-sig i:nth-child(3) { height: 8px; }

.ps-app-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.ps-app-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0a0a0b;
  background: linear-gradient(140deg, #dbbe6a, #c9a84c 60%, #a8873a);
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.28);
}

.ps-app-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.ps-app-name {
  font-size: 13px;
  font-weight: 600;
  color: #f0ece2;
}

.ps-app-dev {
  font-size: 10px;
  color: rgba(168, 159, 144, 0.9);
}

.ps-rating-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(201, 168, 76, 0.18);
}

.ps-rating-value {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: #f0ece2;
  min-width: 2.1ch;
  font-variant-numeric: tabular-nums;
}

.ps-rating-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ps-stars {
  position: relative;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

.ps-stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 74%;
  overflow: hidden;
  color: #c9a84c;
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.phone-screen.is-live .ps-stars-fill { width: 96%; }

.ps-rating-count {
  font-size: 10px;
  color: rgba(168, 159, 144, 0.9);
}

.ps-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 2px;
}

.ps-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-bar span {
  font-size: 9px;
  color: rgba(168, 159, 144, 0.85);
  width: 6px;
  text-align: right;
  flex-shrink: 0;
}

.ps-bar i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: block;
}

.ps-bar b {
  display: block;
  height: 100%;
  width: 6%;
  border-radius: 3px;
  background: linear-gradient(90deg, #a8873a, #c9a84c);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-screen.is-live .ps-bar b { width: var(--w, 6%); }
.phone-screen.is-live .ps-bar:nth-child(1) b { transition-delay: 0.15s; }
.phone-screen.is-live .ps-bar:nth-child(2) b { transition-delay: 0.28s; }
.phone-screen.is-live .ps-bar:nth-child(3) b { transition-delay: 0.41s; }
.phone-screen.is-live .ps-bar:nth-child(4) b { transition-delay: 0.54s; }
.phone-screen.is-live .ps-bar:nth-child(5) b { transition-delay: 0.67s; }

.ps-install {
  margin-top: 2px;
  padding: 9px 0;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0a0a0b;
  background: linear-gradient(140deg, #dbbe6a, #c9a84c);
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.22);
}

.ps-trend {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-trend svg {
  width: 100%;
  height: 26px;
  display: block;
}

.ps-trend-path {
  fill: none;
  stroke: #c9a84c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  transition: stroke-dashoffset 1.8s ease 0.5s;
}

.phone-screen.is-live .ps-trend-path { stroke-dashoffset: 0; }

.ps-trend span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(201, 168, 76, 0.75);
}

/* ── Floating depth chips ── */
.phone-float {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(14, 14, 18, 0.82);
  border: 1px solid rgba(201, 168, 76, 0.30);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  --tz: 48px;
}

.phone-float--a {
  top: 13%;
  right: -22%;
  --tz: 58px;
  transform: translateZ(58px);
  animation: floatBob 6.5s ease-in-out 1.6s infinite;
}

.phone-float--b {
  bottom: 16%;
  left: -25%;
  --tz: 44px;
  transform: translateZ(44px);
  animation: floatBob 7.5s ease-in-out 2.4s infinite;
}

@keyframes floatBob {
  0%, 100% { transform: translateZ(var(--tz)) translateY(0); }
  50%      { transform: translateZ(var(--tz)) translateY(-9px); }
}

.pf-num {
  font-size: 15px;
  font-weight: 600;
  color: #dbbe6a;
  font-variant-numeric: tabular-nums;
}

.pf-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(168, 159, 144, 0.95);
}

/* Light theme: the device stays a dark object; only ambience changes */
html[data-theme="light"] .phone-scene::before {
  background: radial-gradient(ellipse, rgba(26, 22, 12, 0.30), transparent 70%);
}
html[data-theme="light"] .phone-face {
  box-shadow: 0 24px 60px rgba(26, 22, 12, 0.28);
}
html[data-theme="light"] .phone-float {
  box-shadow: 0 14px 36px rgba(26, 22, 12, 0.28);
}

/* =========================================
   STAT BAND — proof at a glance
   Replaces the text trust-strip.
   ========================================= */
.stat-band {
  padding: var(--sp-6) 0 var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.stat-tile {
  text-align: center;
  padding: var(--sp-2) var(--sp-2);
}

.stat-tile + .stat-tile {
  border-left: 1px solid var(--border-subtle);
}

.stat-value {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 7px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-soft);
}

/* ── Category marquee ── */
.category-strip {
  margin-top: var(--sp-5);
}

.category-strip-label {
  text-align: center;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  opacity: 0.85;
  margin-bottom: var(--sp-2);
}

.category-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.category-track {
  display: flex;
  width: max-content;
  animation: catScroll 32s linear infinite;
}

.category-track span {
  flex-shrink: 0;
  margin-right: var(--sp-2);
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--surface);
  white-space: nowrap;
}

@keyframes catScroll {
  to { transform: translateX(-50%); }
}

.category-marquee:hover .category-track {
  animation-play-state: paused;
}

/* =========================================
   NAV CTA — Rating Check as pill
   ========================================= */
.main-nav .nav-cta {
  border: 1px solid rgba(201, 168, 76, 0.42);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.05rem;
  color: var(--accent);
  font-weight: 500;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .main-nav .nav-cta:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
  }
}

.main-nav .nav-cta.active { color: var(--accent); }
.main-nav .nav-cta.active::after { display: none; }

html[data-theme="light"] .main-nav .nav-cta {
  border-color: rgba(138, 109, 31, 0.45);
}

/* =========================================
   SPD DEMO NOTE
   ========================================= */
.spd-demo-note {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: var(--sp-3);
  padding: 0.5rem 0.9rem;
  border: 1px dashed rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* =========================================
   RESPONSIVE — new components
   ========================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: var(--sp-6);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .hero-device {
    order: 2;
    margin-top: var(--sp-2);
  }

  .phone-scene {
    padding-inline: var(--sp-8);
  }

  .phone3d {
    width: clamp(200px, 54vw, 250px);
  }

  /* Pull the chips inward so nothing clips at the container edge */
  .phone-float--a { right: -14%; }
  .phone-float--b { left: -16%; }
}

@media (max-width: 768px) {
  .stat-band-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3) var(--sp-2);
  }

  .stat-tile + .stat-tile { border-left: none; }
  .stat-tile:nth-child(even) { border-left: 1px solid var(--border-subtle); }

  /* Drawer: the CTA becomes a normal row in gold */
  .main-nav .nav-cta {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem var(--sp-4);
    color: var(--accent);
  }
}

@media (max-width: 480px) {
  .phone-float { padding: 8px 11px; }
  .pf-num { font-size: 13px; }
  .phone-float--a { right: -8%; }
  .phone-float--b { left: -9%; }
}

/* =========================================
   REDUCED MOTION — new components
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .phone-spin,
  .phone3d,
  .phone-float {
    animation: none;
  }

  .phone-spin { opacity: 1; }
  .phone3d { transform: rotateY(-14deg) rotateX(3deg); }
  .phone-float--a { transform: translateZ(58px); }
  .phone-float--b { transform: translateZ(44px); }

  .ps-stars-fill,
  .ps-bar b,
  .ps-trend-path {
    transition: none;
  }

  .category-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--sp-1);
  }

  .category-track [data-dup] { display: none; }

  .category-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* =========================================
   REACTIVE PHONE — drag-to-spin
   ========================================= */
/* Vertical page scroll stays native on touch; horizontal drags spin the
   phone. No text/image ghosts while grabbing. */
.hero-device {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.phone-scene { cursor: grab; }
.phone-scene.is-grabbing { cursor: grabbing; }

/* While dragging or coasting, JS drives the transform every frame —
   transitions off so it tracks the hand exactly. Declared after
   .is-tilting so it wins the tie. */
.phone3d.is-dragging {
  animation: none;
  transition: none;
}

/* Released: one long ease back to a full turn, then the sway resumes */
.phone3d.is-settling {
  animation: none;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Discovery hint — fades permanently after the first grab */
.phone-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  opacity: 0.6;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.phone-scene.has-interacted .phone-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .phone3d.is-settling { transition: transform 0.2s ease; }
}

/* =========================================
   BLOG — grouped sections
   ========================================= */
/* Section headers live inside the posts grid — span the full row */
.blog-posts-grid .section-header {
  grid-column: 1 / -1;
  margin-bottom: var(--sp-2);
}

/* The two groups read as one flow */
.blog-posts-grid--secondary {
  padding-top: var(--sp-4);
}

/* =========================================
   REPORT EXTRACT (Services) — illustrative
   monthly rating-intelligence card
   ========================================= */
.report-extract {
  padding: var(--sp-12) 0;
  position: relative;
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  max-width: 880px;
  margin-inline: auto;
  box-shadow: var(--shadow-md);
}

.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-3);
}

.report-title {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.report-sub {
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
}

.redact-bar {
  display: inline-block;
  width: 74px;
  height: 0.85em;
  border-radius: 3px;
  background: repeating-linear-gradient(
    45deg,
    var(--text-soft),
    var(--text-soft) 3px,
    transparent 3px,
    transparent 5px
  );
  opacity: 0.55;
  vertical-align: middle;
}

.report-badge {
  flex-shrink: 0;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.report-block {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  min-width: 0;
}

.report-block--wide {
  grid-column: 1 / -1;
}

.report-block-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: var(--sp-2);
}

.report-rating-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.report-rating {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.report-delta {
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.04em;
}

.report-spark {
  width: 100%;
  height: 34px;
  display: block;
  margin: var(--sp-2) 0 var(--sp-1);
}

.report-spark-ref {
  stroke: var(--text-soft);
  stroke-width: 0.75;
  opacity: 0.5;
}

.report-spark-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 1.6s ease 0.3s;
}

.report-extract.visible .report-spark-path {
  stroke-dashoffset: 0;
}

.report-note {
  font-size: var(--text-xs);
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.report-theme,
.report-comp-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.45rem 0;
}

.report-theme span,
.report-comp-row span {
  flex: 0 0 46%;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
  min-width: 0;
}

.report-theme i,
.report-comp-row i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(128, 128, 128, 0.14);
  overflow: hidden;
  display: block;
}

.report-theme b,
.report-comp-row b {
  display: block;
  height: 100%;
  width: 5%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.55), var(--accent));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.report-extract.visible .report-theme b,
.report-extract.visible .report-comp-row b {
  width: var(--w, 5%);
}

.report-comp-row em {
  flex-shrink: 0;
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 2.6em;
  text-align: right;
}

.report-comp-row--you span,
.report-comp-row--you em {
  color: var(--text);
  font-weight: 600;
}

.report-foot {
  margin: var(--sp-3) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-soft);
  line-height: 1.7;
}

.report-foot a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

@media (max-width: 768px) {
  .report-grid {
    grid-template-columns: 1fr;
  }

  .report-theme span,
  .report-comp-row span {
    flex-basis: 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-spark-path {
    stroke-dashoffset: 0;
    transition: none;
  }

  .report-theme b,
  .report-comp-row b {
    width: var(--w, 5%);
    transition: none;
  }
}

/* =========================================================
   INTERACTIVE WIDGETS v1  (Home dual-proof · Work scrubber ·
   Services gauge · About accountability constellation)
   Namespaced: .proof-duo / .tj- / .icg- / .acc-
   ========================================================= */

/* ---- HOME: dual proof cards ---- */
.proof-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.proof-duo-card {
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  position: relative;
}
.proof-duo-tag {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.proof-duo-big {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem; letter-spacing: .01em; line-height: 1.05;
  margin: .5rem 0 .1rem;
}
.proof-duo-big .pd-arrow { color: var(--text-soft); }
.proof-duo-big small { font-size: 1.05rem; color: var(--text-muted); }
.proof-duo-desc { font-size: .86rem; color: var(--text-muted); }
.proof-duo-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); flex-wrap: wrap; }
.proof-duo-row span {
  font-size: .68rem; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .06em;
}
.proof-duo-row span b {
  display: block; font-size: 1.05rem; color: var(--text);
  font-family: "Cormorant Garamond", serif; letter-spacing: .02em;
}
.proof-duo-row span b.is-up { color: #6fae7d; }

/* ---- WORK: trajectory scrubber ---- */
.tj-wrap {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: var(--sp-6); align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-5);
}
.tj-chart { position: relative; user-select: none; touch-action: none; }
.tj-chart svg { width: 100%; height: auto; display: block; cursor: ew-resize; }
.tj-grid { stroke: var(--border-subtle); }
.tj-line-4 { stroke: rgba(207,106,67,.5); stroke-dasharray: 3 6; }
.tj-curve {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(201,168,76,.4));
}
.tj-area { fill: url(#tjFill); opacity: .5; }
.tj-dot { fill: var(--accent); filter: drop-shadow(0 0 8px rgba(201,168,76,.7)); }
.tj-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .5; }
.tj-hint {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft); text-align: center; margin-top: var(--sp-2);
}
.tj-hint b { color: var(--accent); }
.tj-star {
  font-family: "Cormorant Garamond", serif; font-size: 3.8rem;
  line-height: 1; letter-spacing: .01em;
}
.tj-star .st { color: var(--accent); font-size: 2rem; vertical-align: super; }
.tj-state {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; margin: .5rem 0 1.2rem;
}
.tj-below { color: var(--rust); } .tj-above { color: #6fae7d; }
.tj-bars { display: flex; flex-direction: column; gap: .4rem; }
.tj-bar { display: flex; align-items: center; gap: .6rem; font-size: .72rem; color: var(--text-soft); }
.tj-bar i { flex: 1; height: 7px; background: rgba(255,255,255,.05); border-radius: 4px; overflow: hidden; }
.tj-bar i b { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .1s linear; }
.tj-meta { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); }
.tj-meta span { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.tj-meta span b { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; color: var(--text); letter-spacing: .02em; }

/* ---- SERVICES: install-conversion gauge ---- */
.icg-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-6); align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-5);
}
.icg-stage { position: relative; user-select: none; touch-action: none; }
.icg-stage svg { width: 100%; height: auto; display: block; cursor: grab; }
.icg-stage svg:active { cursor: grabbing; }
.icg-track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 14; stroke-linecap: round; }
.icg-fill { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke .2s; }
.icg-needle { stroke-width: 3; stroke-linecap: round; transition: stroke .2s; }
.icg-hub { fill: var(--surface-raised); stroke-width: 2; }
.icg-thresh { stroke: rgba(240,236,226,.35); stroke-width: 1.5; stroke-dasharray: 2 4; }
.icg-thresh-lab { fill: var(--text-soft); font-size: 9px; font-family: "Inter", sans-serif; letter-spacing: .1em; }
.icg-val { fill: var(--text); font-family: "Cormorant Garamond", serif; font-size: 44px; text-anchor: middle; }
.icg-val .st { fill: var(--accent); }
.icg-read h3 { font-size: 1.6rem; margin-bottom: .3rem; transition: color .2s; }
.icg-state { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: .8rem; }
.icg-hint { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); margin-top: var(--sp-2); }
.icg-hint b { color: var(--accent); }

/* ---- ABOUT: accountability constellation ---- */
.acc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.acc-stage { position: relative; aspect-ratio: 1/1; max-width: 420px; width: 100%; margin: 0 auto; }
.acc-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.acc-link { stroke: var(--border-subtle); stroke-width: 1.5; transition: stroke .35s, opacity .35s; }
.acc-link.lit { stroke: var(--accent); opacity: .9; }
.acc-node { position: absolute; transform: translate(-50%, -50%); text-align: center; }
.acc-c { left: 50%; top: 50%; }
.acc-top { left: 50%; top: 9%; }
.acc-right { left: 88%; top: 50%; }
.acc-bottom { left: 50%; top: 91%; }
.acc-left { left: 12%; top: 50%; }
.acc-node .acc-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--text-soft); margin: 0 auto .5rem; transition: .35s; }
.acc-node .acc-lab { font-size: .74rem; letter-spacing: .04em; color: var(--text-muted); white-space: nowrap; transition: .35s; }
.acc-node .acc-tip { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); opacity: 0; transition: .3s; height: 0; }
.acc-node.sat:hover .acc-dot { background: var(--accent); box-shadow: 0 0 14px 3px rgba(201,168,76,.5); }
.acc-node.sat:hover .acc-lab { color: var(--text); }
.acc-node.sat:hover .acc-tip { opacity: 1; height: auto; margin-top: .2rem; }
.acc-node.center .acc-dot { width: 26px; height: 26px; background: var(--surface-raised); border: 2px solid var(--text-soft); transition: .5s; }
.acc-node.center .acc-lab { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; letter-spacing: .16em; color: var(--text-soft); }
.acc-stage.owned .acc-link { stroke: var(--accent); opacity: .85; }
.acc-stage.owned .acc-node.center .acc-dot { width: 34px; height: 34px; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 26px 6px rgba(201,168,76,.5); }
.acc-stage.owned .acc-node.center .acc-lab { color: var(--accent); font-size: 1.35rem; }
.acc-stage.owned .acc-node.sat .acc-tip { color: #6fae7d; }
.acc-btn { margin-top: var(--sp-4); }

@media (max-width: 820px) {
  .proof-duo, .tj-wrap, .icg-wrap, .acc-wrap { grid-template-columns: 1fr; gap: var(--sp-4); }
  .tj-wrap, .icg-wrap { padding: var(--sp-4); }
}
@media (max-width: 560px) {
  .acc-stage { max-width: 300px; }
  .acc-node .acc-lab { font-size: .68rem; }
  .acc-right { left: 82%; }
  .acc-left { left: 18%; }
  .acc-top { top: 11%; }
  .acc-bottom { top: 89%; }
}
/* ---- CONTACT: first-contact path (calm stepper) ---- */
.cpath { position: relative; margin-top: var(--sp-6); }
.cpath-track {
  position: absolute; left: 12%; right: 12%; top: 11px; height: 2px;
  background: var(--border-subtle); border-radius: 2px; overflow: hidden;
}
.cpath-track .cpath-fill {
  display: block; height: 100%; width: 0%;
  background: var(--accent); transition: width .7s ease;
}
.cpath-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
}
.cpath-step { position: relative; text-align: center; padding-top: var(--sp-4); cursor: default; }
.cpath-node {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--text-soft);
  transition: .4s; z-index: 1;
}
.cpath-step.is-active .cpath-node,
.cpath-step:hover .cpath-node {
  border-color: var(--accent); background: var(--accent);
  box-shadow: 0 0 14px 3px rgba(201,168,76,.45);
}
.cpath-when {
  display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: .3rem; transition: color .4s;
}
.cpath-step.is-active .cpath-when, .cpath-step:hover .cpath-when { color: var(--accent); }
.cpath-step h4 { font-size: 1.15rem; margin-bottom: .3rem; transition: color .4s; }
.cpath-step p { font-size: .82rem; color: var(--text-muted); margin: 0; }
.cpath-step:not(.is-active) h4 { color: var(--text-muted); }
.cpath-step.is-active h4, .cpath-step:hover h4 { color: var(--text); }

@media (max-width: 720px) {
  .cpath-track { display: none; }
  .cpath-steps { grid-template-columns: 1fr; gap: var(--sp-3); }
  .cpath-step { text-align: left; padding: 0 0 0 var(--sp-3); }
  .cpath-node { left: 0; top: 5px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tj-curve, .tj-dot { filter: none; }
  .icg-fill, .icg-needle, .acc-link, .acc-node .acc-dot, .acc-node .acc-lab { transition: none; }
  .cpath-track .cpath-fill, .cpath-node, .cpath-when, .cpath-step h4 { transition: none; }
}
