/* =====================================================================
   Madi's Mexicali Stop — standard.css
   Loaded after style.css and wheel-transition.css. Adds the cut language,
   the hung-sign cover set, the Gap / System / Proof / Engagement slides,
   readable concept sizes and the image-backed index. Nothing here shrinks
   type below the readability floor: spacing yields first.
   ===================================================================== */

/* ------------------------------------------------------------------ the cut: depth-push + seam + impact layers */
#deck { --travel-out: 340px; --travel-in: 416px; }

@media screen and (prefers-reduced-motion: no-preference) {
  #deck .slide.wheel-leaving { animation: madi-out 360ms cubic-bezier(0.9, 0, 1, 0.35) both; }
  #deck .slide.active.wheel-entering { animation: madi-in 440ms 360ms cubic-bezier(0, 0.55, 0.2, 1) both; }
  #deck .slide.active.boom-entering { animation: madi-boom-in 560ms cubic-bezier(0.18, 0.8, 0.25, 1) both; }
}
@keyframes madi-out {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(calc(var(--cut-sign, 1) * var(--travel-out) * -1)) scale(1.08); opacity: 0.15; }
}
@keyframes madi-in {
  from { transform: translateX(calc(var(--cut-sign, 1) * var(--travel-in))) scale(0.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes madi-boom-in {
  from { transform: scale(0.95) translateY(12px); opacity: 0; filter: brightness(1.7) saturate(1.2); }
  to { transform: none; opacity: 1; filter: none; }
}

.seam.run { animation: madi-seam 800ms cubic-bezier(0.65, 0, 0.35, 1) both; }
.seam.run[style*="-1"] { animation-name: madi-seam-back; }
@keyframes madi-seam {
  0% { opacity: 0; transform: translateX(104vw); }
  12% { opacity: 1; }
  80% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(-4vw); }
}
@keyframes madi-seam-back {
  0% { opacity: 0; transform: translateX(-4vw); }
  12% { opacity: 1; }
  80% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(104vw); }
}

/* the 3D stage lifts out of the cover and covers the viewport for the break */
.stage-full {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
.boom-heat {
  position: fixed;
  inset: 0;
  z-index: 83;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(120% 90% at 50% 105%, rgba(255, 92, 22, 0.6), rgba(200, 30, 10, 0.26) 42%, transparent 72%),
    radial-gradient(90% 80% at 50% 45%, transparent 52%, rgba(64, 10, 0, 0.6) 100%);
}
.boom-flash {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 45%), #ffffff 0, rgba(255, 244, 214, 0.94) 12%, rgba(255, 172, 84, 0.52) 34%, rgba(255, 90, 20, 0) 66%);
}
.boom-flash.go { animation: madi-flash 700ms ease-out both; }
@keyframes madi-flash {
  0% { opacity: 1; }
  18% { opacity: 0.95; }
  100% { opacity: 0; }
}
.is-booming #deck { animation: none; }
.is-impact #deck { animation: boom-shake 520ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

/* ------------------------------------------------------------------ cover */
.slide.cover h1 {
  font-size: clamp(38px, min(3.5vw, 6vh), 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.slide.cover .lead {
  max-width: 52ch;
  font-size: clamp(16.5px, min(1.2vw, 2.4vh), 22px);
}

.collab-mark {
  display: inline-flex;
  align-items: center;
  height: clamp(26px, 3.4vh, 32px);
  padding: 3px 9px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid rgba(200, 30, 30, 0.55);
}
.collab-mark img { display: block; height: 100%; width: auto; }

.scene-caption {
  left: clamp(18px, 2.4vw, 34px);
  bottom: clamp(54px, 7.4vh, 70px);
  align-items: flex-start;
  transform: none;
  text-align: left;
  max-width: 60%;
}
.scene-caption span { font-size: clamp(12px, 0.8vw, 13px); }
.scene-caption b { font-size: clamp(11.5px, 0.76vw, 12.5px); color: rgba(245, 184, 81, 0.9); }
.hud-top { font-size: clamp(11.5px, 0.76vw, 12.5px); color: rgba(255, 236, 212, 0.74); }
.hud-bottom { font-size: clamp(12px, 0.8vw, 13px); }

.cover-cue {
  position: absolute;
  right: clamp(18px, 2.4vw, 34px);
  bottom: clamp(54px, 7.4vh, 70px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 236, 212, 0.82);
  pointer-events: none;
}
.cover-cue .ico { color: var(--accent-bright); font-size: 1.2em; animation: madi-cue 1.6s ease-in-out infinite; }
@keyframes madi-cue { 50% { transform: translateX(5px); } }
@media (max-width: 1199px) { .cover-cue { display: none; } }

.cover-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  background: linear-gradient(0deg, rgba(9, 5, 4, 0.94), rgba(9, 5, 4, 0.66));
  border-top: 1px solid rgba(245, 184, 81, 0.3);
  pointer-events: none;
}
.ticker-track {
  display: flex;
  flex: none;
  white-space: nowrap;
  animation: madi-ticker 52s linear infinite;
  will-change: transform;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding-left: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f0e6dc;
}
.ticker-track span::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 26px;
  background: var(--accent-bright);
  transform: rotate(45deg);
}
@keyframes madi-ticker { to { transform: translateX(-50%); } }
.slide:not(.active) .ticker-track { animation-play-state: paused; }

/* static fallback: the same sign, hung on a rail over the comal */
.fb-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(88%, 640px);
}
.fb-rail {
  width: 108%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(#5b4330, #24160e);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.fb-chains { position: relative; width: 84%; height: 36px; }
.fb-chains i {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: repeating-linear-gradient(#a98a62 0 5px, #3b2a1d 5px 9px);
}
.fb-chains i:first-child { left: 4%; }
.fb-chains i:last-child { right: 4%; }
.fb-stack .fallback-sign { width: 100%; transform: none; }
.fb-comal {
  position: relative;
  width: 74%;
  height: 40px;
  margin-top: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 38%, #2b1a11 0, #130c08 62%);
  box-shadow: 0 0 0 4px #3a1c0c, 0 0 40px 10px rgba(255, 98, 30, 0.55), 0 24px 44px rgba(0, 0, 0, 0.65);
}
.fb-comal::after {
  content: '';
  position: absolute;
  inset: -34px 8% auto;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 220, 190, 0.34), transparent 70%);
  filter: blur(7px);
}
.cover-fallback { padding: 9% 9% 15%; }
.fallback-caption { font-size: 13px; color: var(--accent-bright); }

/* ------------------------------------------------------------------ image-backed index */
.index-shell { width: min(1240px, 100%); }
.index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.index-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.idx-thumb {
  position: relative;
  display: block;
  height: clamp(84px, 13vh, 118px);
  background-color: #1d120d;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.idx-thumb.is-logo { background-color: #ffffff; background-size: 80% auto; }
.idx-thumb.is-plain {
  background-image:
    radial-gradient(90% 120% at 18% 0%, rgba(200, 30, 30, 0.45), transparent 62%),
    linear-gradient(160deg, #2a1a13, #120b08);
}
.idx-thumb[style*="luis-guzman"] { background-position: center 20%; }
.idx-thumb[style*="current-home-live"], .idx-thumb[style*="ufg-candidate"] { background-position: center top; }
.idx-thumb i {
  position: absolute;
  left: 10px;
  top: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  color: #120b08;
}
.idx-text { display: grid; gap: 2px; padding: 10px 12px 12px; text-align: left; }
.idx-text b { font-family: var(--font-display); font-size: clamp(15px, 1.05vw, 17px); font-weight: 700; line-height: 1.2; color: #fff; }
.idx-open { font-size: 12px; color: #d8c8b8; }
.index-note { font-size: 12.5px; }

/* ------------------------------------------------------------------ slide 3 · audit (five findings) */
.audit .audit-copy h2 { font-size: clamp(27px, min(2.3vw, 4vh), 42px); }
.audit .audit-finding-head { flex-wrap: wrap; justify-content: space-between; row-gap: 1px; }
.audit .audit-finding .src {
  flex: none;
  max-width: none;
  text-align: left;
  font-size: clamp(12px, 0.8vw, 13.5px);
  letter-spacing: 0.02em;
  color: rgba(245, 184, 81, 0.94);
}
.audit .sev { font-size: 11.5px; min-width: 56px; }
.audit .live-shot { aspect-ratio: 16 / 9; }
.audit-serp { margin: 0; }
.audit-serp p { margin-top: 0; }
.serp {
  margin: 6px 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1a0f0a;
}
.serp b { display: block; font-family: var(--font-body); font-size: clamp(16px, 1.1vw, 18px); font-weight: 700; color: #8e1a1c; }
.serp span { display: block; margin-top: 3px; font-size: clamp(14px, 0.95vw, 16px); line-height: 1.4; color: #3d2b22; }

@media screen and (min-width: 981px) and (max-height: 820px) {
  .audit .audit-finding { padding: 7px 11px; }
  .audit .audit-list { gap: 6px; }
  .audit .live-shot { aspect-ratio: 16 / 8.4; }
}

/* ------------------------------------------------------------------ slide 4 · the gap */
.gap-grid { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); }
.gap .narrative-col { display: flex; flex-direction: column; justify-content: center; }
.gap .narrative-col h2 { font-size: clamp(27px, min(2.4vw, 4vh), 42px); line-height: 1.07; }
.gap .narrative-col .lead { font-size: clamp(16px, 1.14vw, 20px); line-height: 1.46; }
.gap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.gap-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 700;
  color: var(--ink);
}
.gap-chips .ico { color: var(--madi-crimson); }
.gap-play {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  margin-top: 14px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-ink);
  font-family: var(--font-mono);
  font-size: clamp(13px, 0.88vw, 14.5px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
}
.gap-play .ico { color: var(--accent-bright); }
.gap-play:hover { background: #2b1a13; }

.gap-paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); align-items: stretch; }
.gap-path {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(13px, 1.8vh, 20px) clamp(14px, 1.3vw, 20px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--madi-red);
  box-shadow: 0 18px 40px rgba(18, 11, 8, 0.08);
}
.gap-path-new {
  background: var(--carbon);
  border-color: var(--carbon);
  border-top-color: var(--accent-bright);
  box-shadow: 0 28px 60px rgba(18, 11, 8, 0.3);
}
.gap-path-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gap-path-label {
  font-family: var(--font-mono);
  font-size: clamp(13px, 0.88vw, 14.5px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--madi-crimson);
}
.gap-path-new .gap-path-label { color: var(--accent-bright); }
.gap-path-count { font-family: var(--font-display); font-size: clamp(16px, 1.1vw, 19px); font-weight: 700; color: var(--ink); }
.gap-path-count b { margin-right: 6px; font-size: clamp(34px, 3vw, 52px); line-height: 1; letter-spacing: -0.04em; color: var(--madi-crimson); }
.gap-path-new .gap-path-count { color: #ffffff; }
.gap-path-new .gap-path-count b { color: var(--accent-bright); }
.gap-steps { display: grid; gap: 7px; flex: 1; margin: 0; padding: 0; list-style: none; align-content: start; }
.gap-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(18, 11, 8, 0.18);
}
.gap-step:last-child { padding-bottom: 0; border-bottom: 0; }
.gap-path-new .gap-step { border-bottom-color: rgba(255, 255, 255, 0.2); }
.gap-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}
.gap-path-new .gap-n { background: var(--accent-bright); color: #120b08; }
.gap-step b { display: block; font-family: var(--font-display); font-size: clamp(16.5px, 1.12vw, 19px); line-height: 1.15; color: var(--ink); }
.gap-path-new .gap-step b { color: #ffffff; }
.gap-step p { margin-top: 2px; font-size: clamp(16px, 1.05vw, 18px); line-height: 1.36; color: var(--ink-3); }
.gap-path-new .gap-step p { color: #e8d9ca; }
.gap-note {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: clamp(14px, 0.92vw, 15.5px);
  line-height: 1.4;
  color: var(--ink-3);
}
.gap-path-new .gap-note { border-top-color: rgba(255, 255, 255, 0.18); color: #d8c8b8; }

@media screen and (prefers-reduced-motion: no-preference) {
  .gap-paths.is-playing .gap-step { animation: madi-step 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 280ms + 80ms); }
  .gap-paths.is-playing .gap-path-new .gap-step { animation-delay: calc(var(--i) * 280ms + 1700ms); }
}
@keyframes madi-step {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ slide 5 · flagship concept on a stage */
.website .mockup-col { position: relative; }
.website .mockup-col::before {
  content: '';
  position: absolute;
  inset: -5% -3%;
  z-index: 0;
  border-radius: 28px;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 46%, rgba(200, 30, 30, 0.3), transparent 72%),
    linear-gradient(rgba(245, 184, 81, 0.07) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(245, 184, 81, 0.07) 1px, transparent 1px) 0 0 / 46px 46px;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent);
  mask-image: radial-gradient(closest-side, #000 58%, transparent);
}
.website .mockup-col > * { position: relative; z-index: 1; }
.website .browser-window {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(245, 184, 81, 0.3), 0 44px 90px rgba(0, 0, 0, 0.66), 0 0 90px rgba(200, 30, 30, 0.22);
}
.website .mockup-detail-btn { font-size: clamp(13px, 0.86vw, 14.5px); }

.sm-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-family: var(--font-mono);
  font-size: clamp(12px, 0.9cqw, 13px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}
.sm-open i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b851;
  box-shadow: 0 0 0 0 rgba(245, 184, 81, 0.7);
  animation: madi-pulse 1.8s ease-out infinite;
}
.sm-open[data-state="closed"] i { background: #c9b8a6; animation: none; }
@keyframes madi-pulse { 70% { box-shadow: 0 0 0 9px rgba(245, 184, 81, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 184, 81, 0); } }

/* concept text floors: readable inside the browser frame, not texture */
.sm-tab { font-size: clamp(13px, 1.1cqw, 15px); }
.sm-order { font-size: clamp(13px, 1cqw, 14px); }
.sm-hero { min-height: clamp(220px, 33cqw, 280px); }
.sm-hero-copy small { font-size: clamp(12px, 0.9cqw, 13px); }
.sm-hero-copy b, .sm-hero-copy em { font-size: clamp(22px, 2.3cqw, 30px); }
.sm-btn { font-size: clamp(13px, 1cqw, 14px); }
.sm-card b { font-size: clamp(14px, 1.1cqw, 16px); }
.sm-card span { font-size: clamp(13px, 0.95cqw, 14.5px); }
.sm-menu-head small { font-size: clamp(12px, 0.9cqw, 13px); }
.sm-menu-head h4 { font-size: clamp(20px, 1.9cqw, 24px); }
.sm-loc-lead { font-size: clamp(13px, 0.95cqw, 14.5px); }
.sm-chip { font-size: clamp(11.5px, 0.85cqw, 12.5px); padding: 7px 10px; }
.sm-dish span { font-size: clamp(11.5px, 0.85cqw, 12px); }
.sm-dish b { font-size: clamp(14px, 1.05cqw, 16px); }
.sm-dish p { font-size: clamp(13px, 0.92cqw, 14.5px); }
.sm-fine { font-size: 12px; }
.sm-loc-kicker { font-size: 12px; }
.sm-loc b { font-size: clamp(15px, 1.15cqw, 17px); }
.sm-loc p { font-size: clamp(13px, 0.95cqw, 14.5px); }
.sm-loc-actions a { min-height: 38px; font-size: clamp(12px, 0.9cqw, 13px); }

/* ------------------------------------------------------------------ slide 6 · the system */
.system-body { gap: clamp(12px, 1.8vh, 20px); }
.system-head { align-items: end; }
.system-head h2 { font-size: clamp(26px, min(2.35vw, 4vh), 40px); }
.sys-lead { max-width: 44ch; font-size: clamp(16px, 1.12vw, 19px); }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.sys-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: clamp(12px, 1.7vh, 18px) clamp(14px, 1.2vw, 20px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--madi-red);
  box-shadow: 0 14px 30px rgba(18, 11, 8, 0.07);
}
.sys-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sys-top .num-chip { width: 32px; height: 32px; }
.sys-tag {
  font-family: var(--font-mono);
  font-size: clamp(12px, 0.82vw, 13.5px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  color: var(--accent-gold-deep);
}
.sys-card h3 { font-size: clamp(21px, 1.55vw, 28px); line-height: 1.12; color: var(--ink); }
.sys-card p { flex: 1; font-size: clamp(16px, 1.12vw, 19.5px); line-height: 1.4; color: var(--ink-3); }
.sys-out {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(14.5px, 0.98vw, 16.5px);
  font-weight: 700;
  color: var(--madi-crimson);
}

/* ------------------------------------------------------------------ slide 7 · proof: drag before / after */
.proof-split { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; }
.proof .narrative-col { display: flex; flex-direction: column; justify-content: center; }
.proof .narrative-col h2 { font-size: clamp(27px, min(2.4vw, 4vh), 42px); }
.proof .narrative-col .lead { font-size: clamp(16px, 1.1vw, 19.5px); }
.cmp-legend { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.cmp-legend li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.cmp-legend b { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #e8d9ca; }
.cmp-legend li:last-child b { color: var(--accent-bright); }
.cmp-legend span { font-size: clamp(15.5px, 1.05vw, 18px); line-height: 1.38; color: #f0e6dc; }
.cmp-hint { margin-top: 10px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: #d8c8b8; }

.cmp {
  --pos: 50%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--carbon-0);
  border: 1px solid rgba(245, 184, 81, 0.42);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5);
}
.cmp-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  background: #1d120d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.cmp-stage {
  position: relative;
  width: 100%;
  height: clamp(250px, 52vh, 520px);
  overflow: hidden;
  background: #ffffff;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--accent-bright);
  box-shadow: 0 0 18px rgba(245, 184, 81, 0.8);
  pointer-events: none;
}
.cmp-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 9px 8px;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  font-size: 18px;
  color: #120b08;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}
.cmp.is-drag .cmp-grip { transform: translate(-50%, -50%) scale(1.12); }
.cmp-stage:focus-within .cmp-grip { outline: 3px solid #ffffff; outline-offset: 2px; }
.cmp-label {
  position: absolute;
  top: 12px;
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.cmp-label-before { left: 12px; background: #38241b; color: #ffffff; }
.cmp-label-after { right: 12px; background: var(--accent-bright); color: #120b08; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ slide 8 · roadmap footer (owner + client supply) */
.execution-slide .exec-footer-bar { font-size: clamp(12.5px, 0.86vw, 14px); }
.execution-slide .exec-footer-bar span { text-align: left; }

/* ------------------------------------------------------------------ slide 9 · engagement */
.engage-head h2 { font-size: clamp(26px, min(2.35vw, 4vh), 40px); }
.engage-lead { max-width: 46ch; font-size: clamp(16px, 1.12vw, 19px); }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.tier {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(14px, 2vh, 22px) clamp(15px, 1.3vw, 22px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.tier-tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  font-size: clamp(12px, 0.82vw, 13.5px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tier-tag-rec { background: var(--accent-bright); border-color: var(--accent-bright); color: #120b08; }
.tier h3 { font-size: clamp(21px, 1.6vw, 28px); line-height: 1.12; color: #ffffff; }
.tier-list { display: grid; flex: 1; gap: 8px; margin: 0; padding: 0; list-style: none; align-content: start; }
.tier-list li { display: grid; grid-template-columns: auto 1fr; gap: 9px; font-size: clamp(16px, 1.1vw, 19px); line-height: 1.36; color: #f0e6dc; }
.tier-list .ico { margin-top: 0.2em; stroke-width: 2.5; color: var(--accent-bright); }
.tier-for { padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: clamp(15px, 1vw, 17px); font-weight: 700; color: var(--accent-bright); }
.tier-rec {
  background: rgba(245, 184, 81, 0.1);
  border-color: rgba(245, 184, 81, 0.7);
  box-shadow: 0 0 0 1px rgba(245, 184, 81, 0.3), 0 26px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}
.engage-bar { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }
.engage-bar span { padding: 11px 16px; font-size: clamp(15px, 1vw, 17px); line-height: 1.4; color: #f0e6dc; }
.engage-bar span + span { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.engage-bar b { color: var(--accent-bright); }

@media screen and (min-width: 981px) and (max-height: 800px) {
  .tier { padding: 12px 16px; gap: 7px; }
  .tier-list { gap: 6px; }
  .sys-card { padding: 11px 15px; gap: 6px; }
  .gap-path { padding: 12px 15px; }
}

/* ------------------------------------------------------------------ slide 10 · the close: portrait is a focal element */
.close .partner-avatar-wrap { width: clamp(140px, 19vh, 200px); height: clamp(140px, 19vh, 200px); }

/* ------------------------------------------------------------------ phone concept dialog: readable, not miniature */
.mock-detail { width: min(460px, 94vw); }
.phone-frame { width: min(360px, 100%); }
.phone-tab { min-height: 44px; font-size: 12.5px; }
.phone-menu-head small { font-size: 12px; }
.phone-menu-head b { font-size: 22px; }
.phone-dish span { font-size: 11.5px; }
.phone-dish b { font-size: 16px; }
.phone-dish p { font-size: 14px; line-height: 1.4; }
.phone-cta { font-size: 13px; }
.phone-loc { min-height: 44px; font-size: 12.5px; }
.phone-loc-card > span { font-size: 12px; }
.phone-loc-card > b { font-size: 19px; }
.phone-loc-card p { font-size: 14px; }
.phone-call, .phone-directions { min-height: 44px; font-size: 12.5px; }
.phone-body .phone-fine { font-size: 12px; }
.detail-note { font-size: 14px; }

/* ------------------------------------------------------------------ phone and tablet */
@media screen and (max-width: 980px) {
  #deck { --travel-out: 16vw; --travel-in: 22vw; }
  .cover-ticker, .cover-cue { display: none; }
  .scene-caption { left: 50%; bottom: 12px; align-items: center; transform: translateX(-50%); text-align: center; max-width: 92%; }
  .slide.cover h1 { font-size: clamp(32px, 8.4vw, 46px); }
  .slide.cover .lead { font-size: 17px; }
  .gap .narrative-col h2, .proof .narrative-col h2, .system-head h2, .engage-head h2, .audit .audit-copy h2 { font-size: clamp(28px, 5.2vw, 38px); }
  .gap-paths { grid-template-columns: 1fr; }
  .system-grid, .tier-grid { grid-template-columns: 1fr; }
  .sys-card p { flex: none; }
  .tier-rec { transform: none; }
  .engage-bar { grid-template-columns: 1fr; }
  .engage-bar span + span { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .cmp-stage { height: 260px; }
  .cmp-legend li { grid-template-columns: 1fr; gap: 2px; }
  .audit .audit-finding-head { display: block; }
  .audit .audit-finding .src { display: block; margin-top: 2px; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idx-thumb { height: 92px; }
  .close .partner-avatar-wrap { width: 168px; height: 168px; }
  .execution-slide .exec-footer-bar span { text-align: left; }
}
@media screen and (max-width: 520px) {
  .index-grid { grid-template-columns: 1fr; }
  .close .partner-avatar-wrap { width: 150px; height: 150px; }
  .mock-detail { width: 96vw; }
  .detail-note { font-size: 13.5px; }
}

/* ------------------------------------------------------------------ restored transparent logo on uniform cream enamel
   The master has real alpha and black lettering, so every plaque that carries it is one flat cream
   (the same enamel as the 3D sign face). No gradient, no tint, no filter on the mark itself. */
.header-logo-pill,
.collab-mark,
.profile-logo-overlay,
.fallback-sign,
.phone-appbar img,
.mock-detail .phone-appbar img { background: #FAF3E3; }
.idx-thumb.is-logo { background-color: #FAF3E3; background-size: 82% auto; }

/* ------------------------------------------------------------------ concept menu: three official gallery photos */
.sm-dish-photo { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sm-dish-photo > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #2a1a13;
}
.sm-dish-body { padding: clamp(8px, 1cqw, 11px) clamp(9px, 1cqw, 12px) clamp(9px, 1.1cqw, 12px); }
.sm-dish-body b { margin-top: 2px; }

@media screen and (min-width: 981px) {
  /* a tall panel scrolls inside the browser frame instead of pushing the slide chrome around */
  .sm-panels {
    max-height: clamp(300px, calc(100dvh - 400px), 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(142, 26, 28, 0.55) transparent;
  }
}

/* ------------------------------------------------------------------ meaningful facts and controls: 13px floor at 1366, 14px near 1600 */
.fact-pills li { font-size: clamp(13px, 0.875vw, 15px); }
.slide.cover .eyebrow { font-size: clamp(13px, 0.875vw, 14.5px); }
.suggestions button { font-size: clamp(13px, 0.875vw, 15px); }

/* ------------------------------------------------------------------ reduced motion: instant, readable, still */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .cover-cue .ico, .sm-open i { animation: none; }
  .is-impact #deck, .boom-flash.go { animation: none !important; }
  .gap-paths.is-playing .gap-step { animation: none; }
  .cmp-grip { transition: none; }
}
