/* ============================================================
   THE MJ ROOF EXPERIENCE — Presentation Stylesheet
   Full-screen horizontal deck. iPad + desktop optimized.
   ============================================================ */

:root {
  --green: #2DB441;
  --green-hover: #25983a;
  --green-deep: #0f5c20;
  --green-glow: rgba(45, 180, 65, 0.35);
  --gold: #d4a437;
  --gold-light: #f3c968;
  --gold-deep: #8a6a1c;
  --dark: #0b0d10;
  --dark-2: #14171c;
  --dark-3: #1d222a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f6f7;
  --text-dim: rgba(245, 246, 247, 0.72);
  --text-muted: rgba(245, 246, 247, 0.5);
  --display: 'Barlow Condensed', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
}
body.pres {
  font-family: var(--body);
  background: var(--dark);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ==== Progress bar ==== */
.pres-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 100;
}
.pres-progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--green), var(--gold-light));
  box-shadow: 0 0 12px var(--green-glow);
  transition: width 0.6s var(--ease);
}

/* ==== Top chrome ==== */
.pres-chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 90;
  background: linear-gradient(to bottom, rgba(11, 13, 16, 0.9), rgba(11, 13, 16, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.pres-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
}
.pres-logo img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}
.pres-chapter {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.pres-chapter #pres-chapter-num {
  color: var(--green);
  font-weight: 800;
}
.pres-chrome-right { display: flex; gap: 8px; align-items: center; }
.pres-icon-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-dim);
  transition: all 0.2s var(--ease);
  border: 1px solid var(--line);
}
.pres-icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
}

/* Kiosk mode hides chrome */
body.kiosk .pres-chrome,
body.kiosk .pres-nav { opacity: 0; pointer-events: none; transform: translateY(0); }
body.kiosk .pres-progress { opacity: 0.4; }

/* ==== Deck ==== */
.pres-deck {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: row;
  width: 600vw; /* 6 slides */
  height: 100vh;
  height: 100dvh;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.slide {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  flex-shrink: 0;
  position: relative;
  padding: 80px 56px 100px;
  overflow: hidden;
}

/* ==== Shared slide elements ==== */
.eyebrow {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.eyebrow.light { color: var(--gold-light); }
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.slide h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
  text-wrap: balance;
}
.slide h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}
.slide .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 32px;
}

/* Slide enter animations — triggered when .slide-active */
.slide > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.slide.slide-active > * {
  opacity: 1;
  transform: translateY(0);
}
.slide.slide-active > *:nth-child(1) { transition-delay: 0.1s; }
.slide.slide-active > *:nth-child(2) { transition-delay: 0.22s; }
.slide.slide-active > *:nth-child(3) { transition-delay: 0.34s; }

/* ============================================================
   SLIDE 1: COVER
   ============================================================ */
.slide-cover { padding: 0; display: flex; align-items: center; justify-content: center; }
.slide-cover .slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide-cover .slide-media > * { opacity: 1; transform: none; transition: none; }
.slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s linear;
}
.slide-cover.slide-active .slide-bg-img { transform: scale(1); }
.slide-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(45, 180, 65, 0.18) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0.75) 60%, rgba(11, 13, 16, 0.95) 100%);
}
.slide-cover .slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 900px;
}
.cover-eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  padding: 8px 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  margin-bottom: 32px;
  background: rgba(45, 180, 65, 0.08);
}
.cover-title {
  font-family: var(--display);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 0.88;
}
.cover-pretitle {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.cover-maintitle {
  display: block;
  font-size: clamp(72px, 12vw, 168px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.cover-maintitle .accent {
  color: var(--green);
  font-style: italic;
  font-weight: 800;
}
.cover-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.cover-signature {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.cover-dot { color: var(--green); }
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--green);
  color: var(--dark);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 10px 40px var(--green-glow), 0 0 0 0 var(--green-glow);
}
.cover-cta:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 50px var(--green-glow);
}
.cover-cta svg { transition: transform 0.3s var(--ease); }
.cover-cta:hover svg { transform: translateX(4px); }

/* ============================================================
   SLIDE 2: SPLIT (Meet Mark)
   ============================================================ */
.slide-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  background: radial-gradient(ellipse at top right, rgba(45, 180, 65, 0.08) 0%, transparent 50%), var(--dark);
}
.split-visual {
  position: relative;
  height: 80vh;
  max-height: 680px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.split-badge-stack {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.badge {
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.badge-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 4px;
}
.badge-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.2;
}
.split-copy { padding-right: 24px; }
.key-points {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.key-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  color: var(--text);
  line-height: 1.45;
}
.kp-marker {
  flex-shrink: 0;
  margin-top: 7px;
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--green-glow);
  transform: rotate(45deg);
}

/* ============================================================
   SLIDE 3: THE MJ SYSTEM (layer stack)
   ============================================================ */
.slide-system {
  /* Light-themed slide: cream/ivory background so the GAF-style
     translucent-layer diagram reads correctly. */
  --sys-bg: #f4efe6;
  --sys-bg-2: #ebe3d4;
  --sys-ink: #1b1d20;
  --sys-ink-dim: #5a5e66;
  --sys-line: rgba(27, 29, 32, 0.12);
  --sys-chip-bg: rgba(255, 255, 255, 0.92);
  --sys-chip-border: rgba(27, 29, 32, 0.14);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(ellipse at top right, rgba(45, 180, 65, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(212, 164, 55, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--sys-bg) 0%, var(--sys-bg-2) 100%);
  color: var(--sys-ink);
}
.slide-system .eyebrow { color: var(--green); }
.slide-system h2 { color: var(--sys-ink); }
.slide-system .lede { color: var(--sys-ink-dim); }
.system-copy { padding-right: 16px; transition: opacity 0.4s var(--ease-out); }
.slide-system.detail-open .system-copy { opacity: 0.15; }
.system-hint {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1b7d2b;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
/* ---- Cutaway stage: the hero image with hotspot overlay ---- */
.cutaway-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cutaway-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 4 / 3;
  display: block;
}
.cutaway-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 20px 50px rgba(27, 29, 32, 0.12),
    0 0 0 1px var(--sys-line);
  user-select: none;
  pointer-events: none;
  /* Subtle float-in animation */
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.slide-system.slide-active .cutaway-img {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cutaway-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 0.35s;
}
.slide-system.slide-active .cutaway-overlay { opacity: 1; }
.callout-lines line {
  stroke: rgba(45, 180, 65, 0.75);
  stroke-dasharray: 4 4;
  animation: dashFlow 24s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -200; }
}

/* ---- Hotspot pins on the image ---- */
.hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.slide-system.slide-active .hotspot { opacity: 1; }
.slide-system.slide-active .hotspot:nth-child(1) { transition-delay: 0.55s; }
.slide-system.slide-active .hotspot:nth-child(2) { transition-delay: 0.65s; }
.slide-system.slide-active .hotspot:nth-child(3) { transition-delay: 0.75s; }
.slide-system.slide-active .hotspot:nth-child(4) { transition-delay: 0.85s; }
.slide-system.slide-active .hotspot:nth-child(5) { transition-delay: 0.95s; }
.slide-system.slide-active .hotspot:nth-child(6) { transition-delay: 1.05s; }
.slide-system.slide-active .hotspot:nth-child(7) { transition-delay: 1.15s; }

.hotspot .pin {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px rgba(45, 180, 65, 0.45),
    0 6px 18px rgba(27, 29, 32, 0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.hotspot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0.7;
  animation: pinPulse 2.4s ease-out infinite;
}
@keyframes pinPulse {
  0%   { transform: scale(0.9); opacity: 0.65; }
  80%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.hotspot:hover .pin,
.hotspot.active .pin {
  transform: scale(1.15);
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px rgba(45, 180, 65, 0.7),
    0 8px 24px rgba(45, 180, 65, 0.55);
}
.hotspot.active::before { animation-duration: 1.2s; }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible .pin {
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px var(--gold),
    0 8px 24px rgba(45, 180, 65, 0.55);
}

/* ---- Edge label chips tied to each pin ---- */
.callout-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.callout-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--sys-chip-bg);
  border: 1px solid var(--sys-chip-border);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sys-ink);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(27, 29, 32, 0.1);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out),
    border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  z-index: 4;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}
.callout-chip:hover {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(45, 180, 65, 0.2);
}
.slide-system.slide-active .callout-chip { opacity: 1; transform: translateY(0); }
.slide-system.slide-active .callout-chip:nth-child(1) { transition-delay: 0.55s; }
.slide-system.slide-active .callout-chip:nth-child(2) { transition-delay: 0.65s; }
.slide-system.slide-active .callout-chip:nth-child(3) { transition-delay: 0.75s; }
.slide-system.slide-active .callout-chip:nth-child(4) { transition-delay: 0.85s; }
.slide-system.slide-active .callout-chip:nth-child(5) { transition-delay: 0.95s; }
.slide-system.slide-active .callout-chip:nth-child(6) { transition-delay: 1.05s; }
.slide-system.slide-active .callout-chip:nth-child(7) { transition-delay: 1.15s; }
.callout-chip .chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
}
.callout-chip.active {
  border-color: var(--green);
  background: rgba(45, 180, 65, 0.15);
  box-shadow: 0 6px 18px rgba(45, 180, 65, 0.25);
}

/* Layer detail panel — sits over the left copy area on desktop.
   Positioned fixed (deck has transform, so fixed must be escaped — JS moves this to body). */
.layer-detail {
  position: fixed;
  left: 56px;
  top: 50%;
  transform: translateY(-50%) translateX(-20px);
  width: min(460px, 42vw);
  max-height: 78vh;
  background: linear-gradient(180deg, var(--dark-2), var(--dark-3));
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--green-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  z-index: 80;
  overflow-y: auto;
}
.layer-detail.is-open {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.layer-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s var(--ease);
}
.layer-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.layer-detail h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
  padding-right: 40px;
}
.layer-detail .ld-sub {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.layer-detail p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 16px;
}
.layer-detail .ld-bullets {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.layer-detail .ld-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.layer-detail .ld-bullets li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 7px;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* ============================================================
   SLIDE 4: WARRANTY
   ============================================================ */
.slide-warranty {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 64px;
  align-items: center;
  background:
    radial-gradient(circle at 25% 50%, rgba(212, 164, 55, 0.1) 0%, transparent 50%),
    var(--dark);
}
.warranty-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
/* ---- Real GAF badges (Master Elite + Golden Pledge) ---- */
.gaf-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.gaf-badge {
  display: block;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  /* Soft drop-shadow keeps badges grounded on the dark slide */
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 24px rgba(212, 164, 55, 0.18));
  /* Gentle float-in on slide enter */
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.slide-warranty.slide-active .gaf-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.slide-warranty.slide-active .gaf-badge-elite { transition-delay: 0.1s; }
.slide-warranty.slide-active .gaf-badge-pledge { transition-delay: 0.3s; }
.gaf-badge-elite {
  width: min(260px, 26vw);
  max-width: 100%;
}
.gaf-badge-pledge {
  width: min(180px, 18vw);
  max-width: 100%;
}
.warranty-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 280px;
}
.warranty-copy { padding-right: 16px; }
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.warranty-item {
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s var(--ease);
}
.warranty-item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(212, 164, 55, 0.2);
}
.warranty-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.warranty-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.warranty-sub {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}
.warranty-sub strong { color: var(--text); }
.warranty-fine {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  max-width: 60ch;
}

/* ============================================================
   SLIDE 5: PROCESS
   ============================================================ */
.slide-process {
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  background: var(--dark);
}
.process-head {
  max-width: 800px;
  margin-bottom: 40px;
}
.process-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  flex: 1;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 50%, var(--line) 100%);
  z-index: 0;
}
.process-step {
  position: relative;
  padding-top: 80px;
  z-index: 1;
}
.process-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--green);
  box-shadow: 0 0 0 6px var(--dark), 0 0 20px var(--green-glow);
}
.process-time {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.process-step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================================
   SLIDE 6: CTA
   ============================================================ */
.slide-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(45, 180, 65, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  position: relative;
}
.slide-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.cta-content {
  max-width: 920px;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.cta-content .eyebrow { justify-content: center; display: inline-flex; }
.cta-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cta-lede {
  font-size: 20px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto 40px;
}
.cta-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-offer {
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(45, 180, 65, 0.12), rgba(45, 180, 65, 0.04));
  border: 1px solid rgba(45, 180, 65, 0.35);
  border-radius: 20px;
  text-align: center;
  position: relative;
}
.cta-offer.alt {
  background: linear-gradient(180deg, rgba(212, 164, 55, 0.12), rgba(212, 164, 55, 0.04));
  border-color: rgba(212, 164, 55, 0.35);
}
.cta-offer-badge {
  display: inline-block;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  padding: 4px 12px;
  background: rgba(45, 180, 65, 0.15);
  border-radius: 999px;
  margin-bottom: 12px;
}
.cta-offer.alt .cta-offer-badge {
  color: var(--gold-light);
  background: rgba(212, 164, 55, 0.15);
}
.cta-offer-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.cta-offer-num .dollar {
  font-size: 0.6em;
  vertical-align: 0.25em;
  color: var(--green);
  margin-right: 2px;
}
.cta-offer.alt .cta-offer-num .dollar { color: var(--gold-light); }
.cta-offer-label {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 500;
}
.cta-offer-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 700px;
  margin: 0 auto 32px;
}
.cta-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  transition: all 0.3s var(--ease);
  text-align: left;
}
.cta-btn.primary {
  background: var(--green);
  color: var(--dark);
  box-shadow: 0 10px 30px var(--green-glow);
}
.cta-btn.primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--green-glow);
}
.cta-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-strong);
}
.cta-btn.secondary:hover {
  border-color: var(--green);
  background: rgba(45, 180, 65, 0.06);
  transform: translateY(-2px);
}
.cta-btn svg { flex-shrink: 0; }
.btn-main {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 2px;
}
.btn-sub { font-size: 13px; opacity: 0.75; }
.cta-sign {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.35;
}
.cta-sign span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.pres-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(11, 13, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 90;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
}
.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}
.nav-arrow.primary {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
  box-shadow: 0 6px 20px var(--green-glow);
}
.nav-arrow.primary:hover {
  background: var(--green-hover);
  transform: scale(1.06);
}
.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}
.nav-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 6px;
}
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  padding: 0;
}
.nav-dot.active {
  background: var(--green);
  width: 28px;
  border-radius: 999px;
  box-shadow: 0 0 10px var(--green-glow);
}
.nav-dot:hover:not(.active) {
  background: var(--text-dim);
}

/* ============================================================
   TABLET / iPAD (portrait-ish)
   ============================================================ */
@media (max-width: 1100px) {
  .slide { padding: 76px 36px 92px; }
  .slide-split,
  .slide-system,
  .slide-warranty {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: start;
    align-items: start;
  }
  .split-visual { height: 40vh; max-height: 320px; }
  .split-copy, .system-copy, .warranty-copy { padding-right: 0; }
  .slide h2 { font-size: clamp(28px, 4.2vw, 40px); margin-bottom: 14px; }
  .slide .lede { font-size: 16px; margin-bottom: 16px; line-height: 1.45; }
  .eyebrow { margin-bottom: 14px; font-size: 12px; }

  /* System slide on tablets — image above copy */
  .slide-system {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 104px;
  }
  .system-copy {
    order: 2;
    padding-bottom: 0;
    padding-right: 0;
  }
  .system-copy h2 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 10px; }
  .system-copy .lede { font-size: 15px; margin-bottom: 8px; }
  .system-hint { margin-top: 6px; font-size: 12px; }
  .cutaway-stage { order: 1; }
  .cutaway-wrap { max-width: 560px; }
  .callout-chip { font-size: 10.5px; padding: 4px 10px 4px 6px; }
  .callout-chip .chip-num { width: 18px; height: 18px; font-size: 10px; }
  .hotspot { width: 32px; height: 32px; }
  .hotspot .pin { font-size: 11px; }

  /* Layer detail becomes a centered modal on smaller screens. Panel is in body so position:fixed is reliable. */
  .layer-detail {
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(500px, 86vw);
    max-height: 78vh;
  }
  .layer-detail.is-open {
    transform: translate(-50%, -50%) scale(1);
  }
  /* Scrim behind modal — fixed to viewport */
  body.pres.detail-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 75;
    animation: fadeIn 0.3s var(--ease-out);
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .warranty-grid { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .warranty-item { padding: 16px 12px; }
  .warranty-num { font-size: 44px; }
  .gaf-badge-elite { width: min(200px, 24vw); }
  .gaf-badge-pledge { width: min(140px, 18vw); }

  .slide-process { padding-top: 64px; padding-bottom: 108px; }
  .process-head { margin-bottom: 16px; }
  .process-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 8px; }
  .process-head p { font-size: 14px; }
  .process-track { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .process-track::before { display: none; }
  .process-step { padding-top: 56px; }
  .process-num { width: 44px; height: 44px; font-size: 16px; box-shadow: 0 0 0 4px var(--dark), 0 0 14px var(--green-glow); }
  .process-step h3 { font-size: 16px; margin-bottom: 4px; }
  .process-step p { font-size: 13px; line-height: 1.4; }
  .process-time { font-size: 11px; margin-bottom: 3px; }

  .cta-offers, .cta-buttons { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .slide { padding: 72px 20px 96px; }
  .pres-chrome { padding: 0 14px; height: 56px; }
  .pres-chapter { display: none; }
  .cover-maintitle { font-size: clamp(56px, 16vw, 96px); }
  .cover-sub { font-size: 16px; }
  .cover-cta { padding: 14px 24px; font-size: 15px; }

  .split-badge-stack { position: static; margin-top: 16px; }
  .split-visual { border-radius: 16px; }

  /* Mobile cutaway: hide edge chips (image gets small, chips crowd it); keep pins */
  .callout-chip { display: none; }
  .cutaway-overlay { display: none; }
  .cutaway-wrap { max-width: 92vw; }
  .hotspot { width: 30px; height: 30px; }
  .hotspot .pin { font-size: 10.5px; }


  .layer-detail { padding: 24px 20px; width: 92vw; }
  .layer-detail h3 { font-size: 22px; }

  .warranty-grid { grid-template-columns: 1fr; gap: 10px; }
  .warranty-num { font-size: 48px; }
  .gaf-badge-elite { width: 180px; }
  .gaf-badge-pledge { width: 128px; }

  .process-track { grid-template-columns: 1fr; gap: 14px; }
  .process-track::before { display: none; }
  .process-step { padding-top: 0; padding-left: 72px; min-height: 56px; }
  .process-num { top: 0; width: 56px; height: 56px; font-size: 18px; }
  .process-step h3 { font-size: 17px; margin-bottom: 4px; }
  .process-step p { font-size: 13px; }
  .process-time { font-size: 11px; margin-bottom: 4px; }
  .slide-process { padding-top: 80px; }
  .process-head { margin-bottom: 20px; }

  .cta-title { font-size: clamp(44px, 12vw, 64px); }
  .cta-offers { grid-template-columns: 1fr; gap: 12px; }
  .cta-buttons { grid-template-columns: 1fr; }

  .pres-nav { gap: 8px; padding: 8px 10px; bottom: 12px; }
  .nav-arrow { width: 38px; height: 38px; }
  .nav-dot { width: 6px; height: 6px; }
  .nav-dot.active { width: 20px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   CTA SLIDE — Financing option
   ============================================================ */
.cta-buttons {
  /* Allow 3 items side-by-side on wide screens; wraps cleanly below */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1020px;
}
.cta-finance-form {
  margin: 0;
  display: flex;
}
.cta-finance-form .cta-btn {
  width: 100%;
  font: inherit;
  border: none;
  cursor: pointer;
}
.cta-btn.finance {
  background: linear-gradient(180deg, #e8b84a 0%, #d4a437 100%);
  color: var(--dark);
  border: 1px solid #b78d26;
  box-shadow: 0 10px 30px rgba(212, 164, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.cta-btn.finance:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(212, 164, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.cta-btn.finance svg { color: var(--dark); }
@media (max-width: 720px) {
  .cta-buttons { grid-template-columns: 1fr; }
}

/* Realtor partner link on CTA slide */
.cta-realtor {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.cta-realtor-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.cta-realtor-link {
  color: #2DB441;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, transform 0.15s ease;
}
.cta-realtor-link:hover {
  color: #46d460;
  transform: translateX(2px);
}
.cta-realtor-link svg {
  transition: transform 0.15s ease;
}
.cta-realtor-link:hover svg {
  transform: translateX(2px);
}
