/* Apple-Simple Scroll-Linked Editorial Showcase:
   - Zero empty white void in full-page stills: calm typographic chapters fill the rail naturally
     beside (desktop) or cleanly below (mobile) the sticky matte-black Apple hardware stage.
   - Zero busy controls: no trade pills, prompt chips, inputs, Run button, or bordered boxes.
   - No-JS & prefers-reduced-motion: ALL chapters, devices, and screens render cleanly visible.
   - Active JS (.is-scroll-driven): sticky hardware stage unfolds steps 1..N smoothly on scroll,
     240ms compositor crossfade (transform + opacity only), locked device ratios (715/1496 iPhone,
     16/10 MacBook identical across Home & Offer), <= 52svh on short phones (no px floor).
   - Lime #a3e635 fill-only with dark ink #151613; zero blue hues. */

main .scroll-story {
  --ss-paper: #ffffff;
  --ss-ink: #151613;
  --ss-muted: #52574d;
  --ss-line: #d6d9ce;
  --ss-lime: #a3e635;
  position: relative;
  overflow-x: clip;
  background: var(--ss-paper);
  color: var(--ss-ink);
  padding-block: clamp(72px, 8vw, 112px);
  border-bottom: 1px solid var(--ss-line);
  font-family: Geist, "GeistReview", system-ui, -apple-system, sans-serif;
}

main .scroll-story *,
main .scroll-story *::before,
main .scroll-story *::after {
  box-sizing: border-box;
}

main .scroll-story [hidden] {
  display: none !important;
}

main .scroll-story .ss-wrap {
  width: min(calc(100% - 96px), 1240px);
  margin-inline: auto;
}

/* ============================================================
   UNIFIED SECTION HEADING (SHARED WITH HOME & OFFER)
   ============================================================ */
main .scroll-story .ss-head-center {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 12px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

main .scroll-story .ss-head-center h2 {
  margin: 0;
  font-size: clamp(2.125rem, 4.1vw, 3.625rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 560;
  color: var(--ss-ink);
  text-wrap: balance;
}

main .scroll-story .ss-head-center .ss-lead {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.45;
  color: var(--ss-muted);
  max-width: 50ch;
  text-wrap: pretty;
}

/* ============================================================
   TWO-COLUMN EDITORIAL TRACK (ZERO EMPTY VOID IN STILLS!)
   ============================================================ */
main .scroll-story .ss-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}

main .scroll-story .ss-beats {
  display: flex;
  flex-direction: column;
  padding-block: 8px;
}

main .scroll-story .ss-beat {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 28px 0 28px 24px;
  border-left: 2px solid #e2e5dc;
  cursor: pointer;
}

main .scroll-story .ss-beat + .ss-beat {
  border-top: 1px solid #eceee7;
}

main .scroll-story .ss-beat-num {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5b6156;
  font-variant-numeric: tabular-nums;
}

main .scroll-story .ss-beat h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 560;
  color: #3f443b;
}

main .scroll-story .ss-beat p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.48;
  color: #52574d;
  max-width: 34ch;
}

main .scroll-story.is-scroll-driven .ss-beat {
  min-height: 196px;
  align-content: center;
}

main .scroll-story.is-scroll-driven .ss-beat[data-beat-active="true"] {
  border-left-color: #151613;
}

main .scroll-story.is-scroll-driven .ss-beat[data-beat-active="true"] .ss-beat-num {
  color: #151613;
}

main .scroll-story.is-scroll-driven .ss-beat[data-beat-active="true"] h3 {
  color: #151613;
  font-weight: 650;
}

main .scroll-story.is-scroll-driven .ss-beat[data-beat-active="true"] p {
  color: #2b2f28;
}

/* Sticky hardware stage on right */
main .scroll-story .ss-sticky-frame {
  min-width: 0;
}

main .scroll-story.is-scroll-driven .ss-sticky-frame {
  position: sticky;
  top: 96px;
}

/* ============================================================
   MATTE-BLACK APPLE HARDWARE STAGE
   ============================================================ */
main .scroll-story .ss-cinema {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  padding: 20px 28px 24px;
  border-radius: 28px;
  overflow: hidden;
  color: #f6f7f2;
  background:
    radial-gradient(ellipse 68% 60% at 50% -10%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 38%, transparent 72%),
    radial-gradient(ellipse 85% 40% at 50% 106%, rgba(255, 255, 255, 0.045) 0%, transparent 65%),
    linear-gradient(180deg, #171916 0%, #101210 62%, #0b0d0b 100%);
  border: 1px solid rgba(246, 247, 242, 0.14);
  box-shadow:
    0 34px 72px -28px rgba(15, 17, 14, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

main .scroll-story .ss-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 12px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9ba194;
  font-variant-numeric: tabular-nums;
}

main .scroll-story:not(.is-scroll-driven) .ss-stage-top {
  display: none;
}

/* Default (no-JS / reduced-motion): every screen & device cleanly visible */
main .scroll-story:not(.is-scroll-driven) .ss-cinema-device {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  padding: 8px 0;
}

main .scroll-story:not(.is-scroll-driven) .ss-iphone {
  margin-bottom: 0;
  aspect-ratio: auto;
  width: min(100%, 330px);
  justify-self: center;
}

main .scroll-story:not(.is-scroll-driven) .ss-mb-lid {
  aspect-ratio: auto;
}

main .scroll-story:not(.is-scroll-driven) .ss-app-view + .ss-app-view {
  border-top: 1px solid #e3e6dd;
}

/* Active JS (.is-scroll-driven): fixed-height Apple cinema hardware frame */
main .scroll-story.is-scroll-driven .ss-cinema {
  height: 500px;
  min-height: 500px;
  max-height: 500px;
  padding-bottom: 0;
}

main .scroll-story.is-scroll-driven .ss-cinema-office {
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  padding-bottom: 24px;
}

main .scroll-story.is-scroll-driven .ss-cinema-device {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  perspective: 1400px;
}

main .scroll-story.is-scroll-driven .ss-cinema-device > [data-story-device] {
  grid-area: 1 / 1;
}

main .scroll-story.is-scroll-driven [data-device-active="false"] {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 10px, 0) scale(0.985);
}

main .scroll-story.is-scroll-driven [data-device-active="true"] {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* ============================================================
   TRUE-PROPORTION TITANIUM iPHONE (1 : 2.09 LOCKED, >= 12px TEXT)
   ============================================================ */
main .scroll-story .ss-iphone {
  position: relative;
  width: 294px;
  max-width: 100%;
  aspect-ratio: 715 / 1496;
  height: auto;
  align-self: end;
  margin-bottom: -178px;
  background: linear-gradient(155deg, #7c8076 0%, #2d302b 36%, #565a51 74%, #1b1d19 100%);
  padding: 3px;
  border-radius: 14.5% / 7%;
  box-shadow:
    0 38px 72px -14px rgba(0, 0, 0, 0.86),
    0 12px 24px -6px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

main .scroll-story .ss-iphone::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 17%;
  width: 3px;
  height: 18%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(
    180deg,
    #6a6e65 0%,
    #3d4139 14%,
    transparent 15%,
    transparent 24%,
    #6a6e65 25%,
    #3d4139 58%,
    transparent 59%,
    transparent 67%,
    #6a6e65 68%,
    #3d4139 100%
  );
  pointer-events: none;
}

main .scroll-story .ss-iphone::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 24%;
  width: 3px;
  height: 12%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #6e7269 0%, #383c35 100%);
  pointer-events: none;
}

main .scroll-story .ss-iphone-bezel {
  width: 100%;
  height: 100%;
  background: #070807;
  padding: 3.4%;
  border-radius: 13.8% / 6.7%;
  display: flex;
}

main .scroll-story .ss-iphone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #151613;
  border-radius: 11.4% / 5.5%;
  padding: 13px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

main .scroll-story .ss-ios-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  color: #151613;
  font-variant-numeric: tabular-nums;
}

main .scroll-story .ss-ios-clock {
  padding-left: 4px;
}

main .scroll-story .ss-island {
  position: relative;
  width: 78px;
  height: 21px;
  background: #070807;
  border-radius: 999px;
}

main .scroll-story .ss-island::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3c423a 0%, #141714 65%, #070807 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

main .scroll-story .ss-ios-icons {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #151613;
  padding-right: 2px;
}

main .scroll-story .ss-ios-icons svg {
  display: block;
}

main .scroll-story .ss-ios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e7e9e1;
}

main .scroll-story .ss-ios-contact-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

main .scroll-story .ss-ios-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f332c 0%, #171916 100%);
  color: #f6f7f2;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

main .scroll-story .ss-ios-contact {
  display: grid;
  gap: 1px;
}

main .scroll-story .ss-ios-contact strong {
  font-size: 13.5px;
  font-weight: 650;
  color: #151613;
  line-height: 1.15;
}

main .scroll-story .ss-ios-contact span {
  font-size: 12px;
  color: #5a6055;
}

main .scroll-story .ss-ios-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f2f3ec;
  color: #151613;
  flex-shrink: 0;
}

main .scroll-story .ss-ios-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 9px;
  padding-top: 2px;
}

main .scroll-story .ss-ios-pane {
  display: flex;
  flex-direction: column;
  gap: 9px;
  will-change: transform, opacity;
}

main .scroll-story .ss-ios-time {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b7166;
  letter-spacing: 0.02em;
}

main .scroll-story .ss-bubble-in {
  align-self: flex-start;
  max-width: 88%;
  background: #eff0ea;
  color: #151613;
  padding: 10px 13px;
  border-radius: 17px 17px 17px 4px;
  font-size: 13.5px;
  line-height: 1.38;
}

main .scroll-story .ss-bubble-out {
  align-self: flex-end;
  max-width: 92%;
  background: #151613;
  color: #ffffff;
  padding: 10px 13px;
  border-radius: 17px 17px 4px 17px;
  font-size: 13px;
  line-height: 1.38;
}

main .scroll-story .ss-ios-intake {
  border: 1px solid #e2e5dc;
  background: #f8f9f5;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  font-size: 12px;
  color: #4b5046;
}

main .scroll-story .ss-ios-intake strong {
  color: #151613;
  font-size: 13px;
  font-weight: 650;
}

main .scroll-story .ss-ios-approve {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px 6px 13px;
  border-radius: 999px;
  border: 1px solid #d6d9ce;
  background: #fafaf8;
  font-size: 12px;
  color: #4b5046;
  margin-top: 2px;
}

main .scroll-story .ss-ios-approve strong {
  background: var(--ss-lime);
  color: #151613;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   TRUE-PROPORTION SPACE BLACK MACBOOK PRO (IDENTICAL SHAPE EVERYWHERE)
   ============================================================ */
main .scroll-story .ss-macbook,
.team-offer .scroll-story .ss-macbook {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
  padding: 0;
  margin: 0;
}

main .scroll-story .ss-mb-lid {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background: linear-gradient(155deg, #64685f 0%, #1d1f1c 46%, #40443c 100%);
  padding: 0.45%;
  border-radius: 16px 16px 4px 4px;
  box-shadow:
    0 34px 64px -16px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform-origin: center bottom;
  will-change: transform;
  transform: scale(1);
}

main .scroll-story .ss-mb-bezel {
  width: 100%;
  height: 100%;
  background: #070807;
  padding: 2.2% 2.2% 2.6%;
  border-radius: 14px 14px 2px 2px;
  position: relative;
  display: flex;
}

main .scroll-story .ss-mb-notch {
  width: 11.5%;
  height: 3.3%;
  background: #070807;
  border-radius: 0 0 7px 7px;
  position: absolute;
  top: 2.1%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

main .scroll-story .ss-mb-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #151613;
  border-radius: 7px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

main .scroll-story .ss-mb-base {
  position: relative;
  width: 108%;
  aspect-ratio: 48 / 1;
  height: auto;
  background: linear-gradient(180deg, #6a6e65 0%, #343831 44%, #181a17 100%);
  border-radius: 2px 2px 11px 11px;
  box-shadow: 0 22px 40px -10px rgba(0, 0, 0, 0.84);
}

main .scroll-story .ss-mb-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14%;
  height: 34%;
  background: #141613;
  border-radius: 0 0 5px 5px;
}

main .scroll-story .ss-mac-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px 8px;
  background: #f5f6f1;
  border-bottom: 1px solid #e3e6dd;
}

main .scroll-story .ss-mac-dots {
  display: inline-flex;
  gap: 6px;
}

main .scroll-story .ss-mac-dots i {
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: #c5cabd;
  display: block;
}

main .scroll-story .ss-mac-title {
  font-size: 12px;
  font-weight: 650;
  color: #151613;
}

main .scroll-story .ss-mac-meta {
  font-size: 12px;
  font-family: var(--font-mono, ui-monospace, monospace);
  color: #52574d;
}

main .scroll-story .ss-app-view {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  will-change: transform, opacity;
}

main .scroll-story .ss-app-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: #555b50;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono, ui-monospace, monospace);
}

main .scroll-story .ss-app-title {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #151613;
}

main .scroll-story .ss-app-cal {
  justify-content: flex-start;
  gap: 12px;
  padding-top: 15px;
}

main .scroll-story .ss-cal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

main .scroll-story .ss-cal-head .ss-app-title {
  margin-top: 3px;
}

main .scroll-story .ss-cal-grid {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  border-top: 1px solid #e5e8df;
  padding-top: 10px;
}

main .scroll-story .ss-cal-times {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 8px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: #6b7166;
  font-variant-numeric: tabular-nums;
}

main .scroll-story .ss-cal-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

main .scroll-story .ss-cal-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

main .scroll-story .ss-cal-col-hd {
  font-size: 12px;
  font-weight: 650;
  color: #6b7165;
  padding-bottom: 4px;
  border-bottom: 1px solid #eceee7;
}

main .scroll-story .ss-cal-col.is-today .ss-cal-col-hd {
  color: #151613;
  border-bottom-color: #151613;
}

main .scroll-story .ss-cal-ev {
  border-radius: 10px;
  padding: 9px 10px;
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.28;
}

main .scroll-story .ss-cal-ev-muted {
  background: #f5f6f1;
  border: 1px solid #e4e7de;
  color: #555b50;
  margin-top: 12px;
}

main .scroll-story .ss-cal-ev-muted strong {
  color: #151613;
  font-size: 12.5px;
}

main .scroll-story .ss-cal-ev-booked {
  background: #151613;
  color: #ffffff;
  margin-top: 4px;
  box-shadow: 0 10px 20px -10px rgba(21, 22, 19, 0.55);
}

main .scroll-story .ss-cal-ev-booked span {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: #d6d9ce;
}

main .scroll-story .ss-cal-ev-booked strong {
  font-size: 13px;
  font-weight: 650;
  color: #ffffff;
}

main .scroll-story .ss-app-quote {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid #151613;
  background: #f5f6f1;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.42;
  color: #151613;
}

main .scroll-story .ss-inv-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e2e5dc;
  font-variant-numeric: tabular-nums;
}

main .scroll-story .ss-inv-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e2e5dc;
  font-size: 14px;
  color: #151613;
}

main .scroll-story .ss-app-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  color: #52574d;
}

main .scroll-story .ss-pill-ok {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #151613;
  background: #ffffff;
  color: #151613;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

main .scroll-story .ss-pill-lime {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ss-lime);
  color: #151613;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Offer 3D role markers above MacBook */
main .scroll-story .ss-orbs-stage {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 14px;
  justify-items: center;
  align-content: center;
}

main .scroll-story .ss-orbs-row {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

main .scroll-story .ss-orb {
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(246, 247, 242, 0.14);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.56;
  will-change: transform, opacity;
}

main .scroll-story .ss-orb[data-orb-active="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(246, 247, 242, 0.45);
  opacity: 1;
}

main .scroll-story .ss-orb img {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

main .scroll-story .ss-orb strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* ============================================================
   COMPOSITOR-ONLY 240ms CROSSFADE (STRICTLY NO-PREFERENCE)
   ============================================================ */
@keyframes ss-pane-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  main .scroll-story.is-scroll-driven .ss-iphone,
  main .scroll-story.is-scroll-driven .ss-macbook,
  main .scroll-story.is-scroll-driven .ss-orb {
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease-out;
  }

  main .scroll-story.is-scroll-driven .ss-ios-pane:not([hidden]),
  main .scroll-story.is-scroll-driven .ss-app-view:not([hidden]) {
    animation: ss-pane-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  main .scroll-story .ss-orb {
    opacity: 1;
  }
}

/* ============================================================
   QUIET FOOTER ROW + SECONDARY OUTLINE BOOK A CALL CTA
   ============================================================ */
main .scroll-story .ss-foot {
  margin-top: clamp(28px, 3.4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid #e5e8df;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

main .scroll-story .ss-foot p {
  margin: 0;
  font-size: 14px;
  color: var(--ss-muted);
}

main .scroll-story .ss-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: transparent;
  color: #151613;
  border: 1.5px solid #151613;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

main .scroll-story .ss-cta:hover {
  background: #151613;
  color: #f6f7f2;
}

main .scroll-story .ss-cta:focus-visible {
  outline: 3px solid #a3e635;
  outline-offset: 2px;
}

/* ============================================================
   MOBILE (<= 959px): STICKY STAGE TOP <= 52svh + CALM CHAPTERS BELOW
   (ZERO EMPTY VOID IN STILLS, 24px GUTTERS, >= 12px DEVICE TEXT)
   ============================================================ */
@media (max-width: 959px) {
  main .scroll-story {
    padding-block: 64px;
  }

  main .scroll-story .ss-wrap {
    width: calc(100% - 48px);
  }

  main .scroll-story .ss-head-center {
    gap: 8px;
    margin-bottom: 20px;
  }

  main .scroll-story .ss-editorial {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Hardware stage sits FIRST (top sticky), chapters scroll smoothly below */
  main .scroll-story .ss-sticky-frame {
    order: -1;
    z-index: 6;
    background: var(--ss-paper);
    padding-bottom: 6px;
  }

  main .scroll-story.is-scroll-driven .ss-sticky-frame {
    position: sticky;
    top: 68px;
  }

  main .scroll-story.is-scroll-driven .ss-cinema,
  main .scroll-story.is-scroll-driven .ss-cinema-office {
    height: min(336px, 48svh);
    min-height: 0;
    max-height: 336px;
    padding: 12px 14px 10px;
    border-radius: 22px;
  }

  main .scroll-story.is-scroll-driven .ss-cinema:not(.ss-cinema-office) {
    padding-bottom: 0;
  }

  main .scroll-story .ss-stage-top {
    padding: 0 2px 6px;
  }

  main .scroll-story.is-scroll-driven .ss-beats {
    padding: 4px 0 12px;
  }

  main .scroll-story.is-scroll-driven .ss-beat {
    min-height: 156px;
    padding: 20px 0 20px 18px;
  }

  main .scroll-story .ss-beat h3 {
    font-size: 20px;
  }

  main .scroll-story .ss-beat p {
    font-size: 14.5px;
    line-height: 1.4;
  }

  main .scroll-story.is-scroll-driven .ss-iphone {
    width: 244px;
    aspect-ratio: 715 / 1496;
    height: auto;
    margin-bottom: -228px;
  }

  main .scroll-story .ss-iphone-screen {
    padding: 7px 10px 8px;
    gap: 5px;
  }

  main .scroll-story .ss-island {
    width: 62px;
    height: 16px;
  }

  main .scroll-story .ss-ios-avatar {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  main .scroll-story .ss-ios-header {
    padding-bottom: 4px;
  }

  main .scroll-story .ss-ios-contact strong {
    font-size: 12.5px;
  }

  main .scroll-story .ss-ios-contact span,
  main .scroll-story .ss-ios-tag,
  main .scroll-story .ss-ios-time {
    font-size: 12px;
  }

  main .scroll-story .ss-ios-body,
  main .scroll-story .ss-ios-pane {
    gap: 5px;
  }

  main .scroll-story .ss-ios-intake {
    padding: 6px 9px;
    font-size: 12px;
  }

  main .scroll-story .ss-ios-intake strong {
    font-size: 12px;
  }

  main .scroll-story .ss-bubble-in,
  main .scroll-story .ss-bubble-out {
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1.26;
  }

  main .scroll-story .ss-ios-approve {
    padding: 3px 5px 3px 9px;
    font-size: 12px;
  }

  main .scroll-story .ss-ios-approve strong {
    padding: 3px 9px;
    font-size: 12px;
  }

  main .scroll-story.is-scroll-driven .ss-macbook,
  .team-offer .scroll-story.is-scroll-driven .ss-macbook {
    width: min(100%, 286px);
    padding: 0;
  }

  main .scroll-story .ss-mb-lid {
    aspect-ratio: 16 / 10;
    border-radius: 12px 12px 3px 3px;
  }

  main .scroll-story .ss-mb-bezel {
    border-radius: 10px 10px 2px 2px;
  }

  main .scroll-story .ss-mac-bar {
    padding: 5px 9px 4px;
  }

  main .scroll-story .ss-mac-dots i {
    width: 6px;
    height: 6px;
  }

  main .scroll-story .ss-mac-title,
  main .scroll-story .ss-mac-meta {
    font-size: 12px;
  }

  main .scroll-story .ss-app-view {
    padding: 6px 10px;
    gap: 5px;
  }

  main .scroll-story .ss-app-cal {
    padding-top: 5px;
    gap: 5px;
  }

  main .scroll-story .ss-app-kicker {
    font-size: 12px;
  }

  main .scroll-story .ss-app-title {
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  main .scroll-story .ss-app-quote {
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1.24;
  }

  main .scroll-story .ss-inv-rows li {
    padding: 3px 0;
    font-size: 12px;
  }

  main .scroll-story .ss-app-foot {
    font-size: 12px;
    gap: 5px;
  }

  main .scroll-story .ss-pill-ok,
  main .scroll-story .ss-pill-lime {
    padding: 2px 8px;
    font-size: 12px;
  }

  main .scroll-story .ss-cal-grid {
    grid-template-columns: 36px 1fr;
    gap: 5px;
    padding-top: 4px;
  }

  main .scroll-story .ss-cal-times {
    padding-top: 16px;
    padding-bottom: 2px;
    font-size: 12px;
  }

  main .scroll-story .ss-cal-times span:last-child {
    display: none;
  }

  main .scroll-story .ss-cal-cols {
    grid-template-columns: 1fr 1.55fr;
    gap: 5px;
  }

  main .scroll-story .ss-cal-col:last-child {
    display: none;
  }

  main .scroll-story .ss-cal-col-hd {
    font-size: 12px;
    padding-bottom: 2px;
  }

  main .scroll-story .ss-cal-ev {
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.18;
  }

  main .scroll-story .ss-cal-ev-muted {
    margin-top: 3px;
  }

  main .scroll-story .ss-cal-ev-muted strong,
  main .scroll-story .ss-cal-ev-booked strong,
  main .scroll-story .ss-cal-ev-booked span {
    font-size: 12px;
  }

  main .scroll-story .ss-orbs-stage {
    gap: 6px;
    width: 100%;
  }

  main .scroll-story .ss-orbs-row {
    width: 100%;
    max-width: 100%;
    gap: 4px;
  }

  main .scroll-story .ss-orb {
    min-width: 0;
    padding: 4px 5px;
    gap: 4px;
    border-radius: 10px;
  }

  main .scroll-story .ss-orb img {
    width: 18px;
    height: 18px;
  }

  main .scroll-story .ss-orb strong {
    font-size: 12px;
  }

  main .scroll-story .ss-foot {
    margin-top: 16px;
  }
}

/* Landscape / sideways phone: unpin sticky stage and never trap height */
@media (max-height: 520px) and (orientation: landscape) {
  main .scroll-story.is-scroll-driven .ss-sticky-frame {
    position: static;
  }

  main .scroll-story.is-scroll-driven .ss-cinema,
  main .scroll-story.is-scroll-driven .ss-cinema-office {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 16px;
  }
}
