@import url("./vendor/@fontsource/wix-madefor-display/400.css");
@import url("./vendor/@fontsource/wix-madefor-display/600.css");
@import url("./vendor/@fontsource/wix-madefor-display/700.css");
@import url("./vendor/@fontsource/oxygen/400.css");
@import url("./vendor/@fontsource/oxygen/700.css");

:root {
  --ink: #0e1016;
  --surface: #131720;
  --panel: #1b2230;
  --border: #3a465f;
  --text: #eff1f5;
  --muted: #c0c8d8;
  --soft: #a0acc5;
  --amber: #ffc233;
  --accent: #ffb300;
}

.reveal {
  color: var(--text);
  font-family: "Oxygen", sans-serif;
  font-size: 22px;
  background: var(--ink);
}

.reveal .slides {
  text-align: left;
}

.reveal section.slide {
  box-sizing: border-box;
  width: 1280px;
  height: 720px;
  padding: 48px 66px 44px;
  background: radial-gradient(circle at 95% 0%, #202b40 0, transparent 38%), var(--ink);
}

.reveal h1, .reveal h2, .reveal h3, .reveal p, .reveal figure {
  margin: 0;
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: "Wix Madefor Display", sans-serif;
  text-transform: none;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.reveal h1 { font-size: 62px; font-weight: 700; }
.reveal h2 { font-size: 48px; font-weight: 700; }
.reveal h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.reveal em { color: var(--amber); font-style: normal; }
.reveal p { line-height: 1.42; }

.eyebrow {
  margin-bottom: 24px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span { color: var(--soft); padding: 0 8px; }
.lead { color: var(--muted); font-size: 24px; }
.intro { margin-top: 16px !important; color: var(--muted); font-size: 20px; }

.reveal footer {
  position: absolute;
  right: 66px;
  bottom: 34px;
  left: 66px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.cover-grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 25px; padding-top: 35px; }
.cover .lead { margin-top: 34px; }
.cover-visual { position: relative; width: 365px; height: 365px; margin: auto; }
.orbit { position: absolute; inset: 52px; border: 1px solid #61759e; border-radius: 50%; }
.orbit-two { inset: 10px; border-color: #3a465f; }
.person-node, .vacancy-node { position: absolute; display: grid; place-items: center; border-radius: 50%; font-family: "Wix Madefor Display", sans-serif; font-weight: 700; }
.person-node { top: 123px; left: 123px; width: 120px; height: 120px; background: var(--accent); color: var(--ink); font-size: 42px; }
.vacancy-node { width: 64px; height: 64px; border: 1px solid #8191b1; background: var(--panel); color: var(--text); font-size: 18px; }
.vacancy-one { top: 20px; left: 151px; }
.vacancy-two { right: 29px; bottom: 71px; }
.vacancy-three { left: 29px; bottom: 71px; }

.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.assumption-grid article, .choices article, .details-grid article {
  box-sizing: border-box;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(19, 23, 32, 0.9);
}
.assumption-grid h3 { margin: 12px 0 !important; }
.assumption-grid p, .choices p, .details-grid p { color: var(--muted); font-size: 19px; }
.card-index { color: var(--amber); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.takeaway { margin-top: 29px !important; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 18px; }
.takeaway strong { color: var(--text); }
.assumption-grid { margin-top: 30px; }
.assumption-grid article { min-height: 226px; }

.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kicker { margin-top: 40px !important; color: var(--text); font-family: "Wix Madefor Display", sans-serif; font-size: 26px; font-weight: 600; letter-spacing: -0.015em; }
.kicker.small { margin-top: 30px !important; color: var(--muted); font-family: "Oxygen", sans-serif; font-size: 18px; font-weight: 400; letter-spacing: 0; }

/* The question */
.scenario { margin-top: 26px !important; color: var(--muted); font-size: 24px; }
.scenario strong { color: var(--text); }
.reveal h2.question { max-width: 1020px; margin-top: 22px; font-size: 54px; }
.problem-pair { max-width: 900px; margin-top: 64px; }
.problem-pair > div { padding-top: 16px; border-top: 2px solid var(--accent); }
.problem-pair h3 { margin-top: 10px !important; font-size: 26px; }

/* Today */
.today-grid { margin-top: 44px; }
.today-grid article { padding-top: 16px; border-top: 1px solid var(--border); }
.today-grid h3 { margin: 12px 0 !important; }
.today-grid p { color: var(--muted); font-size: 19px; }

/* Statements */
.statement-slide { display: flex; flex-direction: column; }
.reveal h2.statement { max-width: 1080px; margin-top: 90px; font-size: 56px; line-height: 1.12; }
.statement-parts { display: flex; gap: 48px; margin-top: 64px; }
.statement-parts div { max-width: 300px; color: var(--muted); font-size: 20px; line-height: 1.4; }
.statement-parts span { display: block; margin-bottom: 8px; color: var(--amber); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.why-grid { gap: 56px; max-width: 1100px; margin-top: 56px; }
.why-grid p { color: var(--muted); font-size: 21px; }
.why-grid strong { display: block; margin-bottom: 8px; color: var(--text); }
.demo-break .lead { margin-top: 36px; }

/* Assumptions */
.assumption-grid.two-col { gap: 36px 40px; max-width: 1060px; margin-top: 48px; }
.assumption-grid.two-col article { min-height: 0; padding: 18px 22px; }
.assumption-grid.two-col h3 { margin: 0 0 8px !important; font-size: 22px; }
.assumption-grid.two-col p { font-size: 17px; }
.assumption-grid .premise { border-color: var(--amber); background: #211d18; }
.test { margin-top: 10px; color: var(--amber); font-size: 14px; line-height: 1.4; }

/* Personas */
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.persona-grid article { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: rgba(19, 23, 32, 0.9); }
.persona-head { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.persona-grid h3 { font-size: 24px; }
.persona-role { margin-top: 2px; color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.persona-grid .persona-resp { margin: 16px 0 14px !important; padding-bottom: 14px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 16px; line-height: 1.4; }
.reveal .persona-grid dl { margin: 0; }
.persona-grid dt { color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.persona-grid dt:nth-of-type(2) { color: var(--amber); }
.reveal .persona-grid dd { margin: 4px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* System diagram */
.system-layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; height: 572px; }
.stage-legend { margin: 30px 0 0 !important; padding: 0; list-style: none; }
.stage-legend li { display: flex; gap: 14px; margin: 0 0 14px; color: var(--muted); font-size: 19px; }
.stage-legend b { width: 18px; color: var(--amber); }
.scroll-hint { margin-top: 24px !important; color: var(--soft); font-size: 15px; }
.diagram-scroll { overflow-y: auto; height: 100%; padding: 0 16px; scrollbar-color: var(--border) transparent; }
.diagram-scroll svg { display: block; margin: 0 auto; }
.system-map { display: flex; justify-content: center; height: 572px; }
.reveal .system-map svg { width: auto !important; height: 100% !important; max-width: none !important; }
.system-map.has-highlight g.cluster, .system-map.has-highlight g.node, .system-map.has-highlight .edgePaths, .system-map.has-highlight .edgeLabels { opacity: 0.22; }
.system-map.has-highlight g.cluster.is-active, .system-map.has-highlight g.node.is-active { opacity: 1; }
.system-map g.cluster.is-active rect { stroke: var(--amber) !important; stroke-width: 3px !important; }
.map-layout { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 60px; }
.gains { margin-top: 28px; }
.gains > div { display: flex; gap: 20px; margin-bottom: 20px; }
.gains > div > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber); font-weight: 700; font-size: 16px; }
.gains h3 { margin-bottom: 4px !important; font-size: 22px; }
.gains p { color: var(--muted); font-size: 18px; }
.task-question { margin-top: 8px !important; color: var(--muted); font-size: 22px; font-style: italic; }
.reveal h2.section-headline { margin-top: 36px; font-size: 48px; line-height: 1.14; }

/* Intake tiers */
.tiers { margin-top: 36px; }
.tiers article { padding: 22px 26px; border: 1px solid var(--border); border-radius: 12px; }
.tiers .tier-must { border-color: var(--amber); background: #211d18; }
.tier-label { margin-bottom: 12px; color: var(--soft); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tier-must .tier-label { color: var(--amber); }
.reveal .tiers ul { margin: 0; padding: 0; list-style: none; }
.tiers li { padding: 5px 0; color: var(--text); font-size: 19px; }
.tiers small { color: var(--amber); font-size: 15px; }

/* Not 100 jobs */
.plan-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px; margin-top: 40px; }
.decision-count { display: flex; align-items: stretch; gap: 22px; }
.decision-count > div:not(.arrow) { flex: 1; padding: 22px; border: 1px solid var(--border); border-radius: 12px; }
.decision-count .highlight { border-color: var(--amber) !important; background: #211d18; }
.decision-count strong { display: block; font-family: "Wix Madefor Display", sans-serif; font-size: 56px; letter-spacing: -0.03em; }
.decision-count .highlight strong { color: var(--amber); }
.decision-count span { color: var(--muted); font-size: 16px; }
.decision-count .arrow { align-self: center; color: var(--amber); font-size: 30px; }
.plan-points > div { margin-bottom: 22px; padding-left: 18px; border-left: 2px solid var(--border); }
.plan-points h3 { margin-bottom: 4px !important; font-size: 21px; }
.plan-points p { color: var(--muted); font-size: 17px; }

/* Matching layers */
.layers { margin-top: 38px; }
.layers article { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 12px; }
.layers article.selected { border-color: var(--amber); background: #211d18; }
.layer-label { color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.layers h3 { margin: 12px 0 10px !important; }
.layers p { color: var(--muted); font-size: 17px; }
.outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.outcomes span { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 13px; }
.outcomes .hot { border-color: var(--amber); color: var(--amber); }

/* Ripple */
.ripple-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; margin-top: 38px; }
.ripple-step { padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; }
.ripple-step.after { border-color: var(--amber); background: #211d18; }
.step-label { color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; }
.after .step-label { color: var(--amber); }
.ripple-step p { margin-top: 8px !important; color: var(--muted); font-size: 18px; }
.ripple-step strong { color: var(--text); }
.ripple-arrow { margin: 12px 0 12px 24px; color: var(--amber); font-size: 16px; }
.hard-list h3 { font-size: 21px; }
.reveal .hard-list ul { margin: 16px 0 0; padding: 0; list-style: none; }
.hard-list li { margin-bottom: 14px; color: var(--muted); font-size: 18px; line-height: 1.4; }
.hard-list strong { color: var(--text); }

/* Automation split */
.reveal .split { margin-top: 36px; }
.split article { padding: 24px 28px; border: 1px solid var(--border); border-radius: 12px; }
.split article.people { border-color: var(--amber); background: #211d18; }
.split-label { margin-bottom: 14px; color: var(--soft); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.people .split-label { color: var(--amber); }
.split-label span { margin-left: 8px; color: var(--soft); font-weight: 400; letter-spacing: 0; text-transform: none; }
.reveal .split ul { margin: 0; padding: 0; list-style: none; }
.split li { padding: 7px 0; border-bottom: 1px solid rgba(58, 70, 95, 0.5); color: var(--muted); font-size: 18px; line-height: 1.4; }
.split li:last-child { border-bottom: 0; }
.split strong { color: var(--text); }

/* Measures and tests */
.measure-highlight { margin-top: 30px !important; }
.measure-groups { gap: 32px; margin-top: 32px; }
.measure-groups article { padding-top: 14px; border-top: 1px solid var(--border); }
.measure-groups h3 { margin-bottom: 10px !important; font-size: 20px; }
.reveal .measure-groups ul { margin: 0; padding: 0; list-style: none; }
.measure-groups li { margin-bottom: 8px; color: var(--muted); font-size: 17px; line-height: 1.4; }
.guardrail { margin-top: 28px !important; color: var(--muted); font-size: 16px; }
.guardrail strong { color: var(--text); }
.tests article.first span { color: var(--amber); }
.tests article.first { border-top-color: var(--amber); }

/* Embedded demo */
.demo .reveal .controls, .reveal.demo .controls { display: none; }
.reveal section.slide.demo-embed-slide { padding: 0; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 24px; cursor: pointer; }
.demo-bar .eyebrow { margin: 0; }
.demo-hint { color: var(--soft); font-size: 13px; }
.demo-embed { position: relative; width: 1232px; height: 644px; margin: 0 24px; overflow: hidden; border-radius: 8px; outline: 2px solid var(--border); }
.demo-embed:focus-within { outline-color: var(--amber); }
/* Render the prototype at desktop size, then scale it to the slide. */
.demo-embed iframe { width: 1540px; height: 805px; border: 0; background: #fff; transform: scale(0.8); transform-origin: 0 0; }
.demo-embed .print-only { display: none; }
.demo-offline { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 120px; background: var(--ink); color: var(--muted); font-size: 20px; line-height: 1.5; }
.demo-offline[hidden] { display: none; }
.demo-offline strong { color: var(--text); font-family: "Wix Madefor Display", sans-serif; font-size: 32px; }
.demo-offline code { color: var(--amber); }
.demo-offline a { color: var(--amber); }
html.reveal-print .demo-offline { display: none; }
html.reveal-print .demo-embed iframe { display: none; }
html.reveal-print .demo-embed .print-only { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
html.reveal-print .demo-hint { visibility: hidden; }

/* Concept boards (appendix) */
.concept-text h2 { font-size: 36px; }
.concept-text p { margin-top: 10px !important; color: var(--muted); font-size: 18px; }
.concept-frame { width: fit-content; max-width: 100%; background: #fff; }
.reveal .concept-frame img { display: block; width: auto; height: auto; max-width: 100%; }
.concept-wide .concept-text { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: end; }
.concept-wide .concept-frame { margin-top: 26px; }
.reveal .concept-wide .concept-frame img { max-height: 404px; }
.concept-side .concept-layout { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.concept-side .concept-text { padding-top: 24px; }
.reveal .concept-side .concept-frame img { max-height: 560px; }
.concept-side .concept-frame { margin-top: -20px; }

/* End and back cover */
.end-slide h2.statement { margin-top: 150px; font-size: 72px; }
.end-slide .lead { margin-top: 24px; }
.end-note { margin-top: 80px !important; color: var(--soft); font-size: 15px; }
.back-cover .cover-grid { padding-top: 60px; }
.back-cover h2 { font-size: 56px; }
.back-cover .lead { margin-top: 30px; }

/* Close */
.close-slide .task-question { margin-top: 40px !important; }
.close-slide h2.statement { margin-top: 36px; }

.choices { margin-top: 34px; }
.choices article { min-height: 275px; display: flex; flex-direction: column; }
.four-col.choices article { min-height: 300px; padding: 22px; }
.four-col.choices p { font-size: 17px; }
.choices article.selected { border-color: var(--amber); background: #211d18; }
.choice-label { margin-bottom: 21px; color: var(--soft); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.selected .choice-label { color: var(--amber); }
.choices h3 { margin-bottom: 20px !important; }
.tradeoff { margin-top: auto; padding-top: 22px; color: var(--amber); font-size: 14px; line-height: 1.4; }

.demo-layout { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: 30px; margin-top: 20px; }
.demo-layout .intro { margin: 0 0 22px !important; font-size: 17px; }
.reveal ol.demo-steps { display: block; margin: 0; padding: 0; list-style: none; }
.demo-steps li { display: flex; gap: 13px; margin: 13px 0; color: var(--muted); font-size: 17px; line-height: 1.35; }
.demo-steps b { flex: none; width: 26px; color: var(--amber); font-size: 14px; }
.demo-steps strong { color: var(--text); }
.demo-note { margin-top: 20px !important; color: var(--amber); font-size: 16px; }
.image-frame { overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.reveal .image-frame img { display: block; width: 100%; max-width: none; max-height: none; margin: 0; }
.image-frame figcaption { padding: 12px 14px; color: var(--muted); font-size: 13px; }

.measure-highlight { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; margin-top: 36px; padding: 26px 29px; border: 1px solid var(--amber); border-radius: 12px; background: #211d18; }
.measure-label { margin-bottom: 10px; color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: 0.09em; }
.measure-highlight strong { font-family: "Wix Madefor Display", sans-serif; font-size: 26px; }
.measure-highlight p { color: var(--muted); font-size: 16px; }
.tests { margin-top: 40px; }
.tests article { padding-top: 14px; border-top: 1px solid var(--border); }
.tests span { color: var(--soft); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.tests h3 { margin: 10px 0 !important; font-size: 23px; }
.tests p { color: var(--muted); font-size: 18px; }

.fallback-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 34px; margin-top: 35px; }
.fallback-layout p { color: var(--muted); font-size: 20px; }
.persona-label { margin-bottom: 22px; color: var(--amber); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.fallback-layout .fallback-insight { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--text); font-size: 17px; }
.details-grid { margin-top: 35px; }
.details-grid h3 { margin-bottom: 20px !important; }
.details-grid p + p { margin-top: 22px; }

.reveal .controls { color: var(--amber); }
.reveal footer span:last-child { margin-right: 64px; }
html.reveal-print .reveal footer span:last-child { margin-right: 0; }
.reveal .progress { color: var(--accent); height: 4px; }

@media print {
  .reveal .controls, .reveal .progress { display: none; }
}

html.reveal-print .reveal .slides section.slide {
  padding: 48px 66px 44px !important;
}

html.reveal-print .reveal .slides section.slide.demo-embed-slide {
  padding: 0 !important;
}

/* A printed page can't scroll, so show the whole diagram at page height. */
html.reveal-print .diagram-scroll { overflow: hidden; }
html.reveal-print .diagram-scroll svg { width: auto !important; height: 100% !important; max-width: none !important; }
