:root {
  --bg: #0a0a0f;
  --text: #f5f5f2;
  --muted: #8a8a95;
  --accent: #ff4f2e;
}

.reveal-viewport,
html {
  background-color: var(--bg);
}

.reveal {
  font-family: Calibri, "Segoe UI", sans-serif;
  color: var(--text);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  background: var(--bg);
}

.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: "Arial Black", Impact, sans-serif;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.02em;
}

.reveal h1 {
  font-size: 3.2em;
}

.reveal h2 {
  font-size: 2.2em;
  margin-bottom: 0.6em;
}

.reveal h3 {
  font-size: 1.4em;
  color: var(--muted);
  font-weight: normal;
  font-family: Calibri, sans-serif;
}

.reveal ul {
  list-style: none;
  padding: 0;
}

.reveal ul li {
  margin-bottom: 0.7em;
  font-size: 0.95em;
  line-height: 1.5;
  padding-left: 1.2em;
  position: relative;
}

.reveal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Points slide: image-bearing rows on top, conclusion pinned bottom ───
   Slide gets class="points-slide" so it fills the full height. Inside,
   <ul class="icon-points"> holds rows; each leading <li> pairs a
   <span class="thumb"> (a fixed box the image is contained within) with a
   text <span>. The trailing <li class="conclusion"> is pushed to the
   bottom of the slide as the closing line. */
.reveal .slides section.points-slide {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  box-sizing: border-box;
}

.reveal ul.icon-points {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0.5em;
}

.reveal ul.icon-points li {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding-left: 0;
}

/* Text fills the remaining space, pushing every thumb to the same right-hand
   column so the image boxes share a left edge regardless of text length. */
.reveal ul.icon-points li > span:not(.thumb) {
  flex: 1 1 auto;
}

.reveal ul.icon-points li::before {
  display: none;
}

/* Parent box is a fixed proportion of the slide width and larger than the
   image; the image is sized to it and contained, so any aspect ratio fits
   without cropping and the box scales correctly when the slide resizes. */
.reveal ul.icon-points .thumb {
  flex: 0 0 30%;
  width: 30%;
  aspect-ratio: 3 / 2;
  height: auto;
  max-height: 28vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 138, 149, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.reveal ul.icon-points .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}

.reveal ul.icon-points li.conclusion {
  margin-top: auto;
  padding-top: 0.8em;
  padding-left: 0;
  border-top: 1px solid rgba(138, 138, 149, 0.25);
  font-size: 1.15em;
}

.reveal ul.icon-points li.conclusion span {
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════════════════════
   "Computing ignores how humans actually work" — layout experiments.
   Each variant is a self-contained slide class with identical content so the
   layouts can be compared side by side. Shared helpers first.
   ════════════════════════════════════════════════════════════════════════ */

/* Tiny corner label so each layout is identifiable while iterating. */
.reveal .variant-tag {
  position: absolute;
  top: 0.1em;
  right: 0.1em;
  font-size: 0.5em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
  font-family: Calibri, sans-serif;
}

/* Reused closing line for the bar-style variants. */
.reveal .conclusion-bar {
  margin-top: 0.9em;
  padding-top: 0.7em;
  border-top: 1px solid rgba(138, 138, 149, 0.25);
  color: var(--accent);
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.3;
}

/* Every variant section fills the slide and stacks vertically. */
.reveal .slides section.points-versus,
.reveal .slides section.points-rows,
.reveal .slides section.points-overlay,
.reveal .slides section.points-arrow,
.reveal .slides section.points-hero,
.reveal .slides section.points-flip,
.reveal .slides section.points-collage,
.reveal .slides section.points-stack {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  box-sizing: border-box;
}

/* ── 1 · Versus — two contrasting cards, full-bleed image + caption ────── */
.points-versus .vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  flex: 1;
  margin-top: 0.4em;
  min-height: 0;
}
.points-versus .vs-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 138, 149, 0.2);
  border-radius: 12px;
  overflow: hidden;
}
.points-versus .vs-card.positive {
  border-color: rgba(255, 79, 46, 0.45);
}
.points-versus .vs-card .img {
  flex: 1;
  min-height: 0;
}
.points-versus .vs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}
.points-versus .vs-card p {
  margin: 0;
  padding: 0.85em 1.1em;
  font-size: 1em;
  line-height: 1.4;
}

/* ── 2 · Rows — large alternating (zig-zag) image rows ─────────────────── */
.points-rows .rows {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  flex: 1;
  justify-content: center;
  margin-top: 0.4em;
  min-height: 0;
}
.points-rows .row {
  display: flex;
  align-items: center;
  gap: 1.6em;
}
.points-rows .row.alt {
  flex-direction: row-reverse;
}
.points-rows .row .img {
  flex: 0 0 40%;
  width: 40%;
  height: 26vh;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.points-rows .row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.points-rows .row p {
  margin: 0;
  font-size: 1.3em;
  line-height: 1.35;
}

/* ── 3 · Overlay — full-bleed duo, caption sits over a gradient ────────── */
.points-overlay .duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  flex: 1;
  margin-top: 0.5em;
  min-height: 0;
}
.points-overlay figure {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}
.points-overlay figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}
.points-overlay figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2em 1.1em 1em;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.96),
    rgba(10, 10, 15, 0)
  );
  font-size: 1.15em;
  line-height: 1.35;
}

/* ── 4 · Arrow — transformation flow: rich intent → reduced to flat ────── */
.points-arrow .flow {
  display: flex;
  align-items: stretch;
  gap: 1.2em;
  flex: 1;
  margin-top: 0.5em;
  min-height: 0;
}
.points-arrow .stage {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.points-arrow .stage .img {
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.points-arrow .stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.points-arrow .stage p {
  margin: 0.6em 0 0;
  font-size: 1em;
  line-height: 1.35;
}
.points-arrow .arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  font-size: 3.5em;
  color: var(--accent);
}

/* ── 5 · Hero — statements are the headline, thumbnails as inline icons ── */
.points-hero {
  justify-content: center;
}
.points-hero h2 {
  font-size: 1.4em;
  color: var(--muted);
  font-weight: normal;
  font-family: Calibri, sans-serif;
  letter-spacing: 0;
  margin-bottom: 0.8em;
}
.points-hero .line {
  display: flex;
  align-items: center;
  gap: 1.4em;
  margin-bottom: 1.1em;
}
.points-hero .line img {
  width: 180px;
  height: 120px;
  flex: 0 0 180px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}
.points-hero .line p {
  margin: 0;
  font-size: 1.75em;
  line-height: 1.2;
  font-family: "Arial Black", Impact, sans-serif;
  letter-spacing: -0.02em;
}
.points-hero .concl {
  font-size: 1.9em;
  color: var(--accent);
  font-weight: bold;
  margin-top: 0.4em;
  line-height: 1.25;
}

/* ── 6 · Flip — conclusion leads as the headline, evidence tiles below ─── */
.points-flip h2 {
  font-size: 1.2em;
  color: var(--muted);
  font-weight: normal;
  font-family: Calibri, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15em;
}
.points-flip .lead {
  font-size: 2.1em;
  font-family: "Arial Black", Impact, sans-serif;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.18;
  margin: 0 0 0.7em;
}
.points-flip .evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6em;
  flex: 1;
  min-height: 0;
}
.points-flip .tile {
  display: flex;
  flex-direction: column;
}
.points-flip .tile .img {
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.points-flip .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.points-flip .tile p {
  margin: 0.6em 0 0;
  font-size: 0.95em;
  line-height: 1.4;
  color: var(--muted);
}

/* ── 7 · Collage — one dominant image, one inset, captions overlaid ────── */
.points-collage .collage {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 1.2em;
  flex: 1;
  margin-top: 0.5em;
  min-height: 0;
}
.points-collage figure {
  margin: 0;
}
.points-collage .big {
  grid-row: 1 / span 2;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.points-collage .small {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
}
.points-collage .big img,
.points-collage .small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}
.points-collage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8em 1em 0.9em;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.95),
    rgba(10, 10, 15, 0)
  );
  font-size: 1em;
  line-height: 1.35;
}
.points-collage .concl {
  display: flex;
  align-items: center;
  font-size: 1.25em;
  color: var(--accent);
  font-weight: bold;
  line-height: 1.3;
}

/* ── 8 · Stack — clean centered figures, uncropped, big centered close ─── */
.points-stack {
  align-items: center;
  text-align: center;
}
.points-stack h2 {
  text-align: center;
}
.points-stack .figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  width: 100%;
  flex: 1;
  margin-top: 0.5em;
  min-height: 0;
}
.points-stack figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.points-stack figure .img {
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.points-stack figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}
.points-stack figcaption {
  margin-bottom: 0.6em;
  font-size: 0.95em;
  line-height: 1.4;
  color: var(--text);
}
.points-stack .concl {
  margin-top: 0.8em;
  font-size: 1.5em;
  color: var(--accent);
  font-weight: bold;
  text-align: center;
}

.reveal .accent {
  color: var(--accent);
}

.reveal .muted {
  color: var(--muted);
}

.reveal strong {
  color: var(--accent);
}

.reveal table {
  font-size: 0.65em;
  border-collapse: collapse;
  width: 100%;
  margin-top: 0.5em;
}

.reveal table th {
  background: rgba(255, 79, 46, 0.15);
  color: var(--accent);
  padding: 0.5em 0.6em;
  text-align: center;
  border-bottom: 2px solid var(--accent);
}

.reveal table th:first-child {
  text-align: left;
}

.reveal table td {
  padding: 0.5em 0.6em;
  text-align: center;
  border-bottom: 1px solid rgba(138, 138, 149, 0.2);
}

.reveal table td:first-child {
  text-align: left;
  color: var(--text);
}

.reveal table tr:last-child td {
  color: var(--accent);
  font-weight: bold;
}

.reveal .slide-number {
  color: var(--muted);
  font-size: 12px;
}

.title-slide h1 {
  font-size: 4em;
  margin-bottom: 0.1em;
}

.title-slide h3 {
  font-size: 1.3em;
  margin-top: 0.3em;
}

.title-slide .founder {
  margin-top: 2em;
  font-size: 0.9em;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5em;
  margin-top: 1em;
  align-items: stretch;
}

.product-grid .card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 138, 149, 0.2);
  border-radius: 8px;
  padding: 1.2em;
}

.product-grid .card h4 {
  color: var(--accent);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.9em;
  margin: 0 0 0.5em;
}

.product-grid .card p {
  color: var(--muted);
  font-size: 0.7em;
  margin: 0 0 1em;
  line-height: 1.4;
}

/* Image pinned below the text; margin-top:auto keeps the image flush to the
   bottom so cards with shorter copy still align their images across the row. */
.product-grid .card .card-img {
  display: block;
  margin-top: auto;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.product-grid .card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
  border-radius: 6px;
}

.team-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 138, 149, 0.2);
  border-radius: 8px;
  padding: 2em;
  margin-top: 1em;
}

.team-card h3 {
  color: var(--text) !important;
  font-family: "Arial Black", Impact, sans-serif !important;
  font-size: 1.4em !important;
  margin: 0 0 0.2em;
}

.team-card h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.team-card h3 a:hover {
  color: var(--accent);
}

.team-card .role-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em 0.75em;
  margin: 0 0 0.75em;
}

.team-card .role {
  color: var(--accent);
  font-size: 0.85em;
  margin: 0;
}

.team-card .previously {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em 0.5em;
  margin: 0;
  font-size: 0.58em;
  line-height: 1.2;
  color: var(--muted);
}

.team-card .previously-label {
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.team-card .previously ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 0.45em;
  margin: 0;
  padding: 0;
}

.team-card .previously li {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.team-card .previously li::before {
  display: none;
}

.team-card .previously li:not(:last-child)::after {
  content: "·";
  margin-left: 0.45em;
  opacity: 0.55;
}

/* Row of personal photos beneath the bio. Fixed-ratio boxes share a row and
   crop-to-fill, so mixed aspect ratios still line up. */
.team-card .team-photos {
  display: flex;
  gap: 1em;
  margin-top: 1.4em;
}

.team-card .team-photos figure {
  flex: 1;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(138, 138, 149, 0.2);
}

.team-card .team-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}

.team-card ul li {
  font-size: 0.8em;
  color: var(--muted);
}

.ask-slide h2 {
  font-size: 2.6em;
}

.ask-slide ul li {
  font-size: 1em;
}

.reveal .pull-quote {
  margin-top: 1.2em;
  padding: 0.8em 1em;
  border-left: 4px solid var(--accent);
  background: rgba(255, 79, 46, 0.06);
  font-size: 0.95em;
  line-height: 1.5;
  font-style: italic;
}

.reveal .sources {
  margin-top: 1.5em;
  font-size: 0.45em;
  color: var(--muted);
  opacity: 0.7;
}

.reveal .sources a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted rgba(138, 138, 149, 0.5);
}

.reveal .sources a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Small superscript glyph marking a link as external. */
.reveal .ext {
  font-size: 0.8em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.15em;
  color: var(--accent);
}

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2em;
  margin-top: 0.8em;
}

.comp-grid .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 138, 149, 0.2);
  border-radius: 8px;
  padding: 1.2em;
}

.comp-grid .card h4 {
  color: var(--accent);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.8em;
  margin: 0 0 0.15em;
}

.comp-grid .card .cat {
  color: var(--muted);
  font-size: 0.55em;
  margin: 0 0 0.6em;
  font-style: italic;
}

.comp-grid .card ul {
  margin: 0;
  padding: 0;
}

.comp-grid .card ul li {
  font-size: 0.6em;
  color: var(--muted);
  margin-bottom: 0.35em;
  padding-left: 1em;
}

.comp-grid .card ul li::before {
  width: 5px;
  height: 5px;
  top: 0.55em;
}

.comp-grid .card .proof {
  margin-top: 0.5em;
  font-size: 0.58em;
  color: var(--text);
  line-height: 1.4;
}

.reveal .slides section.demo-slide {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0 !important;
  height: 100% !important;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* full-frame: no header — the iframe fills the entire slide */
.reveal .slides section.demo-slide.full-frame {
  grid-template-rows: minmax(0, 1fr);
}

.demo-slide-header {
  padding: 0.5em 0.7em 0.35em;
}

.demo-slide-header h2 {
  margin: 0 0 0.1em;
  font-size: 1.5em;
}

.demo-slide-header h3 {
  margin: 0;
  font-size: 0.75em;
}

.demo-slide-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.demo-slide-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: none;
}

/* ── Split layout: text + media ─────────────────────────────────────────
   Add `class="split"` to a slide, then give it two child <div>s:
     1st div = text (left / top), 2nd div = media (right / bottom).
   Add `vertical` for the stacked variant (text top, media bottom). */
.reveal .slides section.split {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  align-items: center;
  height: 100% !important;
  box-sizing: border-box;
}

/* A heading placed directly on a split slide spans both columns, so the two
   child <div>s drop into the row beneath it (title on top, two columns below). */
.reveal section.split > h1,
.reveal section.split > h2,
.reveal section.split > h3 {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0 0 0.4em;
}

.reveal .slides section.split.vertical {
  grid-template-columns: none;
  grid-template-rows: auto 1fr;
  align-items: stretch;
}

/* Bias the split toward the media side when you want a smaller caption. */
.reveal .slides section.split.media-heavy {
  grid-template-columns: 2fr 3fr;
}

.reveal section.split > div {
  min-width: 0;
  min-height: 0;
}

/* Markdown can leave a trailing empty <p>; keep it out of the grid. */
.reveal section.split > :empty {
  display: none;
}

.reveal section.split img,
.reveal section.split video,
.reveal section.split iframe {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: none;
  border-radius: 8px;
  margin: 0;
}

.reveal section.split img,
.reveal section.split video {
  height: auto;
}

.reveal section.split iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

/* In the stacked variant the media fills the lower row. */
.reveal .slides section.split.vertical img,
.reveal .slides section.split.vertical video,
.reveal .slides section.split.vertical iframe {
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
}
