/* Remote Mirror LP v2 — structure and motion modelled on a product page with pinned, scrubbed scenes. */
:root {
  --brand: #3355e6;      /* arcion teal: the page's signature color block */
  --brand-d: #1f3bb8;
  --brand-l: #6a8cff;
  --ink: #1c1c1e;
  --sub: #5f5f66;
  --white: #ffffff;
  --paper: #f4f4f6;
  --dark1: #3a3a40;
  --dark2: #19191c;
  --coral: #0b0f33;      /* arcion orange */
  --sky: #67c6f9;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }

/* devices */
.dv-mac, .dv-phone, .dv-ipad { background: #000; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .28); }
.dv-mac { border: 10px solid #1b1b1f; border-bottom-width: 14px; border-radius: 14px; aspect-ratio: 16 / 10; box-sizing: content-box; }
.dv-phone { border: 7px solid #1b1b1f; border-radius: 30px; aspect-ratio: 720 / 1564; box-sizing: content-box; }
.dv-phone.land { aspect-ratio: 1564 / 720; }
.dv-ipad { border: 10px solid #1b1b1f; border-radius: 24px; aspect-ratio: 1100 / 1466; box-sizing: content-box; }
.dv-mac img, .dv-phone img, .dv-ipad img { width: 100%; height: 100%; object-fit: cover; }

/* buttons */
.pill-w, .pill-o { display: inline-flex; align-items: center; gap: 10px; border-radius: 99px; padding: 14px 28px; font-weight: 700; font-size: 16px; text-decoration: none; }
.pill-w { background: #fff; color: var(--brand); box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.pill-w i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 11px; }
.pill-o { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }

/* global header */
.gh { position: sticky; top: 0; z-index: 50; height: 56px; display: flex; align-items: center; gap: 28px; padding: 0 28px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); border-bottom: 1px solid #e6e6ea; }
.gh-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.gh-brand img { width: 28px; height: 28px; border-radius: 7px; }
.gh-nav { display: flex; gap: 22px; margin-left: auto; font-size: 13px; font-weight: 600; }
.gh-nav a { text-decoration: none; color: var(--sub); }
.gh-cta { background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 99px; }

/* 1 hero */
.hero { background: var(--brand); color: #fff; overflow: hidden; }
.hero-in { max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 56px); display: grid; grid-template-columns: 38% 62%; align-items: center; padding: 40px 0 40px 6vw; }
.hero-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero-word { font-size: clamp(54px, 6.4vw, 96px); line-height: .95; font-weight: 900; letter-spacing: -0.03em; margin: 22px 0 28px; }
.hero-date { margin: 0; font-size: 22px; font-weight: 700; }
.hero-date b { font-size: 30px; margin-right: 6px; }
.hero-tag { display: inline-block; margin: 12px 0 30px; font-size: 12px; background: rgba(0, 0, 0, .22); padding: 6px 12px; border-radius: 4px; }
.hero-pic { position: relative; height: 70vh; min-height: 460px; }
.hero-pic .dv-mac { position: absolute; left: 4%; top: 8%; width: 84%; }
.hero-pic .dv-phone { position: absolute; right: 3%; bottom: 2%; width: 22%; }

/* 2 macro */
.macro { background: var(--brand); }
.macro-pin { height: 100vh; display: grid; place-items: center; overflow: hidden; }
.macro-frame { width: 72vw; height: 62vh; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 0 0 14px #fff; }
.macro-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }

/* 3 intro */
.intro { background: var(--brand); color: #fff; position: relative; overflow: hidden; padding: 12vh 0 0; }
.intro-text { max-width: 1240px; margin: 0 auto; padding: 0 6vw; display: flex; align-items: flex-start; gap: 3vw; }
.intro-big { margin: -0.12em 0 0; font-size: clamp(140px, 22vw, 340px); line-height: .82; font-weight: 900; letter-spacing: -0.05em; }
.intro-side h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.12; }
.intro-side p { margin: 26px 0 0; font-size: 15px; line-height: 2; opacity: .95; }
.intro-display { display: flex; justify-content: center; margin-top: 10vh; }
.intro-display .dv-mac { width: min(64vw, 900px); }
.lineup { margin-top: 12vh; position: relative; padding: 0 0 8vh; }
.lineup::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: #fff; z-index: 0; }
.lineup-row { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 3vw; width: max-content; padding: 0 6vw; }
.lineup-row .dv-phone { width: 13vw; max-width: 190px; }
.lineup-row .dv-phone.land { width: 30vw; max-width: 420px; }
.lineup-row .dv-ipad { width: 22vw; max-width: 320px; }
.lineup-row .dv-mac { width: 36vw; max-width: 520px; }

/* 4 lifestyle collage */
.life { background: #fff; padding: 12vh 4vw; overflow: hidden; }
.life-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 2vw; max-width: 1400px; margin: 0 auto; align-items: start; }
.life-col { display: grid; gap: 2vw; }
.life-col.c1 { margin-top: 10vh; }
.life-col.c3 { margin-top: -4vh; }
.life figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--paper); aspect-ratio: 3 / 2; }
.life-col.c2 figure { aspect-ratio: 4 / 5; }
.life figure img { width: 100%; height: 100%; object-fit: cover; }
.life-text { padding: 4vh 0 3vh; }
.life-text h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; }
.life-text p { font-size: 14px; line-height: 2; color: var(--sub); margin: 22px 0 0; }

/* 5 dark film */
.film { background: var(--dark2); color: #fff; }
.film-pin { position: relative; height: 100vh; overflow: hidden; }
.film-bg { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 40%, var(--dark1), var(--dark2) 75%); }
.f-phone { position: absolute; left: 50%; top: 50%; width: 76vw; max-width: 1180px; aspect-ratio: 1564 / 720; border: 12px solid #1b1b1f; border-radius: 48px; background: #000; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.f-phone .scr, .f-phone .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-phone .s2 { opacity: 0; }
.f-copy { position: absolute; z-index: 5; opacity: 0; pointer-events: none; }
.f-copy h2 { font-size: clamp(36px, 4.6vw, 70px); line-height: 1.15; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.f-copy h2 small { font-size: .62em; }
.f-copy p { font-size: 15px; line-height: 2; margin: 22px 0 0; opacity: .9; }
.f-c1 { left: 8vw; top: 50%; transform: translateY(-50%); max-width: 640px; }
.f-c2 { left: 50%; top: 14vh; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.f-c3 { left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; }
.f-c3 h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; }
.f-c4 { left: 7vw; top: 50%; transform: translateY(-50%); max-width: 460px; }
.f-keys { position: absolute; left: 50%; top: 52vh; width: 34vw; max-width: 520px; transform: translateX(-50%); border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
.f-ipad { position: absolute; top: 50%; left: 110vw; width: 30vw; max-width: 460px; aspect-ratio: 1100 / 1466; transform: translateY(-50%); border: 14px solid #1b1b1f; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.f-ipad img { width: 100%; height: 100%; object-fit: cover; }
.more-btn { position: absolute; right: 28px; bottom: 24px; z-index: 6; background: #fff; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 8px 10px 8px 16px; display: inline-flex; gap: 8px; align-items: center; }
.more-btn i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }

/* 6 rotation trail */
.turn { background: var(--dark2); }
.turn-pin { height: 100vh; position: relative; overflow: hidden; background: radial-gradient(70% 70% at 50% 45%, var(--dark1), var(--dark2) 75%); }
.turn-ghosts { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.turn-phone, .tg { position: absolute; left: 0; top: 0; width: 200px; aspect-ratio: 720 / 1564; transform: translate(-50%, -50%); border-radius: 32px; }
.turn-phone { border: 8px solid #1b1b1f; overflow: hidden; background: #000; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.turn-phone img { width: 100%; height: 100%; object-fit: cover; }
.tg { border: 2px solid rgba(255, 255, 255, .18); opacity: 0; }
.turn-white { background: #fff; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4vw; padding: 14vh 6vw; overflow: hidden; }
.tw-pic { position: relative; height: 52vh; }
.tw-pic .tilt { position: absolute; left: 0; top: 10%; width: 80%; }
.tw-pic .tilt2 { position: absolute; right: 3%; bottom: -4%; width: 21%; }
.tw-text h2 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.2; }
.tw-text p { font-size: 15px; line-height: 2; color: var(--sub); margin: 22px 0 0; }

/* 7 logo */
.logo { background: var(--brand); }
.logo-pin { height: 100vh; position: relative; overflow: hidden; display: grid; place-items: center; }
.lg-half { position: absolute; top: 50%; left: 50%; border: 12px solid #fff; border-radius: 22px; }
.lg-half.l { width: 300px; height: 190px; transform: translate(-50%, -50%) translateX(-190px); }
.lg-half.r { width: 96px; height: 196px; border-radius: 26px; transform: translate(-50%, -50%) translateX(220px); background: rgba(255, 255, 255, .15); }
.lg-mark { text-align: center; color: #fff; opacity: 0; transform: scale(.85); }
.lg-mark img { width: 160px; height: 160px; border-radius: 38px; margin: 0 auto 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.lg-mark span { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; }

/* 8 wipe panels */
.wipe-pin { height: 100vh; position: relative; overflow: hidden; }
.panel { position: absolute; inset: 0; overflow: hidden; color: #fff; isolation: isolate; z-index: 0; }
.panel.sky { z-index: 1; }
.panel.coral { background: var(--coral); }
.panel.sky { background: var(--sky); clip-path: inset(0 0 0 100%); }
.pn-big { position: absolute; right: 6vw; top: 12vh; z-index: 3; text-align: right; font-size: clamp(54px, 8vw, 132px); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; }
.pn-big small { display: block; font-size: .36em; letter-spacing: 0; margin: 10px 0 4px; }
.coral .pn-devices { position: absolute; left: -6vw; top: 14vh; width: 62vw; }
.coral .pn-devices .dv-mac { width: 100%; }
.coral .pn-devices .dv-phone { position: absolute; right: -6%; bottom: -14%; width: 24%; }
.pn-note { position: absolute; right: 6vw; bottom: 10vh; width: min(420px, 40vw); z-index: 3; }
.pn-note p { margin: 0; font-size: 14px; line-height: 2; }
.sky .pn-photo { position: absolute; inset: 0; }
.sky .pn-photo img { width: 100%; height: 100%; object-fit: cover; }
.sky .pn-big { left: 6vw; right: auto; text-align: left; top: auto; bottom: 12vh; text-shadow: 0 6px 40px rgba(0, 0, 0, .25); }
.sky .pn-inset { position: absolute; left: 7vw; top: 12vh; width: 15vw; max-width: 220px; z-index: 3; }
.sky .pn-note { right: 6vw; bottom: 10vh; text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* 9 gestures */
.gest { background: #fff; padding: 14vh 4vw 12vh; text-align: center; overflow: hidden; }
.gest-ttl { font-size: clamp(32px, 3.8vw, 56px); }
.gest-stage { position: relative; width: min(980px, 92vw); margin: 6vh auto 0; aspect-ratio: 3 / 2; }
.gest-hand { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.bub { position: absolute; width: 132px; height: 132px; border-radius: 50%; background: #fff; box-shadow: 0 16px 40px rgba(51, 85, 230, .25); display: grid; place-content: center; font-size: 13px; color: var(--sub); line-height: 1.4; opacity: 0; transform: scale(.6); }
.bub b { display: block; color: var(--brand); font-size: 18px; }
.b1 { left: 2%; top: 10%; } .b2 { left: 10%; top: 58%; } .b3 { left: 22%; top: -6%; }
.b4 { right: 3%; top: 8%; } .b5 { right: 9%; top: 56%; } .b6 { right: 22%; top: -8%; }
.gest-lead { font-size: 15px; line-height: 2; color: var(--sub); margin: 6vh 0 0; }

/* 10 modes + spec */
.modes { background: var(--paper); padding-bottom: 12vh; }
.modes-strip { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1vw; height: 34vh; overflow: hidden; }
.modes-strip figure { margin: 0; overflow: hidden; }
.modes-strip img { width: 100%; height: 100%; object-fit: cover; }
.modes-in { max-width: 1180px; margin: 0 auto; padding: 10vh 6vw 0; }
.modes-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.modes-head .num { margin: 0; font-size: 150px; line-height: .8; font-weight: 900; color: var(--brand); }
.modes-head h2 { font-size: 40px; line-height: 1.1; }
.modes-lead { flex: 1 1 320px; margin: 0 0 6px 30px; font-size: 14px; line-height: 2; color: var(--sub); }
.modes-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6vw; max-width: 760px; margin-left: auto; margin-right: auto; margin-top: 8vh; text-align: center; }
.mode .dv-phone { width: 46%; margin: 0 auto 22px; }
.mode b { display: block; font-size: 18px; }
.mode span { display: block; font-size: 13px; color: var(--sub); margin-top: 6px; }
.spec { max-width: 1060px; margin: 10vh auto 0; padding: 0 6vw; }
.spec details { background: #fff; border-radius: 18px; margin-bottom: 14px; }
.spec summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 22px 26px; font-size: 18px; font-weight: 800; }
.spec summary::-webkit-details-marker { display: none; }
.spec summary::after { content: "⌄"; margin-left: auto; color: var(--brand); font-size: 22px; transition: transform .2s; }
.spec details[open] summary::after { transform: rotate(180deg); }
.spec summary small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--brand); }
.ic { font-style: normal; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.sp-body { padding: 0 26px 24px 90px; font-size: 14px; line-height: 2; color: var(--sub); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.prices div { border: 1px solid #e3e3e8; border-radius: 14px; padding: 16px; }
.prices .hl { border: 2px solid var(--brand); }
.prices b { display: block; color: var(--ink); }
.prices em { font-style: normal; font-size: 30px; font-weight: 900; color: var(--ink); }
.prices span { display: block; font-size: 12px; }
.fine { font-size: 12px; }
.fine a { color: var(--brand); }

/* 11 start */
.start { position: relative; background: var(--dark2); color: #fff; overflow: hidden; padding: 16vh 6vw; text-align: center; }
.start-bg { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; opacity: .22;  }
.start-bg img { width: 100%; border-radius: 18px; }
.start-in { position: relative; }
.start h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.3; }
.start ol { list-style: none; padding: 0; margin: 6vh auto 0; display: flex; justify-content: center; gap: 2vw; flex-wrap: wrap; }
.start li { background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); border-radius: 16px; padding: 18px 22px; font-size: 15px; font-weight: 700; display: flex; gap: 12px; align-items: center; }
.start li b { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.start-cta { margin-top: 6vh; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* footer */
.ft { background: var(--brand); color: #fff; padding: 9vh 6vw 6vh; }
.ft-in { max-width: 1100px; margin: 0 auto; }
.ft-mark { display: flex; align-items: center; gap: 16px; font-size: 26px; font-weight: 900; }
.ft-mark img { width: 64px; height: 64px; border-radius: 16px; }
.ft-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 5vh; }
.ft-cards a { background: var(--brand-d); border-radius: 16px; padding: 22px; text-decoration: none; font-size: 13px; }
.ft-cards b { display: block; font-size: 17px; margin-bottom: 6px; }
.ft-copy { margin: 5vh 0 0; font-size: 12px; opacity: .8; }

@media (max-width: 820px) {
  .gh-nav { display: none; }
  .gh-cta { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; padding: 40px 6vw; }
  .hero-pic { height: 46vh; min-height: 300px; }
  .intro-text { flex-direction: column; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .life-col.c2 { grid-column: 1 / -1; order: -1; }
  .f-phone { width: 92vw; border-width: 8px; border-radius: 30px; }
  .f-c1, .f-c4 { left: 6vw; right: 6vw; top: auto; bottom: 8vh; transform: none; }
  .f-keys { width: 80vw; }
  .f-ipad { width: 58vw; }
  .turn-white { grid-template-columns: 1fr; }
  .pn-big { font-size: 52px; }
  .coral .pn-devices { width: 100vw; left: -10vw; top: 40vh; }
  .pn-note { width: auto; left: 6vw; }
  .sky .pn-inset { width: 26vw; }
  .bub { width: 92px; height: 92px; font-size: 10px; }
  .bub b { font-size: 13px; }
  .modes-row { grid-template-columns: 1fr; }
  .modes-head .num { font-size: 110px; }
  .prices { grid-template-columns: 1fr; }
  .sp-body { padding-left: 26px; }
  .ft-cards { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gest .bub { opacity: 1 !important; transform: none !important; }
  .f-copy, .bub, .lg-mark { opacity: 1 !important; transform: none !important; }
}
/* voice panel: subject on the left, copy on the right */
.sky .pn-photo img { transform: scaleX(-1); }
.sky .pn-big { left: auto; right: 6vw; text-align: right; bottom: 20vh; }
.sky .pn-inset { left: auto; right: 8vw; top: 10vh; width: 12vw; max-width: 180px; }
.sky .pn-note { left: auto; right: 6vw; bottom: 8vh; width: min(420px, 40vw); text-align: right; }
@media (max-width: 820px) { .sky .pn-big { bottom: 24vh; } .sky .pn-inset { width: 22vw; } .sky .pn-note { width: auto; left: 6vw; } }
/* voice panel (final): photo on the right 62%, copy on the clear blue left */
.sky .pn-photo { left: 38%; }
.sky .pn-photo img { transform: none; }
.sky .pn-big { left: 5vw; right: auto; text-align: left; bottom: auto; top: 20vh; font-size: clamp(48px, 6.4vw, 108px); }
.sky .pn-inset { left: 5vw; right: auto; top: auto; bottom: 8vh; width: 9vw; max-width: 140px; }
.sky .pn-note { left: calc(5vw + min(9vw, 140px) + 32px); right: auto; bottom: 9vh; width: min(340px, 22vw); text-align: left; text-shadow: none; }
@media (max-width: 820px) {
  .sky .pn-photo { left: 0; top: 46%; }
  .sky .pn-big { top: 12vh; font-size: 46px; }
  .sky .pn-inset { display: none; }
  .sky .pn-note { left: 6vw; right: 6vw; width: auto; top: 34vh; bottom: auto; }
}
.sky .pn-photo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12%; background: linear-gradient(90deg, var(--sky), transparent); z-index: 1; }

.hero-kicker { margin: 22px 0 -8px; font-size: 18px; font-weight: 800; letter-spacing: .04em; opacity: .92; }

/* keyboard scene: stays inside the viewport */
.f-keys { top: 47vh; width: min(30vw, 44vh); }
@media (max-width: 820px) { .f-keys { width: min(78vw, 44vh); } }

/* rotation: the screen turns upright when the phone is sideways */
.turn-phone .tp-port, .turn-phone .tp-land { position: absolute; }
.turn-phone .tp-port { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.turn-phone .tp-land { left: 50%; top: 50%; width: 217.2%; height: 46.04%; max-width: none; object-fit: cover; transform: translate(-50%, -50%) rotate(var(--plr, 90deg)); opacity: 0; }

/* gestures: an interactive phone */
.gest-stage { aspect-ratio: auto; height: min(78vh, 760px); }
.g-phone { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 720 / 1564; transform: translateX(-50%); border: 12px solid #1b1b1f; border-radius: 52px; background: #000; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.g-island { position: absolute; z-index: 6; top: 2.4%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); background: #000; border-radius: 99px; }
.g-screen { position: absolute; inset: 0; overflow: hidden; }
.g-desk { position: absolute; inset: 0; }
.g-desk img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.g-desk.d2 { visibility: visible; }
.g-mc { position: absolute; inset: 0; background: #1d1b3a; display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding: 22% 8%; align-content: center; opacity: 0; }
.g-mc img { width: 100%; border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.g-mc img:first-child { grid-column: 1 / -1; width: 70%; justify-self: center; }
.g-menu { position: absolute; left: 30%; top: 44%; z-index: 5; background: rgba(40, 40, 46, .92); backdrop-filter: blur(10px); color: #fff; border-radius: 12px; padding: 6px; font-size: 13px; display: grid; min-width: 150px; opacity: 0; transform: scale(.9); transform-origin: top left; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.g-menu span { padding: 8px 12px; border-radius: 8px; }
.g-menu span:first-child { background: var(--brand); }
.g-f { position: absolute; z-index: 7; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 6px 18px rgba(0, 0, 0, .35); opacity: 0; left: 50%; top: 50%; }
.bub { border: 0; cursor: pointer; font-family: inherit; transition: box-shadow .2s, transform .2s; }
.bub:hover { box-shadow: 0 16px 40px rgba(51, 85, 230, .45); }
.bub.on { background: var(--brand); color: #fff; }
.bub.on b { color: #fff; }
.b1 { left: 8%; top: 8%; } .b2 { left: 4%; top: 42%; } .b3 { left: 10%; top: 74%; }
.b4 { right: 8%; top: 8%; } .b5 { right: 4%; top: 42%; } .b6 { right: 10%; top: 74%; }
@media (max-width: 820px) {
  .gest-stage { height: 560px; }
  .b1 { left: 0; top: 2%; } .b2 { left: -2%; top: 38%; } .b3 { left: 0; top: 74%; }
  .b4 { right: 0; top: 2%; } .b5 { right: -2%; top: 38%; } .b6 { right: 0; top: 74%; }
}
/* keyboard scene caption sits beside the keyboard, clear of the lifted phone */
.f-c2 { left: 6vw; top: 64vh; transform: none; text-align: left; white-space: normal; max-width: 26vw; }
@media (max-width: 820px) { .f-c2 { left: 6vw; right: 6vw; top: 6vh; max-width: none; text-align: center; } }

/* ===== round 3 ===== */
/* film: the keyboard rises inside the phone's own screen */
.f-phone .scr img.kb { inset: auto 0 0 0; height: auto; object-fit: initial; }
.f-c2 { left: 50%; top: 8vh; transform: translateX(-50%); text-align: center; white-space: nowrap; max-width: none; }
.f-c2 h2 { font-size: clamp(30px, 3.6vw, 52px); }
.f-c2 p { margin-top: 12px; }
.f-ipad .i1, .f-ipad .i2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-ipad .i2 { opacity: 0; }
@media (max-width: 820px) { .f-c2 { left: 6vw; right: 6vw; transform: none; white-space: normal; } }

/* rotation: caption on the left, phone on the right */
.t-copy { left: 7vw; top: 50%; transform: translateY(-50%); max-width: 520px; color: #fff; }
.t-copy h2 { font-size: clamp(34px, 3.8vw, 58px); }
.turn-ghosts { left: 66%; }
@media (max-width: 820px) { .t-copy { left: 6vw; right: 6vw; top: auto; bottom: 6vh; transform: none; } .turn-ghosts { left: 50%; top: 38%; } }

/* gestures: live desktop inside the phone */
.g-screen { background: #171235; }
.gdesk .sp1, .gdesk .sp { position: absolute; inset: 0; }
.gdesk .sp { display: block; }
.g-kb { position: absolute; left: 0; bottom: 0; width: 100%; z-index: 6; }
.bub b { font-size: 16px; }
.sky .pn-photo img { object-position: 50% 50%; }

/* ===== round 4: real iPhone proportions =====
   iPhone screen corner radius ≈ 13.7% of the short side, bezel ≈ 2.4% → outer radius ≈ 16.1%. */
.f-phone { --w: min(76vw, 1180px); width: var(--w); max-width: none; border-width: calc(var(--w) * .011); border-radius: calc(var(--w) * .074); }
@media (max-width: 820px) { .f-phone { --w: 92vw; } }
.f-island { position: absolute; z-index: 4; left: 2.2%; top: 50%; width: 3.2%; height: 27%; transform: translateY(-50%); background: #000; border-radius: 99px; }
.g-phone { --w: calc(min(78vh, 760px) * .4604); border-width: calc(var(--w) * .024); border-radius: calc(var(--w) * .161); }
@media (max-width: 820px) { .g-phone { --w: calc(560px * .4604); } }
.turn-phone { border-width: 5px; border-radius: 34px; }
.tg { border-radius: 34px; }
.dv-phone { border-width: 6px; border-radius: 15% / 6.9%; }
.island, .g-island { width: 31%; height: 3.4%; top: 1.6%; }

/* two ways to connect: different situations, not the same screen twice */
.modes-row { max-width: 980px; }
.mode-art { position: relative; height: 300px; display: flex; align-items: flex-end; justify-content: center; gap: 26px; margin-bottom: 26px; }
.mode-art .dv-mac { width: 58%; border-width: 6px; border-bottom-width: 9px; border-radius: 10px; }
.mode-art .dv-phone { width: 19%; margin: 0; }
.mode-art .sig { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 800; font-size: 14px; background: #fff; padding: 8px 14px; border-radius: 99px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.mode-art .sig svg { width: 22px; height: 22px; }
.mode.cell .mode-art { justify-content: space-between; padding: 0 2%; }
.mode.cell .dv-mac { width: 46%; }
.mode.cell .link { position: absolute; left: 47%; right: 21%; bottom: 120px; border-top: 3px dashed var(--brand); }
@media (max-width: 820px) { .mode-art { height: 220px; } }

/* ===== round 5 ===== */
/* film opens with the phone upright, then it turns sideways */
.f-c0 { left: 8vw; top: 50%; transform: translateY(-50%); max-width: 520px; }
.f-port { position: absolute; left: 50%; top: 50%; z-index: 3; --w: min(76vw, 1180px); height: var(--w); aspect-ratio: 720 / 1564;
  box-sizing: border-box; border: calc(var(--w) * .011) solid #1b1b1f; border-radius: calc(var(--w) * .074); background: #000; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); opacity: 0; }
.f-port img { width: 100%; height: 100%; object-fit: cover; }
.f-port-island { position: absolute; z-index: 2; top: 2.2%; left: 50%; width: 27%; height: 3.2%; transform: translateX(-50%); background: #000; border-radius: 99px; }
@media (max-width: 820px) { .f-port { --w: 92vw; } .f-c0 { left: 6vw; right: 6vw; top: auto; bottom: 8vh; transform: none; } }

/* dim while away */
.dim { background: var(--dark2); color: #fff; }
.dim-pin { position: relative; height: 100vh; overflow: hidden; background: radial-gradient(70% 70% at 60% 50%, var(--dark1), var(--dark2) 75%); }
.d-copy, .d-copy2 { left: 6vw; top: 50%; transform: translateY(-50%); max-width: 460px; }
.d-copy h2, .d-copy2 h2 { font-size: clamp(36px, 4.2vw, 64px); }
.d-stage { position: absolute; right: 5vw; top: 50%; width: min(58vw, 980px); aspect-ratio: 980 / 620; transform: translateY(-50%); container-type: inline-size; }
.d-mac { position: absolute; left: 0; top: 6%; width: 78%; }
.d-screen { position: relative; aspect-ratio: 16 / 10; box-sizing: content-box; border: 1.3cqw solid #16161c; border-bottom-width: 1.7cqw; border-radius: 1.8cqw 1.8cqw .6cqw .6cqw; overflow: hidden; background: #000; box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .5); }
.d-screen img { width: 100%; height: 100%; object-fit: cover; }
.d-black { position: absolute; inset: 0; background: #000; opacity: 0; display: grid; place-items: center; }
.d-black span { color: rgba(255, 255, 255, .55); font-size: 1.4cqw; letter-spacing: .08em; }
.d-base { height: 2.2cqw; margin: 0 -6%; background: linear-gradient(#5a5a62, #3a3a42 55%, #26262c); border-radius: 0 0 46% 46% / 0 0 100% 100%; }
.d-phone { position: absolute; right: 0; bottom: 0; width: 21%; aspect-ratio: 720 / 1564; box-sizing: content-box; border: .6cqw solid #16161c; border-radius: 3.7cqw; overflow: hidden; background: #000; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .6); }
.d-phone img { width: 100%; height: 100%; object-fit: cover; }
.d-island { position: absolute; z-index: 2; top: 1.6%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 99px; }
.d-tap { position: absolute; z-index: 3; left: 82.7%; top: 8.8%; width: 4.4cqw; height: 4.4cqw; margin: -2.2cqw 0 0 -2.2cqw; border-radius: 50%; border: .35cqw solid #fff; background: rgba(255, 255, 255, .35); opacity: 0; }
.d-cursor { position: absolute; z-index: 4; width: 2.2cqw; left: 70%; top: 70%; opacity: 0; filter: drop-shadow(0 .2cqw .3cqw rgba(0, 0, 0, .5)); }
@media (max-width: 820px) {
  .d-stage { left: 4vw; right: 4vw; width: auto; top: 14vh; transform: none; }
  .d-copy, .d-copy2 { left: 6vw; right: 6vw; top: auto; bottom: 8vh; transform: none; }
}
.f-port img.pp { position: absolute; inset: 0; }
.f-port img.pl { position: absolute; left: 50%; top: 50%; width: 217.2%; height: 46.04%; max-width: none; object-fit: cover; transform: translate(-50%, -50%) rotate(var(--plr, 90deg)); opacity: 0; }
/* the screen area itself must keep the phone's 1564:720 shape, so borders sit outside it */
.f-phone, .f-port { box-sizing: content-box; }
.f-port { height: calc(var(--w) * 720 / 1564 * 1564 / 720); }
.f-phone .pf { position: absolute; z-index: 5; width: 5%; aspect-ratio: 1; margin: -2.5% 0 0 -2.5%; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 6px 18px rgba(0, 0, 0, .35); opacity: 0; left: 50%; top: 50%; }
.f-phone .s1 { transform-origin: 34% 42%; }

/* round 6 */
.dv-phone.land { border-radius: 6.9% / 15%; }
.modes-head h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.15; }
.modes-lead { margin-left: 40px; }
.d-copy { max-width: 520px; }
.d-copy h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.2; }
/* the app keeps the status bar black above the Mac's screen, like the real fit */
.g-status { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 6.12%; background: #000; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 11%; box-sizing: border-box; font: 600 clamp(9px, 1.15vh, 15px)/1 -apple-system, "SF Pro Text", sans-serif; }
.g-status span { display: flex; gap: 4px; align-items: center; }
.g-status i { display: block; background: #fff; }
.g-status .sig { width: 1.3em; height: .8em; clip-path: polygon(0 75%, 22% 75%, 22% 100%, 0 100%, 0 75%, 26% 50%, 48% 50%, 48% 100%, 26% 100%, 26% 50%, 52% 25%, 74% 25%, 74% 100%, 52% 100%, 52% 25%, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% 0); }
.g-status .wf { width: 1.1em; height: .8em; border-radius: 1em 1em 0 0 / 1em 1em 0 0; clip-path: polygon(50% 100%, 0 20%, 100% 20%); }
.g-status .bt { width: 1.8em; height: .85em; border-radius: .25em; }

/* round 7: the dim stage lives in the film pin; no CSS transform so GSAP owns y */
.d-stage { z-index: 4; transform: none; top: calc(50% - min(58vw, 980px) * 310 / 980); }
@media (max-width: 820px) { .d-stage { top: 14vh; } }

/* round 8: portrait keyboard; the iPad doubles as the remote in the dim scene */
.f-port img.pk { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; z-index: 1; }
.f-port-island { z-index: 3; }
.f-ipad { z-index: 6; }
.f-ipad .i3 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.i-tap { position: absolute; z-index: 2; left: 88.7%; top: 3.15%; width: 11%; aspect-ratio: 1; margin: -5.5% 0 0 -5.5%; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, .35); opacity: 0; }
.d-ipad { position: absolute; right: 0; bottom: 0; width: 27%; aspect-ratio: 1100 / 1466; visibility: hidden; }
.f-port::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 6.1%; background: #000; }

/* round 9: candidate bar on the keyboard + the reply typed into the agent */
.f-port { container-type: inline-size; }
.f-kbw { position: absolute; left: 0; bottom: 0; width: 100%; z-index: 1; }
.f-kbw img.pk { position: static; display: block; width: 100%; height: auto; }
.f-cand { position: absolute; left: 0; right: 0; top: 12.4%; height: 12.4%; display: flex; align-items: center; justify-content: space-around; padding: 0 3%; box-sizing: border-box; color: #f2f2f2; font: 500 4.2cqw/1 -apple-system, "Hiragino Sans", sans-serif; white-space: nowrap; }
.f-cand > * { flex: 1; text-align: center; overflow: hidden; }
.f-cand > * + * { border-left: 1px solid rgba(255, 255, 255, .18); }
.f-cand b { font-weight: 700; }
.f-reply { position: absolute; z-index: 1; left: 33.9%; top: 54.8%; width: 59.4%; height: 2.24%; background: #2c2b27; display: flex; align-items: center; color: #ece9e2; font: 2.3cqw/1 -apple-system, "Hiragino Sans", sans-serif; opacity: 0; white-space: nowrap; overflow: hidden; }
.f-reply i { width: 1px; height: 70%; background: #e8875f; margin-left: 1px; }
.f-cand { font-size: 3.6cqw; padding: 0 2%; justify-content: stretch; }
.f-cand > * { flex: 1 1 0; min-width: 0; padding: 0 1%; text-overflow: ellipsis; }

/* ── motion review round (Opus findings) ── */
/* GSAP owns the phones' transforms (xPercent/yPercent), so nothing is parsed from CSS; without JS they still sit centred */
.f-phone, .f-port { translate: -50% -50%; }
.js-film .f-phone, .js-film .f-port { translate: none; }
.f-phone .s1h { opacity: 0; }
.f-port::after { opacity: var(--band, 1); }
.f-c1, .d-copy { max-width: min(460px, 30vw); }
.d-stage { right: 3vw; width: min(52vw, 980px); top: calc(50% - min(52vw, 980px) * 310 / 980); }
.i-tap { width: 16%; margin: -8% 0 0 -8%; background: rgba(255, 255, 255, .6); }
.g-f { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.g-kb img { display: block; width: 100%; }
.g-cand { position: absolute; left: 0; right: 0; top: 12.4%; height: 12.4%; display: flex; align-items: center; padding: 0 2%; box-sizing: border-box; color: #f2f2f2; font: 500 calc(var(--w) * .036)/1 -apple-system, "Hiragino Sans", sans-serif; white-space: nowrap; }
.g-cand > * { flex: 1 1 0; min-width: 0; text-align: center; overflow: hidden; }
.g-cand > * + * { border-left: 1px solid rgba(255, 255, 255, .18); }
.g-cand b { font-weight: 700; }
@media (min-width: 821px) {
  .f-c0, .f-c1, .f-c4, .d-copy { left: max(7vw, calc(50vw - 640px)); }
}
@media (max-width: 820px) {
  .f-c1, .d-copy { max-width: none; }
  .f-c0 { bottom: calc(8vh + 56px); }
  .d-stage { right: 4vw; width: auto; top: 14vh; }
}
.d-copy { max-width: min(520px, 34vw); }
.d-copy h2 { font-size: clamp(30px, 3.1vw, 52px); }
@media (max-width: 820px) { .d-copy { max-width: none; } }

/* ── owner round: keyboard caption back on the left; iPad eyebrow instead of a centred interstitial ── */
.f-c2 { left: max(7vw, calc(50vw - 640px)); right: auto; top: 50%; transform: translateY(-50%); text-align: left; white-space: normal; max-width: min(460px, 30vw); }
.f-c2 h2 { font-size: clamp(36px, 4.6vw, 70px); }
.f-c2 p { margin-top: 22px; }
.f-copy .f-eye { margin: 0 0 16px; font-size: 15px; font-weight: 700; letter-spacing: .04em; opacity: .75; }
@media (max-width: 820px) { .f-c2 { left: 6vw; right: 6vw; top: auto; bottom: 8vh; transform: none; max-width: none; } .f-c2 h2 { font-size: clamp(30px, 8vw, 40px); } .f-c2 h2 br { display: none; } }

/* ── gestures as one pinned scroll scene ── */
.js-gest .gest { height: 100vh; box-sizing: border-box; padding: 56px 4vw 0; display: flex; flex-direction: column; justify-content: center; gap: 2.6vh; }
.js-gest .gest-stage { flex: none; margin: 0 auto; height: min(68vh, 720px); }
.js-gest .g-phone { --w: calc(min(68vh, 720px) * .4604); }
.js-gest .gest-lead { margin: 0; font-size: 13px; line-height: 1.8; }
.js-gest .gest-ttl { font-size: clamp(28px, 3.4vw, 50px); }
.bub { transition: box-shadow .2s, transform .2s, background .25s, color .25s; }
@media (max-width: 820px) {
  .js-gest .gest-stage { height: min(62vh, 540px); }
  .js-gest .g-phone { --w: calc(min(62vh, 540px) * .4604); }
  .js-gest .gest-lead { display: none; }
}

.f-port-island { opacity: var(--isl, 1); }

/* ── phones, including short ones (iPhone 11 Pro with Safari's bars ≈ 375×635) ──
   the scene is as tall as the *visible* screen, captions are compact and never share space with the device */
@media (max-width: 820px) {
  .film-pin { height: 100svh; }
  .more-btn { display: none; }
  .f-copy, .f-c0, .f-c1, .f-c2, .f-c4, .d-copy { left: 6vw; right: 6vw; top: auto; bottom: max(3.5svh, 18px); transform: none; max-width: none; }
  .f-copy h2, .f-c2 h2, .d-copy h2 { font-size: clamp(24px, 7vw, 32px); line-height: 1.2; }
  .f-copy p { font-size: 13.5px; line-height: 1.75; margin-top: 10px; }
  .f-copy p br { display: none; }
  .f-copy .f-eye { margin-bottom: 8px; font-size: 13px; }
  .f-ipad { top: calc((64px + 100svh - 240px) / 2); width: min(58vw, calc((100svh - 64px - 250px) * .75)); }
  .d-stage { top: 76px; }
  .js-gest .gest { height: 100svh; }
  .n-end-pin { min-height: 100svh; }
}
@media (max-width: 820px) {
  .js-gest .gest { padding: 74px 3vw 12px; gap: 14px; justify-content: flex-start; }
  .js-gest .gest-ttl { font-size: clamp(19px, 5.9vw, 28px); white-space: nowrap; }
  .js-gest .gest-stage { width: 100%; height: min(calc(100svh - 150px), 600px); margin: 0 auto; }
  .js-gest .g-phone { --w: calc(min(calc(100svh - 150px), 600px) * .4604); }
  .bub { width: 78px; height: 78px; font-size: 9.5px; line-height: 1.3; }
  .bub b { font-size: 12.5px; }
  .b1 { left: 0; top: 4%; } .b2 { left: 0; top: 40%; } .b3 { left: 0; top: 76%; }
  .b4 { right: 0; top: 4%; } .b5 { right: 0; top: 40%; } .b6 { right: 0; top: 76%; }
}

/* keyboard scene: the reply field is part of the keyboard block, so the key row can never cover the typed text */
.f-kbw::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12cqw; background: linear-gradient(90deg, #1d1c1a 0 31%, #262522 31%); }
.f-reply { position: absolute; z-index: 1; left: 33.5%; right: 3.2%; top: auto; bottom: calc(100% + 1.6cqw); width: auto; height: 8.6cqw; padding: 0 9cqw 0 3cqw; box-sizing: border-box; border: 1px solid #4a473f; border-radius: 3.2cqw; background: #302e2a; display: flex; align-items: center; color: #fff; font: 600 3.3cqw/1 -apple-system, "Hiragino Sans", sans-serif; opacity: 1; white-space: nowrap; overflow: hidden; }
.f-reply .ph { color: #8a857a; font-weight: 400; }
.f-reply.has .ph { display: none; }
.f-reply i { width: 1.5px; height: 46%; background: #e8875f; margin-left: 1px; flex: none; }
.f-reply b { position: absolute; right: 1.6cqw; top: 50%; width: 5.4cqw; height: 5.4cqw; margin-top: -2.7cqw; border-radius: 50%; background: #e0895f; color: #1d1c1a; display: grid; place-items: center; font-size: 3cqw; font-weight: 800; }
.f-kbw::before, .f-reply { opacity: var(--kbo, 0); }
@media (max-width: 820px) { .bub { font-size: 8.5px; letter-spacing: -0.03em; } .bub b { letter-spacing: 0; } }

/* ── phones: everything in the pinned scenes is placed against --fvh, the height visible right now ──
   (the box itself is as tall as the largest viewport, so nothing is clipped when the browser's bars hide) */
@media (max-width: 820px) {
  :root { --fvh: 100svh; --fhead: 74px; --fcap: 210px; --fzone: calc(var(--fvh) - var(--fhead) - var(--fcap)); }
  .film-pin { height: 100lvh; }
  .f-phone, .f-port { --w: min(92vw, calc(var(--fzone) - 12px)); top: calc(var(--fhead) + var(--fzone) / 2); }
  .f-copy, .f-c0, .f-c1, .f-c2, .f-c4, .d-copy { top: calc(var(--fvh) - var(--fcap) + 6px); bottom: auto; }
  .f-ipad { top: calc(var(--fhead) + var(--fzone) / 2); width: min(58vw, calc((var(--fzone) - 24px) * .75)); }
  .d-stage { top: calc(var(--fhead) + 14px); }
  .js-gest .gest { height: 100lvh; }
  .js-gest .gest-stage { height: min(calc(var(--fvh) - 150px), 600px); }
  .js-gest .g-phone { --w: calc(min(calc(var(--fvh) - 150px), 600px) * .4604); }
  .n-end-pin { min-height: 100lvh; }
}
/* dim scene on phones: the Mac sits centred between the header and the caption, like every other device */
@media (max-width: 820px) { .d-stage { top: calc(var(--fhead) + (var(--fzone) - 58.2vw) / 2); } }

/* iPad frame: bezel and corners in proportion to its size, a hairline so the dark bezel reads on the dark scene,
   and the screen images carry their own rounded corners (Safari does not clip transformed children to a rounded parent) */
.f-ipad { --iw: min(30vw, 460px); width: var(--iw); max-width: none; border: calc(var(--iw) * .034) solid #1d1d22; border-radius: calc(var(--iw) * .08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 90px rgba(0, 0, 0, .55); }
.f-ipad img { border-radius: calc(var(--iw) * .046); }
.f-phone, .f-port { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px rgba(0, 0, 0, .55); }
@media (max-width: 820px) { .f-ipad { --iw: min(58vw, calc((var(--fzone) - 24px) * .75)); width: var(--iw); } }

/* iPad in the film: vertical centring is GSAP's (yPercent), not a CSS transform */
.js-film .f-ipad { transform: none; }
/* gestures on phones and tablets held upright: the phone uses the height that is there, and the buttons stay beside it */
@media (max-width: 820px) {
  .js-gest .gest { --gh: min(calc(var(--fvh) - 150px), 600px); }
  .js-gest .gest-stage { height: var(--gh); width: min(100%, calc(var(--gh) * .4604 + 190px)); }
  .js-gest .g-phone { --w: calc(var(--gh) * .4604); }
}
@media (min-width: 600px) and (max-width: 820px) {
  .js-gest .gest { --gh: min(calc(var(--fvh) - 190px), 900px); padding-top: 96px; gap: 22px; }
  .js-gest .gest-stage { width: min(100%, calc(var(--gh) * .4604 + 330px)); }
  .js-gest .gest-ttl { font-size: 34px; }
  .bub { width: 124px; height: 124px; font-size: 12px; letter-spacing: 0; }
  .bub b { font-size: 18px; }
  :root { --fcap: 250px; }
  .f-copy h2, .f-c2 h2, .d-copy h2 { font-size: 38px; }
  .f-copy p { font-size: 15px; }
}
/* upright tablets: the gesture block sits a little lower, with even air above the title and below the phone */
@media (min-width: 600px) and (max-width: 820px) {
  .js-gest .gest { --gh: min(calc(var(--fvh) - 232px), 900px); padding-top: 126px; }
}
