/* =============================================================
   Aline deck — slide layout primitives
   Shared across decks. Pairs with colors_and_type.css + deck-stage.js.
   Aesthetic: ink background, cream text, single green accent.
   ============================================================= */

html, body { margin: 0; padding: 0; background: #1C1C1C; }

deck-stage { --ink: #1C1C1C; --cream: #F9F9F9; --green: #D3FA9D; }

deck-stage > section {
  background: var(--ink);
  color: var(--cream);
  font-family: "Inter", system-ui, sans-serif;
  padding: 100px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* ── Type scale (projection sizes, px) ────────────────────── */
.t-display { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 96px;  line-height: 1.05; letter-spacing: -0.025em; color: var(--cream); margin: 0; }
.t-hook    { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 96px;  line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; color: var(--cream); margin: 0; }
.t-title   { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 64px;  line-height: 1.08; letter-spacing: -0.02em; color: var(--cream); margin: 0; }
.t-h2      { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 52px;  line-height: 1.1;  letter-spacing: -0.02em; color: var(--cream); margin: 0; }
.t-sub     { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 44px;  line-height: 1.15; letter-spacing: -0.015em; color: var(--cream); margin: 0; }
.t-body    { font-family: "Inter", sans-serif; font-weight: 400; font-size: 34px; line-height: 1.5; color: rgb(249 249 249 / 0.72); margin: 0; }
.t-small   { font-family: "Inter", sans-serif; font-weight: 400; font-size: 28px; line-height: 1.5; color: rgb(249 249 249 / 0.60); margin: 0; }
.t-mono    { font-family: "JetBrains Mono", monospace; font-weight: 400; font-size: 24px; letter-spacing: 0.02em; color: rgb(249 249 249 / 0.55); text-transform: uppercase; }
.t-mono-lg { font-family: "JetBrains Mono", monospace; font-weight: 400; font-size: 32px; letter-spacing: 0.01em; color: rgb(249 249 249 / 0.70); }
.t-num     { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 96px; line-height: 1; letter-spacing: -0.02em; color: var(--cream); }

.ink { color: var(--ink); }
.cream { color: var(--cream); }
.dim { color: rgb(249 249 249 / 0.55); }
.muted { color: rgb(249 249 249 / 0.72); }
.green, .accent-word { color: var(--green); }

.hairline { height: 1px; background: rgb(249 249 249 / 0.14); border: 0; margin: 0; }
.hairline-v { width: 1px; background: rgb(249 249 249 / 0.14); align-self: stretch; }
.hair-green { background: var(--green); height: 2px; width: 80px; border: 0; margin: 0; }

/* ── Layout primitives ─────────────────────────────────────── */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center  { align-items: center; }
.baseline { align-items: baseline; }
.grow { flex: 1; }
.gap-s  { gap: 16px; }
.gap-m  { gap: 32px; }
.gap-l  { gap: 64px; }
.gap-xl { gap: 96px; }

/* Slide top eyebrow row + bottom slide-number row */
.slide-head { display: flex; justify-content: space-between; align-items: center; height: 72px; flex-shrink: 0; }
.slide-foot { display: flex; justify-content: space-between; align-items: flex-end; height: 72px; flex-shrink: 0; margin-top: auto; }

.wordmark { display: block; height: 48px; width: auto; opacity: 0.55; }

/* Title slide credit block (absolutely positioned so divider title Y stays stable) */
.title-credit { position: absolute; left: 100px; bottom: 180px; }

/* ── Section divider — big title, big number ──────────────── */
.divider-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.divider-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.14em;
  color: rgb(249 249 249 / 0.60);
  text-transform: uppercase;
}
.divider-title {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 96px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 1500px;
}

/* ── Title-block wrapper: title sits with breathing room from logo,
   content centers in remaining space ── */
.title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  min-height: 0;
}
.title-block > * { margin: 0; }
.title-block > :nth-child(2) { margin-top: auto; margin-bottom: auto; }

/* ── Three-up grid (e.g. context / memory / skills) ───────── */
.three-up {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgb(249 249 249 / 0.14);
}
.three-up > .cell {
  padding: 48px 48px 48px 0;
  border-right: 1px solid rgb(249 249 249 / 0.14);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 420px;
}
.three-up > .cell:first-child { padding-left: 0; }
.three-up > .cell:nth-child(2) { padding-left: 48px; }
.three-up > .cell:last-child  { padding-left: 48px; border-right: 0; padding-right: 0; }
.cell-num   { font-family: "JetBrains Mono", monospace; font-size: 24px; color: rgb(249 249 249 / 0.45); letter-spacing: 0.04em; }
.cell-label { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 56px; letter-spacing: -0.02em; }
.cell-def   { font-family: "Inter", sans-serif; font-size: 28px; line-height: 1.5; color: rgb(249 249 249 / 0.70); text-wrap: pretty; }

/* ── Six-up grid (3x2) ────────────────────────────────────── */
.six-up {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgb(249 249 249 / 0.14);
}
.six-up > .cell {
  padding: 36px 36px 36px 0;
  border-right: 1px solid rgb(249 249 249 / 0.14);
  border-bottom: 1px solid rgb(249 249 249 / 0.14);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
}
.six-up > .cell:nth-child(3n) { border-right: 0; padding-right: 0; }
.six-up > .cell:nth-child(3n+1) { padding-left: 0; }
.six-up > .cell:nth-child(3n+2),
.six-up > .cell:nth-child(3n) { padding-left: 36px; }
.six-up > .cell:nth-last-child(-n+3) { border-bottom: 0; }
.six-up .cell-label { font-size: 36px; }
.six-up .cell-def { font-size: 24px; }

/* ── Timeline (4-column) ──────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgb(249 249 249 / 0.14);
  margin-top: 48px;
}
.timeline > .mk {
  padding: 36px 32px 0 32px;
  border-right: 1px solid rgb(249 249 249 / 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  min-height: 320px;
}
.timeline > .mk:last-child { border-right: 0; }
.timeline > .mk > *:first-child { margin-bottom: 12px; }
.mk-tag  { display: block; width: 100%; text-align: center; font-family: "JetBrains Mono", monospace; font-size: 24px; color: rgb(249 249 249 / 0.55); letter-spacing: 0.04em; }
.mk-stat { display: block; width: 100%; text-align: center; font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 44px; letter-spacing: -0.02em; line-height: 1.05; }
.mk-note { display: block; width: 100%; text-align: center; font-family: "Inter", sans-serif; font-size: 24px; line-height: 1.45; color: rgb(249 249 249 / 0.60); }

/* ── Before / after two-column ────────────────────────────── */
.ba {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 56px;
  margin-top: 48px;
  flex: 1;
}
.ba > .side { display: flex; flex-direction: column; gap: 16px; }
.ba > .rule { background: rgb(249 249 249 / 0.14); }
.ba .side-tag  { font-family: "JetBrains Mono", monospace; font-size: 24px; letter-spacing: 0.08em; color: rgb(249 249 249 / 0.55); text-transform: uppercase; }
.ba .side-head { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 48px; letter-spacing: -0.02em; line-height: 1.08; }
.ba .side-body { font-family: "Inter", sans-serif; font-size: 26px; line-height: 1.55; color: rgb(249 249 249 / 0.72); }
.ba .side-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ba .side-body li { display: flex; gap: 14px; align-items: baseline; }
.ba .side-body li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(249 249 249 / 0.35);
  flex: 0 0 6px;
  transform: translateY(-5px);
}

/* ── Contrast (X / ✓ — e.g. "Prompts vs Structure") ───────── */
.contrast {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.contrast > div { padding: 64px; }
.contrast .x { border-right: 1px solid rgb(249 249 249 / 0.14); }
.contrast .strike { color: rgb(249 249 249 / 0.40); position: relative; display: inline-block; }
.contrast .strike::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; top: 52%;
  height: 3px;
  background: rgb(249 249 249 / 0.40);
  transform: rotate(-4deg);
}

/* ── Accent chip — ONE per slide max ──────────────────────── */
.chip {
  display: inline-block;
  padding: 10px 20px;
  background: var(--green);
  color: var(--ink);
  border-radius: 9999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Demo / live indicator ────────────────────────────────── */
.demo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
}
.live-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* ── Contact / meta rows ──────────────────────────────────── */
.meta-row { display: flex; gap: 48px; align-items: baseline; }
.meta-k { font-family: "JetBrains Mono", monospace; font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(249 249 249 / 0.50); min-width: 160px; }
.meta-v { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 44px; letter-spacing: -0.02em; }

/* ── Centered single-statement layout ─────────────────────── */
.center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1620px;
  gap: 40px;
}

/* ── Graph stage (generated network — slide 19) ───────────── */
.graph-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -100px;  /* break out of section's 100px horizontal padding */
  min-height: 0;
  overflow: visible;
}
.graph-stage svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.graph-stage .g-node {
  opacity: 0;
  scale: 0;
  transform-box: fill-box;
  transform-origin: center;
  /* Continuous breathing always runs; grow-in plays once on entry */
  animation-name: gNodeBreathe;
  animation-duration: var(--bdur, 6s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.graph-stage .g-edge {
  opacity: 0;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation-name: gEdgePulse;
  animation-duration: var(--bdur, 9s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.graph-stage[data-animate] .g-node {
  animation-name: gNodeGrow, gNodeBreathe;
  animation-duration: 1100ms, var(--bdur, 6s);
  animation-delay: var(--in-delay, 0ms), 0ms;
  animation-timing-function: cubic-bezier(0.34, 1.4, 0.5, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards, none;
}
.graph-stage[data-animate] .g-edge {
  animation-name: gEdgeDraw, gEdgePulse;
  animation-duration: 1400ms, var(--bdur, 9s);
  animation-delay: var(--in-delay, 0ms), 0ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards, none;
}
@keyframes gNodeGrow {
  0%   { opacity: 0; scale: 0; }
  55%  { opacity: 1; scale: 1.18; }
  100% { opacity: 1; scale: 1; }
}
@keyframes gNodeBreathe {
  0%   { translate: 0 0; }
  100% { translate: var(--dx, 0px) var(--dy, 0px); }
}
@keyframes gEdgeDraw {
  0%   { opacity: 0; stroke-dashoffset: var(--len, 1200); }
  20%  { opacity: 1; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes gEdgePulse {
  0%   { opacity: 1; }
  100% { opacity: 0.45; }
}

.g-hub          { fill: var(--green); }
.g-hub-lg       { fill: var(--green); }
.g-leaf         { fill: rgb(249 249 249 / 0.62); }
.g-green-leaf   { fill: var(--green); }
.g-orphan-yel   { fill: #E6C658; }
.g-orphan-cream { fill: rgb(249 249 249 / 0.50); }
.g-edge { stroke: rgb(249 249 249 / 0.18); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }

/* ── Image holder ─────────────────────────────────────────── */
.image-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgb(249 249 249 / 0.18);
  border-radius: 12px;
  margin: 32px 0;
  color: rgb(249 249 249 / 0.40);
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 600px;
}
.image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.image-frame.plain { border: 0; }

/* Zoom frame — same image, scaled in on a region of interest */
.zoom-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 32px 0;
  min-height: 600px;
  overflow: hidden;
  background: var(--ink);
}
.zoom-frame img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(var(--zoom, 2));
  transform-origin: var(--zx, 70%) var(--zy, 55%);
}

/* ── Print: one slide per page ────────────────────────────── */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: none !important; overflow: visible !important; height: auto !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
