/* ════════════════════════════════════════════════════════════════════
 * Talison Way — Operating Model Health Assessment
 * C-suite deck stylesheet. Built on the Nexlytics BrightSoft system
 * (craft only). Figtree + JetBrains Mono. Data-forward, yellow sparing.
 * ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Brand / surface ── */
  --ink:        #16233F;
  --ink-soft:   #223F74;
  --body:       #3E4A5C;
  --muted:      #5C6878;
  --faint:      #939BA8;
  --line:       #E6E9EF;
  --line-2:     #CBD2DD;

  --page:       #FCFCFD;
  --tint:       #EFF2F6;
  --card:       #FFFFFF;
  --dark:       #1A3358;
  --dark-2:     #122544;

  --cobalt:     #223F74;
  --cobalt-700: #16294D;
  --cobalt-50:  #EAEFF7;
  --mint:       #2C7E46;
  --yellow:     #FFB02D;

  /* ── Health-score diagnostic ramp ── */
  --t-strong:    #2C7E46;
  --t-good:      #46A05E;
  --t-moderate:  #B5710A;   /* gold-amber text, legible on light */
  --t-moderate-pure: #FFB02D;
  --t-concern:   #DC6803;
  --t-weak:      #E1571E;
  --t-critical:  #C0392B;

  --t-strong-bg:   #E8F3EC;
  --t-good-bg:     #E8F3EC;
  --t-moderate-bg: #FCEFCE;
  --t-concern-bg:  #FBE7CB;
  --t-weak-bg:     #FBE2D5;
  --t-critical-bg: #F8E1DE;

  /* ── Fonts ── */
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* ── Type scale (1920×1080, projection-grade) ── */
  --fs-hero:     150px;
  --fs-display:  104px;
  --fs-title:    62px;
  --fs-subtitle: 40px;
  --fs-lead:     32px;
  --fs-body:     27px;
  --fs-small:    23px;
  --fs-micro:    19px;
  --fs-eyebrow:  22px;

  /* ── Rhythm (density-aware) ── */
  --pad-x:    104px;
  --pad-top:  84px;
  --pad-bot:  80px;
  --gap-title: 16px;
  --gap-block: 40px;
  --gap-item:  22px;

  --accent-eyebrow: var(--cobalt);

  --radius:  14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(26,26,20,0.22), 0 4px 12px -6px rgba(26,26,20,0.10);
  --shadow-sm: 0 2px 6px -2px rgba(26,26,20,0.10);
}

/* Compact density — tighter padding + slightly smaller type */
:root[data-density="compact"] {
  --pad-x:   80px;
  --pad-top: 64px;
  --pad-bot: 60px;
  --gap-block: 28px;
  --gap-item:  16px;
  --fs-title:    56px;
  --fs-subtitle: 36px;
  --fs-lead:     29px;
  --fs-body:     25px;
  --fs-small:    21px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: #15140f; }

deck-stage:not(:defined) { visibility: hidden; }

deck-stage section {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  overflow: hidden;
}

/* ── Slide frame ── */
.slide {
  position: absolute;
  inset: 0;
  padding: var(--pad-top) var(--pad-x) var(--pad-bot);
  display: flex;
  flex-direction: column;
}
.slide--tint { background: var(--tint); }
.slide--white { background: var(--card); }
.slide--dark { background: var(--dark); color: var(--page); }

/* ── Header block (eyebrow + title), consistent top-left ── */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-eyebrow);
  margin: 0;
}
body.no-foot .foot { display: none; }
.slide--dark .eyebrow { color: var(--yellow); }
.title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--fs-title);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: var(--gap-title) 0 0;
  max-width: 25ch;
  text-wrap: balance;
}
.slide--dark .title { color: var(--page); }
.subtitle {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.head { margin-bottom: var(--gap-block); }
.head--rule { border-bottom: 1px solid var(--line); padding-bottom: 28px; }

/* ── Generic text ── */
.lead { font-size: var(--fs-lead); line-height: 1.34; color: var(--body); font-weight: 400; max-width: 40ch; text-wrap: pretty; }
.body { font-size: var(--fs-body); line-height: 1.45; color: var(--body); max-width: 56ch; text-wrap: pretty; }
.small { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.micro { font-size: var(--fs-micro); line-height: 1.4; color: var(--faint); }
.mono { font-family: var(--mono); }
.kicker { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

.fill { flex: 1; min-height: 0; }
.spread { display: flex; justify-content: space-between; align-items: flex-end; }
.row { display: flex; }
.col { display: flex; flex-direction: column; }

/* ── Page footer chrome ── */
.foot {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x); bottom: 38px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.08em;
  color: var(--faint); text-transform: uppercase;
}
.slide--dark .foot { color: #8E9CB5; }
.foot__brand { font-weight: 600; color: var(--muted); }
.slide--dark .foot__brand { color: #C3CCDB; }

/* ── Talison branded footer bar (green + navy, gold url) ── */
.brandbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  display: flex; align-items: stretch; z-index: 3;
  font-family: var(--sans);
}
body.no-foot .brandbar { display: none; }
.brandbar__green {
  flex: 1; background: var(--mint);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px 0 var(--pad-x); gap: 24px;
}
.brandbar__name {
  font-weight: 800; font-size: 16px; letter-spacing: 0.04em; color: #fff; white-space: nowrap;
}
.brandbar__name .li { font-weight: 500; opacity: 0.85; }
.brandbar__meta {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.78);
}
.brandbar__tag {
  font-weight: 700; font-size: 15px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; white-space: nowrap;
}
.brandbar__navy {
  position: relative; flex: none; width: 340px;
  background: var(--dark);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 var(--pad-x) 0 40px;
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -1px;
}
.brandbar__navy::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 7px);
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%);
}
.brandbar__url {
  position: relative; font-family: var(--sans); font-weight: 700;
  font-size: 15px; letter-spacing: 0.08em; color: var(--yellow);
  white-space: nowrap;
}

/* ── Big number / metric ── */
.metric { display: flex; flex-direction: column; }
.metric__val {
  font-family: var(--sans); font-weight: 800;
  font-size: var(--fs-display); line-height: 0.92;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.metric__avg { font-family: var(--mono); font-size: var(--fs-small); color: var(--faint); margin-top: 10px; letter-spacing: 0.02em; }
.metric__label { font-size: var(--fs-small); font-weight: 600; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.01em; }

/* ── Tier coloring helpers ── */
.t-strong   { color: var(--t-strong); }
.t-good     { color: var(--t-good); }
.t-moderate { color: var(--t-moderate); }
.t-concern  { color: var(--t-concern); }
.t-weak     { color: var(--t-weak); }
.t-critical { color: var(--t-critical); }

/* ── Score chip ── */
.chip {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 8px 16px; border-radius: var(--radius-pill, 999px);
  border-radius: 999px;
  font-family: var(--sans); font-weight: 700;
  font-size: var(--fs-small);
}
.chip__pct { font-size: 1.05em; }
.chip__avg { font-family: var(--mono); font-weight: 500; font-size: 0.82em; opacity: 0.8; }
.chip--strong   { background: var(--t-strong-bg);   color: var(--t-strong); }
.chip--good     { background: var(--t-good-bg);     color: var(--t-strong); }
.chip--moderate { background: var(--t-moderate-bg); color: #9A6109; }
.chip--concern  { background: var(--t-concern-bg);  color: #B5570A; }
.chip--weak     { background: var(--t-weak-bg);     color: var(--t-weak); }
.chip--critical { background: var(--t-critical-bg); color: var(--t-critical); }

/* ── Card ── */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 32px;
}
.card--pad-lg { padding: 40px; }

/* ── Ranked score-bar chart ── */
.bars { display: flex; flex-direction: column; gap: var(--gap-item); justify-content: space-between; padding: 24px 0 8px; }
.bar { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.bar__name { font-size: var(--fs-body); font-weight: 700; color: var(--ink); white-space: nowrap; }
.bar__name .num { color: var(--faint); font-weight: 600; margin-right: 12px; font-family: var(--mono); font-size: 0.82em; }
.bar__val { font-family: var(--sans); font-weight: 800; font-size: calc(var(--fs-body) * 1.15); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__avg { font-family: var(--mono); font-weight: 500; font-size: var(--fs-micro); color: var(--faint); margin-left: 12px; }
.bar__track { position: relative; height: 22px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; min-width: 6px; }
.bar__fill--strong   { background: var(--t-strong); }
.bar__fill--good     { background: var(--t-good); }
.bar__fill--moderate { background: var(--t-moderate-pure); }
.bar__fill--concern  { background: var(--t-concern); }
.bar__fill--weak     { background: var(--t-weak); }
.bar__fill--critical { background: var(--t-critical); }
.bar__zero { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--faint); }

/* ── Stacked response-distribution bar ── */
.dist { display: flex; height: 56px; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.dist__seg { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 18px; color: #fff; }
.dist__seg[data-empty="1"] { display: none; }
.seg-1 { background: #C0392B; }
.seg-2 { background: #E1571E; }
.seg-3 { background: #E89A1E; color: #16233F; }
.seg-4 { background: #46A05E; }
.seg-5 { background: #2C7E46; }
.dist-legend { display: flex; gap: 28px; flex-wrap: wrap; }
.dist-legend__item { display: flex; align-items: center; gap: 9px; font-size: var(--fs-micro); color: var(--muted); white-space: nowrap; }
.dist-legend__dot { width: 14px; height: 14px; border-radius: 4px; }

/* ── Color-scale legend (methodology) ── */
.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.scale__cell { padding: 22px 18px; color: #fff; }
.scale__cell .pct { font-family: var(--mono); font-weight: 600; font-size: var(--fs-small); }
.scale__cell .lab { font-weight: 700; font-size: var(--fs-body); margin-top: 6px; }

/* ── KPI strip ── */
.kpis { display: grid; gap: 24px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: center; }
.kpi__label { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.kpi__val { font-weight: 800; font-size: 76px; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin-top: 14px; }
.kpi__avg { font-family: var(--mono); font-size: var(--fs-micro); color: var(--faint); margin-top: 8px; }
.kpi__note { font-size: var(--fs-micro); color: var(--muted); margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); line-height: 1.35; }
.kpi__dot { width: 12px; height: 12px; border-radius: 50%; }

/* ── Actions list (per-expectation) ── */
.actl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.actl li { display: flex; align-items: flex-start; gap: 18px; }
.actl__txt { font-size: var(--fs-small); line-height: 1.36; color: var(--body); display: flex; flex-direction: column; gap: 4px; }
.actl__txt strong { color: var(--ink); font-weight: 700; }
.actl .tag { flex: none; margin-top: 3px; }

/* ── Method8-for-Talison footer ── */
.mfoot { position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 36px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.mfoot__brand { color: var(--muted); }
.mfoot__brand strong { color: var(--ink); font-weight: 700; letter-spacing: 0.02em; }
.slide--dark .mfoot { color: #8E9CB5; }
.slide--dark .mfoot__brand { color: #A9B4C6; }
.slide--dark .mfoot__brand strong { color: #FFFFFF; }
body.no-foot .mfoot { display: none; }

/* ── Action type system (opportunity / feedback / gap action) ── */
.actions { display: flex; flex-direction: column; gap: 13px; }
.action { display: flex; align-items: flex-start; gap: 14px; }
.atag { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; white-space: nowrap; margin-top: 2px; min-width: 92px; text-align: center; }
.atag--opp { background: var(--cobalt-50); color: var(--cobalt-700); }
.atag--fb  { background: var(--t-moderate-bg); color: #9A6109; }
.atag--gap { background: var(--t-strong-bg); color: var(--t-strong); }
.action__txt { font-size: var(--fs-micro); line-height: 1.38; color: var(--body); }

/* ── Actions register table tweaks ── */
.tbl td.tbl__type { width: 150px; }
.tbl .atag { display: inline-block; }
.tbl--compact { table-layout: fixed; }
.tbl--compact th { padding: 0 20px 12px; }
.tbl--compact td { padding: 11px 20px; }
.tbl--compact .tbl__exp { font-size: var(--fs-micro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl--compact .tbl__exp .num { margin-right: 7px; }
.tbl--compact .tbl__find { font-size: var(--fs-micro); max-width: none; }
.tbl--compact .atag { font-size: 11px; min-width: 84px; padding: 4px 8px; }

/* ── Findings table ── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 0 24px 16px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 22px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl__exp { font-weight: 700; font-size: var(--fs-small); color: var(--ink); }
.tbl__exp .num { font-family: var(--mono); color: var(--faint); font-size: 0.8em; margin-right: 8px; }
.tbl__find { font-size: var(--fs-micro); color: var(--body); line-height: 1.4; max-width: 42ch; }
.tbl__opp { font-size: var(--fs-micro); color: var(--cobalt-700); line-height: 1.4; max-width: 40ch; font-weight: 500; }

/* ── List with markers ── */
.oppl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.oppl li { position: relative; padding-left: 34px; font-size: var(--fs-small); line-height: 1.4; color: var(--body); }
.oppl li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 3px; border-radius: 2px; background: var(--cobalt); }

/* ── Pills / tags ── */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.tag--ok { background: var(--t-good-bg); color: var(--t-strong); }
.tag--note { background: var(--tint); color: var(--muted); border: 1px solid var(--line-2); }

/* ── Big delta callout ── */
.delta { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; color: var(--mint); }

/* ── Contents list ── */
.toc { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 80px; row-gap: 4px; }
.toc__item { display: flex; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toc__num { font-family: var(--mono); font-size: var(--fs-small); color: var(--cobalt); font-weight: 500; width: 1.5em; }
.toc__txt { font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.toc__sub { font-size: var(--fs-micro); color: var(--faint); margin-left: auto; font-family: var(--mono); }

/* ── Entrance animation (gated; print/reduced-motion safe) ── */
@media (prefers-reduced-motion: no-preference) {
  [data-deck-active] .anim { opacity: 0; transform: translateY(20px); animation: rise 0.7s cubic-bezier(0.22,0.61,0.36,1) forwards; }
  [data-deck-active] .anim-1 { animation-delay: 0.05s; }
  [data-deck-active] .anim-2 { animation-delay: 0.13s; }
  [data-deck-active] .anim-3 { animation-delay: 0.21s; }
  [data-deck-active] .anim-4 { animation-delay: 0.29s; }
  [data-deck-active] .anim-5 { animation-delay: 0.37s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
