/* ============================================================
   CULVAY deck · slide content components
   Sized for the 1280x720 authoring canvas. Type casting follows
   the original deck: very large Helvetica Neue display, with an
   Instrument Serif italic phrase in cherry as the accent, Inter
   for body, JetBrains Mono for numbers and labels.
   ============================================================ */

.slide { display: flex; flex-direction: column; padding: 54px 64px 46px; }

/* ---- Type ---------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow b { font-weight: 400; color: var(--ink-mute); }
/* The three dots that opened every section in the original. */
.eyebrow::before {
  content: "";
  width: 26px; height: 5px;
  border-radius: var(--radius-pill);
  background:
    radial-gradient(circle 2.5px at 2.5px 50%, var(--cherry-500) 100%, transparent 0),
    radial-gradient(circle 2.5px at 13px 50%, var(--ink-mute) 100%, transparent 0),
    radial-gradient(circle 2.5px at 23.5px 50%, var(--ink-mute) 100%, transparent 0);
  flex: none;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: 88px; }
h2 { font-size: 62px; }

/* The accent phrase. One per slide, and it may be several words. */
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--accent-ink);
}

.lede {
  font-size: 18px;
  line-height: 1.5;
  margin: 20px 0 0;
  max-width: 56ch;
  color: var(--ink-soft);
}

p { margin: 0; }

.body    { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.caption { font-size: 12px; line-height: 1.45; color: var(--ink-mute); }
.num     { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.footnote {
  margin-top: auto;
  padding-top: 18px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-mute);
}

/* ---- Layout helpers ------------------------------------------ */

.head  { flex: 0 0 auto; }
.fill  { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.grid  { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--wide { grid-template-columns: 1.15fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---- Cards --------------------------------------------------- */

.card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}
/* Narrower columns need a smaller display size or the headings wrap. */
.g3 .card h3 { font-size: 19px; }
.g4 .card h3 { font-size: 17px; }

.card-no {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .16em;
  color: var(--ink-mute);
}

.card-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 3px 10px;
  font-size: 9.5px;
  letter-spacing: .04em;
}

/* ---- Statistics ---------------------------------------------- */

.stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -.035em;
  line-height: 1;
  display: block;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat--xl { font-size: 72px; }
.stat--sm { font-size: 36px; }
.stat-label { font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.signal { color: var(--cherry-500); }
.glass--dark .signal { color: var(--cherry-300); }

/* ---- Pills & tags -------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: transparent;
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill--solid { background: var(--black); border-color: transparent; color: #fff; }
.glass--dark .pill--solid { background: #fff; color: var(--black); }
.pill--soon { color: var(--cherry-500); border-color: transparent; background: var(--cherry-100); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cherry-500); flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Buttons ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-hover) var(--ease-out),
              transform var(--dur-hover) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn--brand { background: var(--cherry-500); color: #fff; }
.btn--brand:hover { background: var(--cherry-400); }
.btn--ghost { border: 1px solid var(--hairline); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--cherry-500); outline-offset: 3px; }

/* ---- Bar chart ----------------------------------------------- */

.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; }
.bar-label { font-size: 13px; color: var(--ink-soft); }
.bar-val { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
.bar-track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--hairline);
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: inherit; background: var(--ink-mute); width: var(--w, 0%); }
.bar--signal .bar-fill { background: var(--cherry-500); }
.bar--signal .bar-val  { color: var(--cherry-500); }
.glass--dark .bar--signal .bar-val { color: var(--cherry-300); }

/* ---- Steps rail ---------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step {
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-mute); }
.step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.step--on { background: var(--cherry-500); color: #fff; }
.step--on .step-no { color: rgba(255, 255, 255, .72); }
.step--on h3 { color: #fff; }
.step--on .body { color: rgba(255, 255, 255, .84); }

/* ---- Risk badge ---------------------------------------------- */

.risk {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500;
}
.risk--critical { background: var(--cherry-500); color: #fff; }
.risk--high     { background: var(--cherry-100); color: var(--cherry-600); }
.risk--monitor  { background: var(--blue-100);   color: var(--blue-500); }
.risk--healthy  { background: var(--green-100);  color: var(--green-500); }

/* ---- Mock UI ------------------------------------------------- */

.mock {
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  font-size: 12px;
}
.glass--light .mock { background: #fff; border: 1px solid var(--gray-200); }

.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.mock-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row--flag { box-shadow: inset 3px 0 0 var(--cherry-500); }
.mock-name { font-weight: 500; font-size: 13px; color: var(--ink); }
.mock-sub { font-size: 11px; color: var(--ink-mute); }

/* ---- Photography --------------------------------------------- */

.photo {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Portrait card with the signet overlapping its corner — the
   founder-slide composition from the original deck. */
.photo-card { position: relative; display: inline-block; }
.photo-card .signet {
  position: absolute;
  top: -46px; right: -40px;
  width: 128px; height: 128px;
}

.photo--device { border-radius: 0; object-fit: contain; }

.signet {
  width: 40px; height: 40px;
  object-fit: contain;
  display: block;
}

/* Full-height photo panel on content-heavy slides. */
.slide--rail { padding-right: 398px; }
.slide-rail {
  position: absolute;
  top: 54px; right: 54px;
  width: 300px;
  /* Explicit: an absolutely positioned replaced element takes its height from
     its intrinsic ratio and ignores `bottom`. */
  height: calc(100% - 108px);
  border-radius: 18px;
  object-fit: cover;
}

/* Photo banner with the headline laid over it. */
.banner { position: relative; border-radius: 20px; overflow: hidden; }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-in {
  position: absolute; inset: 0;
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(90deg, rgba(6,6,8,.82) 0%, rgba(6,6,8,.55) 45%, rgba(6,6,8,.12) 100%);
}
.banner-in h2 { color: #fff; }
.banner-in .accent { color: var(--cherry-200); }

/* ---- Team ---------------------------------------------------- */

.person { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.portrait {
  width: 132px; height: 132px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}
.person h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.person .role { font-size: 13px; color: var(--cherry-500); }
.glass--dark .person .role { color: var(--cherry-300); }

/* ---- Title / CTA slides -------------------------------------- */

.slide--title { justify-content: space-between; padding: 54px 64px 50px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
}
.segments {
  display: flex; gap: 12px; align-items: center;
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.segments span:not(:last-child)::after { content: "•"; color: var(--cherry-500); margin-left: 12px; }
