/* ---- Teranode Council Deck ---- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Light theme — warm paper, dark ink */
  --bg: #F5F3EE;             /* warm off-white page bg */
  --bg-alt: #EDEBE5;          /* slight elevation */
  --ink: #0E1116;             /* near-black primary */
  --ink-2: #3B3D47;           /* secondary */
  --ink-3: #6A6D7A;           /* muted */
  --ink-4: #A4A6AF;           /* faint */
  --line: #E6E2D8;            /* hairline */
  --line-2: #D8D4CB;          /* hairline strong */
  --paper: #FFFFFF;           /* card surface */
  --paper-2: #FAFAF7;         /* elevated card */
  --accent: #FF5A1F;                       /* teranode electric orange */
  --accent-2: #FF7A3D;                     /* lighter orange for hover/fades */
  --accent-soft: rgba(255, 90, 31, 0.14);  /* translucent accent wash */
  --warn: #A67C00;             /* amber — dissent marker */
  --danger: #A13E17;           /* risk red-orange */
  --ser: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

deck-stage { background: var(--bg); }
body { background: var(--bg); }

section {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  overflow: hidden;
  position: relative;
}

/* ---- Slide frame + chrome ---- */
.frame {
  width: 100%;
  height: 100%;
  padding: 80px 100px 72px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.frame--dark { background: var(--bg-alt); color: var(--ink); }
.frame--paper { background: var(--paper); }

.chrome {
  position: absolute;
  top: 44px;
  left: 100px;
  right: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--ink-3);
}

.chrome__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink-2);
}
.chrome__dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}
.chrome__tag { font-weight: 400; letter-spacing: 0.12em; }

.slide-index {
  position: absolute;
  bottom: 40px;
  left: 100px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}

.slide-foot {
  position: absolute;
  bottom: 40px;
  right: 100px;
  left: 200px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}
.slide-foot__brand { flex: 0 0 auto; }
.slide-foot__disclaimer {
  flex: 1 1 auto;
  text-align: right;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  text-transform: none;
  font-style: italic;
  max-width: 70%;
}

/* ---- Type system ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--ink-3); }

.t-display {
  font-family: var(--ser);
  font-weight: 400;
  font-size: 128px;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.t-hero {
  font-family: var(--ser);
  font-weight: 400;
  font-size: 96px;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.t-title {
  font-family: var(--ser);
  font-weight: 400;
  font-size: 72px;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.t-section {
  font-family: var(--ser);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.t-lead {
  font-family: var(--ser);
  font-weight: 400;
  font-style: italic;
  font-size: 44px;
  line-height: 1.15;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.t-body {
  font-size: 26px;
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
}
.t-body--lg {
  font-size: 30px;
  line-height: 1.4;
  color: var(--ink-2);
}
.t-small {
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-3);
}
.t-meta {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: lowercase;
}
.t-num {
  font-family: var(--ser);
  font-size: 128px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.accent { color: var(--accent); }
.italic { font-style: italic; }
.strike { text-decoration: line-through; color: var(--ink-4); }

/* ---- Attestation card (signature motif) ---- */
.attest {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 28px 32px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 30px 60px -40px rgba(0,0,0,0.6);
}
.attest__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: lowercase;
}
.attest__head b { color: var(--accent); font-weight: 500; letter-spacing: 0.1em; }
.attest__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 8px 0;
  font-size: 15px;
}
.attest__row .k { color: var(--ink-3); }
.attest__row .v { color: var(--ink); }
.attest__foot {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
}

/* ---- Role chip / role avatar ---- */
.role-dot {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ser);
  font-size: 44px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--ink);
  position: relative;
}
.role-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed #2A2F3A;
}

/* ---- Utility ---- */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.gap-64 { gap: 64px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mt-96 { margin-top: 96px; }
.mb-24 { margin-bottom: 24px; }

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
}
.frame--dark .hr { background: var(--line-2); }

.kicker-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-4);
  letter-spacing: 0.14em;
}

/* tiny tag pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: lowercase;
  background: var(--paper);
}
.tag--accent { border-color: var(--accent); color: var(--accent); background: transparent; }
.tag--dark { background: transparent; border-color: #2F343D; color: #B4BAC6; }

/* ---- Problem slide: broken-model illustration ---- */
.one-model-card {
  width: 100%;
  padding: 40px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--mono);
  color: var(--ink-2);
}

/* ---- Council diagram placement ---- */
.council-stage {
  position: relative;
  width: 100%;
  height: 620px;
}
.council-stage .role {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 200px;
  transform: translate(-50%, -50%);
}
.council-stage .role-name {
  font-family: var(--ser);
  font-size: 30px;
  color: var(--ink);
}
.council-stage .role-model {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: lowercase;
}
.council-stage .role-why {
  font-size: 17px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.3;
  margin-top: 2px;
}

/* ---- Underline link-style emphasis ---- */
.u { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---- Right column label rail ---- */
.rail {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

/* Light-theme override of the "dark frame" variant used by the Ask slide */
.frame--dark { background: var(--bg-alt); }
.frame--dark .slide-index, .frame--dark .slide-foot { color: var(--ink-4); }
