:root {
  --ink: #17130f;
  --ink-2: #2c241e;
  --muted: #71685f;
  --line: rgba(33, 25, 18, .13);
  --paper: #f7f1e7;
  --paper-2: #fffaf1;
  --tint: #efe3d1;
  --dark: #14110f;
  --dark-2: #211711;
  --accent: #d86123;
  --accent-2: #f0a11b;
  --ember: #9f2d18;
  --white: #fffdf8;
  --shadow: 0 22px 70px rgba(20, 17, 15, .18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius: 16px;
  --max: 1180px;
  --space: clamp(56px, 8vw, 112px);
}

* { box-sizing: border-box; }
/* Reserve the scrollbar track from first paint so its appearance never
   changes the viewport width mid-load (vw units and text wrap stay stable). */
html { scrollbar-gutter: stable; }
/* Smooth scrolling is enabled by JS after load (html.smooth-scroll): applying
   it from first paint makes the browser animate scroll restoration and the
   initial hash jump, which reads as a lurch/hiccup on page load. */
html.smooth-scroll { scroll-behavior: smooth; }
body {
  margin: 0;
  /* System-font stack only: naming a locally installed font (Inter) first
     made Chrome on Windows lay out with the fallback, then re-layout when the
     local font activated — the whole page re-wrapped and bounced on every
     load for anyone with that font installed. */
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-140%);
  background: var(--accent-2);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.section { padding: var(--space) 0; }
.section-light { background: var(--paper-2); }
.section-tint { background: var(--tint); }
.section-dark {
  background:
    radial-gradient(circle at top left, rgba(216, 97, 35, .25), transparent 35%),
    linear-gradient(145deg, var(--dark), #21140d 70%, #33190d);
  color: var(--white);
}
.section-dark p, .section-dark .muted { color: rgba(255, 253, 248, .72); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 241, 231, .86);
  border-bottom: 1px solid rgba(33, 25, 18, .1);
}
.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
  --logo-accent: var(--accent);
}
.hcg-logo {
  display: block;
  width: clamp(190px, 18vw, 252px);
  height: auto;
  overflow: visible;
}
.footer-brand {
  color: var(--white);
  --logo-accent: var(--accent-2);
}
.footer-brand .hcg-logo { width: min(100%, 250px); }
.brand:focus-visible {
  outline: 3px solid rgba(216, 97, 35, .45);
  outline-offset: 7px;
  border-radius: 8px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(23,19,15,.76);
  text-decoration: none;
  font-weight: 650;
  font-size: .94rem;
}
.nav-link:hover, .nav-link.is-active { background: rgba(216, 97, 35, .11); color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 19px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #1b0d08;
  border: 0;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(216, 97, 35, .28);
}
.button:hover { transform: translateY(-1px); }
.button-secondary {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}
.button-secondary-dark {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.button-small { min-height: 40px; padding: 9px 14px; font-size: .9rem; }
.text-link { font-weight: 800; color: var(--ember); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hero {
  position: relative;
  overflow: clip;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: clamp(82px, 9vw, 132px) 0;
}
.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,15,.98) 0%, rgba(20,17,15,.88) 42%, rgba(20,17,15,.18) 100%),
    url('../img/hcg-xray-sun.webp') center right / cover no-repeat;
  opacity: .96;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,17,15,.95), transparent 32%, rgba(20,17,15,.35));
  mix-blend-mode: multiply;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .65fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero h1, .page-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.75rem);
  line-height: .88;
  max-width: 980px;
  margin: 16px 0 24px;
  letter-spacing: -.075em;
}
.hero-lede {
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  max-width: 760px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.proof-strip span {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255,253,248,.77);
  background: rgba(255,255,255,.05);
}
.hero-panel {
  border: 1px solid rgba(255,255,255,.17);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.metric-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 8px 0 12px;
}
.metric-label, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 850;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stack-map { display: grid; gap: 10px; margin-top: 24px; }
.stack-map span, .system-layers div {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.07);
  font-weight: 750;
}

.page-hero { padding: clamp(78px, 10vw, 150px) 0 clamp(58px, 7vw, 96px); }
.compact-hero h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); max-width: 1000px; }
.compact-hero p { font-size: 1.2rem; max-width: 840px; }

.section-header { max-width: 810px; margin-bottom: 34px; }
h2 {
  font-size: clamp(2rem, 4.2vw, 4.15rem);
  line-height: .96;
  letter-spacing: -.06em;
  margin: 12px 0 18px;
}
h3 {
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 10px 0 12px;
}
p { margin: 0 0 1rem; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}
.split.reverse { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; }
.question-list { display: grid; gap: 14px; }
.question-list p {
  margin: 0;
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.55);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
  font-weight: 650;
}

.three-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .feature-block, .process-step {
  background: rgba(255,250,241,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-block span, .process-step span {
  display: inline-flex;
  color: var(--ember);
  font-weight: 900;
  margin-bottom: 16px;
}
.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(216,97,35,.12);
  color: #7a250f;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mini-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mini-list li { position: relative; padding-left: 18px; color: var(--muted); }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.muted { color: var(--muted); }
.proof-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(216,97,35,.1);
  border: 1px solid rgba(216,97,35,.16);
  color: var(--ink-2);
}
.section-actions { margin-top: 30px; }

.diagonal { position: relative; overflow: clip; }
.diagonal::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% 42%;
  height: 70%;
  background: radial-gradient(circle, rgba(240,161,27,.24), transparent 58%);
}
.diagnostic-preview {
  position: relative;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.score-orb {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--dark) 0 33%, transparent 34%),
    conic-gradient(var(--accent-2), var(--accent), var(--ember), var(--accent-2));
  box-shadow: 0 24px 60px rgba(216,97,35,.26);
}
.score-orb span { font-weight: 950; color: var(--white); letter-spacing: .1em; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.system-layers { display: grid; gap: 10px; }
.system-layers div { color: var(--ink); background: var(--paper-2); border-color: var(--line); }
.rich-text ul { padding-left: 22px; }
.rich-text li { margin-bottom: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: rgba(216,97,35,.1); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 750;
}
.chip.is-selected, .chip:hover { background: var(--ink); color: var(--white); }

.assessment-shell, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
  gap: 28px;
  align-items: start;
}
.assessment, .contact-form, .assessment-result, .contact-aside {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.question {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 0 0 18px;
}
.question legend {
  width: calc(100% - 8px);
  max-width: 100%;
  padding: 0 8px;
  line-height: 1.35;
}
.question legend strong {
  display: block;
  font-size: 1.05rem;
}
.question legend span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.question label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 11px 12px;
  margin-top: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  line-height: 1.4;
  cursor: pointer;
}
.question label:hover {
  background: rgba(216,97,35,.06);
  border-color: rgba(216,97,35,.18);
}
.question input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent);
}
.question label:has(input[type="radio"]:checked) {
  background: rgba(216,97,35,.1);
  border-color: rgba(216,97,35,.35);
}
.assessment-result { position: sticky; top: 104px; }
.big-score { font-size: 5rem; line-height: 1; font-weight: 950; letter-spacing: -.08em; margin: 16px 0; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(33,25,18,.22);
  border-radius: 14px;
  padding: 12px 13px;
  background: #fffdf8;
  color: var(--ink);
}
textarea { resize: vertical; }
.honeypot { display: none !important; }
.form-note { color: var(--muted); font-size: .92rem; }
code { background: rgba(20,17,15,.08); padding: 2px 5px; border-radius: 5px; }

.cta-band {
  padding: clamp(42px, 7vw, 84px) 0;
  background: var(--ink);
  color: var(--white);
}
.cta-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.cta-grid h2 { max-width: 780px; }

.site-footer {
  background: #0d0b09;
  color: var(--white);
  padding: 58px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.footer-grid h2 {
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer-grid p, .footer-bottom p { color: rgba(255,255,255,.64); }
.footer-grid a { display: block; margin: 8px 0; color: rgba(255,255,255,.84); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 78px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .nav-link { padding: 13px 14px; }
  .hero-grid, .split, .split.reverse, .assessment-shell, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-art { background: linear-gradient(90deg, rgba(20,17,15,.98), rgba(20,17,15,.7)), url('../img/hcg-xray-sun.webp') center / cover no-repeat; }
  .three-grid, .card-grid, .compact-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-grid, .footer-bottom { display: grid; }
}

@media (max-width: 760px) {
  .assessment, .assessment-result { padding: 18px; }
  .question { padding: 16px 14px; }
  .question legend { width: 100%; padding: 0 4px; }
  .question label { padding: 11px 8px; }
  .assessment-result { position: static; }
}

@media (max-width: 640px) {
  .hcg-logo { width: 176px; }
  .container { width: min(100% - 28px, var(--max)); }
  .hero h1, .page-hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .three-grid, .card-grid, .compact-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .proof-strip span { font-size: .86rem; }
  .button { width: 100%; }
}

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

/* JSON-driven project and case-study system */
.project-grid { align-items: stretch; }
.project-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 100%;
}
.project-card-wide { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.project-visual {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.82);
  background:
    radial-gradient(circle at 48% 46%, rgba(12,10,8,.96) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 50%, transparent 0 36%, rgba(240,161,27,.7) 37% 49%, transparent 50%),
    linear-gradient(145deg, #1b1511, #8d2a17 55%, #efa11d);
  position: relative;
  overflow: hidden;
}
.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(110deg, transparent 0 18px, rgba(255,255,255,.04) 19px 20px);
  mix-blend-mode: screen;
}
.project-visual span { position: relative; z-index: 1; font-size: 2rem; font-weight: 950; letter-spacing: -.08em; opacity: .8; }
.project-card[data-theme="visibility"] .project-visual { background: radial-gradient(circle, #111 0 22%, transparent 23%), conic-gradient(from 40deg, #f0a11b, #d86123, #18110d, #f0a11b); }
.project-card[data-theme="governance"] .project-visual { background: linear-gradient(135deg, #17130f, #442115 48%, #c86720); }
.project-card[data-theme="diligence"] .project-visual { background: radial-gradient(circle at 65% 30%, #f0a11b 0 8%, transparent 9%), linear-gradient(150deg, #111, #59200f 60%, #a63c1c); }
.project-card[data-theme="commerce"] .project-visual { background: linear-gradient(135deg, #27190f, #7b3b1f, #d28a2b); }
.project-card[data-theme="operations"] .project-visual { background: linear-gradient(135deg, #18130f, #4d3724, #d86123); }
.project-card[data-theme="revenue"] .project-visual { background: linear-gradient(135deg, #15110f, #8b2819 55%, #f0a11b); }
.project-card[data-theme="data"] .project-visual { background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px), linear-gradient(135deg, #111, #4b2418, #cf6724); }
.project-card[data-theme="integration"] .project-visual { background: radial-gradient(circle at 25% 50%, #f0a11b 0 7%, transparent 8%), radial-gradient(circle at 75% 50%, #d86123 0 7%, transparent 8%), linear-gradient(135deg, #111, #4a2014); }
.project-card[data-theme="crevox"] .project-visual,
.project-card[data-theme="agentic"] .project-visual,
.project-card[data-theme="intelligence"] .project-visual,
.project-card[data-theme="routing"] .project-visual { background: conic-gradient(from 45deg, #17130f, #8e2b19, #f0a11b, #17130f); }
.project-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-meta-row, .project-card-footer, .case-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.project-status { color: var(--muted); font-size: .82rem; font-weight: 750; }
.project-card h3 { margin-top: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-list span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20,17,15,.06);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 700;
}
.large-tags span { padding: 10px 14px; font-size: .9rem; }
.project-card-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.relevance-score {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(240,161,27,.13);
  color: #7a250f;
  font-size: .78rem;
  font-weight: 900;
}
.project-personalizer {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.5fr);
  gap: 30px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.project-personalizer h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
.project-context-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-context-form label { display: grid; gap: 7px; font-weight: 750; }
.project-context-form .form-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.project-context-form .form-actions .button { width: auto; }
.context-summary { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; }

.case-hero { padding: clamp(78px, 10vw, 145px) 0 clamp(60px, 8vw, 100px); position: relative; overflow: hidden; }
.case-hero::after {
  content: "";
  position: absolute;
  width: min(680px, 70vw);
  aspect-ratio: 1;
  right: -16%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, #111 0 28%, transparent 29%), conic-gradient(from 50deg, rgba(240,161,27,.86), rgba(216,97,35,.7), rgba(159,45,24,.35), rgba(240,161,27,.86));
  filter: blur(.2px);
  opacity: .46;
}
.case-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .48fr); gap: clamp(30px, 7vw, 90px); align-items: end; }
.case-hero h1 { font-size: clamp(3rem, 6.5vw, 6.4rem); line-height: .9; letter-spacing: -.07em; max-width: 1000px; margin: 22px 0; }
.case-kicker { justify-content: flex-start; color: rgba(255,255,255,.68); font-weight: 750; }
.pill-light { color: #1b0d08; background: var(--accent-2); }
.case-context-card { padding: 25px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-xl); background: rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.case-context-card > strong { display: block; font-size: clamp(4rem, 8vw, 6.8rem); line-height: .9; letter-spacing: -.08em; margin: 16px 0; }
.case-context-card dl { margin: 22px 0 0; }
.case-context-card dl div { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.15); }
.case-context-card dt { color: rgba(255,255,255,.62); }
.case-context-card dd { margin: 0; font-weight: 700; }
.case-subnav { position: sticky; top: 78px; z-index: 35; background: rgba(247,241,231,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); overflow-x: auto; }
.case-subnav .container { display: flex; gap: 4px; min-width: max-content; padding-block: 10px; }
.case-subnav a { padding: 8px 11px; border-radius: 999px; text-decoration: none; font-size: .84rem; font-weight: 750; }
.case-subnav a:hover { background: rgba(216,97,35,.11); }
.case-answer { font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.45; }
.case-two-column { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 90px); align-items: start; }
.case-two-column h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); }
.case-panel, .next-stage { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); }
.check-list, .outcome-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.check-list li, .outcome-list li { position: relative; padding: 15px 16px 15px 44px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.55); }
.check-list li::before, .outcome-list li::before { content: "✓"; position: absolute; left: 16px; top: 14px; color: var(--ember); font-weight: 950; }
.case-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.case-steps li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); }
.case-steps li > span, .case-solution-grid article > span { color: var(--accent); font-weight: 950; }
.case-solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.case-solution-grid article { border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius-lg); padding: 23px; background: rgba(255,255,255,.07); }
.case-solution-grid article p { color: rgba(255,255,255,.86); font-size: 1.06rem; }
.artifact-list, .proof-artifacts { display: grid; gap: 10px; }
.artifact-list div, .proof-artifacts div { padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); font-weight: 750; }
.proof-artifacts span { color: var(--accent); margin-right: 10px; }
.next-stage { margin-top: 20px; background: rgba(240,161,27,.12); border-color: rgba(216,97,35,.22); }
.next-stage strong { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; color: var(--ember); }

@media (max-width: 980px) {
  .project-grid-wide, .project-personalizer, .case-hero-grid, .case-two-column { grid-template-columns: 1fr; }
  .project-card-wide { grid-template-columns: 135px minmax(0, 1fr); }
  .case-steps { grid-template-columns: 1fr 1fr; }
  .case-subnav { top: 78px; }
}

@media (max-width: 760px) {
  .assessment, .assessment-result { padding: 18px; }
  .question { padding: 16px 14px; }
  .question legend { width: 100%; padding: 0 4px; }
  .question label { padding: 11px 8px; }
  .assessment-result { position: static; }
}

@media (max-width: 640px) {
  .project-grid-wide, .project-context-form, .case-steps, .case-solution-grid { grid-template-columns: 1fr; }
  .project-card-wide { display: flex; }
  .project-context-form .form-actions { display: grid; }
  .project-context-form .form-actions .button { width: 100%; }
  .case-context-card dl div { grid-template-columns: 1fr; gap: 2px; }
  .case-subnav { top: 66px; }
}

/* AI-readable content and authority additions */
.section-intro {
  max-width: 920px;
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: clip;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 20px;
  font-weight: 850;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ember);
  font-size: 1.5rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--muted);
  max-width: 880px;
}
.reader-value {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(216,97,35,.08);
}
.case-query {
  max-width: 850px;
  color: rgba(255,253,248,.78) !important;
  font-size: 1rem;
}
.case-query strong { color: var(--accent-2); }

@media (max-width: 1120px) and (min-width: 981px) {
  .nav-link { padding-inline: 8px; font-size: .86rem; }
  .button-small { padding-inline: 11px; font-size: .84rem; }
}


/* Assessment context attached to contact inquiry */
.assessment-contact-summary {
  grid-column: 1 / -1;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(234, 138, 19, .32);
  border-radius: 22px;
  background: rgba(234, 138, 19, .07);
}
.assessment-contact-summary h2 { margin: 6px 0 10px; }
.assessment-contact-summary p { margin: 0 0 14px; }
.compact-list { margin: 0 0 16px; }
.compact-list li { margin-bottom: 7px; }

/* JSON-driven FAQ authority system */
.faq-hero .proof-strip { max-width: 900px; }
.faq-explorer { background: var(--paper); }
.faq-toolbar {
  position: sticky;
  top: 92px;
  z-index: 18;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(20,17,15,.09);
}
.faq-toolbar-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-toolbar-summary { margin: 0; color: var(--muted); font-weight: 800; font-size: .88rem; }
.faq-toolbar-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ember);
  font-weight: 800;
  font-size: .85rem;
  white-space: nowrap;
  cursor: pointer;
}
.faq-toolbar-toggle:hover { border-color: rgba(216,97,35,.38); background: var(--paper-2); }
.faq-toolbar-chevron { display: inline-block; transition: transform .2s ease; }
.faq-toolbar-body { display: grid; gap: 18px; }
.faq-toolbar.is-collapsed { padding-top: 12px; padding-bottom: 12px; }
.faq-toolbar.is-collapsed .faq-toolbar-body { display: none; }
.faq-toolbar.is-collapsed .faq-toolbar-bar { cursor: pointer; }
.faq-toolbar.is-collapsed .faq-toolbar-chevron { transform: rotate(180deg); }
.faq-search-field,
.faq-select-grid label { display: grid; gap: 8px; font-weight: 800; }
.faq-search-wrap { position: relative; }
.faq-search-wrap input { padding-right: 48px; font-size: 1.05rem; }
.faq-search-wrap span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ember);
  font-size: 1.4rem;
  pointer-events: none;
}
.faq-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.faq-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-toolbar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.faq-toolbar-footer p { margin: 0; color: var(--muted); font-weight: 800; }
.faq-toolbar-footer > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.text-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ember);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(230px, .33fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}
.faq-topic-nav {
  position: sticky;
  top: calc(var(--faq-toolbar-clearance, 356px) + 24px);
  max-height: calc(100vh - var(--faq-toolbar-clearance, 356px) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  display: grid;
  gap: 9px;
  /* Glide instead of snapping when the toolbar collapses or expands. */
  transition: top .3s ease, max-height .3s ease;
}
.faq-topic-nav > .eyebrow { margin-bottom: 6px; }
.faq-topic-nav button {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,250,241,.65);
  color: var(--ink);
}
.faq-topic-nav button:hover { border-color: rgba(216,97,35,.38); background: var(--paper-2); }
.faq-topic-nav strong { font-size: .93rem; }
.faq-topic-nav span { color: var(--muted); font-size: .79rem; line-height: 1.35; }
.faq-results { display: grid; gap: 14px; min-width: 0; }
.faq-entry {
  scroll-margin-top: calc(var(--faq-toolbar-clearance, 276px) + 24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
  overflow: clip;
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
}
.faq-entry[hidden] { display: none; }
.faq-entry summary {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 21px 62px 21px 22px;
  cursor: pointer;
  list-style: none;
}
.faq-entry summary::-webkit-details-marker { display: none; }
.faq-entry summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(216,97,35,.1);
  color: var(--ember);
  font-size: 1.45rem;
  line-height: 1;
}
.faq-entry[open] summary::after { content: "−"; }
.faq-entry[open] summary { border-bottom: 1px solid var(--line); background: rgba(216,97,35,.045); }
.faq-topic-label {
  color: var(--ember);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.faq-question {
  max-width: 920px;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.faq-answer { padding: clamp(20px, 3vw, 30px); }
.faq-answer > p { max-width: 920px; color: var(--muted); }
.faq-direct-answer {
  color: var(--ink) !important;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 800;
  line-height: 1.45;
}
.faq-support-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.faq-related-articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.faq-related-articles article {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(216,97,35,.16);
  border-radius: 14px;
  background: rgba(216,97,35,.055);
}
.faq-related-articles article > span {
  color: var(--ember);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.faq-related-articles article strong { line-height: 1.25; }
.faq-related-articles article p { margin: 0; color: var(--muted); font-size: .9rem; }
.faq-related-articles small { color: var(--muted); line-height: 1.4; }
.faq-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  align-items: center;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-related-links > span { color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.faq-related-links a { color: var(--ember); font-weight: 800; text-decoration: none; }
.faq-related-links a:hover { text-decoration: underline; }
.faq-answer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: .78rem;
}
.faq-answer-meta a { color: var(--ember); font-weight: 800; }
.faq-empty {
  padding: clamp(28px, 5vw, 60px);
  border: 1px dashed rgba(216,97,35,.35);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  text-align: center;
}
.faq-empty h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.faq-empty p { max-width: 700px; margin-inline: auto; color: var(--muted); }
.faq-article-grid { align-items: stretch; }
.faq-article-card { display: flex; flex-direction: column; }
.faq-article-card .tag-list { margin-top: auto; }
.article-status {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 1040px) {
  .faq-toolbar { position: static; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-topic-nav { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-topic-nav > .eyebrow { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .faq-select-grid,
  .faq-related-articles,
  .faq-topic-nav { grid-template-columns: 1fr; }
  .faq-toolbar-footer,
  .faq-answer-meta { align-items: flex-start; flex-direction: column; }
  .faq-entry summary { padding: 18px 54px 18px 17px; }
  .faq-entry summary::after { right: 15px; }
  .faq-answer { padding: 18px 17px; }
}

@media (max-width: 1240px) and (min-width: 981px) {
  .hcg-logo { width: 188px; }
  .nav-shell { gap: 12px; }
  .primary-nav { gap: 1px; }
  .nav-link { padding-inline: 7px; font-size: .82rem; }
  .button-small { padding-inline: 10px; font-size: .79rem; }
}

/* v3.7 — consolidated primary navigation and refined homepage hero */
.primary-nav {
  gap: 8px;
  margin-left: auto;
}
.nav-group {
  position: relative;
  flex: 0 0 auto;
}
.nav-parent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 19, 15, .76);
  font: inherit;
  font-size: .94rem;
  font-weight: 720;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.nav-caret {
  width: 11px;
  height: 7px;
  flex: 0 0 auto;
  transition: transform .18s ease;
}
.nav-group.is-active > .nav-parent,
.nav-group.is-open > .nav-parent,
.nav-parent:hover,
.nav-parent:focus-visible {
  background: rgba(216, 97, 35, .11);
  color: var(--ink);
}
.nav-parent:focus-visible {
  outline: 3px solid rgba(216, 97, 35, .3);
  outline-offset: 2px;
}
.nav-group.is-open > .nav-parent .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  z-index: 70;
  display: grid;
  gap: 4px;
  width: min(390px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(33, 25, 18, .12);
  border-radius: 20px;
  background: rgba(255, 252, 246, .98);
  box-shadow: 0 24px 64px rgba(32, 19, 10, .19);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}
.nav-dropdown-work { width: min(410px, calc(100vw - 32px)); }
.nav-dropdown-insights,
.nav-dropdown-company {
  width: min(340px, calc(100vw - 32px));
}
.nav-dropdown-company,
.nav-dropdown-insights { left: auto; right: 0; }
.nav-group.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-link {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible,
.nav-dropdown-link.is-active {
  background: rgba(216, 97, 35, .1);
  transform: translateX(2px);
}
.nav-dropdown-link:focus-visible {
  outline: 3px solid rgba(216, 97, 35, .25);
  outline-offset: 1px;
}
.nav-dropdown-title {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
}
.nav-dropdown-description {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.38;
}
.nav-cta { margin-left: 3px; white-space: nowrap; }
.nav-cta.is-active { box-shadow: 0 0 0 3px rgba(216, 97, 35, .2), 0 14px 30px rgba(216, 97, 35, .28); }

@media (min-width: 981px) {
  .nav-group:hover > .nav-dropdown,
  .nav-group:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-group:hover > .nav-parent .nav-caret,
  .nav-group:focus-within > .nav-parent .nav-caret { transform: rotate(180deg); }
}

.hero {
  min-height: 690px;
  padding: clamp(76px, 8vw, 116px) 0;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(290px, .52fr);
  gap: clamp(34px, 5.5vw, 78px);
}
.hero h1 {
  max-width: 840px;
  font-size: clamp(3.45rem, 5.15vw, 5.85rem);
  line-height: .93;
  letter-spacing: -.067em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 790px;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.55;
}
.hero-panel {
  align-self: end;
  padding: clamp(22px, 2.5vw, 30px);
}

@media (max-width: 1120px) and (min-width: 981px) {
  .hcg-logo { width: 190px; }
  .nav-shell { gap: 16px; }
  .primary-nav { gap: 2px; }
  .nav-parent { padding-inline: 9px; font-size: .86rem; }
  .nav-cta { padding-inline: 12px; font-size: .82rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .46fr); gap: 38px; }
  .hero h1 { font-size: clamp(3.4rem, 5.7vw, 4.65rem); }
}

@media (max-width: 980px) {
  .primary-nav {
    inset: 78px 16px auto;
    gap: 5px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
  .nav-group { width: 100%; }
  .nav-parent {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 13px;
    font-size: 1rem;
  }
  .nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    margin: 2px 0 8px;
    padding: 5px 0 5px 12px;
    border: 0;
    border-left: 2px solid rgba(216, 97, 35, .22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav-group.is-open > .nav-dropdown { display: grid; }
  .nav-dropdown-link { padding: 11px 12px; }
  .nav-dropdown-description { font-size: .8rem; }
  .nav-cta { width: 100%; margin: 5px 0 0; }
  .hero { min-height: auto; padding: 84px 0 74px; }
  .hero-grid { gap: 38px; }
  .hero h1 { max-width: 820px; font-size: clamp(3.2rem, 9.5vw, 5.1rem); }
  .hero-panel { align-self: auto; }
}

@media (max-width: 640px) {
  .primary-nav { inset: 66px 12px auto; padding: 12px; }
  .hero { padding: 66px 0 58px; }
  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
    line-height: .91;
    letter-spacing: -.062em;
  }
  .hero-lede { font-size: 1.05rem; }
  .hero-actions { margin-top: 26px; }
}
.nav-caret { overflow: visible; transform-origin: center; }

/* ===== Hero v2: layered atmosphere, entrance choreography, living system map =====
   Everything below is decorative progressive enhancement: the semantic content
   renders identically without animation support, on reduced motion (global
   kill-switch above), and on small screens. */
.hero { isolation: isolate; }
.hero-art { z-index: 0; }
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-aurora {
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(42% 55% at 18% 30%, rgba(240, 161, 27, .14), transparent 70%),
    radial-gradient(38% 48% at 78% 20%, rgba(216, 97, 35, .18), transparent 70%),
    radial-gradient(46% 60% at 62% 80%, rgba(159, 45, 24, .20), transparent 72%);
  filter: blur(28px);
  will-change: transform;
}
.hero-embers span {
  position: absolute;
  left: var(--x, 50%);
  bottom: -14px;
  width: calc(8px * var(--s, 1));
  height: calc(8px * var(--s, 1));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 150, .95), rgba(240, 161, 27, .55) 45%, transparent 72%);
  box-shadow: 0 0 12px rgba(240, 161, 27, .5);
  opacity: 0;
}
.hero-grid { z-index: 3; }
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  width: 25px;
  height: 41px;
  margin-left: -13px;
  border: 2px solid rgba(255, 253, 248, .32);
  border-radius: 999px;
}
.hero-scroll-cue::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--accent-2);
}

/* Cursor spotlight: painted above the art, beneath the copy. JS sets the vars. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(620px circle at var(--hero-mx, 72%) var(--hero-my, 34%), rgba(240, 161, 27, .13), transparent 65%);
}
.hero.has-spotlight::after { opacity: 1; }

/* Headline accent: real text; solid brand color unless gradient text is supported. */
.hero-accent-text { color: var(--accent-2); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-accent-text {
    background: linear-gradient(94deg, #ffd9a8, var(--accent-2) 28%, var(--accent) 58%, #ff9d5c 85%, #ffd9a8);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* Living system map: numbered stages that light up in sequence. */
.hero .stack-map { counter-reset: hero-step; }
.hero .stack-map span {
  counter-increment: hero-step;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero .stack-map span::before {
  content: "0" counter(hero-step);
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(240, 161, 27, .35);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.hero-panel { transition: border-color .35s ease; }
.hero-panel:hover { border-color: rgba(240, 161, 27, .38); }

/* CTA sheen on hover */
.hero .button { position: relative; overflow: hidden; }
.hero .button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .34) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .55s ease;
}
.hero .button:hover::after,
.hero .button:focus-visible::after { transform: translateX(130%); }

@media (prefers-reduced-motion: no-preference) {
  .hero-aurora { animation: hero-aurora-drift 26s ease-in-out infinite alternate; }
  .hero-embers span {
    animation: hero-ember-rise var(--dur, 16s) linear infinite;
    animation-delay: var(--delay, 0s);
  }
  .hero-scroll-cue::before { animation: hero-scroll-dot 2.3s ease-in-out infinite; }
  .hero-accent-text { animation: hero-sheen 8s ease-in-out infinite; }
  .hero .stack-map span {
    animation: hero-node 12s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 2.4s);
  }
  /* Entrance choreography for the primary text — first view of a session only
     (html.intro-play, set pre-paint in header.php). Reloads render instantly:
     replaying an entrance over the browser's held pixels reads as a flash.
     `backwards` keeps elements hidden only until their own animation starts. */
  .intro-play .hero-copy > *, .intro-play .hero-panel { animation: hero-rise .85s cubic-bezier(.22, .75, .25, 1) backwards; }
  .intro-play .hero-copy .eyebrow { animation-delay: .05s; }
  .intro-play .hero h1 { animation-delay: .13s; }
  .intro-play .hero-lede { animation-delay: .24s; }
  .intro-play .hero-actions { animation-delay: .36s; }
  .intro-play .hero .proof-strip { animation-delay: .46s; }
  .intro-play .hero-panel { animation-delay: .4s; }
  .intro-play .hero .proof-strip span { animation: hero-rise .6s cubic-bezier(.22, .75, .25, 1) backwards; animation-delay: calc(.5s + var(--i, 0) * .08s); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
}
@keyframes hero-aurora-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.02); }
}
@keyframes hero-ember-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: .85; }
  60% { opacity: .45; }
  100% { transform: translateY(-820px) translateX(var(--sway, 24px)); opacity: 0; }
}
@keyframes hero-scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(13px); opacity: 0; }
}
@keyframes hero-sheen {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
@keyframes hero-node {
  0%, 18%, 100% {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
    transform: translateX(0);
  }
  7% {
    border-color: rgba(240, 161, 27, .55);
    background: rgba(240, 161, 27, .13);
    transform: translateX(5px);
  }
}

@media (max-width: 980px) {
  .hero-scroll-cue { display: none; }
  /* The un-scoped .hero-grid refinement above otherwise overrides the older
     single-column mobile rule, crushing the copy column on phones. */
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-embers { display: none; }
  .hero-aurora { filter: blur(20px); }
}
