/* ══════════════════════════════════════════════════════════════
   mobile.css — mobile-mode overlay
   Gated entirely by `body.deck-mobile` (set by app.js).
   See docs/superpowers/specs/2026-05-28-responsive-no-overlap-design.md
   ══════════════════════════════════════════════════════════════ */

/* All rules in this file MUST be scoped to body.deck-mobile so they
   are no-ops when the desktop path is active. */

/* ──────────────────────────────────────────────
   C2 — Bottom dock nav (replaces left-rail sidenav)
   ────────────────────────────────────────────── */
body.deck-mobile .sidenav{
  position:fixed;
  left:0; right:0; bottom:0; top:auto;
  width:100%;
  height:calc(64px + env(safe-area-inset-bottom));
  padding:6px 8px env(safe-area-inset-bottom);
  flex-direction:row;
  align-items:center;
  justify-content:space-evenly;
  z-index:200;
  background:rgba(8,18,52,0.92); /* solid — no blur in mobile */
}
body.deck-mobile .sidenav::before{
  display:none;
}
body.deck-mobile .nav-logo,
body.deck-mobile .nav-divider,
body.deck-mobile .nav-label,
body.deck-mobile .nav-dot{
  display:none;
}
body.deck-mobile .nav-item{
  width:auto;
  min-width:44px;
  min-height:44px;
  padding:6px 4px;
  flex-direction:column;
  gap:4px;
}
body.deck-mobile .nav-num{
  font-size:11px;
  color:rgba(255,255,255,0.55);
}
body.deck-mobile .nav-item.active{
  position:relative;
}
body.deck-mobile .nav-item.active::after{
  content:'';
  position:absolute;
  left:50%; bottom:2px;
  transform:translateX(-50%);
  width:24px; height:2px;
  background:var(--accent-soft);
  border-radius:2px;
}
body.deck-mobile .nav-item.active .nav-num{
  color:var(--accent-soft);
}

/* Slides container loses left rail, gains bottom dock reserve */
body.deck-mobile .slides{
  left:0;
  padding-bottom:calc(64px + env(safe-area-inset-bottom));
}
body.deck-mobile .deck-aurora,
body.deck-mobile .deck-noise,
body.deck-mobile .deck-scan{
  left:0;
}

/* ──────────────────────────────────────────────
   C4 — Kill heavy decoration on mobile (perf + readability)
   ────────────────────────────────────────────── */
body.deck-mobile #wireCanvas{ display:none; }
body.deck-mobile .deck-aurora-blob:nth-child(2),
body.deck-mobile .deck-aurora-blob:nth-child(3){ display:none; }
body.deck-mobile .deck-scan{ display:none; }

/* Replace every blur surface with solid — readable text + cheaper paint */
body.deck-mobile .glass,
body.deck-mobile .pill,
body.deck-mobile .pill-dark,
body.deck-mobile .sidenav::before,
body.deck-mobile .s8-content,
body.deck-mobile .s8-detail-panel,
body.deck-mobile .s7-tam__viz,
body.deck-mobile .nav-label{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  background:rgba(8,18,52,0.78) !important;
}

/* ──────────────────────────────────────────────
   C5 — Per-slide mobile layouts
   ────────────────────────────────────────────── */

/* Slide 01 — Intro */
body.deck-mobile .slide[data-index="0"] .hands-wrap{
  display:none;
}
body.deck-mobile .slide[data-index="0"]{
  background:var(--deck-navy);
}
body.deck-mobile .s1-logo-wrap{
  top:var(--pill-reserve);
  transform:translateX(-50%);
  padding:0 24px;
}
body.deck-mobile #gagingLogo{
  width:min(280px,72vw);
}
body.deck-mobile .s1-sym-wrap{
  top:50%;
}
body.deck-mobile #gagingSym{
  width:min(96px,22vw);
}
body.deck-mobile .s1-overlay{
  bottom:clamp(80px,12dvh,140px);
  padding:0 24px;
}
body.deck-mobile .s1-title-dark{
  font-size:clamp(36px,8vw,52px);
  text-align:center;
}

/* Slide 02 — Team carousel */
/* Kill the 3-D perspective stack; show one card at a time */
body.deck-mobile .s2-team-carousel{
  perspective:none;
  padding:0 52px 8px;
}
body.deck-mobile .s2-team-deck{
  transform-style:flat;
  width:min(280px,84vw);
  /* height driven by the single visible card */
  min-height:clamp(360px,55dvh,520px);
  height:auto !important;
  max-height:none !important;
}
/* Hide all non-front cards */
body.deck-mobile .s2-team-deck .s2-member-card:not(.card-pos-0){
  display:none !important;
}
/* Reset the front card to normal flow */
body.deck-mobile .s2-team-deck .s2-member-card.card-pos-0{
  position:static !important;
  transform:none !important;
  opacity:1 !important;
  filter:none !important;
  width:100%;
  height:clamp(360px,55dvh,520px);
}
/* Truncate bio to 3 lines */
body.deck-mobile .s2-member-card__bio{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-y:hidden;
}
/* Ensure nav buttons meet 44 px tap target */
body.deck-mobile .s2-team-nav{
  width:44px;
  height:44px;
  font-size:20px;
}

/* ──────────────────────────────────────────────
   Slide 03 — Mission
   ────────────────────────────────────────────── */
body.deck-mobile .s25-layout{
  padding:var(--pill-reserve) 16px 16px;
  gap:clamp(12px,2vh,24px);
}
body.deck-mobile .cardbeam-embed-wrap{
  --cardbeam-crop-w:min(92vw,520px);
  height:clamp(220px,42dvh,360px);
}

/* Slide 04 — Problem */
body.deck-mobile .s4-problem-layout{
  padding:var(--pill-reserve) 16px 16px;
  gap:clamp(12px,2vh,20px);
}
body.deck-mobile .s4-problem-hero-img{
  max-height:42dvh;
  max-width:88vw;
}
body.deck-mobile .deck-slide-title{
  font-size:clamp(20px,5vw,32px);
}

/* Slide 05 — Solution */
body.deck-mobile .s5-layout{
  padding:var(--pill-reserve) 16px 16px;
  gap:clamp(8px,1.5vh,16px);
}
body.deck-mobile .s5-solution-title{
  font-size:clamp(22px,5.5vw,36px);
  max-width:92vw;
}
body.deck-mobile .s5-joystick-img,
body.deck-mobile .s5-layout img{
  max-height:38dvh;
  max-width:80vw;
}

/* ──────────────────────────────────────────────
   Slide 06 — How It Works (TASK-R18)
   ────────────────────────────────────────────── */
body:not(.deck-mobile) .hiw-mobile-arrows{ display:none; }

body.deck-mobile .hiw-layout{
  padding:var(--pill-reserve) 16px 16px;
}
body.deck-mobile .hiw-phone-wrap,
body.deck-mobile .hiw-screen{
  display:none; /* drop phone illustration on mobile */
}
body.deck-mobile .hiw-arc-arrows{
  display:none; /* desktop ellipse arrows hidden on mobile */
}
body.deck-mobile .hiw-arc-stage{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-around;
  gap:14px;
  padding:0 36px 0 12px; /* right padding for return-loop arrow */
  width:100%;
  /* TASK-R18 fixup: flex:1 to fill remaining layout column, not a fixed
     dvh calc that ignored the title's height above the stage. */
  flex:1;
  min-height:0;
  /* Override desktop aspect-ratio + max-width that would force a fixed shape */
  aspect-ratio:auto;
  max-width:none;
  margin-block:0;
}
body.deck-mobile .hiw-arc-card{
  position:relative !important;
  left:auto !important; right:auto !important;
  top:auto !important; bottom:auto !important;
  transform:none !important;
  width:auto !important;
  max-width:none !important;
  height:auto !important; /* TASK-R18 fixup: override desktop fixed height (was 125-148px) */
  flex:0 0 auto; /* don't stretch beyond content */
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  background:rgba(0,82,245,0.18);
  border:1px solid rgba(187,187,255,0.4);
  border-radius:10px;
  min-height:44px;
  font-size:14px;
  color:#eef1ff;
  z-index:2;
  backdrop-filter:none !important; /* desktop has blur(18px), kill for mobile */
}
body.deck-mobile .hiw-arc-card__icon{
  flex:0 0 auto;
  width:24px; height:24px;
}
body.deck-mobile .hiw-arc-card__title{
  margin:0;
  font-size:13px;
  line-height:1.3;
}
body.deck-mobile .hiw-arc-card::before{
  content: attr(data-step);
  flex:0 0 auto;
  width:22px; height:22px;
  border-radius:50%;
  background:rgba(187,187,255,0.45);
  color:#000d2c;
  font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
body.deck-mobile .hiw-arc-card--1::before{ content:'1'; }
body.deck-mobile .hiw-arc-card--2::before{ content:'2'; }
body.deck-mobile .hiw-arc-card--3::before{ content:'3'; }
body.deck-mobile .hiw-arc-card--4::before{ content:'4'; }

body.deck-mobile .hiw-mobile-arrows{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%; /* TASK-R18 fixup: SVG intrinsic aspect-ratio (150:540) was making it 1177px tall instead of filling parent */
  z-index:1;
  pointer-events:none;
}

/* Animation: node pulse 1→2→3→4 then return arrow, 4s loop */
@keyframes hiwNodeFlash{
  0%, 100% { box-shadow: 0 0 0 0 rgba(187,187,255,0); }
  25%      { box-shadow: 0 0 0 4px rgba(187,187,255,0.5); }
  50%      { box-shadow: 0 0 0 0 rgba(187,187,255,0); }
}
@keyframes hiwReturnFlash{
  0%, 100% { stroke-opacity: 0.3; }
  50%      { stroke-opacity: 1; }
}
body.deck-mobile .hiw-arc-card--1{ animation: hiwNodeFlash 4s ease 0.0s infinite; }
body.deck-mobile .hiw-arc-card--2{ animation: hiwNodeFlash 4s ease 1.0s infinite; }
body.deck-mobile .hiw-arc-card--3{ animation: hiwNodeFlash 4s ease 2.0s infinite; }
body.deck-mobile .hiw-arc-card--4{ animation: hiwNodeFlash 4s ease 3.0s infinite; }
body.deck-mobile .hiw-m-arrow--return{
  animation: hiwReturnFlash 4s ease 3.5s infinite;
}

/* Slide 07 — TAM (desktop unchanged; mobile drops the 3 callout boxes) */
body.deck-mobile .tam-callout,
body.deck-mobile .tam-leaders,
body.deck-mobile .tam-leader-dot{
  display:none;
}
body.deck-mobile .s7-tam{
  padding:var(--pill-reserve) 16px 16px;
}
body.deck-mobile .s7-tam__head{
  gap:8px;
}
body.deck-mobile .s7-tam__subtitle{
  font-size:13px;
  -webkit-line-clamp:2;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.deck-mobile .tam-rings-wrap{
  margin:auto;
}
body.deck-mobile .tam-rings{
  width:min(78vw,260px) !important;
  height:min(78vw,260px) !important;
}

/* ──────────────────────────────────────────────
   Slide 08 — Market Timing (news carousel, TASK-R20)
   ────────────────────────────────────────────── */
body.deck-mobile .golden-rush__head{
  padding-top:var(--pill-reserve);
}
body.deck-mobile .golden-rush__stack{
  width:min(88vw,320px);
  margin:0 auto;
  aspect-ratio:auto;
  min-height:clamp(320px,50dvh,420px);
}
body.deck-mobile .golden-rush-card{
  position:static !important;
  width:100%;
  font-size:13px;
  transform:none !important;
  opacity:1 !important;
  display:none;
}
body.deck-mobile .golden-rush-card.golden-rush-card--landed{
  display:flex;
}
body.deck-mobile .golden-rush-card__headline{
  font-size:clamp(16px,3.5vw,20px);
}
body.deck-mobile .golden-rush-card__masthead{
  font-size:clamp(11px,0.85vw,13px);
}
body.deck-mobile .golden-rush-card__meta{
  font-size:clamp(9px,0.7vw,11px);
}
body.deck-mobile .golden-rush-card__lede{
  font-size:clamp(11px,0.8vw,13px);
  -webkit-line-clamp:3;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ──────────────────────────────────────────────
   C9 — Viewport unit hardening
   (100vh → 100dvh handled in style.css)
   ────────────────────────────────────────────── */
body.deck-mobile{
  overscroll-behavior:contain;
}
html, body{
  height:100dvh;
}

/* ══════════════════════════════════════════════
   TASK-R21 — Slide 09 Competitor
   4-up quad → tab strip + 1 detail card on mobile
   ══════════════════════════════════════════════ */

/* Hide chip strip entirely on desktop */
body:not(.deck-mobile) .s8-mobile-chips{ display:none; }

/* On mobile: collapse the grid to a single-column flex,
   hide all cards by default, show only the active one. */
body.deck-mobile .s8-quad-grid{
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  padding:0 !important;
}
body.deck-mobile .s8-quad{
  display:none !important;
}
body.deck-mobile .s8-quad.is-active{
  display:flex !important;
  flex:1 1 auto;
  max-height:calc(100dvh - var(--pill-reserve) - 64px - 56px);
  overflow:hidden;
}

/* Tab strip */
body.deck-mobile .s8-mobile-chips{
  display:flex;
  gap:6px;
  margin:8px auto 10px;
  padding:0 16px;
  width:100%;
  max-width:360px;
  justify-content:center;
  flex-shrink:0;
}
body.deck-mobile .s8-mobile-chip{
  flex:1;
  min-height:44px;
  padding:8px 6px;
  background:rgba(0,82,245,0.18);
  border:1px solid rgba(187,187,255,0.35);
  border-radius:99px;
  color:#eef1ff;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s, border-color .15s;
}
body.deck-mobile .s8-mobile-chip.is-active{
  background:rgba(0,82,245,0.4);
  border-color:#bbbbff;
}

/* Also override the existing 720px stacking rule on mobile
   so chips control visibility instead of CSS columns */
@media (max-width:720px){
  body.deck-mobile .s8-quad-grid{
    grid-template-columns:unset;
    grid-template-rows:unset;
  }
}

/* ══════════════════════════════════════════════
   TASK-R22 — Slide 10 Roadmap
   4 columns (timeline) → 4 rows (vertical) on mobile
   ══════════════════════════════════════════════ */

body.deck-mobile .s10-layout{
  padding:var(--pill-reserve) 16px 12px !important;
  gap:6px;
}

body.deck-mobile .s10-head{
  gap:4px;
}

body.deck-mobile .s10-head .deck-slide-title{
  font-size:clamp(18px,4.5vw,24px);
}

body.deck-mobile .s10-spine{
  display:none;
}

body.deck-mobile .s10-panel{
  padding:6px 8px 8px;
  gap:4px;
  flex:1;
  min-height:0;
  overflow:hidden;
}

body.deck-mobile .s10-journey{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  grid-template-columns:unset;
  grid-template-rows:unset;
  align-items:stretch;
  margin-top:0 !important;
  flex:1;
  min-height:0;
}

body.deck-mobile .s10-col{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:4px;
  padding:4px 6px;
  background:rgba(0,0,0,0.18);
  border:1px solid rgba(187,187,255,0.2);
  border-radius:6px;
  opacity:1;
  transform:none;
  flex:0 1 auto;
}

body.deck-mobile .s10-col::before{
  display:none;
}

body.deck-mobile .s10-col__head{
  flex:0 0 auto;
  min-width:50px;
  width:auto;
  padding:4px 6px;
  border-radius:6px;
  background:rgba(0,0,0,0.32);
  border:1px solid color-mix(in srgb,var(--s10-accent) 30%,rgba(255,255,255,0.08));
  text-align:left;
  gap:1px;
}

body.deck-mobile .s10-col__phase{
  font-size:5px;
  margin-bottom:0px;
  line-height:1;
}

body.deck-mobile .s10-col__q{
  font-size:clamp(10px,1.8vw,12px);
  margin:0;
  line-height:1.1;
}

body.deck-mobile .s10-col__cards{
  flex:1;
  gap:0;
  padding:0;
}

body.deck-mobile .s10-card{
  gap:4px;
  padding:4px 6px;
  font-size:9px;
  flex-direction:row;
  align-items:flex-start;
  min-height:0;
}

body.deck-mobile .s10-card__n{
  font-size:7px;
  flex-shrink:0;
}

body.deck-mobile .s10-card__text{
  font-size:9px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

body.deck-mobile .s10-card--hero{
  padding:4px 6px;
  flex-direction:row;
  align-items:flex-start;
  text-align:left;
  gap:4px;
}

body.deck-mobile .s10-card--hero .s10-card__text{
  font-size:9px;
}

body.deck-mobile .s10-card__badge{
  padding:1px 6px;
  font-size:6px;
  flex-shrink:0;
  line-height:1;
}

body.deck-mobile .s10-card--premium{
  flex-direction:row;
  align-items:flex-start;
  gap:4px;
  padding:4px 6px;
}

body.deck-mobile .s10-card--premium .s10-card__badge{
  padding:1px 6px;
  font-size:6px;
  flex-shrink:0;
  line-height:1;
}

/* Slide 11 — Advisory (cards → 1-col stack) */
body.deck-mobile .slide[data-index="10"] .s2-team-carousel{
  perspective:none;
  padding:0;
  width:100%;
}
body.deck-mobile .slide[data-index="10"] .s2-team-deck{
  display:flex !important;
  flex-direction:column !important;
  gap:10px;
  padding:var(--pill-reserve) 16px 16px;
  width:100% !important;
  height:auto !important;
  min-height:auto !important;
  max-height:none !important;
  transform-style:flat;
}
body.deck-mobile .slide[data-index="10"] .s2-member-card{
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  min-height:96px;
  position:static !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  opacity:1 !important;
  filter:none !important;
  width:100% !important;
  height:auto !important;
}
body.deck-mobile .slide[data-index="10"] .s2-member-card__photo{
  flex:0 0 auto;
  width:56px;
  height:56px;
}
body.deck-mobile .slide[data-index="10"] .s2-member-card__body{
  flex:1;
  display:flex;
  flex-direction:column;
}
body.deck-mobile .slide[data-index="10"] .s2-member-card__bio{
  font-size:12px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
}
body.deck-mobile .slide[data-index="10"] .s2-team-nav{
  display:none;
}

/* ══════════════════════════════════════════════
   TASK-R24 — Slide 12 The Ask
   Hero raise card + funds breakdown + bullets → single column
   ══════════════════════════════════════════════ */

/* Override desktop 2-col grid → single flex column */
body.deck-mobile .s11-layout{
  display:flex;
  flex-direction:column;
  grid-template-columns:unset;
  gap:10px;
  padding:var(--pill-reserve) 16px 12px;
  min-height:0;
  overflow:hidden;
}

/* Hide the jump game entirely on mobile — it needs vertical space */
body.deck-mobile .s11-col--game{
  display:none !important;
}

/* Copy column: vertical flex, tight gap, clipped to viewport */
body.deck-mobile .s11-col--copy{
  gap:8px;
  align-self:stretch;
  min-height:0;
  overflow:hidden;
}

/* Raise hero: tighter padding, centred large number */
body.deck-mobile .s11-raise--hero{
  padding:clamp(10px,2vh,18px) clamp(14px,3.5vw,20px);
  text-align:center;
}

/* Shrink the $4M amount so it fits narrow viewports */
body.deck-mobile .s11-raise__num{
  font-size:clamp(56px,18vw,100px);
}
body.deck-mobile .s11-raise__sym{
  font-size:clamp(28px,8.5vw,48px);
}
body.deck-mobile .s11-raise__unit{
  font-size:clamp(34px,10.5vw,66px);
}

/* Runway text: smaller for tight screens */
body.deck-mobile .s11-raise__runway{
  font-size:clamp(12px,3vw,15px);
  margin-top:6px;
}

/* Funds card: stack pie left and legend right (horizontal) so it
   is compact enough to not overflow on landscape (393px height) */
body.deck-mobile .s11-funds{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:center;
  padding:clamp(8px,1.5vh,12px) clamp(12px,2.5vw,16px);
}

/* Shrink pie on narrow screens */
body.deck-mobile .s11-pie{
  width:clamp(64px,16vw,96px);
  height:clamp(64px,16vw,96px);
}

/* Legend items: tighten gap */
body.deck-mobile .s11-legend{
  gap:6px;
  width:100%;
}

body.deck-mobile .s11-legend li{
  gap:4px 6px;
  align-items:center;
}

/* Legend text: smaller for mobile */
body.deck-mobile .s11-legend__text strong{
  font-size:clamp(10px,2.6vw,12px);
}
body.deck-mobile .s11-legend__desc{
  font-size:clamp(9px,2.2vw,10px);
}
body.deck-mobile .s11-legend__pct{
  font-size:clamp(12px,3vw,14px);
}

/* Bullets: tighter padding, 1-line clamp to prevent overflow */
body.deck-mobile .s11-bullets{
  gap:8px;
  padding:clamp(8px,1.2vh,12px) clamp(12px,2.5vw,14px);
}
body.deck-mobile .s11-bullets li{
  font-size:clamp(11px,2.8vw,13px);
  -webkit-line-clamp:2;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Landscape narrow-height (≤480px): 2-col layout so hero sits left,
   funds+bullets sit right — avoids stacking 3 sections vertically */
@media (max-height:480px){
  body.deck-mobile .s11-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto;
    gap:8px;
    padding:var(--pill-reserve) 12px 8px;
    align-items:start;
  }
  body.deck-mobile .s11-head{
    grid-column:1/-1;
  }
  body.deck-mobile .s11-col--copy{
    display:contents; /* spread children into grid */
  }
  body.deck-mobile .s11-raise--hero{
    grid-column:1;
    grid-row:2;
    align-self:center;
    padding:8px 10px;
  }
  body.deck-mobile .s11-funds{
    grid-column:2;
    grid-row:2;
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:6px 8px;
  }
  body.deck-mobile .s11-bullets{
    grid-column:1/-1;
    grid-row:3;
    display:none; /* hide on landscape to save height */
  }
  /* Further shrink the $4M at very small heights */
  body.deck-mobile .s11-raise__num{
    font-size:clamp(40px,12vw,64px);
  }
  body.deck-mobile .s11-raise__sym{
    font-size:clamp(20px,6vw,32px);
  }
  body.deck-mobile .s11-raise__unit{
    font-size:clamp(24px,7.5vw,42px);
  }
  body.deck-mobile .s11-raise__runway{
    font-size:clamp(10px,2.5vw,12px);
    margin-top:4px;
  }
  body.deck-mobile .s11-pie{
    width:clamp(48px,11vw,64px);
    height:clamp(48px,11vw,64px);
  }
  body.deck-mobile .s11-legend{
    gap:4px;
  }
  body.deck-mobile .s11-legend li{
    gap:3px 4px;
  }
  body.deck-mobile .s11-legend__text strong{
    font-size:10px;
  }
  body.deck-mobile .s11-legend__desc{
    font-size:9px;
  }
  body.deck-mobile .s11-legend__pct{
    font-size:11px;
  }
}

/* ══════════════════════════════════════════════
   TASK-R25 — Slide 13 Contact
   Reflow: centre content, ensure touch targets
   ══════════════════════════════════════════════ */

body.deck-mobile .s9-content{
  padding:var(--pill-reserve) 16px 16px;
  text-align:center;
}

body.deck-mobile .s9-contact a,
body.deck-mobile .s9-contact a:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  min-width:44px;
  padding:10px 16px;
  text-decoration:none;
  border-radius:8px;
}

body.deck-mobile .s9-big{
  font-size:clamp(28px,6vw,40px);
}

/* ──────────────────────────────────────────────
   C10 — Tap-target audit (≥ 44×44 across mobile)
   ────────────────────────────────────────────── */
body.deck-mobile .s2-team-nav,
body.deck-mobile .s2-team__thumb,
body.deck-mobile .s8-group-btn,
body.deck-mobile .s8-thumb,
body.deck-mobile .s8-mobile-chip,
body.deck-mobile .s9-contact a,
body.deck-mobile .nav-item{
  min-width:44px;
  min-height:44px;
}

/* ──────────────────────────────────────────────
   TASK-R28-C — Landscape phone (852×393, 932×430, etc.)
   ──────────────────────────────────────────────
   At max-height ≤ 480 px in mobile mode, the column has only
   ~204 px usable height after pill-reserve + bottom dock. The
   default mobile reflows for slides 6 and 7 can't fit. Switch
   to landscape-specific compact layouts.
   ────────────────────────────────────────────── */

/* Slide 06 — 4-node chain → 2×2 grid (landscape phones only).
   Drop the return-loop arrow (no room for it without clipping). */
@media (max-height: 480px) and (max-width: 1023px) and (pointer: coarse){
  body.deck-mobile .hiw-arc-stage{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto;
    gap:6px 8px;
    padding:0 8px;
  }
  body.deck-mobile .hiw-arc-card{
    min-height:0;
    padding:4px 8px;
    font-size:11px;
  }
  body.deck-mobile .hiw-arc-card__title{
    font-size:10px;
    line-height:1.2;
  }
  body.deck-mobile .hiw-arc-card__icon{
    width:18px; height:18px;
  }
  body.deck-mobile .hiw-arc-card::before{
    width:16px; height:16px; font-size:9px;
  }
  /* Down arrows + return arrow don't make geometric sense in a 2x2 grid; hide. */
  body.deck-mobile .hiw-mobile-arrows{
    display:none !important;
  }
  /* Animation: keep the sequential node pulse (still works in grid). */

  /* Slide 07 — landscape: shrink rings, drop subtitle, kill title margins.
     Rings must fit in ~180 px column height after head reduction. */
  body.deck-mobile .s7-tam{
    padding:var(--pill-reserve) 12px 8px;
    gap:4px;
  }
  body.deck-mobile .s7-tam__head{
    margin-bottom:4px;
    gap:4px;
  }
  body.deck-mobile .s7-tam__head .deck-slide-title{
    font-size:clamp(14px,3vw,18px);
    line-height:1.1;
  }
  body.deck-mobile .s7-tam__subtitle{
    display:none; /* hide subtitle for landscape phone — saves ~40 px */
  }
  body.deck-mobile .s7-tam__viz{
    height:min(70vh, calc(100dvh - 200px));
  }
  body.deck-mobile .tam-rings{
    width:min(60vmin, 180px) !important;
    height:min(60vmin, 180px) !important;
  }
  /* Shrink ring band labels so they still read inside a 180 px ring. */
  body.deck-mobile .tam-rings__band-value{
    font-size:clamp(0.7rem, 2vmin, 0.95rem);
  }
  body.deck-mobile .tam-rings__band--tam .tam-rings__band-value,
  body.deck-mobile .tam-rings__band--sam .tam-rings__band-value{
    font-size:clamp(0.85rem, 2.5vmin, 1.1rem);
  }
  body.deck-mobile .tam-rings__value{
    font-size:clamp(0.85rem, 2.5vmin, 1.1rem);
  }
}
