/* Preview 2026-11-27: premium scroll choreography for /app. */

/* Keep the page dark whatever an embedding host paints. */
html,
body {
  background: #05070a !important;
  color: var(--ink) !important;
}

/* ======================= 1. Opening: the turning iPhone ======================= */
.story {
  position: relative;
  height: calc(var(--n) * 95svh + 100svh);
  padding: 0 !important;
}
.story .pin {
  --glow: 62, 207, 142;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 24px;
  padding: 88px max(24px, calc((100vw - 1240px) / 2)) 24px;
}
.story .aura {
  position: absolute;
  inset: -20% -10% -20% 30%;
  background:
    radial-gradient(closest-side at 62% 52%, rgba(var(--glow), 0.28), transparent 70%),
    radial-gradient(closest-side at 40% 80%, rgba(var(--glow), 0.1), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.story .bignum {
  position: absolute;
  right: max(8px, calc((100vw - 1400px) / 2));
  bottom: -0.18em;
  font: 800 clamp(180px, 30vw, 420px) / 1 var(--sans);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--glow), 0.16);
  pointer-events: none;
  user-select: none;
}
.story .col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.story .steps {
  position: relative;
  height: min(30em, 60svh);
}
.story .step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform, opacity;
}
.story .step .eyebrow {
  color: rgb(var(--glow));
}
.story .step h1,
.story .step h2 {
  font-size: clamp(46px, 5.6vw, 86px);
}
.story .index {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.story .index li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mute);
  font: 500 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story .index i {
  position: relative;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #ffffff1f;
  overflow: hidden;
}
.story .index i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(var(--glow));
  transform: scaleX(var(--f, 0));
  transform-origin: left;
}
.story .index span {
  display: none;
}
.story .index li.on span {
  display: inline;
  color: var(--ink);
}
.story .stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
}
.phone3d {
  transform-style: preserve-3d;
  will-change: transform;
}
.frame.phone.big {
  position: relative;
  width: min(33vw, 45svh, 470px);
  padding: 12px;
  border-radius: 58px;
  background: linear-gradient(145deg, #3a4048 0%, #14181c 22%, #0b0e11 60%, #2a3037 100%);
  box-shadow:
    0 0 0 1px #ffffff26,
    inset 0 0 0 2px #00000099,
    inset 0 2px 1px #ffffff40,
    -30px 60px 120px -20px #000000e6,
    0 0 90px -10px rgba(var(--glow), 0.35);
}
.frame.phone.big .screen {
  position: relative;
  overflow: hidden;
  border-radius: 46px;
  aspect-ratio: 604 / 1056;
  background: #000;
}
.frame.phone.big .screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.frame.phone.big .screen video:first-child {
  opacity: 1;
}
.island {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 50%;
  width: 30%;
  height: 22px;
  border-radius: 12px;
  background: #000;
  transform: translateX(-50%);
}
.sheen {
  position: absolute;
  inset: 12px;
  z-index: 4;
  border-radius: 46px;
  background: linear-gradient(
    var(--sheen, 115deg),
    transparent 35%,
    rgba(255, 255, 255, 0.09) 48%,
    rgba(255, 255, 255, 0.02) 56%,
    transparent 64%
  );
  pointer-events: none;
}
.story .floor {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: 46%;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--glow), 0.35), transparent);
  filter: blur(14px);
  transform: translateX(-50%);
}

/* ======================= 2. Duo: unfold, tour, then the toolbox ======================= */
.duo-story {
  position: relative;
  height: 620svh;
  padding: 0 !important;
}
.duo-story .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.duo-story .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: #000;
  will-change: transform, opacity;
}
.duo-story .scene-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 40%, #05070a 100%),
    linear-gradient(180deg, #05070a 0%, transparent 30%, transparent 75%, #05070a 100%);
  pointer-events: none;
}
.duo-story .intro {
  position: absolute;
  left: max(24px, calc((100vw - 1240px) / 2));
  top: 50%;
  width: min(32vw, 480px);
  text-align: left;
  transform: translateY(-50%);
  will-change: transform, opacity;
}
.duo-story .intro .lede {
  margin: 0 !important;
}
@media (max-width: 860px) {
  .duo-story .intro {
    top: 96px;
    left: 24px;
    right: 24px;
    width: auto;
    text-align: center;
    transform: none;
  }
}
.duo-story .tour {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 96px max(24px, calc((100vw - 1200px) / 2)) 40px;
  opacity: 0;
  pointer-events: none;
}
.duo-story .tour.on {
  pointer-events: auto;
}
.duo-story .labels {
  list-style: none;
  margin: 0;
  padding: 0;
}
.duo-story .labels li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-left: 2px solid #ffffff1a;
  color: var(--mute);
  cursor: pointer;
  transition: color 0.4s ease;
}
.duo-story .labels li::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mint);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.duo-story .labels li.on {
  color: var(--ink);
}
.duo-story .labels li.on::before {
  transform: scaleY(1);
}
.duo-story .labels b {
  display: block;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.duo-story .labels .more-tools b {
  color: var(--mint);
}
.duo-story .labels span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.5s ease;
}
.duo-story .labels li.on span {
  max-height: 5em;
  opacity: 1;
}
.duo-story .stage .screen {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #000;
}
.duo-story .stage .screen video {
  display: block;
  width: 100%;
  border-radius: 0;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    filter 0.6s ease;
}
.duo-story .stage .screen video:not(:first-child) {
  position: absolute;
  inset: 0;
}
.duo-story .stage .screen video.on {
  opacity: 1;
}
.duo-story .stage.walled .screen video.on {
  filter: blur(4px);
}
.wall {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5% 5%;
  background:
    radial-gradient(120% 90% at 50% 0%, #3ecf8e1c, transparent 60%),
    linear-gradient(180deg, #05070acc, #05070af2);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.walled .wall {
  opacity: 1;
}
.wgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 4%;
  width: 100%;
}
.wcol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 14px;
  border-left: 1px solid #ffffff14;
}
.wgroup p {
  margin: 0 0 10px;
  font: 600 10px var(--mono);
  letter-spacing: 0.16em;
  color: var(--mint);
}
.wgroup ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.wgroup li {
  position: relative;
  padding-left: 12px;
  font: 500 13px / 1.25 var(--sans);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease calc(var(--i) * 22ms),
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 22ms);
}
.wgroup li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #3ecf8e;
  box-shadow: 0 0 6px #3ecf8e99;
}
.walled .wgroup li {
  opacity: 1;
  transform: none;
}

/* ======================= Shared: headline lines, devices rising ======================= */
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.ln > span {
  display: block;
  background: linear-gradient(180deg, #ffffff 30%, #9aa3ae 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(105%);
  transition: transform 1s cubic-bezier(0.2, 0.75, 0.1, 1);
}
.lines-in .ln > span {
  transform: none;
}
.ln:nth-child(2) > span {
  transition-delay: 0.08s;
}
.ln:nth-child(3) > span {
  transition-delay: 0.16s;
}
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s ease 0.25s,
    transform 0.9s cubic-bezier(0.2, 0.75, 0.1, 1) 0.25s;
}
.lines-in .rise {
  opacity: 1;
  transform: none;
}
.lift {
  perspective: 1400px;
}
.watch-stage > .frame {
  opacity: 0;
  transform: translateY(90px) rotate(-8deg) scale(0.86);
  transition:
    opacity 1.1s ease,
    transform 1.4s cubic-bezier(0.16, 0.8, 0.1, 1);
}
.lift.in.watch-stage > .frame {
  opacity: 1;
  transform: none;
}
.frame {
  box-shadow:
    0 0 0 1px #ffffff1c,
    inset 0 1px 0 #ffffff2e,
    inset 0 -1px 0 #00000080,
    0 40px 120px #000000c0;
}

/* ======================= 5. Apple Watch ======================= */
.wrist {
  position: relative;
  overflow: hidden;
}
.wrist::before {
  content: '';
  position: absolute;
  inset: 25% 20% 0;
  background: radial-gradient(closest-side, #3ecf8e2e, transparent 70%);
  pointer-events: none;
}
.wrist-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 56px;
  margin-top: 64px;
}
.wrist .kicker {
  margin: 0 0 18px;
  font: 500 12px var(--mono);
  letter-spacing: 0.16em;
  color: var(--mint);
}
.wrist .feat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.wrist .feat li {
  padding: 16px 18px;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff0d, #ffffff03);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateX(var(--from, -24px));
  transition:
    opacity 0.7s ease calc(0.5s + var(--i) * 0.12s),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) calc(0.5s + var(--i) * 0.12s),
    border-color 0.3s ease;
}
.wrist .feat.right li {
  --from: 24px;
}
.wrist .feat li:hover {
  border-color: #3ecf8e59;
}
.wrist.in .feat li {
  opacity: 1;
  transform: none;
}
.wrist .feat b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.wrist .feat span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mid);
}
.wrist .feat.left {
  text-align: right;
}
.watch-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.frame.watch.big {
  width: min(330px, 70vw);
  padding: 16px;
  border-radius: 68px;
  background: linear-gradient(150deg, #3b4148, #121519 40%, #0a0c0e 70%, #2b3138);
}
.watch-stack {
  position: relative;
  overflow: hidden;
  border-radius: 52px;
  aspect-ratio: 416 / 496;
  background: #000;
}
.watch-stack .ws {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.watch-stack .ws.on {
  opacity: 1;
}
.watch-face i {
  position: absolute;
  inset: 0;
  background: url(v/watch-alerts.png) center / 100% 100% no-repeat;
}
.watch-face .wf-top {
  clip-path: inset(0 0 76.4% 0);
}
.watch-face .wf-card {
  clip-path: inset(23.6% 0 0 0);
  opacity: 0;
  transform: translateY(42%) scale(0.96);
  transition:
    opacity 0.6s ease 0.5s,
    transform 0.8s cubic-bezier(0.18, 0.9, 0.2, 1.08) 0.5s;
}
.watch-face.on .wf-card {
  opacity: 1;
  transform: none;
}
.watch-face .wf-buzz {
  position: absolute;
  inset: 0;
  border-radius: 52px;
  box-shadow: inset 0 0 0 2px #3ecf8e;
  opacity: 0;
  pointer-events: none;
}
.watch-face.on .wf-buzz {
  animation: buzz 1.2s ease 0.55s 1;
}
@keyframes buzz {
  25% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}
.ws-dots {
  display: flex;
  gap: 8px;
}
.ws-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff2e;
  transition: background 0.3s ease;
}
.ws-dots i.on {
  background: var(--mint);
}

/* ======================= Lineup: glass cards ======================= */
.cards.glass {
  max-width: 1100px;
  margin-inline: auto;
  gap: 20px;
}
.gcard {
  position: relative;
  padding: 28px 26px 26px !important;
  border: 1px solid transparent !important;
  border-radius: 24px !important;
  background:
    radial-gradient(120% 80% at 100% 0%, #3ecf8e24, transparent 55%) padding-box,
    linear-gradient(165deg, #151b21, #0a0d10) padding-box,
    linear-gradient(160deg, #3ecf8e66, #ffffff14 35%, #ffffff08 70%, #3ecf8e33) border-box !important;
  box-shadow: 0 30px 80px -30px #000000e6;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
}
.gcard:nth-child(2) {
  transition-delay: 0.12s;
}
.gcard:nth-child(3) {
  transition-delay: 0.24s;
}
.lines-in .gcard {
  opacity: 1;
  transform: none;
}
.gcard:hover {
  box-shadow:
    0 30px 80px -30px #000000e6,
    0 0 60px -20px #3ecf8e66;
}
.gcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, #ffffff0d 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 1.2s ease;
  pointer-events: none;
}
.gcard:hover::after {
  transform: translateX(100%);
}
.ghead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.gicon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(160deg, #3ecf8e33, #3ecf8e0d);
  border: 1px solid #3ecf8e4d;
  color: var(--mint);
}
.gicon svg {
  width: 22px;
  height: 22px;
}
.gkick {
  font: 500 11px var(--mono);
  letter-spacing: 0.16em;
  color: var(--mint);
}
.gcard h3 {
  margin: 0 0 8px !important;
  font-size: 26px !important;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.gcard > p {
  margin: 0 !important;
  color: var(--mid);
  font-size: 15px;
  line-height: 1.5;
}
.gstats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 18px;
  border-top: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
}
.gstats div {
  padding: 14px 0;
}
.gstats div + div {
  padding-left: 16px;
  border-left: 1px solid #ffffff14;
}
.gstats b {
  display: block;
  font: 700 30px / 1 var(--sans);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, #9aa3ae);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gstats span {
  display: block;
  margin-top: 6px;
  font: 500 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.gcard ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.gcard li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--mid);
}
.gcard li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3ecf8e26
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233ecf8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ======================= Small screens ======================= */
@media (max-width: 860px) {
  .story .pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
    padding-top: 80px;
  }
  .story .steps {
    height: 13.5em;
  }
  .story .step h1,
  .story .step h2 {
    font-size: clamp(30px, 8vw, 42px);
    margin-bottom: 8px;
  }
  .story .step .lede {
    font-size: 15px;
  }
  .story .step .cta-row {
    margin-top: 14px;
  }
  .story .col {
    gap: 10px;
  }
  .frame.phone.big {
    width: min(56vw, 30svh);
    padding: 8px;
    border-radius: 38px;
  }
  .frame.phone.big .screen,
  .sheen {
    border-radius: 31px;
  }
  .sheen {
    inset: 8px;
  }
  .island {
    top: 14px;
    height: 14px;
  }
  .duo-story .tour {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 16px;
    padding-top: 90px;
  }
  .duo-story .labels {
    order: 1;
  }
  .duo-story .labels li {
    padding: 6px 0 6px 14px;
  }
  .duo-story .labels b {
    font-size: 15px;
  }
  .duo-story .labels span {
    font-size: 13px;
  }
  .wgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 4%;
  }
  .wgroup li {
    font-size: 9px;
  }
  .wgroup p {
    font-size: 8px;
    margin-bottom: 5px;
  }
  .wgroup ul {
    gap: 3px;
  }
  .wrist-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wrist .feat.left {
    text-align: left;
    order: 2;
  }
  .watch-stage {
    order: 1;
  }
  .wrist .feat.right {
    order: 3;
  }
}

/* ======================= Reduced motion: finished states ======================= */
@media (prefers-reduced-motion: reduce) {
  .ln > span,
  .rise,
  .watch-stage > .frame,
  .wrist .feat li,
  .gcard,
  .watch-face .wf-card,
  .wgroup li {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Auto play control */
.autoplay {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 12px 18px 12px 14px;
  border: 1px solid #ffffff26;
  border-radius: 14px;
  background: #0b0f13d9;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  color: var(--ink);
  font: 600 14px var(--sans);
  cursor: pointer;
  box-shadow: 0 12px 40px #00000099;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.autoplay:hover {
  border-color: #3ecf8e80;
  transform: translateY(-1px);
}
.autoplay:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.autoplay svg {
  width: 16px;
  height: 16px;
  fill: var(--mint);
}
.autoplay .ic-pause,
.autoplay.on .ic-play {
  display: none;
}
.autoplay.on .ic-pause {
  display: inline;
}
.autoplay .ap-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
}
/* Sit above the cookie bar while it is showing (the button follows it in the DOM). */
.consent:not([hidden]) ~ .autoplay {
  bottom: calc(84px + env(safe-area-inset-bottom));
}
@media (max-width: 860px) {
  .consent:not([hidden]) ~ .autoplay {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
}

/* Phones held upright: the 16:9 film was cropped to its middle and the Duo cut off
   (owner 2026-11-27). Use the square cut, framed under the header, copy below it. */
@media (max-width: 860px) and (orientation: portrait) {
  .landing {
    background: #05070a;
  }
  .landing-film {
    inset: auto 0 auto 0;
    top: 64px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .landing-scrim {
    background: linear-gradient(
      180deg,
      #05070a 0px,
      #05070a00 110px,
      #05070a00 calc(100vw - 30px),
      #05070a calc(100vw + 64px)
    );
  }
  .landing-copy {
    bottom: max(56px, 7svh);
  }
}
@media (max-width: 860px) and (orientation: portrait) {
  .landing-copy {
    top: calc(64px + 100vw + 4px);
    bottom: auto;
  }
  .landing-copy h1 {
    font-size: clamp(30px, 8.6vw, 40px);
  }
  .landing-copy .cta-row {
    margin-top: 18px;
  }
  /* No Auto play on the phone opening: pinned anywhere it met the headline or
     the film once Safari's safe area and toolbars moved things (2026-11-28). It
     appears after "Find out more", where it scrolls the story. */
  .gate .autoplay {
    display: none;
  }
}

/* Phones held upright: the opening is a plain column (film, copy, 21+ line) and
   never absolute pieces pinned to the screen edges. iOS Safari's toolbars leave
   far less height than Android Chrome, so the pinned 21+ line landed under
   "Find out more" on iPhone while a Pixel looked fine (Dante, 2026-11-28). In
   flow, nothing can overlap; the opening just grows past one screen if it must. */
@media (max-width: 860px) and (orientation: portrait) {
  .landing {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    /* Only the top: the generic section side padding would inset the film and
       double the copy's own 24px margin. */
    padding: 64px 0 0;
  }
  .landing-film {
    position: relative;
    inset: auto;
    top: auto;
    flex: none;
  }
  .landing-copy {
    position: relative;
    top: auto;
    bottom: auto;
    margin-top: 4px;
  }
  .landing-fine {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: auto 24px 0;
    padding: 28px 0 var(--phone-bottom);
  }
}

/* Phones: the opening iPhone section. Copy stacks compactly at the top and the
   whole phone fits underneath it, sized from the height that is left
   (owner 2026-11-27: the button ran into the index and the phone was cut off). */
@media (max-width: 860px) {
  .story .pin {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 78px 22px var(--phone-bottom);
  }
  .story .col {
    gap: 10px;
    flex: none;
  }
  .story .steps {
    height: 196px;
  }
  .story .step {
    justify-content: flex-start;
  }
  .story .step .eyebrow {
    margin-bottom: 10px;
  }
  .story .step h1,
  .story .step h2 {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 8px;
  }
  .story .step .lede {
    font-size: 14.5px;
    line-height: 1.45;
  }
  .story .index span {
    font-size: 10px;
  }
  .story .stage {
    flex: 1;
    min-height: 0;
    height: auto;
    align-items: center;
  }
  .frame.phone.big {
    width: min(64vw, calc((100svh - 322px - var(--phone-bottom)) / 1.85));
    padding: 7px;
    border-radius: 34px;
  }
  .frame.phone.big .screen,
  .sheen {
    border-radius: 28px;
  }
  .sheen {
    inset: 7px;
  }
  .story .bignum {
    font-size: 150px;
  }
}

/* ======================= The playfield: slip, live tracking, alert in CSS 3D ======================= */
.field3d {
  position: relative;
  height: 420svh;
  padding: 0 !important;
}
.field3d .pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 24px;
  padding: 88px max(24px, calc((100vw - 1240px) / 2)) 24px;
}
.field3d .pin::before {
  content: '';
  position: absolute;
  inset: 10% -10% 0 35%;
  background: radial-gradient(closest-side, #3ecf8e2b, transparent 70%);
  pointer-events: none;
}
.f3-copy {
  position: relative;
  z-index: 2;
  height: min(30em, 60svh);
}
.f3-step {
  position: absolute;
  inset: 0 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: opacity, transform;
}
.f3-step h2 {
  font-size: clamp(42px, 5.2vw, 80px);
}
.f3-index {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.f3-index li {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #ffffff1f;
  transition: background 0.3s ease;
}
.f3-index li.on {
  background: var(--mint);
}
.f3-stage {
  position: relative;
  height: 100%;
  perspective: 1600px;
  perspective-origin: 50% 45%;
}
.f3-space {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.f3-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}
.f3-card .frame.phone {
  width: min(22vw, 34svh, 330px);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #3a4048 0%, #14181c 22%, #0b0e11 60%, #2a3037 100%);
}
.f3-card .frame.phone .screen {
  position: relative;
  overflow: hidden;
  border-radius: 37px;
  background: #000;
}
.f3-card .frame.phone video {
  border-radius: 0;
}
.f3-card .frame.watch {
  width: min(19vw, 30svh, 290px);
  padding: 14px;
  border-radius: 62px;
  background: linear-gradient(150deg, #3b4148, #121519 40%, #0a0c0e 70%, #2b3138);
}
.f3-card .watch-face {
  position: relative;
  overflow: hidden;
  aspect-ratio: 416 / 496;
  background: #000;
  border-radius: 48px;
}
.f3-tag {
  margin: 0;
  font: 500 12px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.f3-card.front .f3-tag {
  opacity: 1;
  color: var(--mint);
}
@media (max-width: 860px) {
  .field3d .pin {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 78px 22px var(--phone-bottom);
  }
  .f3-copy {
    height: 200px;
    flex: none;
  }
  .f3-step {
    justify-content: flex-start;
  }
  .f3-step h2 {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 8px;
  }
  .f3-step .lede {
    font-size: 14.5px;
    line-height: 1.45;
  }
  .f3-stage {
    flex: 1;
    min-height: 0;
  }
  .f3-card .frame.phone {
    width: min(46vw, calc((100svh - 342px - var(--phone-bottom)) / 1.9));
    padding: 7px;
    border-radius: 32px;
  }
  .f3-card .frame.phone .screen {
    border-radius: 26px;
  }
  .f3-card .frame.watch {
    width: min(42vw, calc((100svh - 342px - var(--phone-bottom)) / 1.35));
    padding: 10px;
    border-radius: 46px;
  }
  .f3-card .watch-face {
    border-radius: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .f3-step,
  .f3-card {
    transition: none !important;
  }
}

/* Phones, iPhone AND Android (owner 2026-11-28). iOS Safari floats its address
   bar OVER the bottom of the page, so pinned sections keep their content above
   it; on Android the same room is just breathing space. Auto play is desktop
   only: on a phone it sat on top of the screens it was meant to show. */
@media (max-width: 860px) {
  :root {
    --phone-bottom: calc(env(safe-area-inset-bottom) + 64px);
  }
  .autoplay {
    display: none !important;
  }
}
