:root {
    --bg: #ffffff;
    --bg-soft: #f6f5f2;
    --ink: #111111;
    --ink-2: #1c1c1c;
    --mute: #8a857d;
    --rule: #e7e4dd;
    --accent: #1a1a1a;

    --serif: "Instrument Serif", "Times New Roman", serif;
    --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* type scale */
    --type-hero: 260px;
    --type-display: 168px;
    --type-title: 96px;
    --type-subtitle: 56px;
    --type-body: 36px;
    --type-small: 26px;
    --type-tag: 24px;

    /* spacing */
    --pad-x: 140px;
    --pad-y: 110px;
    --gap-l: 56px;
    --gap-m: 32px;
    --gap-s: 16px;
  }

  html, body { margin: 0; background: #0a0a0a; font-family: var(--sans); color: var(--ink); }

  deck-stage section {
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
    position: relative;
  }

  /* shared layout helpers used by slides */
  .slide {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: var(--pad-y) var(--pad-x) 160px var(--pad-x);
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .eyebrow {
    font-family: var(--mono);
    font-size: var(--type-tag);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
    white-space: nowrap;
  }

  .eyebrow .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--ink);
    border-radius: 50%;
    margin-right: 14px;
    vertical-align: middle;
    transform: translateY(-2px);
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .topbar .right {
    font-family: var(--mono);
    font-size: var(--type-tag);
    color: var(--mute);
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: var(--type-title);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
  }
  .title em { font-style: italic; color: var(--ink-2); }

  .body { font-size: var(--type-body); line-height: 1.25; font-weight: 400; color: var(--ink-2); max-width: 18ch; }
  .body-wide { font-size: var(--type-body); line-height: 1.3; font-weight: 400; color: var(--ink-2); max-width: 24ch; }

  .footer-bar {
    position: absolute;
    left: var(--pad-x);
    right: var(--pad-x);
    bottom: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 24px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
    white-space: nowrap;
  }

  .footer-bar .brand { color: var(--ink); }

  /* Hairline rule */
  .rule { height: 1px; background: var(--rule); width: 100%; }

  /* Big stat number */
  .stat {
    font-family: var(--serif);
    font-weight: 400;
    font-size: var(--type-display);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--ink);
  }
  .stat .pct, .stat .x { font-family: var(--sans); font-weight: 300; font-size: 0.5em; vertical-align: 0.55em; margin-left: 6px; letter-spacing: -0.02em; }

  .hero-stat {
    font-family: var(--serif);
    font-weight: 400;
    font-size: var(--type-hero);
    line-height: 0.88;
    letter-spacing: -0.05em;
    color: var(--ink);
    /* keep the counting number on one line so its height never changes
       mid-count (otherwise the wrap shifts a vertically-centred neighbour) */
    white-space: nowrap;
  }

  /* Abstract art primitives */
  .art-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--rule);
    pointer-events: none;
  }
  .art-disc {
    position: absolute;
    border-radius: 50%;
    background: var(--ink);
    pointer-events: none;
  }
  .art-bar {
    position: absolute;
    background: var(--ink);
    pointer-events: none;
  }

  /* index dots */
  .indexer {
    font-family: var(--mono);
    font-size: var(--type-tag);
    letter-spacing: 0.16em;
    color: var(--mute);
    text-transform: uppercase;
  }

  /* count-up + grow animations */
  .count { font-variant-numeric: tabular-nums; }
  .bar {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.9s cubic-bezier(0.22, 0.7, 0.18, 1),
                opacity 0.25s ease, background-color 0.25s ease;
    will-change: transform;
  }
  @media (prefers-reduced-motion: reduce) {
    .bar { transition: none; transform: scaleY(1); }
  }

  /* interactive: tap a stat to replay its count-up */
  .count-host {
    cursor: pointer;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .count-host:hover { opacity: 0.6; }
  .count-host:active { opacity: 0.35; }
  .count-host::after {
    content: "\21ba"; /* ↺ */
    font-family: var(--mono);
    font-size: 0.16em;
    vertical-align: 0.9em;
    margin-left: 0.12em;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .count-host:hover::after { opacity: 0.5; }

  /* interactive: bar chart */
  .bar-chart { cursor: pointer; }
  .bar-chart:hover .bar { opacity: 0.28; }
  .bar-chart:hover .bar:hover {
    opacity: 1;
    background-color: var(--ink) !important;
  }

  /* ---- per-industry video gallery ---- */
  .vgrid {
    display: grid;
    gap: 24px;
  }
  .vgrid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .vgrid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .vgrid.cols-5 { grid-template-columns: repeat(5, 1fr); }
  /* two-category split layout */
  .vsplit {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 56px;
    margin-top: 40px;
  }
  .vsplit .vrule { background: var(--rule); width: 1px; }
  .vgroup-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
  }
  .vgroup-head .cat {
    font-family: var(--serif);
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.01em;
  }
  .vgroup-head .cnt {
    font-family: var(--mono);
    font-size: 24px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
  }
  .vcard {
    position: relative;
    aspect-ratio: 10 / 16;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.22,0.7,0.18,1);
  }
  .vcard:hover { border-color: var(--ink); transform: translateY(-6px); }
  .vthumb {
    position: absolute;
    inset: 0;
    /* striped placeholder, shown when a card has no poster image */
    background:
      repeating-linear-gradient(135deg, #f1eee8 0 20px, #e9e5dd 20px 40px);
  }
  /* optional poster image; sits over the stripes, removed by onerror if missing */
  .vposter {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .vcard.is-playing .vposter { display: none; }
  .vplayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    display: none;
  }
  .vcard.is-playing .vplayer { display: block; }
  .vcard.is-playing .vthumb,
  .vcard.is-playing .vplay,
  .vcard.is-playing .vtag,
  .vcard.is-playing .vname,
  .vcard.is-playing .vdur { display: none; }
  .vtag {
    position: absolute;
    top: 18px;
    left: 18px;
    font-family: var(--mono);
    font-size: 24px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f4f1ec;
    background: var(--ink);
    padding: 7px 14px;
  }
  .vdur {
    position: absolute;
    top: 20px;
    right: 18px;
    font-family: var(--mono);
    font-size: 24px;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  }
  .vname {
    position: absolute;
    left: 20px;
    bottom: 22px;
    right: 20px;
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1.04;
    color: #fff;
    /* readable over any thumbnail (dark or light) */
    text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 2px 16px rgba(0,0,0,0.65);
  }
  .vplay {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    border: 1px solid var(--rule);
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
  }
  .vplay::after {
    content: "";
    width: 0; height: 0;
    border-style: solid;
    border-width: 13px 0 13px 21px;
    border-color: transparent transparent transparent var(--ink);
    margin-left: 5px;
  }
  .vcard:hover .vplay { transform: scale(1.08); background: #fff; }
  /* aspect per layout */
  .vgrid.cols-3 .vcard { aspect-ratio: 10 / 16; }
  .vgrid.cols-4 .vcard { aspect-ratio: 5 / 7; }
  .vgrid.cols-5 .vcard { aspect-ratio: 10 / 16; }
  /* smaller text inside the two-up split */
  .vsplit .vname { font-size: 25px; bottom: 18px; left: 16px; right: 16px; }
  .vsplit .vtag { font-size: 24px; top: 14px; left: 14px; padding: 5px 11px; }
  .vsplit .vdur { display: none; }
  .vsplit .vplay { width: 62px; height: 62px; }
  .vsplit .vplay::after { border-width: 10px 0 10px 16px; }
  /* deck-stage gives shadow; remove */

/* ---- fullscreen / present toggle (added by deck-fullscreen.js) ---- */
.deck-fs-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.deck-fs-btn:hover { background: #fff; transform: scale(1.06); }
/* in fullscreen: hide the site nav and dim the button until hovered */
body.deck-fs .site-nav { display: none; }
body.deck-fs .deck-fs-btn { opacity: 0.32; }
body.deck-fs .deck-fs-btn:hover { opacity: 1; }

/* ---- "Examples" outline slide (links into the gallery pages) ---- */
.exgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 64px;
  flex: 1;
  align-content: start;
}
.excard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 34px;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 0.7, 0.18, 1);
}
.excard:hover { border-color: var(--ink); transform: translateY(-8px); }
.excard .exnum { font-family: var(--mono); font-size: 24px; letter-spacing: 0.04em; color: var(--mute); }
.excard .exname { font-family: var(--serif); font-size: 50px; line-height: 1.02; letter-spacing: -0.01em; }
.excard .exdesc { font-size: 22px; line-height: 1.3; color: var(--mute); max-width: 22ch; }
.excard .exgo { margin-top: 24px; font-family: var(--mono); font-size: 24px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
