/* ==========================================================================
   Revenue Analytics & AI Transformation — interactive deck
   Atlantic Steel Consulting
   ========================================================================== */

:root {
  /* Spring Health brand, sampled from deck assets */
  --ink:          #01382E;
  --ink-deep:     #002620;
  --ink-soft:     #0A4C3D;
  --ink-line:     rgba(141, 255, 157, 0.18);
  --leaf:         #8DFF9D;
  --leaf-dim:     #5CCE73;
  --green-text:   #0C6247;

  --paper:        #F6F4EE;
  --paper-alt:    #EFEDE4;
  --card:         #FFFFFF;
  --border:       #DFDBCF;
  --border-soft:  #EAE7DD;
  --text:         #14261F;
  --muted:        #5C6A62;
  --faint:        #8D978F;

  --rust:         #9C3A10;
  --rust-soft:    #FAEDE6;
  --amber:        #A06A08;

  --f-display: 'Sentient', Georgia, serif;
  --f-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  font-feature-settings: 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-6); }

.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;
}

.num { font-variant-numeric: tabular-nums lining-nums; }

/* ============================ NAV ============================ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(1, 56, 46, 0.94);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--ink-line);
}

.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 62px;
  display: flex; align-items: center; gap: var(--sp-6);
}

.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { height: 19px; width: auto; }
.nav-brand .nav-div { width: 1px; height: 20px; background: var(--ink-line); }
.nav-brand .nav-kicker {
  font-size: 9.5px; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--leaf); font-weight: 600; line-height: 1.25; max-width: 108px;
}

.nav-links { display: flex; gap: 2px; margin-left: auto; }

.nav-link {
  display: flex; align-items: baseline; gap: 6px;
  padding: 7px 11px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
  white-space: nowrap;
}
.nav-link .nav-num {
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 500;
  color: rgba(141, 255, 157, 0.45);
  transition: color 0.22s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(141, 255, 157, 0.08); }
.nav-link:hover .nav-num { color: var(--leaf); }
.nav-link.is-active { color: #fff; background: rgba(141, 255, 157, 0.13); }
.nav-link.is-active .nav-num { color: var(--leaf); }

.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  background: var(--leaf); width: 0;
  transition: width 0.12s linear;
}

/* ============================ HERO ============================ */

.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  min-height: 560px;
}

.hero-copy {
  padding: var(--sp-9) var(--sp-6) var(--sp-9) var(--sp-6);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--leaf);
  padding: 6px 13px 6px 11px;
  border: 1px solid rgba(141, 255, 157, 0.3);
  border-radius: 100px;
  margin-bottom: var(--sp-6);
}
.hero-eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--leaf); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(141, 255, 157, 0.2);
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.15rem, 4.1vw, 3.3rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: var(--sp-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--leaf);
}

.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 30em;
  margin-bottom: var(--sp-7);
}

.hero-byline {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
}
.hero-byline img { height: 30px; width: 30px; border-radius: 50%; }
.hero-byline .hb-firm { font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.hero-byline .hb-date { color: rgba(255, 255, 255, 0.55); font-family: var(--f-mono); font-size: 11.5px; }

.hero-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-visual img.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 58% 42%;
  filter: saturate(0.62) contrast(1.04);
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(96deg, var(--ink) 0%, rgba(1, 56, 46, 0.86) 24%, rgba(1, 56, 46, 0.34) 62%, rgba(1, 56, 46, 0.5) 100%);
}
.hero-visual::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 3;
  background: var(--leaf);
}

.hero-stats {
  position: relative; z-index: 4;
  margin-top: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-line);
  background: rgba(0, 38, 32, 0.55);
  backdrop-filter: blur(6px);
}
.hero-stat { padding: var(--sp-5) var(--sp-4); border-left: 1px solid var(--ink-line); }
.hero-stat:first-child { border-left: 0; }
.hero-stat .hs-val {
  font-family: var(--f-mono); font-size: 1.4rem; font-weight: 500;
  color: var(--leaf); letter-spacing: -0.03em; line-height: 1;
}
.hero-stat .hs-lab {
  font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6); margin-top: 7px; line-height: 1.4;
}

/* ============================ SECTION SHELL ============================ */

.section { padding: var(--sp-9) 0; position: relative; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: #fff; }

.sec-head { max-width: 940px; margin-bottom: var(--sp-8); }

.sec-eyebrow {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: var(--sp-4);
}
.sec-eyebrow .se-num {
  font-family: var(--f-mono);
  background: var(--ink); color: var(--leaf);
  padding: 3px 8px; border-radius: 3px;
  letter-spacing: 0.06em; font-size: 10px;
}
.section-dark .sec-eyebrow { color: var(--leaf); }
.section-dark .sec-eyebrow .se-num { background: rgba(141, 255, 157, 0.15); }

.sec-title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.sec-sub { font-size: 1.05rem; line-height: 1.55; color: var(--muted); max-width: 46em; }
.section-dark .sec-sub { color: rgba(255, 255, 255, 0.72); }

.block-label {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-5);
}
.block-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.block-label .bl-note {
  text-transform: none; letter-spacing: 0.01em; font-weight: 400;
  font-size: 12px; color: var(--faint); font-family: var(--f-mono);
}

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================ KPI CARDS ============================ */

.kpi-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.seg {
  display: inline-flex; background: var(--card);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px;
}
.seg button {
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 14px; border: 0; border-radius: 4px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--ink); color: #fff; }
.seg-legend { font-size: 12px; color: var(--faint); font-family: var(--f-mono); }

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

.kpi {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: var(--sp-5);
  display: flex; flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.kpi:hover {
  border-color: var(--border-soft);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -22px rgba(1, 56, 46, 0.4);
}
.kpi-lab {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: var(--sp-4);
  min-height: 2.3em;
}
.kpi-val {
  font-family: var(--f-mono); font-size: 2.15rem; font-weight: 500;
  letter-spacing: -0.045em; line-height: 1; color: var(--text);
}
.kpi-val small { font-size: 0.46em; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 3px; }

.kpi-delta {
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  padding: 3px 8px; border-radius: 3px;
  background: var(--rust-soft); color: var(--rust);
  margin-top: var(--sp-3);
}
.kpi-delta::before { content: '▲'; font-size: 7px; }
.kpi-delta.is-down::before { content: '▼'; }

.kpi-track {
  position: relative; height: 7px; border-radius: 4px;
  background: var(--paper-alt);
  margin-top: var(--sp-5);
  overflow: visible;
}
.kpi-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px; background: var(--rust);
  width: 0; transition: width 0.9s var(--ease);
}
.kpi-prev {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: var(--faint); left: 0;
  opacity: 0; transition: opacity 0.35s var(--ease), left 0.9s var(--ease);
}
.kpi-prev::after {
  content: attr(data-lab);
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 8.5px; color: var(--faint);
  letter-spacing: 0.06em; white-space: nowrap;
}
.kpi-tick {
  position: absolute; top: -5px; bottom: -5px; width: 3px;
  background: var(--green-text); border-radius: 2px; left: 0;
  opacity: 0; transition: opacity 0.35s var(--ease), left 0.9s var(--ease);
}
.kpi-tick::after {
  content: attr(data-lab);
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 8.5px; color: var(--green-text);
  font-weight: 600; letter-spacing: 0.06em; white-space: nowrap;
}
.kpi.show-prev .kpi-prev { opacity: 1; }
.kpi.show-target .kpi-tick { opacity: 1; }

.kpi-foot {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--faint);
  margin-top: var(--sp-4); letter-spacing: -0.01em;
}

/* ============================ MECHANISM BANNER ============================ */

.mech {
  background: var(--ink); color: #fff;
  border-radius: 10px; padding: var(--sp-7);
  margin-top: var(--sp-7);
  display: grid; grid-template-columns: 148px 1fr; gap: var(--sp-7);
  align-items: start;
  position: relative; overflow: hidden;
}
.mech::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(141,255,157,0.13), transparent 70%);
}
.mech-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--leaf);
  padding-top: 5px; line-height: 1.5;
}
.mech-body { font-size: 1.06rem; line-height: 1.62; color: rgba(255,255,255,0.85); position: relative; z-index: 2; }
.mech-body strong { color: #fff; font-weight: 600; }
.mech-body .mech-hl { color: var(--leaf); font-weight: 600; font-family: var(--f-mono); font-size: 0.95em; }

/* ============================ NUMBERED CARDS ============================ */

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

.pillar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: var(--sp-6);
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pillar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--leaf-dim);
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(1,56,46,0.4); }
.pillar-num {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--green-text);
  margin-bottom: var(--sp-3);
}
.pillar-title {
  font-family: var(--f-display); font-size: 1.3rem; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: var(--sp-3);
}
.pillar-desc { font-size: 0.94rem; line-height: 1.58; color: var(--muted); }
.pillar-desc code {
  font-family: var(--f-mono); font-size: 0.9em; color: var(--text);
  background: var(--paper-alt); padding: 1px 5px; border-radius: 3px;
}

/* ============================ SCORECARD TABLE ============================ */

.tbl-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left; padding: var(--sp-4) var(--sp-5);
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--faint);
  background: var(--paper); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl thead th.sortable { cursor: pointer; user-select: none; transition: color 0.2s var(--ease); }
.tbl thead th.sortable:hover { color: var(--text); }
.tbl thead th .arrow { opacity: 0.25; margin-left: 5px; font-size: 9px; }
.tbl thead th.is-sorted { color: var(--green-text); }
.tbl thead th.is-sorted .arrow { opacity: 1; }
.tbl th.ta-r, .tbl td.ta-r { text-align: right; }

.tbl tbody tr { border-bottom: 1px solid var(--border-soft); transition: background 0.2s var(--ease); }
.tbl tbody tr:last-child { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--paper); }
.tbl tbody td { padding: var(--sp-4) var(--sp-5); vertical-align: middle; }

.fn-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.fn-src { font-family: var(--f-mono); font-size: 10.5px; color: var(--faint); margin-top: 3px; }

.cell-num { font-family: var(--f-mono); font-size: 1rem; font-weight: 500; letter-spacing: -0.02em; }

.minibar { display: flex; align-items: center; gap: var(--sp-3); justify-content: flex-end; }
.minibar-track { width: 84px; height: 6px; border-radius: 3px; background: var(--paper-alt); overflow: hidden; }
.minibar-fill { height: 100%; border-radius: 3px; background: var(--ink); width: 0; transition: width 0.9s var(--ease); }
.minibar-fill.is-top { background: var(--rust); }

.pill {
  display: inline-block; font-family: var(--f-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 100px;
}
.pill-yes { background: rgba(12, 98, 71, 0.1); color: var(--green-text); }
.pill-no { background: var(--rust-soft); color: var(--rust); }

.tbl-read {
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper); border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted);
}
.tbl-read strong { color: var(--text); font-weight: 600; }

/* ============================ MEDALLION ============================ */

.med-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--sp-6); align-items: start; }

.med-stack { display: flex; flex-direction: column; gap: 6px; }

.med-layer {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--sp-4);
  width: 100%; text-align: left;
  padding: var(--sp-5); border: 1px solid var(--border);
  background: var(--card); border-radius: 7px; cursor: pointer;
  font-family: var(--f-body);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
  position: relative;
}
.med-layer:hover { transform: translateX(4px); border-color: var(--border-soft); }
.med-layer .ml-idx {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  color: var(--faint); letter-spacing: 0.06em;
}
.med-layer .ml-name {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.med-layer .ml-chev { color: var(--faint); font-size: 13px; transition: transform 0.22s var(--ease), color 0.22s var(--ease); }

.med-layer[data-tier="bronze"] .ml-name { color: #8A5A22; }
.med-layer[data-tier="silver"] .ml-name { color: #5F6C74; }
.med-layer[data-tier="gold"] .ml-name { color: var(--amber); }
.med-layer[data-tier="semantic"] .ml-name { color: var(--green-text); }

.med-layer.is-on { background: var(--ink); border-color: var(--ink); transform: translateX(4px); }
.med-layer.is-on .ml-idx { color: rgba(141,255,157,0.55); }
.med-layer.is-on .ml-name { color: var(--leaf); }
.med-layer.is-on .ml-chev { color: var(--leaf); transform: translateX(3px); }

.med-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: var(--sp-6);
  min-height: 244px;
  display: flex; flex-direction: column;
}
.med-panel-tier {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-text);
  margin-bottom: var(--sp-3);
}
.med-panel-title {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 400;
  letter-spacing: -0.02em; margin-bottom: var(--sp-4);
}
.med-panel-body { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.med-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: var(--sp-5); }
.med-chip {
  font-family: var(--f-mono); font-size: 10.5px;
  padding: 5px 10px; border-radius: 4px;
  background: var(--paper-alt); color: var(--text);
  border: 1px solid var(--border);
}
.med-note {
  margin-top: auto; padding-top: var(--sp-5);
  border-top: 1px dashed var(--border);
  font-size: 13px; line-height: 1.55; color: var(--text);
  display: flex; gap: var(--sp-3);
}
.med-note .mn-tag {
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.13em; color: var(--rust); text-transform: uppercase;
  flex-shrink: 0; padding-top: 3px;
}
.med-fade { animation: medFade 0.4s var(--ease); }
@keyframes medFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================ GANTT ============================ */

.gantt { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: var(--sp-6); }

.gantt-scale {
  display: grid; grid-template-columns: repeat(14, 1fr);
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.gantt-scale span {
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.09em; color: var(--faint); text-transform: uppercase;
}
.gantt-scale span.is-next { color: var(--green-text); font-weight: 600; }

.gantt-rows { display: flex; flex-direction: column; gap: var(--sp-4); }

.gantt-row { display: grid; grid-template-columns: repeat(14, 1fr); align-items: center; min-height: 54px; position: relative; }
.gantt-row::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--border-soft);
}

.gbar {
  position: relative; z-index: 2;
  border-radius: 6px; padding: 9px 14px;
  background: var(--ink); color: #fff;
  cursor: default;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  transform-origin: left center;
  overflow: hidden;
}
.gbar:hover { transform: scale(1.014); box-shadow: 0 10px 24px -12px rgba(1,56,46,0.55); }
.gbar-name {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--leaf); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gbar-desc {
  font-size: 11.5px; line-height: 1.35; color: rgba(255,255,255,0.72);
  margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gbar.w2 { background: var(--ink-soft); }
.gbar.w3 { background: #14624F; }

.gbar-defer {
  position: relative; z-index: 2;
  border: 1.5px dashed var(--border-strong, #C8C3B4);
  border-color: var(--faint);
  border-radius: 6px; padding: 9px 12px;
  background: repeating-linear-gradient(135deg, transparent, transparent 6px, rgba(1,56,46,0.045) 6px, rgba(1,56,46,0.045) 12px);
  text-align: center;
}
.gbar-defer .gd-name { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--muted); }
.gbar-defer .gd-sub { font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }

.gantt-grow { transform: scaleX(0); transform-origin: left center; transition: transform 0.85s var(--ease); }
.gantt-grow.is-in { transform: scaleX(1); }

/* ============================ USE CASES ============================ */

.uc-tbl tbody tr { cursor: pointer; }
.uc-tbl tbody tr.is-sel { background: rgba(12, 98, 71, 0.07); }
.uc-tbl tbody tr.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--green-text); }

.uc-id { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--green-text); letter-spacing: 0.06em; }
.uc-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; margin-top: 2px; }
.uc-metric { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.uc-metric b { color: var(--text); font-weight: 600; }
.uc-lo { font-size: 13.5px; color: var(--muted); }
.uc-lo b { display: block; color: var(--text); font-weight: 600; font-size: 12.5px; }

.pips { display: inline-flex; gap: 3px; align-items: center; }
.pip { width: 7px; height: 15px; border-radius: 2px; background: var(--paper-alt); border: 1px solid var(--border); }
.pip.on { background: var(--green-text); border-color: var(--green-text); }
.pip.on.low { background: var(--rust); border-color: var(--rust); }
.pips-lab { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; margin-left: 7px; color: var(--text); }

.call {
  display: inline-block; font-family: var(--f-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  padding: 6px 12px; border-radius: 4px;
}
.call-build { background: var(--ink); color: var(--leaf); }
.call-defer { background: transparent; color: var(--rust); border: 1.5px dashed var(--rust); }

.uc-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-6); margin-top: var(--sp-6); align-items: start; }

.uc-detail {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: var(--sp-6);
}
.uc-detail-head {
  display: flex; align-items: baseline; gap: var(--sp-4);
  padding-bottom: var(--sp-5); margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.uc-detail-id {
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--green-text);
  background: rgba(12,98,71,0.09); padding: 5px 10px; border-radius: 4px;
}
.uc-detail-name { font-family: var(--f-display); font-size: 1.55rem; font-weight: 400; letter-spacing: -0.022em; }
.uc-detail-metric { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-left: auto; }

.uc-facets { display: grid; gap: var(--sp-5); }
.uc-facet { display: grid; grid-template-columns: 116px 1fr; gap: var(--sp-5); align-items: start; }
.uc-facet dt {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--green-text); padding-top: 4px;
}
.uc-facet.risk dt { color: var(--rust); }
.uc-facet dd { margin: 0; font-size: 0.97rem; line-height: 1.58; color: var(--muted); }
.uc-facet dd b { color: var(--text); font-weight: 600; }

/* matrix */
.matrix-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: var(--sp-6); }
.matrix-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: var(--sp-5);
}
.matrix { display: grid; grid-template-columns: 34px repeat(3, 1fr); grid-template-rows: repeat(3, 62px) 26px; gap: 5px; }
.mx-ylab {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--faint);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.mx-cell {
  border: 1px solid var(--border-soft); border-radius: 5px;
  background: var(--paper); display: grid; place-items: center;
  position: relative;
}
.mx-cell.good { background: rgba(12,98,71,0.055); border-color: rgba(12,98,71,0.16); }
.mx-xlab {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--faint);
}

.mx-chip {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 12px; border-radius: 5px; border: 1.5px solid transparent;
  background: var(--ink); color: var(--leaf); cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.mx-chip.defer { background: transparent; color: var(--rust); border: 1.5px dashed var(--rust); }
.mx-chip:hover { transform: scale(1.09); }
.mx-chip.is-sel { box-shadow: 0 0 0 3px rgba(12,98,71,0.28), 0 8px 18px -10px rgba(1,56,46,0.5); transform: scale(1.06); }
.mx-chip.defer.is-sel { box-shadow: 0 0 0 3px rgba(156,58,16,0.2); }

.matrix-axes {
  display: flex; justify-content: space-between;
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--border-soft);
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.11em; color: var(--faint);
}

/* callout */
.callout {
  margin-top: var(--sp-7);
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--rust);
  border-radius: 8px; padding: var(--sp-6);
  display: grid; grid-template-columns: 210px 1fr; gap: var(--sp-6);
}
.callout-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--rust); line-height: 1.5; padding-top: 3px;
}
.callout-body { font-size: 1rem; line-height: 1.62; color: var(--muted); }
.callout-body strong { color: var(--text); font-weight: 600; }
.callout.on-dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); border-left-color: var(--leaf); }
.callout.on-dark .callout-tag { color: var(--leaf); }
.callout.on-dark .callout-body { color: rgba(255,255,255,0.8); }
.callout.on-dark .callout-body strong { color: #fff; }

/* ============================ KPI RAILS ============================ */

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

.rail-card {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.11);
  border-radius: 9px; padding: var(--sp-6);
  display: flex; flex-direction: column;
}
.rail-num {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--leaf); margin-bottom: var(--sp-3);
}
.rail-title {
  font-family: var(--f-display); font-size: 1.42rem; font-weight: 400;
  letter-spacing: -0.022em; color: #fff; margin-bottom: var(--sp-3);
}
.rail-desc { font-size: 0.92rem; line-height: 1.55; color: rgba(255,255,255,0.68); margin-bottom: var(--sp-6); }

.rail-group + .rail-group { margin-top: var(--sp-6); }
.rail-group-lab {
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(141,255,157,0.65); margin-bottom: var(--sp-4);
}

.rail { position: relative; padding-top: 3px; }
.rail-line {
  position: absolute; left: 7px; right: 7px; top: 9px; height: 2px;
  background: rgba(255,255,255,0.14);
}
.rail-line-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(141,255,157,0.35), var(--leaf));
  width: 0; transition: width 1.1s var(--ease) 0.15s;
}
.rail-stops { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 2; }
.rail-stop { display: flex; flex-direction: column; align-items: flex-start; }
.rail-stop:nth-child(2) { align-items: center; }
.rail-stop:nth-child(3) { align-items: flex-end; }
.rail-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ink); border: 2px solid rgba(255,255,255,0.3);
  transform: scale(0.5); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.rail-stop.commit .rail-dot { border-color: var(--leaf); background: var(--leaf); }
.rail.is-in .rail-dot { transform: scale(1); opacity: 1; }
.rail.is-in .rail-stop:nth-child(2) .rail-dot { transition-delay: 0.35s; }
.rail.is-in .rail-stop:nth-child(3) .rail-dot { transition-delay: 0.65s; }

.rail-val {
  font-family: var(--f-mono); font-size: 1.05rem; font-weight: 500;
  letter-spacing: -0.03em; color: #fff; margin-top: var(--sp-4);
  white-space: nowrap;
}
.rail-stop.commit .rail-val { color: var(--leaf); }
.rail-cap {
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-top: 4px; white-space: nowrap;
}
.rail-stop:nth-child(2) .rail-val, .rail-stop:nth-child(2) .rail-cap { text-align: center; }
.rail-stop:nth-child(3) .rail-val, .rail-stop:nth-child(3) .rail-cap { text-align: right; }

.guardrail {
  margin-top: auto; padding-top: var(--sp-5);
  border-top: 1px dashed rgba(255,255,255,0.16);
}
.guardrail-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--leaf);
  margin-bottom: var(--sp-3);
}
.guardrail-tag::before { content: '⌗'; font-size: 12px; }
.guardrail-body { font-size: 0.88rem; line-height: 1.55; color: rgba(255,255,255,0.72); }

.rails .rail-card:nth-child(3) .rail-desc { margin-bottom: var(--sp-5); }

/* ============================ METHODOLOGY ============================ */

.meth-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--sp-6); align-items: start; }
.findings { display: flex; flex-direction: column; gap: var(--sp-5); }

.finding {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: var(--sp-6);
  display: grid; grid-template-columns: 46px 1fr; gap: var(--sp-5);
}
.finding-num {
  font-family: var(--f-mono); font-size: 1.15rem; font-weight: 500;
  color: var(--border-strong, #C8C3B4); color: #C4BFB0; letter-spacing: -0.03em;
}
.finding-title {
  font-family: var(--f-display); font-size: 1.28rem; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.22; margin-bottom: var(--sp-3);
}
.finding-body { font-size: 0.96rem; line-height: 1.6; color: var(--muted); }
.finding-run {
  margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5);
  background: var(--paper); border: 1px solid var(--border-soft);
  border-left: 2px solid var(--green-text);
  border-radius: 5px;
  font-size: 0.9rem; line-height: 1.58; color: var(--text);
}
.finding-run .fr-tag {
  display: block;
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green-text); margin-bottom: 6px;
}
.finding-run code { font-family: var(--f-mono); font-size: 0.92em; }

/* data product sidebar */
.dp {
  background: var(--ink); color: #fff;
  border-radius: 9px; padding: var(--sp-6);
  position: sticky; top: 86px;
}
.dp-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--leaf);
  padding-bottom: var(--sp-5); margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--ink-line);
  line-height: 1.5;
}
.dp-item + .dp-item { margin-top: var(--sp-5); }
.dp-item dt {
  font-size: 9px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(141,255,157,0.7); margin-bottom: 5px;
}
.dp-item dd { margin: 0; font-size: 0.87rem; line-height: 1.55; color: rgba(255,255,255,0.74); }

.term {
  margin-top: var(--sp-6);
  background: var(--ink-deep); border: 1px solid var(--ink-line);
  border-radius: 6px; padding: var(--sp-4) var(--sp-5);
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.85;
}
.term-line { color: rgba(255,255,255,0.55); white-space: nowrap; overflow: hidden; }
.term-line.cmd { color: var(--leaf); }
.term-line b { color: var(--leaf); font-weight: 600; }
.term-line .dots { color: rgba(255,255,255,0.22); }
.term-caret {
  display: inline-block; width: 6px; height: 12px; vertical-align: -1px;
  background: var(--leaf); animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.dp-foot {
  margin-top: var(--sp-5); font-size: 0.83rem; line-height: 1.55;
  color: rgba(255,255,255,0.6); font-style: italic;
}

/* ============================ FOOTER ============================ */

.foot { background: var(--ink-deep); color: rgba(255,255,255,0.6); padding: var(--sp-7) 0; }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: var(--sp-4); }
.foot-brand img { height: 17px; }
.foot-title {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
}
.foot-note { font-size: 12.5px; max-width: 42em; line-height: 1.55; }
.foot-note a { color: var(--leaf); text-decoration: none; border-bottom: 1px solid rgba(141,255,157,0.3); }
.foot-note a:hover { border-bottom-color: var(--leaf); }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .med-layout, .uc-layout, .meth-layout { grid-template-columns: 1fr; }
  .rails { grid-template-columns: 1fr; }
  .dp { position: static; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 320px; }
  .hero-visual::after { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 4px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .section { padding: var(--sp-8) 0; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .mech, .callout { grid-template-columns: 1fr; gap: var(--sp-4); padding: var(--sp-5); }
  .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl { min-width: 700px; }
  .gantt-scroll { overflow-x: auto; }
  .gantt-inner { min-width: 720px; }
  .tbl-wrap::before, .gantt::before {
    content: 'swipe horizontally \2192';
    display: block; font-family: var(--f-mono); font-size: 9.5px;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
    padding: var(--sp-3) var(--sp-5) 0;
  }
  .gantt::before { padding: 0 0 var(--sp-3); }
  .uc-facet { grid-template-columns: 1fr; gap: var(--sp-2); }
  .finding { grid-template-columns: 1fr; gap: var(--sp-3); }
  .container { padding: 0 var(--sp-5); }
  .hero-copy { padding: var(--sp-8) var(--sp-5); }
}

@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-left: 0; border-top: 1px solid var(--ink-line); }
  .hero-stat:first-child { border-top: 0; }
  .kpi-toolbar { flex-direction: column; align-items: stretch; }
  .seg { justify-content: stretch; }
  .seg button { flex: 1; padding: 8px 6px; font-size: 11px; }
  .uc-detail-metric { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
