/* Styles for this talk only, one block per slide, named by slide id. Colours, fonts and spacing come
   from the theme tokens; nothing here sets a raw colour. */

/* ---------- Shared ---------- */
code {
  font-family: var(--font-label);
  font-size: 0.92em;
  color: var(--ink);
}
.layout-content > .t-lead:first-of-type {
  margin-top: var(--space-4);
}

/* ---------- #analogy: the airbag ---------- */
#analogy > .region {
  margin-top: var(--space-6);
}
.analogy-grid {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: var(--space-7);
  align-items: stretch;
}
.analogy-text {
  justify-content: space-between;
  padding-block: var(--space-3);
}
.analogy-pull em {
  font-style: var(--display-em-style);
  font-weight: var(--display-em-weight);
  color: var(--accent);
}
.analogy-pull .t-small {
  margin-top: var(--space-3);
}
.analogy-panel {
  align-self: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.airbag-svg {
  width: 100%;
  height: auto;
}
.airbag-stop-1 {
  stop-color: color-mix(in srgb, var(--accent) 60%, white);
}
.airbag-stop-2 {
  stop-color: var(--accent);
}
.airbag-stop-3 {
  stop-color: color-mix(in srgb, var(--accent-strong) 55%, black);
}
.airbag-glow {
  flood-color: var(--accent);
}
.wheel-rim {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 40%, transparent);
  stroke-width: 12;
}
.wheel-dash {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 8 14;
  opacity: 0.6;
}
.wheel-spokes {
  stroke: color-mix(in srgb, var(--ink) 60%, transparent);
  stroke-width: 6;
  stroke-linecap: round;
}
.wheel-flap {
  fill: var(--surface-raised);
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
}
.airbag-shockwave {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 60%, white);
  stroke-width: 3;
  opacity: 0;
}
.airbag-wave-2 {
  stroke: var(--accent);
}
.airbag-cushion {
  fill: url(#airbagInflateGrad);
  stroke: var(--ink);
  stroke-width: 2.5;
}
.airbag-seams {
  fill: none;
  stroke: color-mix(in srgb, var(--surface-raised) 45%, transparent);
  stroke-width: 2;
  stroke-linecap: round;
}
.airbag-highlight {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 45%, transparent);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.airbag-rays {
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ---------- #example: schema, response, drift ---------- */
#example > .region {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
#example > .region {
  margin-top: var(--space-4);
  gap: var(--space-4);
}
/* The full schema is 14 lines: slightly smaller code and tighter lines so the slide still fits. */
/* The schema is long and the response short, so the schema window gets the wider column. */
#example .compare {
  grid-template-columns: 1.25fr 1fr;
}
#example .term-body {
  font-size: 21px;
  line-height: 1.3;
  padding-block: var(--space-2);
}
#example .log-entry p {
  margin: 0;
}
.drift-grid {
  --cols: 4;
}

/* ---------- #vocabulary ---------- */
.vocab-body {
  gap: var(--space-6);
}

/* ---------- #story ---------- */
.story-body {
  gap: var(--space-8);
}
.story-stats {
  gap: var(--space-4);
}

/* ---------- #pyramid ---------- */
#pyramid > .region {
  margin-top: var(--space-5);
}
.pyramid-body {
  gap: var(--space-5);
}
.pyramid-grid {
  display: grid;
  grid-template-columns: 720px 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
.pyr-vector-stage {
  width: 100%;
  height: 100%;
  display: block;
}
.pyramid-cards {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--space-3);
}
.pyr-card {
  justify-content: center;
  gap: 2px;
  padding-block: var(--space-2);
  transition: none;
}
.pyr-card .t-small {
  font-size: 22px;
  line-height: 1.35;
  margin: 0;
}
.pyr-aura-1 {
  stop-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.pyr-aura-2 {
  stop-color: color-mix(in srgb, var(--accent-strong) 5%, transparent);
}
.pyr-aura-3 {
  stop-color: transparent;
}
.pyr-aura {
  fill: url(#pyrAura);
}
.t3-a {
  stop-color: var(--accent);
}
.t3-b {
  stop-color: var(--accent-strong);
}
.t2-a {
  stop-color: color-mix(in srgb, var(--positive) 45%, transparent);
}
.t2-b {
  stop-color: color-mix(in srgb, var(--positive) 30%, black);
}
.t1-a {
  stop-color: color-mix(in srgb, var(--info) 40%, transparent);
}
.t1-b {
  stop-color: color-mix(in srgb, var(--info) 30%, black);
}
.apex-glow {
  flood-color: var(--accent);
}
.pyr-plate-3 {
  fill: url(#t3Grad);
  stroke: color-mix(in srgb, var(--accent) 70%, white);
  stroke-width: 2.5;
}
.pyr-plate-2 {
  fill: url(#t2Grad);
  stroke: var(--positive);
  stroke-width: 2;
}
.pyr-plate-1 {
  fill: url(#t1Grad);
  stroke: var(--info);
  stroke-width: 2;
}
.pyr-tier-title {
  fill: var(--ink);
  font: var(--weight-display) 28px var(--font-display);
  letter-spacing: 0.08em;
  text-anchor: middle;
}
.pyr-tier-sub {
  fill: var(--ink-muted);
  font: 400 20px var(--font-label);
  letter-spacing: 0.06em;
  text-anchor: middle;
}
.pyr-connect-line {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 55%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}
.receipt .card {
  gap: var(--space-1);
}
.receipt .t-small {
  font-size: 22px;
  line-height: 1.35;
  margin: 0;
}
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* ---------- #practices ---------- */
#practices > .region {
  margin-top: var(--space-5);
}
.practices-grid {
  gap: var(--space-3) var(--space-5);
}
.practices-grid > .t-label {
  align-self: end;
}
.pass-note {
  color: var(--accent);
}

/* ---------- #demo ---------- */
#demo > .region {
  margin-top: var(--space-5);
}
.demo-body {
  gap: var(--space-7);
}
/* The terminal bodies hold one block per line, so the preformatted spacing belongs to the lines. */
#demo .log-entry p {
  max-width: none;
}
#demo .term-body {
  white-space: normal;
}
#demo .tree-line {
  white-space: pre;
}

/* ---------- #takeaways ---------- */
.takeaways-body {
  gap: var(--space-5);
}
.takeaway {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  align-items: baseline;
}
.takeaway-num {
  font: var(--weight-display) 56px/1 var(--font-display);
  color: var(--accent);
}
.takeaway p {
  margin: 0;
}

/* ---------- #end: contact details beside the LinkedIn QR ---------- */
.closing-contact {
  position: absolute;
  left: 13.5%;
  bottom: calc(12% + var(--space-6) - 10px);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-align: left;
}
.closing-contact .closing-qr {
  display: block;
  width: 152px;
  height: 152px;
  padding: var(--space-2) var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: white;
  box-sizing: border-box;
}
.closing-links {
  display: grid;
  gap: var(--space-2);
  align-self: center;
}
.closing-links .t-label {
  color: var(--accent);
}
.closing-links p {
  margin: 0;
  font: 500 26px/1.3 var(--font-label);
}
.layout-quote .closing-links a:any-link {
  color: var(--ink);
  font: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}
#end > .t-statement,
#end > .t-closing {
  transform: translateY(-30px);
}

/* ---------- Print (the PDF backup) ---------- */
/* PDF renderers draw blurred shadows as hard rectangles. Keep the highlight ring, drop the soft glow. */
@media print {
  :is(.card, .term-win).step-current {
    box-shadow: 0 0 0 1px var(--accent);
  }
  .glass-panel {
    box-shadow: none;
  }
}
