/* ============================================================
   JS Uruguay — "El oficio en la era de la IA"
   Design system per CLAUDE.md §6 — dark ink + celeste + sol + magenta.
   All font sizes in pt (fixed-size slides). No build step.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ===========================================
   DESIGN TOKENS (§6)
   =========================================== */
:root {
  /* Backgrounds */
  --background-color:   #0B0F1A;  /* deep ink */
  --section-divider-bg: #0B0F1A;

  /* Accents */
  --primary-color:   #22D3EE;  /* electric celeste (Uruguay nod) */
  --secondary-color: #FBBF24;  /* sun */
  --accent-color:    #F472B6;  /* magenta = energy + humor */

  /* Text */
  --text-color:  #F4F6FB;
  --muted-color: #9AA5B1;
  --line-color:  #243044;
  --code-bg:     #111827;

  /* Typography (always pt for sizes) */
  --heading-font: "Space Grotesk", system-ui, sans-serif;
  --body-font:    "Inter", system-ui, sans-serif;
  --mono-font:    "JetBrains Mono", ui-monospace, monospace;

  --base-font-size: 32px;   /* sets reveal.js base */
  --text-size: 18pt;
  --h1-size: 52pt;
  --h2-size: 36pt;
  --h3-size: 24pt;
  --footnote-size: 12pt;

  /* Layout */
  --slide-padding: 64px;
  --slide-padding-top: 48px;
  --content-gap: 26px;
  --box-radius: 14px;
}

/* ===========================================
   BASE — override reveal.js defaults
   =========================================== */
.reveal {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
}

.reveal strong, .reveal b { font-weight: 700; color: var(--text-color); }

/* Ambient background — celeste + magenta glows on deep ink */
.reveal-viewport {
  background-color: var(--background-color);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(900px 520px at -5% 112%, rgba(244, 114, 182, 0.10), transparent 60%);
}

.reveal-viewport.is-section-divider .slide-background.present {
  background-color: var(--section-divider-bg) !important;
}

.reveal h1, .reveal h2, .reveal h3,
.reveal h4, .reveal h5, .reveal h6 {
  font-family: var(--heading-font);
  text-transform: none;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.reveal h1 { font-size: var(--h1-size); }
.reveal h2 { font-size: var(--h2-size); margin-bottom: 0; }
.reveal h3 { font-size: var(--h3-size); }

.reveal p, .reveal li, .reveal td, .reveal th, .reveal blockquote {
  font-size: var(--text-size);
  color: var(--text-color);
  line-height: 1.5;
}

.reveal a { color: var(--primary-color); text-decoration: none; }

/* ===========================================
   LISTS
   =========================================== */
.reveal ul { list-style: none; padding-left: 0; margin: 14px 0; }
.reveal ul li { position: relative; padding-left: 28px; margin-bottom: 14px; }
.reveal ul li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary-color);
}
.reveal ul ul li::before { background: var(--muted-color); width: 6px; height: 6px; }
.reveal blockquote p { font-size: inherit; }

/* ===========================================
   SLIDE LAYOUT
   =========================================== */
.reveal .slides section {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: var(--slide-padding-top) var(--slide-padding) var(--slide-padding) var(--slide-padding) !important;
  box-sizing: border-box;
  text-align: left;
}
.reveal .slides section.stack { padding: 0 !important; }

.reveal .slides section > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--content-gap);
  text-align: left;
}

/* Thin gradient rule on content slides (not dividers) — designed feel */
.reveal .slides section:not(.section-divider)::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0.75;
}

.reveal .slides section > .footnote {
  position: absolute; bottom: 16px; left: var(--slide-padding); right: var(--slide-padding);
  font-size: var(--footnote-size); color: var(--muted-color);
}
/* Small, low-pressure "anyone want to share?" cue — a quiet standing invite, never a spotlight */
.reveal .slides section > .footnote.testimony-note { text-align: center; color: var(--primary-color); opacity: 0.78; }
/* Source links inside footnotes — readable, not loud; underline only on hover */
.reveal .slides section > .footnote a.src-link {
  color: var(--primary-color); text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.reveal .slides section > .footnote a.src-link:hover {
  color: var(--secondary-color); border-bottom-color: var(--secondary-color);
}

/* ===========================================
   SECTION DIVIDERS
   =========================================== */
.reveal .slides section.section-divider {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}
.reveal .slides section.section-divider h1 { font-size: 60pt; text-align: center; max-width: 18ch; }
.reveal .slides section.section-divider p { font-size: 20pt; color: var(--muted-color); }

/* ===========================================
   TITLE SLIDE — visual hero
   =========================================== */
/* NOTE: do NOT set position:relative here — reveal needs slides position:absolute,
   which already serves as the containing block for the ambient/glow layers. */
#title.title-slide { overflow: hidden; }

/* Ambient: scattered code glyphs behind the hero */
.title-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.title-bg .glyph {
  position: absolute; font-family: var(--mono-font); font-weight: 600;
  color: var(--primary-color); opacity: 0.10; user-select: none; white-space: nowrap;
}
.title-bg .g1 { top: 13%; left: 9%;  font-size: 54pt; }
.title-bg .g2 { top: 20%; right: 11%; font-size: 70pt; color: var(--accent-color); opacity: 0.11; }
.title-bg .g3 { bottom: 20%; left: 13%; font-size: 46pt; color: var(--secondary-color); opacity: 0.12; }
.title-bg .g4 { top: 66%; right: 15%; font-size: 80pt; opacity: 0.08; }
.title-bg .g5 { top: 44%; left: 4%;  font-size: 40pt; color: var(--accent-color); opacity: 0.10; }
.title-bg .g6 { bottom: 12%; right: 7%; font-size: 52pt; color: var(--secondary-color); opacity: 0.09; }
.title-bg .g7 { top: 9%;  right: 34%; font-size: 30pt; opacity: 0.10; }
.title-bg .g8 { bottom: 9%; left: 38%; font-size: 28pt; color: var(--accent-color); opacity: 0.11; }

/* Hero stack, lifted above the ambient layer, with a soft glow behind */
.title-hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.title-hero::before {
  content: ""; position: absolute; z-index: -1; width: 760px; height: 440px;
  left: 50%; top: 48%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(34,211,238,0.16), rgba(244,114,182,0.10) 46%, transparent 72%);
}
.reveal #title .title-cmd {
  font-family: var(--mono-font); font-size: 16pt; color: var(--muted-color); margin: 0 0 16px;
}
.reveal #title .title-cmd .repl-prompt { color: var(--secondary-color); }
.reveal #title .title-gradient {
  font-size: 64pt; line-height: 1.04; max-width: 20ch; margin: 0; font-weight: 700;
  background: linear-gradient(100deg, var(--primary-color) 0%, #7DD3FC 32%, var(--accent-color) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.reveal #title .title-sub { font-size: 21pt; color: var(--text-color); opacity: 0.86; margin: 18px 0 0; max-width: 30ch; }
.reveal #title .speaker-chip {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 28px;
  padding: 10px 20px; border-radius: 999px; font-size: 16pt; color: var(--text-color);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-color);
}
.reveal #title .speaker-chip i { color: var(--primary-color); font-size: 17pt; }
.reveal #title .speaker-chip strong { color: var(--text-color); }
.reveal #title .speaker-chip .speaker-photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  object-position: center 20%;            /* keep the face framed on a tall portrait */
  margin: -8px 2px -8px -10px;            /* let it sit snug inside the pill */
  border: 2px solid var(--primary-color);
}
.reveal #title .title-lang-hint { font-size: 12pt; color: var(--muted-color); margin: 22px 0 0; }

/* ===========================================
   WELCOME — World Cup fixture card
   =========================================== */
.fixture {
  display: inline-flex; align-items: center; gap: 30px; margin: 0 auto;
  padding: 18px 30px; border-radius: var(--box-radius);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-color);
}
.fx-team { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.fx-team .flag { width: 80px; height: 53px; border-radius: 5px; box-shadow: 0 2px 9px rgba(0, 0, 0, 0.45); display: block; }
.reveal .fx-team p { font-size: 18pt; font-weight: 600; color: var(--text-color); margin: 0; }
.fx-vs { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.reveal .fx-vs .fx-v { font-family: var(--heading-font); font-weight: 700; font-size: 22pt; color: var(--muted-color); margin: 2px 0; }
.reveal .fx-vs .fx-time { font-family: var(--mono-font); font-size: 12pt; color: var(--secondary-color); margin: 0; }
.reveal .fx-vs .fx-group { font-family: var(--mono-font); font-size: 11pt; color: var(--muted-color); margin: 0; text-transform: uppercase; letter-spacing: 0.08em; }

/* ===========================================
   CYNEFIN — software is complex (2×2)
   =========================================== */
.cynefin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cyn {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-color);
  border-radius: var(--box-radius); padding: 16px 22px;
}
.reveal .cyn h3 { margin: 0 0 6px; font-size: 21pt; }
.reveal .cyn p { margin: 0; font-size: 15pt; color: var(--muted-color); }
.cyn-complex { border-color: var(--primary-color); background: rgba(34, 211, 238, 0.07); }
.reveal .cyn-complex h3 { color: var(--primary-color); }
.reveal .cyn-complex .cyn-tag { color: var(--primary-color); font-family: var(--mono-font); font-size: 12.5pt; margin-top: 7px; }

/* ===========================================
   TEXT UTILITIES
   =========================================== */
.text-lg  { font-size: 20pt !important; }
.text-xl  { font-size: 23pt !important; }
.text-2xl { font-size: 27pt !important; }
.text-3xl { font-size: 32pt !important; }
.text-4xl { font-size: 38pt !important; }
.text-muted { color: var(--muted-color) !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.font-bold { font-weight: 700; }

/* Accent helpers */
.reveal .hl     { color: var(--primary-color); }
.reveal .hl-sol { color: var(--secondary-color); }
.reveal .hl-mag { color: var(--accent-color); }

/* ===========================================
   COMPONENTS
   =========================================== */

/* Eyebrow / kicker */
.reveal .eyebrow {
  font-family: var(--mono-font);
  font-size: 13pt; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary-color);
  margin: 0 0 10px 0;
}
.reveal .slides section.section-divider .eyebrow { color: var(--accent-color); font-size: 15pt; }

/* Big punchy anchor line */
.reveal .anchor {
  font-family: var(--heading-font); font-weight: 700;
  font-size: 42pt; line-height: 1.12; letter-spacing: -0.02em;
  margin: 0;
}

/* The "sweep away" strike */
.strike { position: relative; color: var(--muted-color); white-space: nowrap; }
.strike::after {
  content: ''; position: absolute; left: -4px; right: -4px; top: 52%; height: 4px;
  background: var(--accent-color); transform: rotate(-2.5deg); border-radius: 3px;
}

/* Gates rubric table — looks rigorous on purpose */
.gates-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.gates-table th, .gates-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-color); }
.gates-table th {
  font-family: var(--mono-font); font-size: 12pt; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted-color);
}
.gates-table .gate-name { font-weight: 600; font-size: 18pt; }
.gates-table .gate-crit { color: var(--muted-color); font-size: 14pt; }
.grade {
  font-family: var(--mono-font); font-weight: 700; font-size: 18pt;
  padding: 3px 13px; border-radius: 9px; border: 1.5px solid currentColor; display: inline-block;
}
.grade.g-a { color: var(--primary-color); }
.grade.g-b { color: var(--secondary-color); }
.grade.g-c { color: var(--accent-color); }

/* Bookend — the four gates dimmed, the missing "Value" gate lit (graded by YOU) */
.gates-bookend .gate-dim td { opacity: 0.4; }
.gates-bookend .gate-new td { border-bottom: none; }
.gates-bookend .gate-new .gate-name { color: var(--accent-color); font-size: 22pt; }
.gates-bookend .gate-new .gate-crit { color: var(--text-color); font-size: 17pt; }
.grade.g-you {
  color: var(--accent-color); border-style: dashed; font-size: 17pt;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-color);
  border-radius: var(--box-radius);
  padding: 22px 24px;
}
.card .card-icon { font-size: 26pt; color: var(--primary-color); margin-bottom: 6px; display: block; }
.card h3 { margin: 4px 0 8px; }
.card p { color: var(--muted-color); font-size: 15pt; margin: 0; }

/* Stat that stings */
.reveal .stat-num {
  font-family: var(--heading-font); font-weight: 700; font-size: 92pt;
  color: var(--secondary-color); line-height: 0.95; letter-spacing: -0.03em;
}
.reveal .stat-label { color: var(--muted-color); font-size: 17pt; margin-top: 6px; }

/* ===========================================
   SURVEY CHART — diverging "trust spectrum" bar
   =========================================== */
.so-chart { width: 100%; display: flex; flex-direction: column; gap: 14px; }

/* Top row: the paradox in two big numbers */
.so-paradox { display: flex; align-items: baseline; justify-content: center; gap: 34px; flex-wrap: wrap; }
.so-fig { display: flex; align-items: baseline; gap: 12px; }
.so-fig .so-num { font-family: var(--heading-font); font-weight: 700; font-size: 58pt; line-height: 0.9; letter-spacing: -0.03em; }
.so-fig .so-cap { font-size: 19pt; color: var(--muted-color); max-width: 220px; text-align: left; }
.so-fig.use .so-num { color: var(--primary-color); }
.so-fig.trust .so-num { color: var(--accent-color); }
.so-arrow { font-size: 30pt; color: var(--line-color); align-self: center; }

/* The diverging bar */
.trust-cap { display: flex; justify-content: space-between; font-size: 16pt; color: var(--muted-color); }
.trust-cap span { display: inline-flex; align-items: center; }
.trust-cap .tc-trust { color: var(--primary-color); font-weight: 600; }
.trust-cap .tc-distrust { color: var(--accent-color); font-weight: 600; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 8px; }
.trust-bar {
  display: flex; width: 100%; height: 60px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line-color);
}
.trust-seg {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono-font); font-size: 15pt; font-weight: 600; color: var(--background-color);
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.ts-hi-trust   { background: var(--primary-color); }
.ts-trust      { background: rgba(34, 211, 238, 0.42); color: var(--text-color); }
.ts-neither    { background: var(--line-color); color: var(--muted-color); }
.ts-distrust   { background: rgba(244, 114, 182, 0.42); color: var(--text-color); }
.ts-hi-distrust{ background: var(--accent-color); }

/* Legend under the bar */
.trust-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 14pt; color: var(--muted-color); }
.trust-legend span { display: inline-flex; align-items: center; gap: 8px; }
.trust-legend i.sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }

/* Interactive / analog prompt */
.prompt-card {
  border-left: 5px solid var(--accent-color);
  background: rgba(244, 114, 182, 0.08);
  border-radius: 0 var(--box-radius) var(--box-radius) 0;
  padding: 18px 26px; margin: 12px 0;
}
.prompt-card p { font-size: 24pt; margin: 0; }

/* Keyboard hint */
.kbd {
  font-family: var(--mono-font); font-size: 12pt;
  border: 1px solid var(--line-color); border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 8px; color: var(--text-color); background: var(--code-bg);
}

/* Speaker byline */
.reveal .speaker { font-size: 19pt; color: var(--muted-color); }
.reveal .speaker strong { color: var(--text-color); }

/* QR closing */
.qr-card {
  background: #ffffff; border-radius: 20px; padding: 16px;
  box-shadow: 0 0 0 1px var(--line-color), 0 18px 50px rgba(34, 211, 238, 0.22);
  line-height: 0; position: relative; overflow: hidden;
}
.qr-card img { display: block; width: 248px; height: 248px; }
.qr-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 42%;
  pointer-events: none; transform: translateY(-115%);
  background: linear-gradient(to bottom, rgba(34, 211, 238, 0) 0%, rgba(34, 211, 238, 0.16) 75%, rgba(34, 211, 238, 0.42) 100%);
}

/* JS REPL snippet — the "0.1 + 0.2" wink (a JS-meetup nod, used as proof) */
.code-repl {
  font-family: var(--mono-font);
  background: var(--code-bg);
  border: 1px solid var(--line-color);
  border-radius: var(--box-radius);
  padding: 20px 28px;
  max-width: max-content;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.code-repl p { font-family: var(--mono-font); margin: 0; line-height: 1.65; }
.reveal .repl-line { font-size: 24pt; color: var(--text-color); }
.reveal .repl-out  { font-size: 24pt; color: var(--muted-color); }
.code-repl .repl-prompt { color: var(--primary-color); margin-right: 14px; }
.code-repl .cursor { color: var(--primary-color); }
.code-repl .repl-next { margin-top: 2px; }

/* Title terminal wink — "$ npm run charla" */
.reveal .term-wink {
  font-family: var(--mono-font);
  font-size: 14pt;
  color: var(--muted-color);
  margin-top: 16px;
}
.term-wink .repl-prompt { color: var(--secondary-color); margin-right: 9px; }
.term-wink .cursor { color: var(--primary-color); font-weight: 700; }

/* Inline code in prose / footnotes (e.g. the node_modules wink) */
.reveal code {
  font-family: var(--mono-font);
  font-size: 0.92em;
  color: var(--secondary-color);
  background: rgba(251, 191, 36, 0.10);
  padding: 1px 6px; border-radius: 5px;
}

/* Pipeline — the "end-to-end automation" slide (human gate at the end) */
.pipe { display: flex; align-items: stretch; gap: 0; }
.pipe-step {
  flex: 1; text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-color); border-radius: var(--box-radius);
  padding: 18px 8px;
}
.pipe-step i { font-size: 23pt; color: var(--primary-color); display: block; margin-bottom: 8px; }
.reveal .pipe-step p { font-size: 15pt; margin: 0; color: var(--muted-color); }
.pipe-step.is-human { border-color: var(--secondary-color); background: rgba(251, 191, 36, 0.09); }
.pipe-step.is-human i { color: var(--secondary-color); }
.reveal .pipe-step.is-human p { color: var(--secondary-color); font-weight: 600; }
.pipe-arrow { display: flex; align-items: center; padding: 0 12px; color: var(--muted-color); font-size: 15pt; }

/* Incident / alert card — the Fable rug-pull */
.incident {
  border-left: 5px solid var(--secondary-color);
  background: rgba(251, 191, 36, 0.09);
  border-radius: 0 var(--box-radius) var(--box-radius) 0;
  padding: 16px 22px;
}
.reveal .incident p { font-size: 18pt; margin: 0; line-height: 1.45; }
.incident i { color: var(--secondary-color); margin-right: 8px; }
.incident strong { color: var(--secondary-color); }

/* Career-path line (the "who am I" bio slide) */
.reveal .path { font-family: var(--mono-font); font-size: 22pt; color: var(--muted-color); }
.path .path-sep { color: var(--muted-color); opacity: 0.45; margin: 0 12px; }

/* Flashlight vote — the room lights up (the reusable per-section ritual) */
.lights { display: grid; grid-template-columns: repeat(8, 20px); gap: 18px; justify-content: center; margin: 8px 0; }
.light { width: 20px; height: 20px; border-radius: 50%; background: var(--line-color); }
.light.on { background: var(--primary-color); box-shadow: 0 0 14px 3px rgba(34, 211, 238, 0.5); }
.reveal .vote-how { font-size: 20pt; color: var(--muted-color); }

/* Guess-the-author snippet (the engaging vote) */
.snippet {
  background: var(--code-bg); border: 1px solid var(--line-color); border-radius: var(--box-radius);
  padding: 22px 30px; max-width: max-content; margin: 0 auto;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
}
.snippet pre { margin: 0; }
.reveal .snippet code {
  font-family: var(--mono-font); font-size: 20pt; line-height: 1.5;
  color: var(--text-color); background: none; padding: 0;
  display: block; white-space: pre; text-align: left;
}
.snippet .k  { color: var(--accent-color); }
.snippet .fn { color: var(--primary-color); }
.snippet .s  { color: var(--secondary-color); }
.reveal .vote-q { font-family: var(--heading-font); font-weight: 700; font-size: 28pt; margin-top: 8px; }

/* ===========================================
   INTERACTION MODES — two unmistakable rituals
   VOTE  = loud, whole room, gold/magenta (🔦)
   TESTIMONY = quiet, one voice, celeste (🎤)
   =========================================== */

/* Mode tag — the at-a-glance label so the room (and speaker) know the ritual */
.reveal .mode-tag {
  display: inline-block; font-family: var(--mono-font); font-size: 14pt; font-weight: 600;
  letter-spacing: 0.04em; padding: 7px 16px; border-radius: 999px; margin-bottom: 14px;
}
.reveal .mode-vote {
  color: var(--secondary-color); background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.42);
}
.reveal .mode-testimony {
  color: var(--primary-color); background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.42);
}

/* Flashlight vote — two energetic poles (on = utopia, off = the crack) */
.poles { display: flex; align-items: stretch; justify-content: center; gap: 22px; }
.pole {
  flex: 0 1 280px; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-color); border-radius: var(--box-radius);
  padding: 26px 28px; text-align: center;
}
.pole i { font-size: 34pt; display: block; margin-bottom: 12px; }
.reveal .pole .pole-state {
  font-family: var(--mono-font); font-size: 13pt; color: var(--muted-color);
  margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.06em;
}
.reveal .pole .pole-label { font-family: var(--heading-font); font-weight: 700; font-size: 26pt; margin: 0; }
.pole-on { border-color: rgba(251, 191, 36, 0.45); }
.pole-on i, .pole-on .pole-label { color: var(--secondary-color); }
.pole-off { border-color: rgba(244, 114, 182, 0.45); }
.pole-off i, .pole-off .pole-label { color: var(--accent-color); }
.pole-vs { align-self: center; font-family: var(--mono-font); font-size: 18pt; color: var(--muted-color); opacity: 0.55; }

/* Testimony — a single, intimate quote card; deliberately calmer than the vote */
.testimony .mic-card {
  max-width: 780px; margin: 0 auto; text-align: center;
  background: rgba(34, 211, 238, 0.05); border: 1px solid rgba(34, 211, 238, 0.28);
  border-left: 4px solid var(--primary-color); border-radius: var(--box-radius);
  padding: 40px 48px;
}
.mic-card .quote-mark { font-size: 26pt; color: var(--primary-color); opacity: 0.7; margin-bottom: 14px; display: block; }
.reveal .testimony-q { font-family: var(--heading-font); font-weight: 700; font-size: 32pt; line-height: 1.25; margin: 0; color: var(--text-color); }
.reveal .testimony-sub { font-size: 18pt; color: var(--muted-color); margin: 16px 0 0; }

/* ===========================================
   BILINGUAL (§5) — only ever HIDE inactive language
   =========================================== */
html[data-lang="es"] [data-i18n="en"] { display: none !important; }
html[data-lang="en"] [data-i18n="es"] { display: none !important; }

/* 🌐 Globe toggle — fixed, top-right, always visible */
.lang-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px;
  font-family: var(--mono-font); font-size: 12pt; font-weight: 600;
  color: var(--text-color);
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--line-color); border-radius: 999px;
  cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color 0.2s, color 0.2s, transform 0.08s;
}
.lang-toggle:hover { border-color: var(--primary-color); color: var(--primary-color); }
.lang-toggle:active { transform: scale(0.96); }
.lang-toggle i { color: var(--primary-color); font-size: 13pt; }

/* ===========================================
   WHO AM I — self-intro with portrait
   =========================================== */
.reveal #whoami .whoami-layout {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 56px; text-align: left; flex: 1;
}
.reveal #whoami .whoami-photo {
  height: 58vh; max-height: 540px; width: auto;
  border-radius: 18px; border: 1px solid var(--line-color);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  flex: 0 0 auto;
}
.reveal #whoami .whoami-text { max-width: 720px; }
.reveal #whoami .whoami-text .anchor { margin: 0; }

/* ===========================================
   CHAT BOX — the "Great instinct" verifier example (#coherence)
   =========================================== */
.chat-box {
  font-family: var(--mono-font);
  background: var(--code-bg);
  border: 1px solid var(--line-color);
  border-radius: var(--box-radius);
  padding: 22px 30px;
  max-width: 1180px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.chat-box .chat-line {
  font-family: var(--mono-font);
  font-size: 19pt;
  line-height: 1.55;
  color: var(--text-color);
  margin: 0 0 10px 0;
}
.chat-box .chat-line:last-child { margin-bottom: 0; }
.chat-box .chat-line .who { color: var(--muted-color); margin-right: 10px; }
.chat-box .chat-line em { font-style: normal; }

/* ===========================================
   TOOL LIST — #tools "worth keeping around"
   =========================================== */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  flex: 1;
  align-content: center;
}
.reveal .tool-row {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line-color);
  border-radius: var(--box-radius);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none; color: var(--text-color);
  transition: border-color 0.18s ease, transform 0.12s ease, background 0.18s ease;
}
.reveal .tool-row:hover { border-color: var(--primary-color); transform: translateY(-2px); background: rgba(34, 211, 238, 0.06); }
.reveal .tool-row > i { font-size: 22pt; color: var(--primary-color); width: 34px; text-align: center; flex: 0 0 auto; }
.reveal .tool-row > div { display: flex; flex-direction: column; }
.reveal .tool-row .tool-name { font-family: var(--mono-font); font-weight: 600; font-size: 19pt; color: var(--text-color); }
.reveal .tool-row .tool-desc { font-size: 14pt; color: var(--muted-color); line-height: 1.35; }
