/* ========================================================================
   MINUCI ADVISORY — SHARED STYLES
   Editorial-classical with Promethean restraint.
   Cream paper, deep charcoal, ember accent. Cormorant + Cinzel + Manrope.
   ======================================================================== */

/* ---------- Tokens ---------- */
:root {
  --cream:        #F5EFE0;
  --cream-soft:   #EFE7D2;
  --cream-deep:   #E8DFC4;
  --paper:        #FAF6EA;
  --charcoal:     #2C2C2C;
  --charcoal-2:   #1A1A1A;
  --charcoal-3:   #0F0F0F;
  --ink:          #141414;
  --ember:        #E8722C;
  --ember-deep:   #C75F1F;
  --ember-glow:   #F39A5F;
  --ember-soft:   #F8E2D0;

  --max:          1320px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);

  --serif:        'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --roman:        'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans:         'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm:    2px;
  --radius:       4px;

  --ease:         cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ember); color: var(--cream); }

/* ---------- Typography ---------- */
.serif       { font-family: var(--serif); font-weight: 500; }
.serif-italic{ font-family: var(--serif); font-style: italic; font-weight: 500; }
.roman       { font-family: var(--roman); }
.eyebrow {
  font-family: var(--roman);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal);
}
.eyebrow-ember { color: var(--ember-deep); }
.eyebrow-cream { color: var(--cream); }

.rubric {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.rubric::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ember);
  flex: 0 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--charcoal);
}

.display-xl { font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: 1.02; }
.display-lg { font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.06; }
.display-md { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; }
.display-sm { font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.18; }

.italic-em em,
.italic-em i {
  font-style: italic;
  color: var(--ember);
  font-weight: 500;
}

p { margin: 0; }
.lead {
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
  line-height: 1.78;
  color: rgba(44, 44, 44, 0.86);
  max-width: 64ch;
}
.body-md {
  font-size: 1rem;
  line-height: 1.74;
  color: rgba(44, 44, 44, 0.86);
}
.body-sm {
  font-size: 0.93rem;
  line-height: 1.72;
  color: rgba(44, 44, 44, 0.78);
}

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section          { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-tight    { padding-block: clamp(3rem, 6vw, 5.5rem); position: relative; }
.section-cream    { background: var(--cream); }
.section-paper    { background: var(--paper); }
.section-soft     { background: var(--cream-soft); }
.section-dark     { background: var(--charcoal-2); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark .lead, .section-dark .body-md, .section-dark .body-sm { color: rgba(245, 239, 224, 0.86); }
.section-dark .italic-em em { color: var(--ember-glow); }

/* ---------- Paper grain ---------- */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.45;
  z-index: 0;
}
.section-dark.grain::before {
  mix-blend-mode: screen;
  opacity: 0.10;
}
.grain > * { position: relative; z-index: 1; }

.dot-grid {
  background-image: radial-gradient(rgba(245, 239, 224, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Rules ---------- */
.rule-ember {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 22%, var(--ember) 78%, transparent);
}
.rule-charcoal {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 44, 44, 0.4) 18%, rgba(44, 44, 44, 0.4) 82%, transparent);
}
.double-rule {
  height: 6px;
  border-top: 1px solid rgba(44, 44, 44, 0.55);
  border-bottom: 1px solid rgba(44, 44, 44, 0.18);
}
.double-rule.light {
  border-top-color: rgba(245, 239, 224, 0.55);
  border-bottom-color: rgba(245, 239, 224, 0.18);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: relative;
  z-index: 30;
  padding-top: clamp(1rem, 2.4vw, 1.75rem);
}
.site-header .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}
/* Nav lockup (logo_type_2_bg.webp) — rembg removed the off-white background,
   so no blend mode is needed; corner clip kept to hide the residual watermark. */
.brand-link img {
  clip-path: inset(0 5% 5% 0);
}
/* Hero torch (logo_type_4_bg.png) — rembg removed the white background but kept the
   small generated-image watermark intact (it read as foreground). Clip the corner and
   `mix-blend-mode: multiply` to wash out any remaining anti-aliasing halo. */
.torch-stage img {
  clip-path: inset(0 16% 10% 0);
  mix-blend-mode: multiply;
}

/* Footer mark — typeset wordmark instead of an image so it reads cleanly on charcoal */
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--roman);
  font-size: 0.92rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
}
.footer-mark .footer-mark-dot {
  width: 5px;
  height: 5px;
  background: var(--ember);
  border-radius: 999px;
  display: inline-block;
}

.brand-link img { height: clamp(36px, 4.4vw, 52px); width: auto; }
.brand-link:focus-visible { outline: 2px solid var(--ember); outline-offset: 6px; }

.site-nav {
  display: none;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 880px) { .site-nav { display: flex; } }

/* Mobile menu toggle (hamburger) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(44, 44, 44, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  transition: border-color 200ms ease;
}
.nav-toggle:hover { border-color: rgba(44, 44, 44, 0.55); }
.nav-toggle:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.nav-toggle span {
  width: 16px;
  height: 1px;
  background: var(--charcoal);
  transition: transform 240ms var(--ease), opacity 200ms ease;
}
@media (min-width: 880px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  margin-top: 1px;
  background: var(--cream);
  border-bottom: 1px solid rgba(44, 44, 44, 0.18);
  padding: 1.25rem var(--gutter) 1.5rem;
  z-index: 25;
  flex-direction: column;
  gap: 0.85rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 0.6rem 0; font-size: 0.78rem; }
.mobile-nav .btn { margin-top: 0.5rem; align-self: flex-start; }
@media (min-width: 880px) { .mobile-nav { display: none !important; } }
.site-header { position: relative; }

.nav-link {
  position: relative;
  font-family: var(--roman);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0;
  color: var(--charcoal);
  transition: color 200ms ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--ember);
  transition: right 240ms var(--ease);
}
.nav-link:hover { color: var(--charcoal-2); }
.nav-link:hover::after { right: 0; }
.nav-link:focus-visible { outline: 2px solid var(--ember); outline-offset: 6px; }
.nav-link[aria-current="page"]::after {
  right: 0;
  background: var(--ember);
}

.site-header .nav-cta { display: none; }
@media (min-width: 1080px) { .site-header .nav-cta { display: inline-flex; } }

.site-header-rule {
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--roman);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 240ms var(--ease), background 240ms ease, border-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
  will-change: transform;
}
.btn-arrow {
  width: 14px; height: 14px;
  transition: transform 240ms var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-ember {
  background: var(--ember);
  color: var(--cream);
  border-color: var(--ember);
  box-shadow: 0 14px 30px -16px rgba(232, 114, 44, 0.55), inset 0 2px 0 0 rgba(44, 44, 44, 0.06);
}
.btn-ember:hover {
  background: var(--ember-deep);
  border-color: var(--ember-deep);
  transform: translateY(-1px);
  box-shadow: 0 22px 38px -16px rgba(232, 114, 44, 0.55);
}
.btn-ember:active { transform: translateY(0); }
.btn-ember:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 4px; }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(44, 44, 44, 0.35);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  color: var(--charcoal-2);
  transform: translateY(-1px);
}
.btn-ghost:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

.section-dark .btn-ghost {
  color: var(--cream);
  border-color: rgba(245, 239, 224, 0.45);
}
.section-dark .btn-ghost:hover {
  border-color: var(--cream);
  color: var(--cream);
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.55fr 1fr; gap: clamp(3rem, 5vw, 5rem); align-items: start; }
}

.hero h1 { margin-top: clamp(1.25rem, 2vw, 1.75rem); }
.hero-descriptor {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.45;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  color: rgba(44, 44, 44, 0.92);
  max-width: 38ch;
}
.hero-mission {
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}
.hero-ctas {
  margin-top: clamp(2rem, 3.4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

.hero-side {
  border-left: 1px solid rgba(44, 44, 44, 0.15);
  padding-left: clamp(1rem, 2.4vw, 2rem);
}
@media (max-width: 999px) {
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(44, 44, 44, 0.15); padding-top: 1.75rem; }
}
.hero-thesis {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.4vw, 1.32rem);
  line-height: 1.5;
  color: var(--charcoal);
  margin-top: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 36ch;
  text-align: center;
}
.hero-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.hero-trio .label {
  font-family: var(--roman);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.6);
}
.hero-trio .value {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.6vw, 1.55rem);
  margin-top: 0.4rem;
  color: var(--charcoal);
}

/* ---------- Animated torch glyph (CSS-driven, around the webp) ---------- */
.torch-stage {
  position: relative;
  margin: 0 auto;
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}
.torch-stage::before {
  content: '';
  position: absolute;
  inset: 4% 12% 27% 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 114, 44, 0.75), rgba(232, 114, 44, 0.20) 55%, transparent 78%);
  filter: blur(17px);
  z-index: 0;
  animation: torch-glow 2.25s ease-in-out infinite;
  transform-origin: center 65%;
}
.torch-stage::after {
  content: '';
  position: absolute;
  inset: 8% 23% 33% 23%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(252, 192, 122, 0.85), rgba(243, 154, 95, 0.30) 50%, transparent 73%);
  filter: blur(9px);
  z-index: 0;
  animation: torch-glow-tight 1.6s ease-in-out infinite;
  animation-delay: 0.2s;
  transform-origin: center 60%;
  mix-blend-mode: screen;
}
.torch-stage img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  animation: torch-breath 5.4s ease-in-out infinite;
  transform-origin: center bottom;
}
.torch-spark {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--ember-glow);
  border-radius: 999px;
  filter: blur(0.4px);
  z-index: 2;
  opacity: 0;
}
.torch-spark.s1 { left: 48%; top: 28%; animation: spark 7.5s ease-out infinite; animation-delay: 0.8s; }
.torch-spark.s2 { left: 56%; top: 22%; animation: spark 8.5s ease-out infinite; animation-delay: 3.4s; }
.torch-spark.s3 { left: 41%; top: 32%; animation: spark 9s   ease-out infinite; animation-delay: 6.2s; }

@keyframes torch-glow {
  0%, 100% { transform: scale(0.89); opacity: 0.63; }
  50%      { transform: scale(1.16); opacity: 1; }
}
@keyframes torch-glow-tight {
  0%, 100% { transform: scale(0.84); opacity: 0.51; }
  50%      { transform: scale(1.21); opacity: 1; }
}
@keyframes torch-breath {
  0%, 100% { transform: scaleY(1)    translateY(0);    }
  50%      { transform: scaleY(1.012) translateY(-1px); }
}
@keyframes spark {
  0%   { opacity: 0; transform: translateY(0)    scale(0.8); }
  10%  { opacity: 0.9; }
  60%  { opacity: 0.6; transform: translateY(-50px) scale(1); }
  100% { opacity: 0;   transform: translateY(-90px) scale(0.6); }
}

/* ---------- Capability teaser cards (Home) ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
@media (min-width: 880px) { .cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cap-card {
  position: relative;
  padding-left: 1.5rem;
}
.cap-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(44, 44, 44, 0.18);
}
.cap-numeral {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 0.85;
  color: var(--ember);
  letter-spacing: -0.02em;
}
.cap-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.2;
  margin-top: 1.25rem;
}
.cap-card p { margin-top: 1.1rem; }
.cap-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--roman);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
  transition: color 200ms ease, gap 240ms var(--ease);
}
.cap-link:hover { color: var(--ember); gap: 0.75rem; }
.cap-link:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.section-dark .cap-link { color: var(--ember-glow); }

/* ---------- Toolkit grid ---------- */
.toolkit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(2.25rem, 3.5vw, 3rem);
  border-top: 1px solid rgba(44, 44, 44, 0.18);
}
.toolkit-cell {
  padding: clamp(1.5rem, 2.4vw, 2rem) 0;
  border-bottom: 1px solid rgba(44, 44, 44, 0.15);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 760px) {
  .toolkit-cell {
    grid-template-columns: minmax(180px, 24%) 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}
.toolkit-cell .roman-label {
  font-family: var(--roman);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.toolkit-cell .toolkit-body {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.32rem);
  line-height: 1.45;
  color: rgba(44, 44, 44, 0.92);
}
.section-dark .toolkit-grid { border-top-color: rgba(245, 239, 224, 0.18); }
.section-dark .toolkit-cell { border-bottom-color: rgba(245, 239, 224, 0.13); }
.section-dark .toolkit-cell .roman-label { color: var(--ember-glow); }
.section-dark .toolkit-cell .toolkit-body { color: rgba(245, 239, 224, 0.92); }

.method-strip {
  margin-top: 1.75rem;
  font-family: var(--roman);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.78);
  line-height: 1.9;
}
.method-strip .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--ember);
  border-radius: 999px;
  vertical-align: middle;
  margin: 0 0.65rem;
  transform: translateY(-1px);
}
.section-dark .method-strip { color: rgba(245, 239, 224, 0.65); }

/* ---------- Engagement tier teaser ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(2.5rem, 4vw, 3rem);
  background: rgba(44, 44, 44, 0.18);
  border: 1px solid rgba(44, 44, 44, 0.18);
}
@media (min-width: 800px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier-cell {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tier-cell .roman-label {
  font-family: var(--roman);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.tier-cell h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  line-height: 1.18;
}
.tier-cell .duration {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(44, 44, 44, 0.6);
  font-size: 1rem;
}
.tier-cell p { margin-top: 0.4rem; }

/* ---------- Layer cards (KPI infrastructure) ---------- */
.layer-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 3.25rem);
}
@media (min-width: 880px) { .layer-stack { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.layer-card {
  position: relative;
  background: rgba(245, 239, 224, 0.65);
  border: 1px solid rgba(44, 44, 44, 0.14);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  transition: transform 320ms var(--ease), border-color 320ms ease, background 320ms ease;
}
.layer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 114, 44, 0.5);
  background: rgba(245, 239, 224, 1);
}
.layer-tag {
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--paper);
  padding: 0 0.55rem;
  font-family: var(--roman);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.layer-card .layer-meta {
  font-family: var(--roman);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.7);
  margin-top: 0.5rem;
}
.layer-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  margin-top: 0.6rem;
}
.layer-card p { margin-top: 0.85rem; }
.layer-pipes {
  margin-top: 1.25rem;
  font-family: var(--roman);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.7);
  line-height: 1.95;
}
.layer-pipes span {
  display: inline-block;
  border: 1px solid rgba(44, 44, 44, 0.18);
  padding: 0.2rem 0.55rem;
  margin: 0 0.2rem 0.35rem 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

/* ---------- Counterfactual mini-chart ---------- */
.chart-card {
  background: var(--paper);
  border: 1px solid rgba(44, 44, 44, 0.14);
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
  font-family: var(--roman);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.78);
}
.chart-legend .swatch {
  display: inline-block;
  width: 14px; height: 2px;
  vertical-align: middle;
  margin-right: 0.5rem;
  background: var(--charcoal);
}
.chart-legend .swatch.dashed {
  background: repeating-linear-gradient(90deg, var(--charcoal) 0 4px, transparent 4px 7px);
}
.chart-legend .swatch.ember {
  background: var(--ember);
  height: 8px;
  width: 14px;
  opacity: 0.55;
}

/* SVG path animations for counterfactual chart (triggered when in view) */
.chart-svg .path-observed,
.chart-svg .path-counterfactual {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.in-view .chart-svg .path-observed {
  animation: draw 1.6s var(--ease) forwards;
  animation-delay: 0.15s;
}
.in-view .chart-svg .path-counterfactual {
  animation: draw 1.6s var(--ease) forwards;
  animation-delay: 1.4s;
}
.chart-svg .effect-band { opacity: 0; }
.in-view .chart-svg .effect-band {
  animation: fade 0.9s ease forwards;
  animation-delay: 2.7s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Process / engagement step diagram ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(2.5rem, 4vw, 3rem);
  background: rgba(44, 44, 44, 0.18);
  border: 1px solid rgba(44, 44, 44, 0.18);
}
@media (min-width: 800px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  background: var(--paper);
  padding: clamp(1.5rem, 2.4vw, 2rem);
}
.process-step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ember);
}
.process-step h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  margin-top: 0.35rem;
}
.process-step p { margin-top: 0.7rem; font-size: 0.94rem; line-height: 1.7; color: rgba(44, 44, 44, 0.78); }

/* ---------- FAQ ---------- */
.faq-row {
  border-top: 1px solid rgba(44, 44, 44, 0.18);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 800px) { .faq-row { grid-template-columns: minmax(0, 38%) 1fr; gap: 2rem; } }
.faq-row:last-child { border-bottom: 1px solid rgba(44, 44, 44, 0.18); }
.faq-q {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}
.faq-a { color: rgba(44, 44, 44, 0.85); line-height: 1.74; }

/* ---------- Big CTA band ---------- */
.cta-band {
  background: var(--charcoal-2);
  color: var(--cream);
  padding-block: clamp(4rem, 7vw, 6.5rem);
  position: relative;
}
.cta-band h2 { color: var(--cream); }
.cta-band .lead { color: rgba(245, 239, 224, 0.85); max-width: 60ch; }
.cta-band .pull-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 6rem;
  line-height: 0.4;
  color: var(--ember);
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-3);
  color: var(--cream);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 3vw, 2.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}
.footer-mark img { height: 28px; width: auto; opacity: 0.92; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 1rem;
  color: rgba(245, 239, 224, 0.85);
  max-width: 32ch;
  line-height: 1.45;
}
.footer-blurb {
  margin-top: 1.5rem;
  color: rgba(245, 239, 224, 0.55);
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 38ch;
}
.footer-col h4 {
  font-family: var(--roman);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.75);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col a { color: rgba(245, 239, 224, 0.85); transition: color 200ms ease; }
.footer-col a:hover { color: var(--ember-glow); }
.footer-col a:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

.footer-disclosure {
  margin-top: 1.5rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid rgba(245, 239, 224, 0.08);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(245, 239, 224, 0.55);
  font-style: italic;
  max-width: 76ch;
}
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 239, 224, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 224, 0.55);
}
@media (min-width: 700px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom .roman {
  font-family: var(--roman);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.4);
}

/* ---------- Manifesto / strapline blocks ---------- */
.manifesto {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3.5vw, 3rem);
  align-items: end;
}
@media (min-width: 880px) {
  .manifesto { grid-template-columns: 1.4fr 1fr; align-items: end; }
}

/* ---------- Page hero (deeper pages) ---------- */
.page-hero {
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem);
}
.page-hero .eyebrow { display: inline-flex; }
.page-hero h1 { margin-top: 1.5rem; max-width: 18ch; }
.page-hero .lead { margin-top: 1.75rem; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 180ms; }
.reveal.delay-3 { transition-delay: 280ms; }
.reveal.delay-4 { transition-delay: 380ms; }
.reveal.delay-5 { transition-delay: 480ms; }

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

/* ========================================================================
   LIVE COMPONENTS — the site practicing what it preaches
   ======================================================================== */

/* ---------- Live KPI dashboard preview (home) ---------- */
.preview-frame {
  background: var(--paper);
  border: 1px solid rgba(44, 44, 44, 0.18);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  margin-top: clamp(2.5rem, 4vw, 3rem);
  position: relative;
}
.preview-tab {
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--paper);
  padding: 0 0.55rem;
  font-family: var(--roman);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.preview-frame .preview-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-family: var(--roman);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.7);
  border-bottom: 1px solid rgba(44, 44, 44, 0.12);
  padding-bottom: 0.85rem;
}
.preview-meta .live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ember-deep);
}
.preview-meta .live-pulse::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--ember);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(232,114,44,0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,114,44,0.55); transform: scale(1); }
  70%  { box-shadow: 0 0 0 8px rgba(232,114,44,0); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(232,114,44,0);    transform: scale(1); }
}

.kpi-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1.25rem;
  border: 1px solid rgba(44, 44, 44, 0.12);
}
@media (min-width: 720px) {
  .kpi-tiles { grid-template-columns: repeat(3, 1fr); }
  .kpi-tiles .kpi-tile + .kpi-tile { border-left: 1px solid rgba(44, 44, 44, 0.12); border-top: 0; }
}
.kpi-tile {
  padding: 1.15rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(44, 44, 44, 0.12);
}
.kpi-tile:first-child { border-top: 0; }
.kpi-tile .kpi-label {
  font-family: var(--roman);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.7);
}
.kpi-tile .kpi-value {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1;
  margin-top: 0.4rem;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
}
.kpi-tile .kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ember-deep);
}
.kpi-tile .kpi-trend.down { color: #8a3a1c; }
.kpi-tile .kpi-trend.flat { color: rgba(44, 44, 44, 0.55); }
.kpi-tile .kpi-spark {
  margin-top: 0.65rem;
  width: 100%;
  height: 36px;
}

.ai-readout {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem 1.25rem;
  border: 1px solid rgba(44, 44, 44, 0.14);
  background: rgba(245, 239, 224, 0.45);
  position: relative;
}
.ai-readout::before {
  content: 'AI weekly readout · auto-generated';
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--paper);
  padding: 0 0.55rem;
  font-family: var(--roman);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.ai-readout .ai-text {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(44, 44, 44, 0.92);
  margin: 0;
}

.preview-disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(44, 44, 44, 0.55);
  font-style: italic;
}

/* ---------- Interactive counterfactual chart controls ---------- */
.chart-controls {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44, 44, 44, 0.12);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 540px) {
  .chart-controls { grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
}
.chart-control label {
  display: block;
  font-family: var(--roman);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.78);
  margin-bottom: 0.35rem;
}
.chart-control input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 22px;
  cursor: pointer;
}
.chart-control input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(44,44,44,0.25);
  border-radius: 999px;
}
.chart-control input[type="range"]::-moz-range-track {
  height: 2px;
  background: rgba(44,44,44,0.25);
  border-radius: 999px;
}
.chart-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--ember);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(44,44,44,0.25);
  margin-top: -7px;
  cursor: grab;
}
.chart-control input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--ember);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(44,44,44,0.25);
  cursor: grab;
}
.chart-control .chart-value {
  display: inline-block;
  margin-left: 0.3rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--charcoal);
  font-feature-settings: "tnum";
}
.chart-resample {
  font-family: var(--roman);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid rgba(44, 44, 44, 0.35);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.chart-resample:hover { border-color: var(--charcoal); color: var(--charcoal-2); }
.chart-resample:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

.measured-effect {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(44, 44, 44, 0.2);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--charcoal);
}
.measured-effect .me-num {
  font-style: italic;
  color: var(--ember);
  font-weight: 500;
  font-feature-settings: "tnum";
}
.measured-effect .me-ci {
  font-family: var(--roman);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.78);
  margin-left: 0.5rem;
}

/* The interactive chart no longer relies on the .in-view animation;
   set the paths to fully drawn by default. */
.chart-svg.interactive .path-observed,
.chart-svg.interactive .path-counterfactual { stroke-dasharray: none; stroke-dashoffset: 0; }
.chart-svg.interactive .effect-band { opacity: 1; }

/* ---------- Self-instrumenting session analytics (footer) ---------- */
.session-stats {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 239, 224, 0.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: rgba(245, 239, 224, 0.7);
  line-height: 1.6;
}
@media (min-width: 700px) {
  .session-stats {
    grid-template-columns: minmax(0, 35%) 1fr;
    gap: 2.25rem;
    align-items: start;
  }
}
.session-stats .stats-label {
  font-family: var(--roman);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.7);
  margin-bottom: 0.5rem;
}
.session-stats .stats-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.session-stats .stats-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ember);
  display: inline-block;
}
.session-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}
@media (min-width: 600px) {
  .session-stats .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.session-stats .stats-grid .stat .label {
  font-family: var(--roman);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.7);
}
.session-stats .stats-grid .stat .value {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-top: 0.2rem;
  color: var(--cream);
  font-feature-settings: "tnum";
}
.session-stats .stats-note {
  font-style: italic;
  color: rgba(245, 239, 224, 0.5);
}

/* ---------- Generic helpers ---------- */
.col-2 { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 3vw, 3rem); }
@media (min-width: 880px) { .col-2 { grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 5vw, 4.5rem); } }

.flex-col { display: flex; flex-direction: column; }
.gap-md   { gap: 1rem; }
.gap-lg   { gap: 1.75rem; }
.mt-sm    { margin-top: 0.75rem; }
.mt-md    { margin-top: 1.5rem; }
.mt-lg    { margin-top: 2.5rem; }
.mt-xl    { margin-top: clamp(3rem, 5vw, 4.5rem); }

.muted    { color: rgba(44, 44, 44, 0.65); }
.section-dark .muted { color: rgba(245, 239, 224, 0.6); }
.italic   { font-style: italic; font-family: var(--serif); font-weight: 500; }
