/* Hallmark · studied-DNA (kzero.org/protocol-intro) · 16:9 stage
 * TaxOwl kit: Inter display+body · IBM Plex Mono labels · owl mark
 * Palettes exclusive. Accent plays the K0 “gold” role.
 */
:root, html[data-palette="trust"] {
  --navy: #0D1B2A; --navy-alt: #132337; --ice: #F8FAFC; --ice-alt: #EEF2F7;
  --ink: #0D1B2A; --on-dark: #E8EEF6; --muted-d: #8A96A8; --hint-d: #4E5A6E;
  --muted-l: #5A6270; --hint-l: #9AA0A8;
  --accent: #3B82F6; --line-d: #1E3348; --line-l: #D5DEE8; --stage: #070B12;
}
html[data-palette="executive"] {
  --navy: #111827; --navy-alt: #1F2937; --ice: #FFFFFF; --ice-alt: #F3F4F6;
  --ink: #111827; --on-dark: #F9FAFB; --muted-d: #9CA3AF; --hint-d: #6B7280;
  --muted-l: #4B5563; --hint-l: #9CA3AF;
  --accent: #D97706; --line-d: #374151; --line-l: #E5E7EB; --stage: #09090B;
}
html[data-palette="energy"] {
  --navy: #1C1410; --navy-alt: #2A1C14; --ice: #FFFBEB; --ice-alt: #FEF3C7;
  --ink: #1C1917; --on-dark: #FFFBEB; --muted-d: #D6D3D1; --hint-d: #A8A29E;
  --muted-l: #57534E; --hint-l: #A8A29E;
  --accent: #EA580C; --line-d: #3F2A1C; --line-l: #FDE68A; --stage: #1C1410;
}
html[data-palette="growth"] {
  --navy: #052E16; --navy-alt: #14532D; --ice: #ECFDF5; --ice-alt: #D1FAE5;
  --ink: #052E16; --on-dark: #ECFDF5; --muted-d: #86EFAC; --hint-d: #166534;
  --muted-l: #166534; --hint-l: #4ADE80;
  --accent: #38BDF8; --line-d: #14532D; --line-l: #A7F3D0; --stage: #022C16;
}

html, html[data-theme="dark"] { --slide-bg: var(--navy); --slide-fg: var(--on-dark); --slide-muted: var(--muted-d); --slide-hint: var(--hint-d); --slide-line: var(--line-d); --grid: rgba(255,255,255,.045); --panel: var(--navy-alt); }
html[data-theme="light"] { --slide-bg: var(--ice); --slide-fg: var(--ink); --slide-muted: var(--muted-l); --slide-hint: var(--hint-l); --slide-line: var(--line-l); --grid: rgba(13,27,42,.055); --panel: var(--ice-alt); --stage: var(--ice-alt); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--stage); }
.deck-viewport { position: fixed; inset: 0; background: var(--stage); }
.deck-stage { position: absolute; width: 1920px; height: 1080px; transform-origin: 0 0; }
.slide { position: absolute; inset: 0; display: none; overflow: hidden; background: var(--slide-bg); color: var(--slide-fg); }
.slide.active { display: block; }
.slide.active.chromed { display: grid; }
/* Grid only in leftover whitespace — masked off the content band */
.slide::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0; background-size: 80px 80px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, transparent 0 58%, #000 72%, #000 84%, transparent 94%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0 58%, #000 72%, #000 84%, transparent 94%);
}
.slide > * { position: relative; z-index: 1; }

.sans { font-family: Inter, Helvetica Neue, system-ui, sans-serif; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.display { font-family: Inter, Helvetica Neue, system-ui, sans-serif; font-size: 84px; font-weight: 700; line-height: 1.02; letter-spacing: -.035em; max-width: none; overflow-wrap: anywhere; }
.h1 { font-family: Inter, Helvetica Neue, system-ui, sans-serif; font-size: 56px; font-weight: 700; line-height: 1.12; letter-spacing: -.03em; max-width: none; overflow-wrap: anywhere; }
.h2 { font-family: Inter, Helvetica Neue, system-ui, sans-serif; font-size: 50px; font-weight: 700; line-height: 1.14; letter-spacing: -.025em; max-width: none; overflow-wrap: anywhere; }
.lead { font-family: Inter, Helvetica Neue, system-ui, sans-serif; font-size: 22px; font-weight: 400; line-height: 1.5; max-width: 52ch; color: var(--slide-muted); }
.cover .lead { font-size: 20px; max-width: 56ch; }
em.acc { font-style: normal; color: var(--accent); }
.h-ico { display: flex; align-items: flex-start; gap: 18px; }
.h-ico > .lucide { width: .58em; height: .58em; color: var(--accent); flex-shrink: 0; margin-top: .18em; stroke-width: 1.75; }
.h-ico > span { min-width: 0; flex: 1; }

.kicker { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.chrome {
  display: block; padding-bottom: 16px; border-bottom: 1px solid;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 18px;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  overflow-wrap: anywhere; max-width: 100%;
}
.chrome { color: var(--slide-hint); border-color: var(--slide-line); }
.chrome .acc { color: var(--accent); }

.chromed { grid-template-rows: auto 1fr; height: 100%; padding: 108px 120px 80px; }
.slide-body { display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; padding: 88px 0 0; gap: 8px; }

.cover { height: 100%; padding: 108px 120px 52px; display: flex; flex-direction: column; }
.cover-mid { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 108px; }
.cover-kicker { margin-bottom: 22px; }
.figures {
  display: flex; gap: 72px; align-items: baseline;
  border-top: 1px solid var(--slide-line); padding-top: 22px;
  background: var(--slide-bg);
}
.fig { display: flex; align-items: baseline; gap: 12px; }
.fig b { font-family: Inter, sans-serif; font-size: 32px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.fig span { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slide-hint); }

.brand-br {
  position: absolute; right: 48px; bottom: 36px; z-index: 4;
  display: flex; align-items: center; gap: 7px; color: var(--slide-fg); text-decoration: none; opacity: .55;
}
.brand-br svg { width: 22px; height: 22px; }
.brand-br span { font-family: Inter, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }

.slide-note {
  position: absolute; right: 120px; bottom: 78px; z-index: 3;
  max-width: 38ch; text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; line-height: 1.45; letter-spacing: .01em;
  color: var(--slide-muted);
}
.cover + .slide-note,
.slide:has(.cover) .slide-note { bottom: 148px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.panel { border-top: 1px solid var(--slide-line); padding-top: 20px; background: var(--slide-bg); }
.panel .pnum { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .14em; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.panel h3 { font-family: Inter, sans-serif; font-size: 28px; font-weight: 650; margin-top: 12px; line-height: 1.25; }
.panel p { font-family: Inter, sans-serif; font-size: 22px; line-height: 1.5; margin-top: 10px; color: var(--slide-muted); }
.panel .lucide { width: 16px; height: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat-card { border-top: 1px solid var(--slide-line); padding-top: 20px; background: var(--slide-bg); }
.stat-card .num { font-family: Inter, sans-serif; font-size: 72px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--accent); }
.stat-card .num.held { font-size: 40px; letter-spacing: -.02em; color: var(--slide-hint); font-weight: 600; }
.stat-card .name { font-family: Inter, sans-serif; font-size: 20px; font-weight: 500; margin-top: 12px; }
.stat-card .hint { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; color: var(--slide-hint); }

ul.dash { list-style: none; }
ul.dash li { position: relative; padding-left: 1.8em; font-family: Inter, sans-serif; font-size: 20px; line-height: 1.55; margin-top: 12px; }
ul.dash li::before { content: "—"; position: absolute; left: 0; font-family: "IBM Plex Mono", monospace; color: var(--accent); }
ul.dash { color: var(--slide-muted); }

.pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.arch { display: flex; flex-direction: column; gap: 0; max-width: 1480px; }
.arch-row { display: grid; gap: 16px; align-items: stretch; }
.arch-row.four { grid-template-columns: repeat(4, 1fr); }
.arch-row.two { grid-template-columns: 1fr 1fr; }
.arch-row.one { grid-template-columns: 1fr; }
.arch-box {
  border: 1px solid var(--slide-line); padding: 20px 22px; background: var(--panel);
  min-height: 108px;
}
.arch-box .ab-k { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.arch-box h3 { font-size: 22px; font-weight: 650; margin-top: 8px; }
.arch-box p { font-size: 16px; margin-top: 6px; opacity: .8; }
.arch-join { display: flex; justify-content: center; color: var(--accent); font-size: 22px; line-height: 28px; }
.arch-box.core { border-left: 3px solid var(--accent); }

.step {
  border: 1px solid var(--slide-line); padding: 14px 18px; font-family: Inter, sans-serif;
  font-size: 20px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
}
.step .lucide { width: 16px; height: 16px; color: var(--accent); }
.arr { color: var(--accent); font-weight: 700; }

.fc { border-bottom: 1.5px dotted var(--accent); cursor: help; position: relative; }
.fc::after {
  content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 10px);
  width: min(440px, 34vw); z-index: 6;
  background: var(--ink); color: var(--ice); font-family: Inter, sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none;
  padding: 12px 14px; border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
}
html[data-theme="dark"] .fc::after { background: var(--ice); color: var(--ink); }
html[data-theme="light"] .fc::after { background: var(--ink); color: var(--ice); }
.fc:hover::after, .fc:focus-visible::after { opacity: 1; }

.top-menu {
  position: fixed; top: 14px; left: 18px; right: 18px; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.top-menu > * { pointer-events: auto; }
.menu-left, .menu-right { display: flex; gap: 8px; align-items: center; }
.pill {
  appearance: none; border: 1px solid color-mix(in srgb, var(--slide-fg) 18%, transparent);
  background: color-mix(in srgb, var(--slide-bg) 72%, transparent); color: var(--slide-fg);
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
  text-decoration: none; cursor: pointer; backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; gap: 6px;
}
.pill:hover, .pill.on { border-color: var(--accent); color: var(--accent); }
.pill .lucide { width: 13px; height: 13px; }
.counter { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; color: var(--slide-muted); padding: 0 6px; }

.dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--slide-bg) 88%, transparent);
  border: 1px solid var(--slide-line); backdrop-filter: blur(14px);
}
.dock button {
  appearance: none; border: 0; background: transparent; color: var(--slide-fg);
  width: 32px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.kits { display: flex; gap: 7px; align-items: center; padding-left: 8px; border-left: 1px solid var(--slide-line); }
.kits label { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--slide-hint); }
.kit {
  appearance: none; width: 18px; height: 18px; border-radius: 99px; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(13,27,42,.2); padding: 0;
}
.kit[data-palette="trust"] { background: linear-gradient(135deg, #0D1B2A 50%, #3B82F6 50%); }
.kit[data-palette="executive"] { background: linear-gradient(135deg, #111827 50%, #D97706 50%); }
.kit[data-palette="energy"] { background: linear-gradient(135deg, #EA580C 50%, #475569 50%); }
.kit[data-palette="growth"] { background: linear-gradient(135deg, #15803D 50%, #38BDF8 50%); }
.kit.active { box-shadow: 0 0 0 2px var(--ink); }

/* Text enter — word rise on headings, block rise on the rest */
.w { display: inline-block; }
.slide.enter .kicker,
.slide.enter .lead,
.slide.enter .slide-note,
.slide.enter .figures,
.slide.enter .panel,
.slide.enter .stat-card,
.slide.enter .arch-box {
  animation: rise .7s cubic-bezier(.16, 1, .3, 1) both;
}
.slide.enter .kicker { animation-delay: .04s; }
.slide.enter .h-ico > .lucide { animation: rise .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: .08s; }
.slide.enter .w { animation: rise .55s cubic-bezier(.16, 1, .3, 1) both; }
.slide.enter .lead { animation-delay: .28s; }
.slide.enter .slide-note { animation-delay: .45s; }
.slide.enter .figures { animation-delay: .38s; }
.slide.enter .panel:nth-child(1),
.slide.enter .stat-card:nth-child(1),
.slide.enter .arch-box:nth-child(1) { animation-delay: .32s; }
.slide.enter .panel:nth-child(2),
.slide.enter .stat-card:nth-child(2),
.slide.enter .arch-box:nth-child(2) { animation-delay: .4s; }
.slide.enter .panel:nth-child(3),
.slide.enter .stat-card:nth-child(3),
.slide.enter .arch-box:nth-child(3) { animation-delay: .48s; }
.slide.enter .panel:nth-child(4),
.slide.enter .arch-box:nth-child(4) { animation-delay: .56s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
