/* ===========================================
   HVDA — hvdaccel.com
   Enhanced visual design with data visualizations
   =========================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --plum: #80276b;
  --plum-dark: #531945;
  --plum-deep: #2E0D24;
  --plum-deeper: #1c0817;
  --plum-light: #9A3582;
  --plum-bright: #b44a9e;

  /* Accent */
  --gold: #E8C876;
  --gold-soft: #F0D99A;
  --gold-deep: #c9a858;

  /* Text */
  --white: #ffffff;
  --white-soft: #F5F0F2;
  --white-muted: rgba(255, 255, 255, 0.78);
  --white-dim: rgba(255, 255, 255, 0.58);

  /* Surfaces / borders */
  --surface-light: rgba(255, 255, 255, 0.05);
  --surface-lighter: rgba(255, 255, 255, 0.09);
  --surface-gold: rgba(232, 200, 118, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-gold: rgba(232, 200, 118, 0.32);

  /* Typography */
  --font-base: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale (fluid) */
  --fs-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.82rem);
  --fs-sm: clamp(0.88rem, 0.85rem + 0.12vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --fs-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --fs-3xl: clamp(2.4rem, 1.6rem + 3.8vw, 4.2rem);
  --fs-mega: clamp(3rem, 1.8rem + 6vw, 6rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7rem;
  --space-3xl: 9rem;

  /* Layout */
  --maxw: 1200px;
  --maxw-wide: 1360px;
  --maxw-narrow: 760px;
  --radius: 6px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white-soft);
  background: var(--plum-deeper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0 0 var(--space-md) 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  font-family: var(--font-display);
}
h1 { font-size: var(--fs-3xl); font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-2xl); font-weight: 400; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-xl); font-weight: 500; }
h4 { font-size: var(--fs-lg); font-weight: 500; }
p { margin: 0 0 var(--space-sm) 0; color: var(--white-muted); }
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--gold-soft); }
ul { padding-left: 0; margin: 0 0 var(--space-md) 0; }
li { margin-bottom: 0.5rem; color: var(--white-muted); }
img, svg { max-width: 100%; height: auto; display: block; }
strong { color: var(--white); font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-wide { max-width: var(--maxw-wide); }
.container-narrow { max-width: var(--maxw-narrow); }

/* Section eyebrow — a small label above section titles */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-md) 0;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 8, 23, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.logo {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.logo:hover { color: var(--gold); }
.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
  object-fit: cover;
}
.logo-wordmark {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--white);
  line-height: 1.1;
  white-space: nowrap;
  font-family: var(--font-base);
}
@media (max-width: 720px) {
  .logo-wordmark { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--fs-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
  line-height: 1.2;
  letter-spacing: 0.005em;
  font-family: var(--font-base);
}
.btn-primary {
  background: var(--gold);
  color: var(--plum-deep);
  box-shadow: 0 2px 20px rgba(232, 200, 118, 0.18);
}
.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--plum-deeper);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(232, 200, 118, 0.28);
}
.btn-primary .btn-arrow { transition: transform 0.25s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-lighter);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }
.btn-lg { padding: 1.15rem 2.2rem; font-size: var(--fs-base); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(5rem, 10vw, 10rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(232, 200, 118, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 70% at 20% 90%, rgba(154, 53, 130, 0.35), transparent 60%),
    linear-gradient(160deg, #2E0D24 0%, #531945 55%, #3a1230 100%);
}

/* ---------- Hero v2 (calm, no spin) ---------- */
.hero-v2 {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(3rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(165deg, #2E0D24 0%, #4a1640 45%, #3a1230 100%);
}
.hero-bg-v2 {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-grid-v2 {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(232, 200, 118, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 200, 118, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black 30%, transparent 90%);
}
.hero-glow-a, .hero-glow-b {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-a {
  width: 720px; height: 720px;
  right: -240px; top: -180px;
  background: radial-gradient(circle, rgba(232, 200, 118, 0.18), transparent 65%);
}
.hero-glow-b {
  width: 640px; height: 640px;
  left: -180px; bottom: -220px;
  background: radial-gradient(circle, rgba(154, 53, 130, 0.35), transparent 65%);
}

.hero-inner-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-inner-v2 { grid-template-columns: 1fr; gap: 3rem; }
  .hero-col-art { order: -1; max-width: 420px; margin: 0 auto; }
}
.hero-col-text { max-width: 640px; }

/* Document stack art */
.hero-col-art { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.doc-stack {
  position: relative;
  width: min(100%, 460px);
  height: 540px;
  max-height: 60vh;
}
.doc-paper {
  position: absolute;
  background: linear-gradient(180deg, #F5F0F2 0%, #E8DDE2 100%);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 12px 30px -12px rgba(0, 0, 0, 0.35);
  padding: 20px 22px;
  color: var(--plum-deep);
  font-family: var(--font-mono);
  border: 1px solid rgba(255,255,255,0.3);
}
.doc-paper-3 {
  inset: 0 40% 30% 0;
  transform: rotate(-6deg);
  opacity: 0.85;
}
.doc-paper-2 {
  inset: 10% 10% 15% 10%;
  transform: rotate(2deg);
}
.doc-paper-1 {
  inset: 18% 0 0 18%;
  transform: rotate(-1.5deg);
  z-index: 2;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 40px 80px -16px rgba(0, 0, 0, 0.55),
    0 18px 40px -12px rgba(0, 0, 0, 0.4);
}
.doc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.doc-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--plum-deep);
  color: var(--gold);
  border-radius: 3px;
  margin-bottom: 12px;
  font-weight: 500;
}
.doc-tag.light {
  background: rgba(128, 39, 107, 0.12);
  color: var(--plum-deep);
  margin-bottom: 0;
}
.doc-status {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2a7a4a;
  display: inline-flex; align-items: center; gap: 5px;
}
.doc-status::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #2a7a4a;
}
.doc-row {
  height: 6px;
  border-radius: 2px;
  background: rgba(46, 13, 36, 0.18);
  margin-bottom: 9px;
}
.doc-row.short { width: 65%; }
.doc-row.title {
  height: 12px;
  width: 78%;
  background: var(--plum-deep);
  margin-bottom: 14px;
}
.doc-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(46,13,36,0.12);
}
.doc-chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-radius: 2px 2px 0 0;
}
.doc-chart span:last-child { background: var(--plum); }
.doc-stack .doc-emblem {
  position: absolute !important;
  width: 110px !important;
  height: 110px !important;
  min-width: 110px;
  max-width: 110px;
  right: -14px;
  top: -14px;
  opacity: 0.92;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  z-index: 3;
  pointer-events: none;
  object-fit: contain;
  display: block;
}
.doc-paper { display: block; }

.hero-strip-wrap {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  position: relative;
}
.hero-strip-wrap .hero-strip { margin-top: 0; padding-top: 0; border-top: none; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-lg) 0;
  padding: 0.4rem 1.1rem;
  background: rgba(232, 200, 118, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
}
.hero-eyebrow .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 200, 118, 0.6);
}
.hero-eyebrow strong {
  font-weight: 500;
  color: var(--white);
}
.hero-eyebrow .sep { color: var(--white-dim); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.hero-title {
  max-width: 920px;
  margin-bottom: var(--space-lg);
  color: var(--white);
  font-size: clamp(2.2rem, 1.3rem + 4.4vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  font-size: var(--fs-lg);
  max-width: 640px;
  color: var(--white-muted);
  line-height: 1.55;
  margin-bottom: var(--space-md);
  font-weight: 400;
}
.hero-lede + .hero-lede { margin-bottom: var(--space-lg); }
.hero-cta-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* Hero stat strip */
.hero-strip {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}
.hero-strip-item .k {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.35rem;
}
.hero-strip-item .v {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 9vw, 8.5rem) 0; position: relative; }
.section-plum { background: var(--plum-deep); }
.section-dark { background: var(--plum-deeper); }
.section-mid {
  background: linear-gradient(180deg, var(--plum-deeper) 0%, var(--plum-deep) 100%);
}
.section-title {
  max-width: 860px;
  margin-bottom: var(--space-md);
  color: var(--white);
}
.section-lede {
  max-width: 720px;
  font-size: var(--fs-lg);
  color: var(--white-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.55;
}
.subsection-title {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-xl);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.section-head {
  max-width: 860px;
  margin-bottom: var(--space-xl);
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--space-md); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

/* ---------- Cards (What We Do) ---------- */
.doc-card {
  position: relative;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(180deg, var(--surface-light) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.doc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: linear-gradient(180deg, var(--surface-lighter) 0%, transparent 100%);
}
.doc-card:hover::before { opacity: 1; }
.doc-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  color: var(--gold);
}
.doc-card-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.doc-card p { color: var(--white-muted); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- Engagement Models ---------- */
.model-card {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: var(--surface-lighter);
}
.model-card-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.model-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.04em;
}
.model-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.model-card-title {
  font-size: var(--fs-xl);
  margin-bottom: 0.25rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
}
.model-card-sub {
  font-size: var(--fs-sm);
  color: var(--gold);
  font-style: italic;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}
.model-card p { font-size: var(--fs-sm); color: var(--white-muted); line-height: 1.6; }

/* ---------- Division of Labor — columns ---------- */
.labor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (max-width: 900px) {
  .labor-grid { grid-template-columns: 1fr; }
}
.labor-col {
  padding: var(--space-md);
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.labor-col-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.labor-col-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  flex-shrink: 0;
}
.labor-col-title {
  font-size: var(--fs-lg);
  color: var(--white);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
}
.clean-list { list-style: none; padding-left: 0; }
.clean-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--white-muted);
  line-height: 1.5;
}
.clean-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Callout ---------- */
.callout {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background:
    linear-gradient(135deg, rgba(232, 200, 118, 0.06), transparent 60%),
    var(--plum-deeper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  color: var(--white-muted);
}
.callout strong { color: var(--gold); }

/* ---------- Principles ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; } }
.principle {
  padding: var(--space-lg) var(--space-md);
  background: var(--surface-light);
  border-right: 1px solid var(--border);
  position: relative;
}
.principle:last-child { border-right: none; }
@media (max-width: 900px) {
  .principle { border-right: none; border-bottom: 1px solid var(--border); }
  .principle:last-child { border-bottom: none; }
}
.principle-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: var(--surface-gold);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
}
.principle-title {
  color: var(--white);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.principle p {
  color: var(--white-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Multi-Model Architecture diagram ---------- */
.mma-wrap {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(232, 200, 118, 0.08), transparent 60%),
    var(--plum-deeper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.mma-prose { max-width: 820px; }
.mma-prose p {
  font-size: var(--fs-base);
  color: var(--white-muted);
  line-height: 1.7;
}
.mma-subnote {
  font-family: var(--font-mono);
  font-size: 0.62em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
  font-weight: 400;
  vertical-align: middle;
  margin-left: 0.35em;
  font-style: normal;
}
.mma-prose .mma-caveat {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: var(--white-dim);
  line-height: 1.6;
  font-style: italic;
}

/* ---------- Evidence: big metrics section ---------- */
/* Stacked layout: claim (intro) on top full-width, illustration below full-width */
.evidence-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: stretch;
  margin-bottom: var(--space-xl);
}
.evidence-hero .evidence-intro {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.evidence-hero .efficiency-card {
  width: 100%;
}
.evidence-hero .evidence-method-trigger {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
}
@media (max-width: 900px) {
  .evidence-hero {
    gap: clamp(1.25rem, 3vw, 2rem);
  }
}

/* Compact "~6 pages / billable hour" headline inside evidence-intro */
.evidence-headline-num {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  line-height: 0.9;
  font-family: 'Fraunces', serif;
}
.evidence-headline-num .ehn-approx {
  font-size: clamp(1.75rem, 2vw + 0.75rem, 2.75rem);
  color: var(--gold);
  font-weight: 300;
  margin-top: 0.12em;
  opacity: 0.75;
}
.evidence-headline-num .ehn-num {
  font-size: clamp(3.5rem, 5vw + 1rem, 6.5rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 0.82;
  font-feature-settings: "lnum";
  text-shadow: 0 4px 40px rgba(232, 200, 118, 0.2);
}
.evidence-headline-num .ehn-caption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.4em;
  margin-left: 0.25rem;
  min-width: 0;
}
.evidence-headline-num .ehn-top {
  font-family: 'Fraunces', serif;
  font-size: clamp(0.95rem, 0.8vw + 0.7rem, 1.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
}
.evidence-headline-num .ehn-bot {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.4rem;
}
.evidence-headline-statement {
  font-family: 'Fraunces', serif;
  font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.05rem);
  line-height: 1.5;
  color: var(--white);
  margin-top: clamp(0.75rem, 1.5vw, 1rem);
  max-width: 34ch;
}
.evidence-headline-statement .eff-foot-ref a {
  color: var(--gold);
  text-decoration: none;
  margin-left: 0.1em;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric-cell {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  background: var(--plum-deep);
  transition: background 0.3s var(--ease);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-cell:hover { background: var(--plum-dark); }
.metric-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: var(--space-sm);
}
.metric-cell-head .tag {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.metric-vis {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) 0;
  min-height: 120px;
}
.metric-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3.5vw, 5.2rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
}
.metric-big .unit {
  font-size: 0.45em;
  margin-left: 0.15em;
  color: var(--gold-deep);
  font-weight: 400;
}
.metric-label {
  font-size: var(--fs-base);
  color: var(--white);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.metric-sublabel {
  font-size: var(--fs-sm);
  color: var(--white-dim);
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

/* Specific metric visualizations */
.vis-leverage { display: flex; align-items: center; gap: 1rem; width: 100%; justify-content: center; }
.vis-leverage .bar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.vis-leverage .bar-stack .bar {
  width: 26px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-radius: 2px 2px 0 0;
}
.vis-leverage .bar-stack.bar-before .bar {
  background: var(--surface-lighter);
  border: 1px solid var(--border-strong);
  height: 40px;
}
.vis-leverage .bar-stack.bar-after .bar { height: 112px; box-shadow: 0 0 18px rgba(232,200,118,0.35); }
.vis-leverage .bar-stack .lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.vis-leverage .arrow {
  color: var(--gold);
  font-size: 1.4rem;
}

.vis-hours { width: 100%; }
.vis-hours svg { width: 100%; height: 140px; }

.vis-weeks {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.vis-weeks .wk {
  width: 14px;
  height: 28px;
  border-radius: 2px;
  background: var(--surface-lighter);
  border: 1px solid var(--border);
}
.vis-weeks .wk.on {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(232, 200, 118, 0.4);
}

.vis-throughput { width: 100%; height: 140px; }

/* Evidence side: intro block */
.evidence-intro .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.evidence-intro .kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.evidence-intro h2 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem);
  margin-bottom: var(--space-md);
  color: var(--white);
}
.evidence-intro p {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--white-muted);
}
.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  background: rgba(232, 200, 118, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-md);
}
.evidence-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.evidence-note {
  text-align: center;
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  font-weight: 400;
  margin: var(--space-xl) auto 0;
  max-width: 720px;
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.track-record {
  max-width: 780px;
  margin-top: var(--space-xl);
}
.track-record p { font-size: var(--fs-base); color: var(--white-muted); line-height: 1.7; }

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (max-width: 900px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-block {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-light);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.audience-block:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}
.audience-ix {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.audience-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.audience-block p { font-size: var(--fs-sm); color: var(--white-muted); line-height: 1.6; }

.audience-expansion {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--plum-deeper) 0%, var(--plum-deep) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  font-size: var(--fs-lg);
  line-height: 1.5;
  font-weight: 400;
}

/* ---------- CTA section ---------- */
.section-cta {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(232, 200, 118, 0.12), transparent 60%),
    linear-gradient(160deg, var(--plum-deep) 0%, var(--plum-dark) 100%);
  text-align: center;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(232, 200, 118, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 200, 118, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}
.section-cta .section-title {
  color: var(--white);
  font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4rem);
  margin-bottom: var(--space-md);
}
.cta-lede {
  font-size: var(--fs-lg);
  color: var(--white-muted);
  margin-bottom: var(--space-lg);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.cta-secondary {
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--white-dim);
}
.cta-secondary a {
  color: var(--gold);
  border-bottom: 1px solid rgba(232, 200, 118, 0.4);
  padding-bottom: 1px;
}
.cta-secondary a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-deeper);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}
.footer-brand-name {
  font-weight: 500;
  color: var(--white);
  margin: 0;
  font-size: var(--fs-sm);
  font-family: var(--font-display);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}
.footer-links a {
  font-size: var(--fs-xs);
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.footer-links a:hover { color: var(--gold); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .section { padding: var(--space-xl) 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .evidence-hero { grid-template-columns: 1fr; }
}

/* ---------- Typography: optimize line wrapping ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- Selection ---------- */
::selection {
  background: var(--gold);
  color: var(--plum-deep);
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Scroll-triggered reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Clear Roles — three-layer stack + closing quote
   ========================================================= */
#clear-roles .layers-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
#clear-roles .layer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(232, 200, 118, 0.7);
  background: rgba(20, 8, 18, 0.35);
  align-items: start;
}
#clear-roles .layer-card-yours {
  border-left-color: var(--white);
  background: rgba(232, 200, 118, 0.04);
}
#clear-roles .layer-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#clear-roles .layer-ix {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
#clear-roles .layer-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.15;
  margin: 0;
}
#clear-roles .layer-body {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--white-muted);
  margin: 0 0 1rem;
}
#clear-roles .layer-body strong {
  color: var(--white);
  font-weight: 500;
}
#clear-roles .layer-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(232, 200, 118, 0.25);
  font-style: italic;
}
#clear-roles .layer-status-label {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 0.55rem;
  font-size: 0.62rem;
}
#clear-roles .layer-card-yours .layer-status-label {
  color: var(--white);
}

@media (max-width: 820px) {
  #clear-roles .layer-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

#clear-roles .layers-quote {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: 62ch;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  line-height: 1.55;
  color: var(--white);
}
#clear-roles .layers-quote p { margin: 0; }

/* =========================================================
   Portfolio Efficiency — prominent single-line headline
   (Overrides evidence-v2.css which hides .eff-big)
   ========================================================= */
.efficiency-card .eff-big {
  display: flex !important;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  text-align: center;
  margin: clamp(1.25rem, 3vw, 2.25rem) auto clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
}
.efficiency-card .eff-big .eff-approx {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 3.75rem);
  color: var(--gold);
  opacity: 0.7;
  font-weight: 300;
  line-height: 1;
  align-self: center;
}
.efficiency-card .eff-big .eff-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-feature-settings: "lnum";
  text-shadow: 0 6px 60px rgba(232, 200, 118, 0.28);
  align-self: center;
}
.efficiency-card .eff-big .eff-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  margin-left: 0.4rem;
  gap: 0.35rem;
  min-width: 0;
  white-space: normal;
}
.efficiency-card .eff-big .eff-unit-top {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.efficiency-card .eff-big .eff-unit-asterisk {
  font-style: normal;
  margin-left: 0.12em;
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}
.efficiency-card .eff-big .eff-unit-asterisk a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.efficiency-card .eff-big .eff-unit-asterisk a:hover { opacity: 0.7; }
.efficiency-card .eff-big .eff-unit-bot {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.55vw + 0.5rem, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  white-space: nowrap;
}
/* Keep the card focused on headline + illustration; hide the redundant
   prose that's now living in the evidence-intro above */
.efficiency-card .eff-statement,
.efficiency-card .eff-sub { display: none !important; }

/* Graceful wrapping on narrow viewports — only then allow the caption
   block to break onto its own line beneath the giant numeral */
@media (max-width: 720px) {
  .efficiency-card .eff-big {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }
  .efficiency-card .eff-big .eff-caption {
    flex-basis: 100%;
    align-items: center;
    text-align: center;
    margin-left: 0;
    margin-top: 0.35rem;
  }
  .efficiency-card .eff-big .eff-unit-top,
  .efficiency-card .eff-big .eff-unit-bot { white-space: normal; }
}

/* =========================================================
   Method trigger — demote to a discreet text link
   ========================================================= */
.evidence-hero > .evidence-method-trigger {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(0.75rem, 1.5vw, 1.1rem);
  border-top: 1px solid rgba(232, 200, 118, 0.12);
  flex-direction: row;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.evidence-hero > .evidence-method-trigger .method-trigger-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.evidence-hero > .evidence-method-trigger button.method-trigger-btn {
  background: transparent !important;
  border: 0 !important;
  padding: 0.1rem 0 !important;
  border-radius: 0 !important;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
  border-bottom: 1px solid rgba(232, 200, 118, 0.3) !important;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.evidence-hero > .evidence-method-trigger button.method-trigger-btn:hover {
  opacity: 1;
  background: transparent !important;
  border-bottom-color: rgba(232, 200, 118, 0.7) !important;
}
.evidence-hero > .evidence-method-trigger button.method-trigger-btn .method-cta-chevron {
  width: 9px;
  height: 9px;
  margin-left: 0.15rem;
}
