/* ============================================================
   MonDeck.AI — engine layout + MonstarX theme
   Deep ink + yellow accent · Inter + JetBrains Mono
   ============================================================ */

:root {
  /* Brand */
  --ml-yellow: #FFFF00;
  --ml-yellow-soft: #FFF59E;
  --ml-ink: #000F1E;
  --ml-ink-2: #0a1a2b;
  --ml-ink-3: #13273a;
  --ml-ink-4: #1b2b3d;
  --ml-grey: #53565a;
  --ml-grey-2: #656A6D;
  --ml-grey-3: #b7b8b9;
  --ml-paper: #eff0f0;
  --ml-paper-2: #dad9d6;
  --ml-muted: #b7b8b9;
  --ml-line: rgba(255, 255, 255, .09);
  --ml-line-strong: rgba(255, 255, 255, .18);
  --ml-line-dark: rgba(0, 15, 30, .10);
  --ml-line-dark-strong: rgba(0, 15, 30, .18);
  --good: #7CFF9E;
  --bad: #FF7A7A;

  /* Agritech accent (used on screenshot frames + a few callouts to echo the BASF product) */
  --leaf: #15873b;
  --leaf-soft: #d7f2db;
  --sky: #1f8fcf;
  --amber: #f5a623;
  --rose: #e2585f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ml-ink);
  color: #fff;
  font-family: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Per-language typography tweaks (the Monstarlab i18n trap is real) */
/* Per-language typography tweaks — Latin tracking & line-heights don't fit CJK or Devanagari */
html[lang="ja"] body, html[lang="zh"] body { letter-spacing: 0; }
html[lang="hi"] body { letter-spacing: 0; }

/* Hindi · Devanagari needs MORE line-height (vowel marks above + below the base line) */
html[lang="hi"] .bigtype, html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h1.bigtype {
  letter-spacing: 0;
  line-height: 1.25;
}
html[lang="hi"] h1.xxl { font-size: clamp(46px, 5.4vw, 86px); line-height: 1.18; }
html[lang="hi"] .bigtype { font-size: clamp(44px, 5.6vw, 96px); line-height: 1.18; }
html[lang="hi"] p.lead, html[lang="hi"] .lead { line-height: 1.7; }
html[lang="hi"] .outcomes li { line-height: 1.7; }

/* CJK headlines — tighten letter-spacing, mild line-height bump */
html[lang="ja"] .bigtype, html[lang="ja"] h1, html[lang="ja"] h2,
html[lang="zh"] .bigtype, html[lang="zh"] h1, html[lang="zh"] h2 {
  letter-spacing: 0;
}
html[lang="ja"] .bigtype { font-size: clamp(48px, 5.4vw, 110px); line-height: 1.12; }
html[lang="zh"] .bigtype { font-size: clamp(48px, 5.6vw, 112px); line-height: 1.12; }

/* CJK h2.big — strict line break + a touch more line-height so trailing chars don't dangle.
   Also shrink the headline a bit since CJK glyphs are full-width and overflow narrow columns. */
html[lang="ja"] h2.big, html[lang="zh"] h2.big {
  font-size: clamp(34px, 3.6vw, 60px);
  line-break: strict;
  line-height: 1.2;
}
/* Case-study side-image layout (.split-2-3) puts h2.big in a narrow left column —
   shrink CJK font so a clause fits per line. */
html[lang="ja"] .slide .split-2-3 h2.big,
html[lang="zh"] .slide .split-2-3 h2.big {
  font-size: clamp(34px, 2.8vw, 52px);
  line-height: 1.22;
}

/* CJK pillar-hero (slide 43): left text column is ~46% of slide; shrink h1.bigtype
   so the clause fits in 2 lines (one per em group). */
html[lang="ja"] .slide.pillar-hero .pillar-text .bigtype,
html[lang="zh"] .slide.pillar-hero .pillar-text .bigtype {
  font-size: clamp(30px, 2.8vw, 48px) !important;
  line-height: 1.22 !important;
}

/* CJK on shot-slides: heading column is narrow; tighten font and use strict line-break
   so we don't break after small kana (ッ, ャ, etc.) or before close-punctuation (、。) */
html[lang="ja"] .slide.shot-slide .shot-text h2.big,
html[lang="zh"] .slide.shot-slide .shot-text h2.big {
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 1.3;
  letter-spacing: 0;
  line-break: strict;
  word-break: normal;
}
/* CJK shot-slides: widen the text column so headings fit on fewer lines.
   ch in CJK ≈ half-width of digit '0', so 46ch is too narrow — use absolute width. */
html[lang="ja"] .slide.shot-slide .shot-text,
html[lang="zh"] .slide.shot-slide .shot-text {
  max-width: 640px;
}
html[lang="ja"] .slide.shot-slide.three-shots,
html[lang="zh"] .slide.shot-slide.three-shots {
  grid-template-columns: minmax(440px, 1fr) 2.4fr;
}
html[lang="ja"] .slide.shot-slide.two-shots,
html[lang="zh"] .slide.shot-slide.two-shots {
  grid-template-columns: minmax(460px, 1fr) 1.8fr;
}
html[lang="ja"] .slide.shot-slide .shot-text h1.bigtype,
html[lang="zh"] .slide.shot-slide .shot-text h1.bigtype {
  font-size: clamp(36px, 3.4vw, 60px);
  line-height: 1.18;
  letter-spacing: 0;
  line-break: strict;
}
html[lang="ja"] .slide.shot-slide .shot-text .lead,
html[lang="zh"] .slide.shot-slide .shot-text .lead {
  line-height: 1.7;
}

/* CJK cover h1: longer katakana words need a tighter size + a touch more line-height
   so trailing characters don't dangle on a third line. */
html[lang="ja"] .slide.cover h1,
html[lang="zh"] .slide.cover h1 {
  font-size: clamp(54px, 5.6vw, 96px);
  line-height: 1.08;
  letter-spacing: 0;
}

/* Tagalog · slightly smaller headlines (~15% expansion vs EN).
   NOTE: 0.92em was a bug — em is relative to parent (~16px), which collapsed h2.big to ~14px.
   Use absolute clamp values that mirror the base headline scale × 0.92. */
html[lang="tl"] h1.xxl { font-size: clamp(50px, 5.5vw, 88px); line-height: 1.05; }
html[lang="tl"] h2.big { font-size: clamp(36px, 4.1vw, 66px); line-height: 1.05; }
html[lang="tl"] .bigtype { font-size: clamp(48px, 6.4vw, 120px); line-height: 0.95; }

/* ============================================================
   Slide container
   ============================================================ */
.deck {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 56px 88px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity .42s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
  background: var(--ml-ink);
  color: #fff;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.slide.ink { background: var(--ml-ink); color: #fff; }
.slide.light {
  background: var(--ml-paper);
  color: var(--ml-ink);
}
.slide.yellow {
  background: var(--ml-yellow);
  color: var(--ml-ink);
}
.slide.cover {
  background:
    radial-gradient(1100px 600px at 78% 25%, rgba(255, 255, 0, .20), transparent 60%),
    radial-gradient(800px 500px at 12% 95%, rgba(255, 255, 0, .12), transparent 60%),
    var(--ml-ink);
}
.slide.cover-yellow {
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(0, 15, 30, .16), transparent 60%),
    radial-gradient(700px 400px at 85% 80%, rgba(0, 15, 30, .12), transparent 60%),
    var(--ml-yellow);
  color: var(--ml-ink);
}

/* Title-slide layout — kicker, headline, sub, meta as a single centered block */
.slide.title-slide {
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.slide.title-slide .title-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ml-yellow);
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 600;
}
.slide.title-slide h1 {
  font-size: clamp(56px, 7.5vw, 116px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.035em;
  color: #fff;
  margin: 0;
}
.slide.title-slide h1 .em { color: var(--ml-yellow); }
.slide.title-slide .title-tag {
  margin: 28px 0 0;
  color: #fff;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.012em;
  max-width: 60ch;
  line-height: 1.35;
}
.slide.title-slide .title-tag .em { color: var(--ml-yellow); }
.slide.title-slide .title-sub {
  margin: 28px 0 0;
  color: var(--ml-muted);
  font-size: 18px;
  max-width: 60ch;
  line-height: 1.5;
}
.slide.title-slide .title-tag + .title-sub { margin-top: 14px; }
.slide.title-slide .title-meta {
  margin-top: 56px;
  display: flex;
  gap: 32px 40px;
  flex-wrap: wrap;
}
.slide.title-slide .title-meta div {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ml-muted);
  text-transform: uppercase;
}
.slide.title-slide .title-meta div b {
  color: #fff;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  display: block;
  margin-top: 4px;
}
.slide.title-slide .title-meta div .addr {
  display: block;
  margin-top: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, .68);
  line-height: 1.5;
}

/* Cursor blink — reserved for the cover */
.blink {
  display: inline-block;
  width: 14px;
  height: .85em;
  background: var(--ml-yellow);
  margin-left: 10px;
  transform: translateY(.06em);
  animation: cursor-blink 1s infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* Subtle ambient grid behind ink slides */
.slide.ink::before, .slide.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ml-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ml-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  z-index: 0;
}
.slide > * { position: relative; z-index: 1; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
h1.xxl {
  font-size: clamp(56px, 6.8vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
h1.xl {
  font-size: clamp(44px, 5vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.04; }
h2.big { font-size: clamp(40px, 4.5vw, 72px); line-height: 1; letter-spacing: -0.03em; }
html[lang="ja"] h2.big, html[lang="zh"] h2.big {
  font-size: clamp(32px, 3.4vw, 56px);
  line-height: 1.2;
  letter-spacing: 0;
  line-break: strict;
}
h3 { font-size: clamp(16px, 1.4vw, 22px); }
h4 { font-size: 14px; font-weight: 600; }

p { margin: 0; }
p.lead {
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.55;
  max-width: 760px;
  color: #d5d5de;
  margin-top: 18px;
}
.slide.light p.lead, .slide.yellow p.lead { color: var(--ml-ink); opacity: .82; }
p.body { font-size: 14.5px; line-height: 1.62; color: #c8c8d0; }

.bigtype {
  font-size: clamp(52px, 7vw, 130px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 1100px;
}
.bigtype .em { color: var(--ml-yellow); }
.slide.yellow .bigtype .em,
.slide.cover-yellow .bigtype .em {
  color: #fff;
  background: var(--ml-ink);
  padding: 0 .12em;
  border-radius: 6px;
}
.slide.light .bigtype .em {
  color: var(--ml-ink);
  background: var(--ml-yellow);
  padding: 0 .12em;
}
/* On yellow slides, the regular highlight word also needs to invert. */
.slide.yellow .eyebrow,
.slide.cover-yellow .eyebrow {
  color: var(--ml-ink);
  opacity: .72;
}
.bigtype .strike {
  text-decoration: line-through;
  text-decoration-thickness: 5px;
  text-decoration-color: var(--ml-yellow);
  opacity: .55;
}

/* Eyebrow — JetBrains Mono uppercase yellow */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ml-yellow);
  font-weight: 500;
  margin-bottom: 18px;
  display: inline-block;
}
.slide.light .eyebrow { color: var(--ml-ink); }
.slide.yellow .eyebrow { color: var(--ml-ink); }

/* CJK: text-transform: uppercase does nothing; bake it via display */
html[lang="ja"] .eyebrow, html[lang="zh"] .eyebrow {
  text-transform: none;
  letter-spacing: .14em;
}

/* Highlight word */
strong.hl { color: var(--ml-yellow); font-weight: 700; }
.slide.light strong.hl {
  color: var(--ml-ink);
  background: var(--ml-yellow);
  padding: 0 4px;
}
.slide.yellow strong.hl {
  color: var(--ml-yellow);
  background: var(--ml-ink);
  padding: 0 6px;
  border-radius: 3px;
  font-weight: 700;
}

.muted { color: #c8c8d0; }
.slide.light .muted { color: rgba(0, 15, 30, .65); }
.slide.yellow .muted { color: rgba(0, 15, 30, .72); }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ============================================================
   Layout primitives
   ============================================================ */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-3-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; }
.split-2-3 { display: grid; grid-template-columns: 1fr 1.45fr; gap: 48px; align-items: center; }

/* Case-study slides: eyebrow + .split-2-3 inside a centered flex column was pushing
   the eyebrow above the visible area when content height > viewport. Anchor to top. */
.slide:has(> .eyebrow + .split-2-3) {
  justify-content: flex-start;
}
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 14px;
  padding: 22px;
}
.card.hi {
  border-color: var(--ml-yellow);
  background: linear-gradient(180deg, rgba(255, 255, 0, .06), rgba(255, 255, 0, 0)), var(--ml-ink-2);
}
.card .num {
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.card .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.card .d {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}

/* On yellow slides, cards invert */
.slide.yellow .card {
  background: #fff;
  color: var(--ml-ink);
  border-color: rgba(0, 15, 30, .12);
}
.slide.yellow .card .sub { color: rgba(0, 15, 30, .55); }
.slide.yellow .card .d { color: rgba(0, 15, 30, .72); }
.slide.yellow .card.hi {
  background: var(--ml-ink);
  color: #fff;
  border-color: var(--ml-ink);
}
.slide.yellow .card.hi .sub, .slide.yellow .card.hi .d { color: rgba(255, 255, 255, .72); }

.slide.light .card {
  background: #fff;
  border-color: rgba(0, 15, 30, .08);
  color: var(--ml-ink);
}
.slide.light .card .sub { color: rgba(0, 15, 30, .55); }
.slide.light .card .d { color: rgba(0, 15, 30, .72); }

/* ============================================================
   Tags / chips
   ============================================================ */
.tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--ml-line);
  border-radius: 99px;
  color: var(--ml-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag.hot {
  background: var(--ml-yellow);
  color: var(--ml-ink);
  border-color: var(--ml-yellow);
  font-weight: 600;
}
.tag.ink {
  background: var(--ml-ink);
  color: var(--ml-yellow);
  border-color: var(--ml-ink);
  font-weight: 600;
}
.slide.yellow .tag {
  border-color: rgba(0, 15, 30, .25);
  color: rgba(0, 15, 30, .65);
}
.slide.light .tag {
  border-color: rgba(0, 15, 30, .15);
  color: rgba(0, 15, 30, .65);
}

.chip {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 6px 14px;
  border: 1px solid var(--ml-line);
  border-radius: 99px;
  color: var(--ml-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip.y { background: var(--ml-yellow); color: var(--ml-ink); font-weight: 600; border-color: var(--ml-yellow); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   Stack
   ============================================================ */
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 12px;
}
.stack .row .t { font-weight: 700; font-size: 18px; letter-spacing: -.015em; }
.stack .row .d { color: var(--ml-muted); font-size: 13px; line-height: 1.55; }
.stack .row .k {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ml-yellow);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ============================================================
   Quote / qblock
   ============================================================ */
.qblock {
  padding: 18px 22px;
  border-left: 4px solid var(--ml-yellow);
  background: var(--ml-ink-2);
  border-radius: 0 12px 12px 0;
}
.qblock .qnum {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ml-yellow);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.qblock .qtext {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin-top: 4px;
}
.slide.light .qblock { background: #fff; }
.slide.light .qblock .qtext { color: var(--ml-ink); }

/* Quote */
.quote {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 1000px;
}
.slide.light .quote, .slide.yellow .quote { color: var(--ml-ink); }
.quote-src {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ml-yellow);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 22px;
  display: inline-block;
}
.slide.light .quote-src, .slide.yellow .quote-src { color: var(--ml-ink); }

/* ============================================================
   Screen frames (used to display app screenshots)
   ============================================================ */
.screen {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #000;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
}
.screen img {
  display: block;
  width: 100%;
  height: auto;
}
.screen.glow {
  box-shadow:
    0 24px 60px -10px rgba(255, 255, 0, .18),
    0 30px 80px -20px rgba(0, 0, 0, .55);
}

/* Phone-style mockup wrapper for vertical screenshots */
.phone-mock {
  position: relative;
  width: 320px;
  border-radius: 38px;
  background: #0a0a0a;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .04),
    0 30px 80px -20px rgba(0, 0, 0, .65);
  margin: 0 auto;
}
.phone-mock .pscreen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}
.phone-mock .pscreen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Resource cards — link out to PDF / XLSX deliverables */
.resource-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease;
}
.resource-card:hover { transform: translateY(-2px); border-color: var(--ml-yellow); }
.resource-card .resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  padding-top: 14px;
  border-top: 1px solid var(--ml-line);
}
.resource-card .open-arrow {
  font-size: 18px;
  color: var(--ml-yellow);
  letter-spacing: 0;
  font-weight: 700;
}
.resource-card:hover .open-arrow { transform: translate(2px, -2px); transition: transform .25s ease; }

/* Big bezel-less app-screen image — looks like the app, not a mockup */
.app-shot {
  display: block;
  height: min(calc(100vh - 120px), 940px);
  width: auto;
  border-radius: 32px;
  background: #000;
  border: 1px solid var(--ml-line);
}
/* Slide layout: text column on the left, full-height app screenshot on the right */
.slide.shot-slide {
  padding: 80px 88px 100px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
/* Phones honour the slide's vertical padding so they don't push to the edges in fullscreen. */
.slide.shot-slide .app-shot { max-height: calc(100vh - 260px); }
.slide.shot-slide .shot-text { max-width: 46ch; }
.slide.shot-slide .shot-text h2.big {
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.04;
}
.slide.shot-slide .shot-text .lead { margin-top: 20px; }
.slide.shot-slide .shot-img { display: flex; justify-content: flex-end; align-items: center; }

/* Multi-screen variant: text column + row of phones */
.slide.shot-slide.three-shots { grid-template-columns: minmax(360px, 0.9fr) 2.6fr; gap: 56px; }
.slide.shot-slide.three-shots .shots-row {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  justify-content: flex-end;
}
.slide.shot-slide.three-shots .shot-cell { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.slide.shot-slide.three-shots .app-shot {
  height: min(calc(100vh - 280px), 760px);
  border-radius: 28px;
}
.shot-caption {
  font-family: var(--ml-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  text-align: center;
  max-width: 22ch;
  line-height: 1.35;
}
.shot-caption strong { color: var(--ml-yellow); font-weight: 600; }

/* Yellow-slide variants: caption colors swap */
.slide.yellow .shot-caption { color: rgba(0, 0, 0, .55); }
.slide.yellow .shot-caption strong { color: var(--ml-ink); }

/* Bigtype-aware shot-slide: when h1.bigtype is in the text column, give it room */
.slide.shot-slide .shot-text h1.bigtype {
  font-size: clamp(48px, 5.4vw, 96px);
  line-height: .98;
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.slide.shot-slide .shot-text .lead { margin-top: 18px; }

/* Inline separator (⇄) for the two-shots row */
.shot-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 3.6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.02em;
  padding-bottom: 44px; /* compensate for caption height so it lines up with phone center */
  opacity: .85;
}

/* Desktop / web screenshot — landscape ratio, sits in the right column of shot-slide */
.desktop-shot {
  display: block;
  width: min(52vw, 1000px);
  max-height: calc(100vh - 100px);
  height: auto;
  border-radius: 14px;
  background: #0a0a0a;
  border: 1px solid var(--ml-line);
  object-fit: contain;
}
.slide.shot-slide.desktop .shot-text { max-width: 44ch; }
.slide.shot-slide.desktop .shot-img { max-width: 60vw; }

/* Trio of desktop screens, each with caption + body underneath */
.slide.desktop-trio {
  padding: 48px 88px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}
.slide.desktop-trio .trio-head { max-width: 80ch; }
.slide.desktop-trio .trio-head h2.big {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.04;
}
.slide.desktop-trio .trio-head .lead { margin-top: 12px; max-width: 70ch; }
.slide.desktop-trio .trio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.slide.desktop-trio .trio-cell { display: flex; flex-direction: column; gap: 14px; }
.slide.desktop-trio .trio-cell .desktop-shot {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.slide.desktop-trio .trio-cell .sub {
  font-family: var(--ml-mono, ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ml-yellow);
}
.slide.desktop-trio .trio-cell h3 {
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 700;
  margin: -2px 0 0;
  letter-spacing: -0.01em;
}
.slide.desktop-trio .trio-cell .d {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
  margin: 0;
}

/* Two-shot variant: text col + 2 phones, each phone larger */
.slide.shot-slide.two-shots { grid-template-columns: minmax(380px, 0.95fr) 1.9fr; gap: 56px; }
.slide.shot-slide.two-shots .shots-row {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: flex-end;
}
.slide.shot-slide.two-shots .shot-cell { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.slide.shot-slide.two-shots .app-shot {
  height: min(calc(100vh - 180px), 880px);
  border-radius: 30px;
}


.zoom-card {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 14px;
  padding: 18px 20px;
}
.zoom-card .zh {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.zoom-card .zd { font-size: 13px; color: var(--ml-muted); line-height: 1.55; }
.zoom-card .zk {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ml-yellow);
  margin-bottom: 6px;
  display: block;
}

/* ============================================================
   32-feature grid (slide 7)
   ============================================================ */
.fmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fgroup {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 12px;
  padding: 14px 16px;
}
.fgroup h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ml-yellow);
  margin-bottom: 10px;
  font-weight: 600;
}
.fgroup ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fgroup li {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .82);
}
.fgroup li .fno {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--ml-yellow);
  margin-right: 4px;
  letter-spacing: .1em;
}

/* ============================================================
   Logo wall
   ============================================================ */
.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.logos .lc {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  min-height: 52px;
  text-align: center;
}

/* Logo wall — image variant with white/grey brand marks */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.logo-wall .lcell {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--ml-line);
  border-radius: 8px;
  padding: 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  transition: background .25s ease, border-color .25s ease;
}
.logo-wall .lcell:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.logo-wall .lcell img {
  max-width: 100%;
  max-height: 30px;
  width: auto;
  height: auto;
  display: block;
  opacity: .82;
  filter: brightness(0) invert(1);
}
.logo-wall .lcell:hover img { opacity: 1; }
.logo-wall .lcell .lwm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .78);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* ============================================================
   Industries row
   ============================================================ */
.inds {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.ind {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

/* Industries — rich variant with icons */
.inds-rich {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.ind-rich {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 14px;
  padding: 26px 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 138px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.ind-rich:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .14); }
.ind-rich svg {
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, .82);
  stroke-width: 1.5;
}
.ind-rich .ind-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  line-height: 1.3;
}
.ind-rich.hi {
  background: linear-gradient(180deg, rgba(255, 255, 0, .09), rgba(255, 255, 0, .02));
  border-color: rgba(255, 255, 0, .35);
}
.ind-rich.hi svg { color: var(--ml-yellow); stroke-width: 1.7; }
.ind-rich.hi .ind-label { color: #fff; }
.inds-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.inds-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ml-yellow);
  box-shadow: 0 0 0 4px rgba(255, 255, 0, .15);
}

/* ============================================================
   Feature cards — icon-led, themed gradient headers
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-card {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .14); }
.feature-card .feature-head {
  height: 96px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-card .feature-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .5;
}
.feature-card .feature-head svg {
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, .96);
  stroke-width: 1.6;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}
.feature-card .feature-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-card .feature-body .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ml-yellow);
  font-weight: 600;
}
.feature-card .feature-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: #fff;
}
.feature-card .feature-body .d {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
  margin: 0;
}

/* Per-feature gradient themes — chosen to evoke the feature, not collide with each other */
.feature-card.f-leaf .feature-head    { background: linear-gradient(135deg, #1e6b3a 0%, #2d9558 100%); }
.feature-card.f-mic .feature-head     { background: linear-gradient(135deg, #8a5e16 0%, #d8a13b 100%); }
.feature-card.f-map .feature-head     { background: linear-gradient(135deg, #163e6c 0%, #2f78b6 100%); }
.feature-card.f-chat .feature-head    { background: linear-gradient(135deg, #0a5d3b 0%, #25b463 100%); }
.feature-card.f-co2 .feature-head     { background: linear-gradient(135deg, #2a4f48 0%, #4ba493 100%); }
.feature-card.f-cart .feature-head    { background: linear-gradient(135deg, #6d4c1a 0%, #c98e2f 100%); }
.feature-card.f-shield .feature-head  { background: linear-gradient(135deg, #3a2566 0%, #8e5dc4 100%); }
.feature-card.f-flow .feature-head    { background: linear-gradient(135deg, #5a1a45 0%, #b03d8b 100%); }

/* ============================================================
   Map / globe stat
   ============================================================ */
.bignums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bn {
  border-left: 2px solid var(--ml-yellow);
  padding: 4px 0 4px 18px;
}
.bn .bn-n {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.bn .bn-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 8px;
  display: block;
}

/* ============================================================
   Chrome (per-slide fixed UI)
   ============================================================ */
.brand {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  mix-blend-mode: difference;
}
.brand .quad {
  display: inline-grid;
  grid-template-columns: 4px 4px;
  grid-gap: 2px;
}
.brand .quad i {
  width: 4px; height: 4px;
  background: var(--ml-yellow);
  display: block;
}

.slide-tag {
  position: fixed;
  top: 22px; right: 26px;
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .85);
  background: rgba(0, 15, 30, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 12px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mix-blend-mode: difference;
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9;
  background: rgba(255, 255, 255, .04);
}
.progress > div {
  height: 100%;
  width: 0;
  background: var(--ml-yellow);
  transition: width .3s ease;
}

.nav {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 15, 30, .8);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 99px;
  padding: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav button {
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 18px;
  cursor: pointer;
  border-radius: 99px;
  transition: background .15s, color .15s;
}
.nav button:hover { background: rgba(255, 255, 255, .08); color: var(--ml-yellow); }
.nav .idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .85);
  padding: 0 12px;
}

.hint {
  position: fixed;
  bottom: 22px;
  right: 26px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.hint kbd {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: inherit;
  color: rgba(255, 255, 255, .85);
}

/* Language toggle pill */
.lang-toggle {
  position: fixed;
  top: 22px;
  right: 140px;
  z-index: 10;
  background: rgba(0, 15, 30, .65);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  mix-blend-mode: difference;
}
.lang-toggle .lt-on { color: var(--ml-yellow); font-weight: 600; }
.lang-toggle .lt-sep { opacity: .35; margin: 0 2px; }
.lang-toggle:hover { color: #fff; }

/* ============================================================
   Password gate
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(900px 500px at 70% 30%, rgba(255, 255, 0, .18), transparent 60%),
    radial-gradient(700px 500px at 20% 80%, rgba(255, 255, 0, .10), transparent 60%),
    var(--ml-ink);
  display: grid;
  place-items: center;
  padding: 40px;
}
.gate-card {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 26, 43, .65);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 38px 36px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}
.gate-quad {
  display: inline-grid;
  grid-template-columns: 6px 6px;
  grid-gap: 2px;
  margin-bottom: 14px;
}
.gate-quad i {
  width: 6px; height: 6px;
  background: var(--ml-yellow);
  display: block;
}
.gate-card h1 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.gate-card .gsub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 32px;
  display: block;
}
.gate input {
  width: 100%;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: #fff;
  letter-spacing: .12em;
  text-align: center;
  outline: none;
  transition: border-color .15s;
}
.gate input:focus { border-color: var(--ml-yellow); }
.gate input.bad {
  border-color: var(--bad);
  animation: shake .35s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.gate button {
  width: 100%;
  margin-top: 12px;
  background: var(--ml-yellow);
  color: var(--ml-ink);
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease;
}
.gate button:hover { transform: translateY(-1px); }
.gate-foot {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

/* ============================================================
   Language picker modal (post-password)
   ============================================================ */
.lang-picker {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    radial-gradient(900px 500px at 70% 30%, rgba(255, 255, 0, .18), transparent 60%),
    radial-gradient(700px 500px at 20% 80%, rgba(255, 255, 0, .10), transparent 60%),
    var(--ml-ink);
  display: grid;
  place-items: center;
  padding: 40px;
}
.lang-picker[hidden] { display: none !important; }
.lp-card {
  background: rgba(10, 26, 43, .6);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 44px;
  max-width: 720px;
  width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}
.lp-card h1 {
  font-size: 26px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.lp-card .lpsub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 32px;
  display: block;
}
.lp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.lp-btn {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 18px 12px;
  cursor: pointer;
  text-align: center;
  transition: transform .15s, border-color .15s, background .15s;
  color: inherit;
  font-family: inherit;
}
.lp-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ml-yellow);
  background: rgba(255, 255, 0, .06);
}
.lp-btn .lp-flag { font-size: 28px; display: block; margin-bottom: 8px; }
.lp-btn .lp-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: #fff;
}
.lp-btn .lp-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.lp-foot {
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

/* ============================================================
   MonDeck.AI badge (bottom-left signature)
   ============================================================ */
.mondeck-badge {
  position: fixed;
  bottom: 22px;
  left: 26px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  background:
    linear-gradient(180deg, rgba(18, 18, 24, .92), rgba(10, 10, 14, .92)) padding-box,
    linear-gradient(135deg, rgba(196, 181, 253, .55), rgba(139, 92, 246, .35) 40%, rgba(34, 211, 238, .45)) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 10px 30px -12px rgba(0, 0, 0, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .02),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s;
}
.mondeck-badge:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 40px -14px rgba(139, 92, 246, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}
.mondeck-badge .mdb-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .12));
  box-shadow:
    0 0 12px -4px rgba(139, 92, 246, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.mondeck-badge .mdb-mark svg {
  display: block;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, .5));
}
.mondeck-badge .mdb-label {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.mondeck-badge .mdb-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5e5e6b;
}
.mondeck-badge .mdb-brand {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.mondeck-badge .mdb-ai {
  background: linear-gradient(90deg, #c4b5fd, #8b5cf6 45%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* ============================================================
   Magnifier
   ============================================================ */
.magnifier {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ml-yellow);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .6);
  display: none;
}
.magnifier[data-active="true"] { display: block; }
.mag-viewport {
  position: absolute;
  transform-origin: 0 0;
  transform: scale(2);
}
.mag-viewport * {
  animation: none !important;
  transition: none !important;
}

/* ============================================================
   Highlighter overlay
   ============================================================ */
.hl-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  display: none;
  mix-blend-mode: screen;
}
.hl-overlay[data-active="true"] {
  display: block;
  pointer-events: all;
  cursor: crosshair;
}
.hl-overlay[data-active="true"] * { pointer-events: all; cursor: crosshair; }
/* Apply cursor to body when highlighter is active — Chrome ignores cursor on SVG
   elements with mix-blend-mode, so we set it on the document root as a fallback. */
body[data-highlighting="true"], body[data-highlighting="true"] * { cursor: crosshair !important; }
.hl-indicator {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  background: rgba(255, 255, 0, .9);
  color: var(--ml-ink);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  display: none;
  animation: pulse 1.5s ease-in-out infinite;
}
.hl-indicator[data-active="true"] { display: block; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.hl-dock {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: none;
  gap: 6px;
  background: rgba(0, 15, 30, .85);
  padding: 6px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.hl-dock[data-active="true"] { display: inline-flex; }
.hl-dock button {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15);
  cursor: pointer;
}
.hl-dock button[data-on="true"] { border-color: #fff; transform: scale(1.1); }

/* ============================================================
   Misc — utilities
   ============================================================ */
.text-center { text-align: center; }
.full { width: 100%; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; }
.gap-18 { gap: 18px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

.f-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi .kpi-n {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi .kpi-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

/* Vertical screenshot hero (case-study right pane) */
.case-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--ml-ink-3);
  height: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 16px;
}
.case-hero img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Generic outcome bullet list inside case slides */
.outcomes {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.outcomes li {
  display: flex;
  align-items: start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}
.outcomes li::before {
  content: "→";
  color: var(--ml-yellow);
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* Avoid overflow on edge — keep content inside slide */
.slide > * { max-width: 100%; }

/* Print / export hint */
@media print { .nav, .hint, .lang-toggle, .mondeck-badge, .gate, .lang-picker, .progress, .magnifier, .hl-overlay, .slide-tag { display: none !important; } }

/* ============================================================
   Bridgestone pillar case — ported from Bridgestone deck CSS
   ============================================================ */

/* Persona portrait card */
.persona {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.persona.hi { border-color: var(--ml-yellow); }
.persona .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ml-yellow), var(--ml-yellow-soft));
  color: var(--ml-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; letter-spacing: -.02em;
}
.persona .name { font-size: 16px; font-weight: 700; color: #fff; }
.persona .role { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ml-yellow); }
.persona .desc { font-size: 12.5px; line-height: 1.5; color: var(--ml-muted); }
.persona ul { margin: 0; padding-left: 18px; color: #d5d5de; font-size: 12px; line-height: 1.55; }

/* Real screenshot frames — Bridgestone phone + desktop */
.shot-phone {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  border-radius: 22px;
  border: 1px solid var(--ml-line-strong);
  background: #0a1a2b;
  margin: 0 auto;
}
.shot-phone-wrap {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  text-align: center;
}
.shot-phone-wrap .label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ml-yellow); font-weight: 600;
  margin-top: 6px;
}
.shot-phone-wrap h4 { color: #fff; font-size: 14px; margin: 0; font-weight: 700; }
.shot-phone-wrap p { color: var(--ml-muted); font-size: 12px; line-height: 1.5; max-width: 32ch; margin: 0; }

.shot-desktop {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--ml-line-strong);
  border-radius: 0 0 12px 12px; border-top: none;
}
.shot-desktop-wrap {
  display: block;
  width: min(100%, calc(58vh * 1.6));
  max-width: 100%;
  margin: 0 auto;
}
.slide .grid.cols-2 .shot-desktop-wrap { width: min(100%, calc(46vh * 1.6)); }
.shot-desktop-wrap .chrome-strip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: #091625;
  border-radius: 12px 12px 0 0; border: 1px solid var(--ml-line);
  border-bottom: none;
  width: 100%;
}
.shot-desktop-wrap .chrome-strip i { width: 9px; height: 9px; border-radius: 50%; background: #1b2b3d; display: block; }
.shot-desktop-wrap .chrome-strip .url { margin-left: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ml-muted); }
.shot-desktop-wrap h4 { margin-top: 10px; text-align: left; color: #fff; font-size: 14px; font-weight: 700; }
.shot-desktop-wrap p { text-align: left; color: var(--ml-muted); font-size: 12.5px; line-height: 1.5; margin: 4px 0 0; }

/* Phone-strip layouts */
.phones-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; justify-items: center; }
.phones-2 .shot-phone { height: min(54vh, calc(100vh - 320px)); max-height: 480px; }
.phones-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; align-items: start; justify-items: center; }
.phones-3 .shot-phone { height: min(50vh, calc(100vh - 340px)); max-height: 440px; }
.phones-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; justify-items: center; }
.phones-4 .shot-phone { height: min(46vh, calc(100vh - 360px)); max-height: 400px; }
.phones-4 .shot-phone-wrap p { font-size: 11px; }
.phones-4 .shot-phone-wrap h4 { font-size: 13px; }

/* Hero phone with text aside */
.hero-phone {
  display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center;
}
.hero-phone.rev { grid-template-columns: 1fr auto; }
.hero-phone .shot-phone { height: 70vh; max-height: 620px; width: auto; }

/* Persona / problem photo tiles */
.bs-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ml-line-strong);
  background: var(--ml-ink-2);
  display: flex; flex-direction: column;
  min-height: 0;
}
.bs-tile .tile-photo {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ml-ink-2);
}
.bs-tile .tile-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.05);
}
.bs-tile .tile-photo:before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 15, 30, 0) 0%, rgba(0, 15, 30, .85) 100%),
    linear-gradient(135deg, rgba(255, 255, 0, .15), rgba(0, 15, 30, .35) 60%);
  mix-blend-mode: multiply;
}
.bs-tile .tile-icon {
  position: absolute;
  top: 12px; left: 12px;
  width: 36px; height: 36px;
  background: var(--ml-yellow);
  color: var(--ml-ink);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.bs-tile .tile-icon svg { width: 18px; height: 18px; stroke-width: 2.2; stroke: currentColor; fill: none; }
.bs-tile .tile-tag {
  position: absolute; bottom: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; font-weight: 600;
  z-index: 2;
}
.bs-tile .tile-num {
  position: absolute; top: 10px; right: 14px;
  font-family: 'JetBrains Mono', monospace; font-weight: 800;
  font-size: 28px; color: #fff; text-shadow: 0 4px 16px rgba(0, 15, 30, .8);
  line-height: 1; z-index: 2;
}
.bs-tile .tile-body {
  padding: 16px 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.bs-tile .tile-body h3 { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.bs-tile .tile-body p { color: var(--ml-muted); font-size: 12.5px; line-height: 1.5; margin: 0; }
.bs-tile .tile-body .num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .14em; color: var(--ml-yellow); text-transform: uppercase; font-weight: 600;
}

/* Problem grid layout (3-up) */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.problem-grid .bs-tile { height: 100%; }
.problem-grid .bs-tile .tile-photo { aspect-ratio: 16/9; }

/* Pipeline tiles (5-up persona map) */
.pipeline-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pipeline-tiles .bs-tile .tile-photo { aspect-ratio: 1/1; }
.pipeline-tiles .bs-tile .tile-body { padding: 12px; gap: 4px; }
.pipeline-tiles .bs-tile .tile-body .num { font-size: 9px; }
.pipeline-tiles .bs-tile .tile-body h3 { font-size: 13px; }
.pipeline-tiles .bs-tile .tile-body p { font-size: 11.5px; }
.pipeline-tiles .bs-tile .tile-icon { width: 30px; height: 30px; border-radius: 7px; }
.pipeline-tiles .bs-tile .tile-icon svg { width: 16px; height: 16px; }

/* World supply map */
.world-map-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ml-line-strong);
}
.world-map-frame .world-map-img {
  display: block; width: 100%; height: auto;
  max-height: 50vh; object-fit: cover; object-position: center;
}
.world-map-legend {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: #fff;
  background: rgba(0, 15, 30, .7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ml-line-strong);
  padding: 7px 12px; border-radius: 99px;
}
.world-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.world-map-legend i.d { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.world-map-legend i.d.r { background: #dc2626; box-shadow: 0 0 0 2px #fff; }
.world-map-legend i.d.s { background: #e60012; box-shadow: 0 0 0 2px #fff, 0 0 12px #e60012; }
.world-map-legend .hint-tag {
  background: var(--ml-yellow); color: var(--ml-ink);
  padding: 2px 10px; border-radius: 99px;
  font-weight: 700; letter-spacing: .1em; font-size: 10px;
}

/* Pillar opening — yellow pillar marker */
.pillar-marker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ml-ink); background: var(--ml-yellow);
  padding: 6px 14px; border-radius: 99px; font-weight: 700;
}

/* Pillar opening hero — image right, text left, edge-to-edge */
.slide.pillar-hero {
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}
.slide.pillar-hero .pillar-text {
  padding: clamp(40px, 6vh, 72px) clamp(40px, 4.4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.slide.pillar-hero .pillar-text .bigtype { font-size: clamp(40px, 4.6vw, 68px) !important; }
.slide.pillar-hero .pillar-text p.lead { font-size: clamp(13px, 1vw, 16px) !important; }
.slide.pillar-hero .pillar-image {
  position: relative;
  background-size: cover;
  background-position: center;
}
.slide.pillar-hero .pillar-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 15, 30, .55) 0%, rgba(0, 15, 30, 0) 40%),
    linear-gradient(0deg, rgba(0, 15, 30, .25), rgba(0, 15, 30, 0));
}
.slide.pillar-hero .pillar-image::after {
  content: "";
  position: absolute;
  inset: auto auto 40px 40px;
  width: 56px; height: 56px;
  background: var(--ml-yellow);
}

/* Six-bets grid (wow angles) */
.bets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.bet {
  background: var(--ml-ink-2);
  border: 1px solid var(--ml-line);
  border-radius: 14px;
  padding: 22px 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bet.hi { border-color: rgba(255, 255, 0, .35); background: linear-gradient(180deg, rgba(255, 255, 0, .05), rgba(255, 255, 0, 0)), var(--ml-ink-2); }
.bet .bet-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ml-yellow); font-weight: 700;
}
.bet h3 { font-size: 17px; color: #fff; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.bet p { font-size: 12.5px; line-height: 1.5; color: var(--ml-muted); margin: 0; }

/* Bridgestone dashboard 2x2 grid for command centre */
.bs-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.bs-quad .shot-desktop-wrap { width: 100%; }
.bs-quad .shot-desktop { max-height: 28vh; object-fit: cover; object-position: top; }
