/* Taulon — pitch deck.
   One slide at a time at any size. Type is fluid, and the minimum end of every
   clamp() is chosen to stay readable on a phone, because a slide that only
   works on a projector is a slide most people will never read. */

html, body { height: 100%; overflow: hidden; }
body.deck-body { background: var(--bg); }

/* ---------- chrome ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 60;
  background: var(--grad); width: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center;
  padding: 14px clamp(18px, 3.4vw, 48px);
  pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 40%, transparent);
}
.topbar .wordmark { pointer-events: auto; }

.hud {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  padding: 12px clamp(18px, 3.4vw, 48px);
  background: linear-gradient(to top, var(--bg) 62%, transparent);
}
.hud__count {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.hud__count b { color: var(--text-dim); font-weight: 500; }
.hud__spacer { margin-left: auto; }
.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 3px;
  background: transparent; color: var(--text-dim);
  font-family: var(--mono); font-size: 13px; line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.iconbtn:hover:not(:disabled) { border-color: var(--blue-lt); color: var(--text); background: rgba(5,124,183,0.1); }
.iconbtn:disabled { opacity: 0.3; cursor: default; }
/* On a phone the overview and help buttons are the ones worth keeping. */
@media (max-width: 560px) { .iconbtn { width: 40px; height: 40px; } }

/* ---------- slides ---------- */
.slides { position: fixed; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: clamp(62px, 8vh, 96px) clamp(20px, 5.2vw, 88px) clamp(92px, 9vh, 104px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.34s ease, transform 0.34s ease, visibility 0.34s;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
/* `margin: auto 0` centres the slide when it fits and lets it scroll from the
   top when it does not — justify-content: center would clip the top instead. */
.slide__inner { width: 100%; max-width: 1180px; margin: auto; }

/* ---------- slide header: exactly one heading per slide ---------- */
.s-h {
  font-size: clamp(27px, 3.3vw, 46px);
  letter-spacing: -0.026em;
  line-height: 1.12;
  margin-bottom: clamp(14px, 2.2vh, 22px);
}
.who {
  display: block;
  font-size: clamp(18px, 1.9vw, 27px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--blue-lt);
  margin-top: 6px;
}
.s-sub {
  font-size: clamp(17px, 1.75vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.014em;
  color: var(--text);
  max-width: 40ch;
  margin-bottom: clamp(16px, 2.6vh, 28px);
}
.s-body {
  font-size: clamp(15.5px, 1.3vw, 20px);
  color: var(--text-dim);
  line-height: 1.58;
  max-width: 64ch;
}
.s-body strong { color: var(--text); font-weight: 500; }
.s-body + .s-body { margin-top: clamp(10px, 1.6vh, 16px); }
.s-body a { color: var(--blue-lt); text-decoration: none; border-bottom: 1px solid rgba(79,176,226,0.35); }
.s-note {
  margin-top: clamp(16px, 2.6vh, 28px);
  font-size: clamp(13.5px, 1.05vw, 16px);
  color: var(--text-faint);
  line-height: 1.6;
}
.accent-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- title slide ---------- */
.lockup { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 22px); margin-bottom: clamp(30px, 6vh, 64px); }
.lockup img.m { width: clamp(48px, 6.4vw, 88px); height: auto; display: block; }
.lockup img.t { height: clamp(26px, 3.4vw, 46px); width: auto; display: block; }

/* Vision and Mission: no boxes, one hairline between them, baselines aligned. */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3.4vw, 56px); max-width: 1040px; }
.vm > div { position: relative; }
.vm > div + div { padding-left: clamp(22px, 3.4vw, 56px); }
.vm > div + div::before {
  content: ""; position: absolute; left: 0; top: 0.18em; bottom: 0.1em; width: 1px;
  background: var(--line);
}
.vm p {
  font-size: clamp(17px, 1.72vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text-dim);
}
.vm b { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  .vm { grid-template-columns: 1fr; gap: 20px; }
  .vm > div + div { padding-left: 0; padding-top: 20px; }
  .vm > div + div::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
}

.title-meta {
  margin-top: clamp(28px, 5vh, 56px);
  padding-top: clamp(16px, 2.6vh, 26px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  font-family: var(--mono);
  font-size: clamp(12px, 0.95vw, 14px);
  color: var(--text-faint);
}
.title-meta a { color: var(--blue-lt); text-decoration: none; }

/* ---------- statement slides ---------- */
.s-lead {
  font-size: clamp(15.5px, 1.3vw, 20px);
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 52ch;
  margin-bottom: clamp(12px, 2vh, 20px);
}
.slide--statement .s-big {
  font-size: clamp(28px, 4.4vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.14;
  max-width: 26ch;
  margin-bottom: clamp(14px, 2.4vh, 24px);
}

/* ---------- grids ---------- */
.g { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: clamp(18px, 3vh, 34px); }
.g--2 { grid-template-columns: repeat(2, 1fr); }
.g--3 { grid-template-columns: repeat(3, 1fr); }
.g--4 { grid-template-columns: repeat(4, 1fr); }
.box { background: var(--bg-2); padding: clamp(18px, 2.2vw, 30px); }
.box__k {
  display: block;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 500;
  color: var(--blue-lt);
  margin-bottom: clamp(9px, 1.5vh, 14px);
  letter-spacing: -0.01em;
}
.box:nth-child(4n+2) .box__k { color: #2fa6c8; }
.box:nth-child(4n+3) .box__k { color: var(--teal-lt); }
.box:nth-child(4n)   .box__k { color: var(--indigo-lt); }
.box h3 { font-size: clamp(16px, 1.45vw, 22px); margin-bottom: clamp(6px, 1vh, 10px); line-height: 1.24; }
.box p  { font-size: clamp(14px, 1.18vw, 17.5px); color: var(--text-dim); line-height: 1.55; }
.box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(6px, 1vh, 10px); }
.box li { font-size: clamp(14px, 1.15vw, 17px); color: var(--text-dim); line-height: 1.45; padding-left: 15px; position: relative; }
.box li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 5px; height: 5px; border-radius: 1px; background: var(--line-strong); }
.box:nth-child(4n+1) li::before { background: var(--blue); }
.box:nth-child(4n+2) li::before { background: #027fa0; }
.box:nth-child(4n+3) li::before { background: var(--teal); }
.box:nth-child(4n)   li::before { background: var(--indigo); }
@media (max-width: 1000px) { .g--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px)  { .g--3 { grid-template-columns: 1fr; } }
@media (max-width: 620px)  { .g--4, .g--2 { grid-template-columns: 1fr; } }

/* ---------- numbered rows (Why Now) ----------
   The source text already numbers these ("1. AI moved from answering to
   acting"), so the layout must not number them a second time. */
.rows { margin-top: clamp(14px, 2.4vh, 26px); display: grid; }
.row {
  padding: clamp(13px, 2vh, 22px) 0;
  border-top: 1px solid var(--line);
}
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(16.5px, 1.5vw, 23px); margin-bottom: 7px; letter-spacing: -0.012em; }
.row p  { font-size: clamp(14px, 1.18vw, 17.5px); color: var(--text-dim); line-height: 1.55; max-width: 92ch; }

/* ---------- labelled paragraphs ---------- */
.defs { display: grid; gap: clamp(9px, 1.5vh, 14px); margin-top: clamp(16px, 2.6vh, 28px); }
.defs p {
  font-size: clamp(14.5px, 1.22vw, 18px); color: var(--text-dim); line-height: 1.55;
  padding: clamp(14px, 2vh, 20px) clamp(16px, 1.9vw, 26px);
  border: 1px solid var(--line); border-left-width: 2px; border-radius: 3px; background: var(--bg-2);
}
.defs p b { color: var(--text); font-weight: 500; }
.defs p:nth-child(1) { border-left-color: var(--blue); }
.defs p:nth-child(2) { border-left-color: #027fa0; }
.defs p:nth-child(3) { border-left-color: var(--teal); }
.defs p:nth-child(4) { border-left-color: var(--indigo); }

/* ---------- staged rows ---------- */
.stage-rows { display: grid; gap: clamp(8px, 1.3vh, 12px); margin-top: clamp(18px, 3vh, 32px); }
.stage-row {
  padding: clamp(14px, 2vh, 20px) clamp(16px, 1.9vw, 26px);
  border: 1px solid var(--line); border-left-width: 2px; border-radius: 3px; background: var(--bg-2);
}
.stage-row p { font-size: clamp(14.5px, 1.22vw, 18px); color: var(--text-dim); line-height: 1.55; }
.stage-row:nth-child(1) { border-left-color: var(--blue); }
.stage-row:nth-child(2) { border-left-color: #027fa0; }
.stage-row:nth-child(3) { border-left-color: var(--teal); }
.stage-row:nth-child(4) { border-left-color: var(--indigo); }

/* ---------- big numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: clamp(18px, 3vh, 34px); }
.num { background: var(--bg-2); padding: clamp(18px, 2.3vw, 32px); }
.num p { font-size: clamp(14px, 1.18vw, 17.5px); color: var(--text-dim); line-height: 1.55; }
@media (max-width: 860px) { .nums { grid-template-columns: 1fr; } }

/* ---------- a bullet-separated line, laid out as a list ---------- */
.outlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: clamp(18px, 3vh, 34px); }
.outlist div {
  background: var(--bg-2);
  padding: clamp(18px, 2.3vw, 30px);
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  display: flex; gap: 14px; align-items: flex-start;
}
.outlist div::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.5em; border-radius: 1px; background: var(--blue); }
.outlist div:nth-child(2)::before { background: #027fa0; }
.outlist div:nth-child(3)::before { background: var(--teal); }
.outlist div:nth-child(4)::before { background: var(--indigo); }
@media (max-width: 720px) { .outlist { grid-template-columns: 1fr; } }

/* inline list inside a box, replacing "•" runs */
.dots { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px 9px; }
.dots li {
  font-size: clamp(13.5px, 1.1vw, 16.5px);
  color: var(--text-dim);
  line-height: 1.35;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.022);
}

/* ---------- callout ---------- */
.callout {
  margin-top: clamp(18px, 3vh, 34px);
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(135deg, rgba(5,124,183,0.11), rgba(96,96,251,0.11));
}
.callout span { display: block; font-size: clamp(14px, 1.15vw, 18px); font-weight: 500; color: var(--text-dim); margin-bottom: clamp(8px, 1.3vh, 13px); }
.callout p { font-size: clamp(16px, 1.55vw, 24px); letter-spacing: -0.016em; line-height: 1.32; }

/* ---------- flow line ---------- */
.flowline {
  margin-top: clamp(14px, 2.4vh, 26px);
  padding: clamp(14px, 2vh, 22px) clamp(16px, 1.9vw, 26px);
  border: 1px solid var(--line); border-radius: 3px;
  background: linear-gradient(90deg, rgba(5,124,183,0.1), rgba(3,131,131,0.1), rgba(96,96,251,0.1));
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1.6;
}

/* ---------- competition ---------- */
.comp { margin-top: clamp(16px, 2.6vh, 30px); display: grid; }
.comp__r {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: clamp(10px, 2vw, 30px);
  padding: clamp(12px, 1.9vh, 20px) 0;
  border-top: 1px solid var(--line);
}
.comp .comp__r:last-child { border-bottom: 1px solid var(--line); }
.comp__n { font-size: clamp(15px, 1.3vw, 19px); font-weight: 500; line-height: 1.3; }
.comp__d { font-size: clamp(14px, 1.15vw, 17px); color: var(--text-dim); line-height: 1.55; }
@media (max-width: 720px) { .comp__r { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- team ---------- */
.bio { margin-top: clamp(16px, 2.6vh, 30px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3.2vw, 52px); }
.bio p.b { font-size: clamp(14.5px, 1.2vw, 18px); color: var(--text-dim); line-height: 1.58; }
.bio p.b + p.b { margin-top: clamp(9px, 1.4vh, 14px); }
.bio .lbl { font-size: clamp(14px, 1.15vw, 18px); color: var(--text); font-weight: 500; margin-bottom: 10px; }
.bio .grp + .grp { margin-top: clamp(14px, 2.2vh, 22px); }
.bio .plain { font-size: clamp(14px, 1.15vw, 17.5px); color: var(--text-dim); line-height: 1.55; }
.bio .sep { margin-top: clamp(16px, 2.4vh, 24px); padding-top: clamp(14px, 2.2vh, 22px); border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .bio { grid-template-columns: 1fr; gap: 0; }
  .bio > div + div { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
}

/* ---------- closing ---------- */
.slide--closing { position: relative; overflow: hidden; }
.slide--closing .glow { bottom: -240px; left: 50%; transform: translateX(-50%); width: 760px; height: 400px; background: var(--teal); opacity: 0.28; }
.closing-mail { font-family: var(--mono); color: var(--blue-lt); text-decoration: none; border-bottom: 1px solid rgba(79,176,226,0.4); padding-bottom: 3px; }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(5, 7, 10, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none;
  padding: clamp(24px, 6vh, 72px) clamp(20px, 5vw, 72px);
  overflow-y: auto;
}
.overlay.is-open { display: block; }
.overlay__h { font-size: 15px; color: var(--text-faint); margin-bottom: 22px; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; max-width: 1180px; }
.toc button {
  display: flex; gap: 14px; align-items: baseline; text-align: left;
  background: var(--bg-2); border: 0; cursor: pointer;
  padding: 15px 18px; color: var(--text); font-family: inherit; font-size: 16px;
  transition: background 0.14s ease;
}
.toc button:hover { background: var(--surface-2); }
.toc button.is-current { background: rgba(5,124,183,0.16); }
.toc button i { font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--text-faint); flex: none; width: 24px; }
.keys { max-width: 560px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.keys div { background: var(--bg-2); padding: 13px 18px; display: flex; gap: 18px; font-size: 15px; color: var(--text-dim); }
.keys kbd {
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 2px 7px; flex: none; min-width: 84px; text-align: center;
}

/* ---------- print / PDF ---------- */
@media print {
  @page { size: 297mm 167mm; margin: 0; }
  html, body { overflow: visible; height: auto; background: #07090C; }
  .progress, .hud, .overlay, .topbar { display: none !important; }
  .slides { position: static; }
  .slide {
    position: static !important;
    opacity: 1 !important; visibility: visible !important; transform: none !important;
    page-break-after: always; break-after: page;
    width: 297mm; height: 167mm; padding: 14mm 18mm; overflow: hidden;
  }
  .slide:last-child { page-break-after: auto; break-after: auto; }
}
