/* ============================================================
   STRATIFY — Pitch Deck slide styles
   1920 × 1080. Editorial Dark Finance, no shadows, hairlines.
   ============================================================ */

deck-stage {
  --slide-pad-x: 120px;
  --slide-pad-y: 80px;
  --rule: #2A2F36;
  --rule-subtle: #1F2329;
}

deck-stage > section {
  position: relative;
  width: 1920px;
  height: 1080px;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow: hidden;
}

/* ---------- slide chrome ---------- */
.slide-body {
  position: absolute;
  inset: var(--slide-pad-y) var(--slide-pad-x) 120px;
  display: flex;
  flex-direction: column;
}

.slide-footer {
  position: absolute;
  left: var(--slide-pad-x);
  right: var(--slide-pad-x);
  bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.slide-footer .rule {
  flex: 1;
  height: 1px;
  background: var(--rule-subtle);
}
.slide-footer .mark {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.slide-footer .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* ---------- header strip (caption + chapter no) ---------- */
.slide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}
.slide-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.slide-eyebrow .accent-tick {
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
  position: relative;
  top: -2px;
}
.slide-chapter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

/* ---------- type ---------- */
.h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 96px;
  line-height: 100px;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
}
.h1-xl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 140px;
  line-height: 132px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}
.lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  color: var(--text-primary);
  max-width: 980px;
}
.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--text-secondary);
}
.body-s {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}
.caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.caption-strong {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.mono-l {
  font-family: var(--font-mono);
  font-size: 56px;
  line-height: 64px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.mono-xl {
  font-family: var(--font-mono);
  font-size: 96px;
  line-height: 96px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.mono-m {
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 30px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.accent { color: var(--accent); }
.fg-secondary { color: var(--text-secondary); }
.fg-tertiary { color: var(--text-tertiary); }
.fg-pos { color: var(--data-positive); }
.fg-neg { color: var(--data-negative); }

/* ---------- common blocks ---------- */
.kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.accent-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--accent);
}

.killline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 1400px;
}

/* ---------- grids ---------- */
.col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}
.col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
}
.col-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 64px 96px;
}

.cell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cell .cell-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.cell .data-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0;
}
.cell .data-line .label {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-secondary);
}
.cell .data-line .value {
  font-family: var(--font-mono);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.cell-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cell-list li {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 28px;
  color: var(--text-secondary);
}
.cell-list li.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* ---------- phone slot ---------- */
.phone-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 120px;
}
.phone-slot {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.phone-frame-wrap {
  width: 225px;
  height: 490px;
  overflow: hidden;
  position: relative;
}
.phone-frame-scale {
  transform: scale(0.56);
  transform-origin: top left;
  width: 402px;
  height: 874px;
}
.phone-frame-wrap.lg {
  width: 322px;
  height: 699px;
}
.phone-frame-wrap.lg .phone-frame-scale {
  transform: scale(0.8);
}
.phone-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.phone-title {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  max-width: 280px;
  line-height: 22px;
}

/* ---------- title slide ---------- */
.title-slab {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 120px;
}
.title-slab .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.title-slab .mid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ---------- 2x2 quadrant grid ---------- */
.quad {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  grid-template-rows: 60px 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.quad > div {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quad-head {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  justify-content: center;
}
.quad-head.axis-y { color: var(--text-tertiary); }
.quad-cell .qc-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 40px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.quad-cell .qc-list {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 26px;
  color: var(--text-secondary);
}
.quad-cell.empty .qc-title {
  color: var(--accent);
}
.quad-cell.stratify {
  background: rgba(212, 62, 45, 0.06);
  border-color: var(--accent) !important;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

/* ---------- swimlane ---------- */
.lane {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 36px;
  border: 1px solid var(--rule);
  background: var(--bg-elevated);
  height: 100%;
}
.lane-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.lane-track {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}
.lane-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.lane-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lane-row .lane-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.lane-row .lane-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 26px;
  color: var(--text-primary);
}

/* ---------- timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--accent);
  margin-top: 16px;
}
.timeline-cell {
  padding: 28px 28px 0;
  border-right: 1px solid var(--rule-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-cell:last-child {
  border-right: 0;
}
.timeline-cell .q {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.timeline-cell .q-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--text-primary);
}

/* ---------- table ---------- */
.dtable {
  width: 100%;
  border-collapse: collapse;
}
.dtable th, .dtable td {
  text-align: left;
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--rule-subtle);
  vertical-align: top;
}
.dtable th:last-child, .dtable td:last-child {
  padding-right: 0;
}
.dtable th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.dtable td {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-primary);
}
.dtable td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.dtable th.num { text-align: right; }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  flex: 1;
  align-content: start;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-portrait {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(
      135deg,
      #14171B 0 12px,
      #1C2026 12px 24px
    );
  border: 1px solid var(--rule);
  position: relative;
}
.team-portrait::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.team-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.team-role {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-creds {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--text-secondary);
}

/* ---------- use-of-funds bar ---------- */
.bar-stack {
  display: flex;
  width: 100%;
  height: 12px;
  border: 1px solid var(--rule);
}
.bar-stack > div {
  border-right: 1px solid var(--rule-subtle);
}
.bar-stack > div:last-child { border-right: 0; }
.bar-seg { height: 100%; }
.bar-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.bar-legend .leg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bar-legend .leg-pct {
  font-family: var(--font-mono);
  font-size: 36px;
  line-height: 40px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.bar-legend .leg-label {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--text-secondary);
}
.bar-legend .leg-cat {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- pill / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
.pill.accent {
  border-color: var(--accent);
  color: var(--accent);
}
.pill .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* ---------- insight diagram ---------- */
.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rule);
}
.stack-layer {
  padding: 32px 32px;
  border-bottom: 1px solid var(--rule);
}
.stack-layer:last-child { border-bottom: 0; }
.stack-layer .layer-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.stack-layer .layer-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.stack-layer .layer-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
}
.stack-layer.consumer {
  background: var(--bg-elevated);
}
.stack-layer.wrapper {
  background: rgba(212, 62, 45, 0.04);
}
.stack-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.stack-connector .pipe {
  width: 1px;
  height: 24px;
  background: var(--accent);
}
.stack-connector .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ---------- vertical TAM/SAM/SOM ---------- */
.tam-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-subtle);
  align-items: baseline;
}
.tam-row .tag {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.tam-row .desc {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 32px;
  color: var(--text-primary);
}
.tam-row .desc .sub {
  display: block;
  font-size: 15px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.tam-row .val {
  font-family: var(--font-mono);
  font-size: 56px;
  line-height: 64px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-align: right;
}

/* ---------- status comparison (done vs not) ---------- */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.status-col {
  padding: 28px 32px;
  border-right: 1px solid var(--rule);
}
.status-col:last-child { border-right: 0; }
.status-col .status-cap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.status-col .status-cap .glyph {
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
}
.status-col.done .glyph {
  background: var(--text-primary);
  border-color: var(--text-primary);
}
.status-col.done .status-cap { color: var(--text-primary); }
.status-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-col li {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 26px;
  color: var(--text-primary);
}
.status-col.not li { color: var(--text-secondary); }

/* ---------- appendix index ---------- */
.appendix-strip {
  position: absolute;
  top: 80px;
  left: 120px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
