/* Home page. Sections set their own ground (light, following the system, or the stage's black);
   the drawings of the Mac and the iPad are laid out in their own points and scaled to fit. */

.home .bar { background: color-mix(in srgb, #000 70%, transparent); border-color: #ffffff14; color: var(--stage-text); }
.home main { overflow-x: clip; }
.dark { background: var(--stage); color: var(--stage-text); --muted: var(--stage-muted); --line: #ffffff1c; --surface: #15191b; }
.sec { padding: clamp(88px, 12vw, 160px) 0; }
.sec h2 { font-size: clamp(34px, 5.2vw, 60px); text-wrap: balance; }
.hands h2, .dial-sec h2, .link h2, .path h2 { font-size: clamp(32px, 3.9vw, 50px); }
.sec .body { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; color: var(--muted); max-width: 34em; }
.sec .body p + p { margin-top: 16px; }
.sec h2 + .body { margin-top: 24px; }
.center { text-align: center; }
.center .body, .center h2 { margin-left: auto; margin-right: auto; }

/* ---------- opening ---------- */
.hero { position: relative; background: #000; color: var(--stage-text); text-align: center; overflow: hidden; margin-top: -52px; }
/* The whole frame is shown; the text starts over its dark bottom quarter, below the light. */
.hero { --media-h: min(56.25vw, 70svh); }
.hero-media { position: relative; height: var(--media-h); aspect-ratio: 16 / 9; max-width: 100%; margin: 0 auto; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { opacity: 0; transition: opacity 1.6s ease; }
.hero.is-still .hero-media img { opacity: 1; }
.hero.is-still .hero-media video { display: none; }
.hero-text { position: relative; margin-top: calc(var(--media-h) * -0.16); padding: 0 16px clamp(64px, 8vw, 104px); }
.hero-text > * { opacity: 0; transform: translateY(14px); transition: opacity 1.2s ease, transform 1.2s ease; }
.hero.is-in .hero-text > * { opacity: 1; transform: none; }
.hero.is-in .hero-text > :nth-child(2) { transition-delay: .15s; }
.hero.is-in .hero-text > :nth-child(3) { transition-delay: .35s; }
.hero.is-in .hero-text > :nth-child(n+4) { transition-delay: .55s; }
.hero .name { font-size: 17px; font-weight: 600; color: var(--glow); letter-spacing: .02em; }
.hero h1 { font-size: clamp(32px, 5vw, 64px); margin: 12px auto 0; }
.hero h1 span { color: var(--stage-muted); }
.hero .lead { color: var(--stage-muted); max-width: 31em; margin: 18px auto 0; font-size: clamp(17px, 1.7vw, 20px); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero .button { background: var(--glow); color: #0E1011; }
.hero .button.ghost { background: transparent; color: var(--stage-text); }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--stage-muted); }
@media (max-aspect-ratio: 1 / 1) {
  /* Portrait: the picture is shown larger and cropped at the sides. */
  .hero { --media-h: calc(190vw * 9 / 16); margin-top: 0; }
  .hero-media { width: 190vw; max-width: none; margin-left: -45vw; }
}

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.why h2 { font-size: clamp(30px, 3.6vw, 44px); }
.why .body { margin-top: 20px; }
.why article + article h2 { color: var(--muted); }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

/* ---------- scroll scenes ---------- */
.scene { position: relative; }
.scene .sticky { position: sticky; top: 52px; height: calc(100svh - 52px); display: flex; flex-direction: column; overflow: hidden; }
.scene .stage-box { position: relative; flex: 1; min-height: 0; margin: 0 16px 24px; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.scene.is-static { height: auto !important; }
.scene.is-static .sticky { position: relative; top: 0; height: auto; min-height: 0; }
.scene.is-static .stage-box { height: 70vw; max-height: 720px; }

/* captions above the stage, one at a time */
.captions { position: relative; height: clamp(108px, 15vh, 150px); margin: 20px auto 8px; width: min(820px, calc(100% - 32px)); text-align: center; }
.captions p { position: absolute; inset: 0; font-size: clamp(17px, 2vw, 23px); line-height: 1.45; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.captions p.on { opacity: 1; transform: none; }
.scene.is-static .captions { height: auto; }
.scene.is-static .captions p { position: static; opacity: 1; transform: none; margin-top: 10px; }

.apps-head { padding: clamp(88px, 12vw, 150px) 0 0; }
.apps-note { padding: 8px 0 clamp(88px, 12vw, 150px); }

/* ---------- the Mac ---------- */
.stage .mac, .stage .ipad { position: absolute; left: 0; top: 0; }
.stage .tag { position: absolute; left: 0; right: 0; text-align: center; font: 600 17px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", sans-serif; color: var(--muted); white-space: nowrap; }
.mac-screen { position: absolute; border-radius: 6px; box-shadow: 0 0 0 9px #141516, 0 0 0 10px #2c2f32, 0 24px 50px -24px #0005; overflow: hidden; background: #000; }
.mac-stand { position: absolute; }
/* A plain stand: a straight neck and a flat foot. */
.mac-stand::before { content: ""; position: absolute; left: 50%; top: 0; width: 17%; height: 100%; transform: translateX(-50%); background: linear-gradient(#a7aaad, #c3c5c8 14%); }
.mac-stand::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 30%; height: 6px; transform: translateX(-50%); border-radius: 3px; background: #b5b8bb; }

/* the Mac's desktop, 2560 × 1440 points */
.desk { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; transform-origin: 0 0; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #3f787d 0%, #1e3b45 38%, #141a2a 70%, #0d0f18 100%); }
.desk::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 85%, #c9855a55, transparent 70%), radial-gradient(40% 40% at 70% 20%, #accdd033, transparent 70%); }
.menubar { position: absolute; left: 0; right: 0; top: 0; height: 48px; display: flex; align-items: center; gap: 36px; padding: 0 30px; background: #ffffff26; backdrop-filter: blur(30px); color: #fff; font: 600 24px/1 -apple-system, "PingFang SC", "Hiragino Sans", sans-serif; }
.menubar i { width: 22px; height: 26px; border-radius: 40% 40% 45% 45%; background: #fff; }
.menubar span:not(:first-of-type) { font-weight: 400; }
.menubar b { margin-left: auto; font-weight: 400; }
.dock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 14px; padding: 12px 16px; border-radius: 30px; background: #ffffff2e; box-shadow: inset 0 0 0 1px #ffffff33; }
.dock i { width: 86px; height: 86px; border-radius: 22px; background: var(--c); box-shadow: inset 0 -6px 12px #0002; }

/* ---------- the iPad ---------- */
.ipad-screen { position: absolute; border-radius: 16px; box-shadow: 0 0 0 12px #141516, 0 0 0 13px #2c2f32, 0 24px 50px -24px #0005; overflow: hidden; background: #0e1011; }
.ipad .tag span + span { position: absolute; left: 0; right: 0; opacity: 0; }
.ipad.renamed .tag span:first-child { opacity: 0; }
.ipad.renamed .tag span + span { opacity: 1; }
.ipad .tag span { transition: opacity .4s; }
.ipad[data-ipad="afar"] .tag { color: var(--accent); }
/* Afar Window's iPad glows in the accent, so it never reads as the typical one. */
.ipad[data-ipad="afar"] .ipad-screen { box-shadow: 0 0 0 12px #141516, 0 0 0 13px #7ec6c6aa, 0 0 60px 6px #7ec6c640, 0 24px 50px -24px #0005; }
.pad { position: absolute; left: 0; top: 0; width: 1180px; height: 820px; transform-origin: 0 0; display: flex; font: 400 24px/1.4 -apple-system, "PingFang SC", "Hiragino Sans", sans-serif; }
.side { width: 300px; flex: none; background: #f3f1ec; color: #1e2326; padding: 34px 18px; display: flex; flex-direction: column; gap: 6px; }
.side .host { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 26px; padding: 0 12px; }
.side .host i { width: 16px; height: 16px; border-radius: 50%; background: var(--tint, #3b8a8e); }
.side .status { font-size: 19px; color: #6a7075; padding: 4px 12px 18px; }
.side h4 { font-size: 18px; color: #6a7075; font-weight: 600; margin: 14px 12px 6px; }
.side .row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; transition: background .3s, color .3s; }
.side .row i { width: 40px; height: 40px; border-radius: 10px; background: var(--c); flex: none; }
.side .row.on { background: #3d6a72; color: #fff; }
.picture { position: relative; flex: 1; background: #0e1011; }
.picture .hint { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa1a6; font-size: 26px; }
.marks { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.marks .bar-mark { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, #e5484d55 0 6px, #e5484d22 6px 12px); box-shadow: inset 0 0 0 2px #e5484d; }
.marks .bar-mark span, .marks .lens span { position: absolute; font: 700 15px/1 -apple-system, "PingFang SC", "Hiragino Sans", sans-serif; color: #fff; background: #e5484d; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.marks .bar-mark span { right: 8px; top: 50%; transform: translateY(-50%); }
.marks .lens { position: absolute; border-radius: 50%; border: 2px solid #e5484d; box-shadow: 0 0 0 4px #e5484d33; }
.marks .lens span { left: 50%; top: calc(100% + 8px); transform: translateX(-50%); }

/* ---------- drawn app windows (points; scaled with whatever they sit on) ---------- */
.win { position: absolute; left: 0; top: 0; transform-origin: 0 0; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px #0000001f, 0 30px 70px -20px #0009; font: 400 24px/1.45 -apple-system, "PingFang SC", "Hiragino Sans", sans-serif; }
.win.flying { box-shadow: 0 0 0 1px #0000001f, 0 60px 120px -20px #000b; }
.win .chrome { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 22px; font-weight: 600; font-size: 22px; }
.win .chrome i { width: 18px; height: 18px; border-radius: 50%; background: #ff5f57; }
.win .chrome i + i { background: #febc2e; }
.win .chrome i + i + i { background: #28c840; margin-right: 14px; }
.win .main { flex: 1; min-height: 0; display: flex; }

/* an AI assistant */
.w-chat { background: #f7f4ee; color: #2a2723; }
.w-chat .chrome { color: #6b655c; }
.w-chat .main { flex-direction: column; align-items: center; padding: 10px 40px 30px; }
.w-chat .thread { width: 100%; max-width: 760px; flex: 1; display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.w-chat .me { align-self: flex-end; max-width: 78%; background: #e9e2d6; padding: 16px 22px; border-radius: 22px; }
.w-chat .bot { font-family: "Iowan Old Style", "Songti SC", Georgia, serif; font-size: 25px; }
.w-chat pre { margin: 14px 0; padding: 16px 20px; border-radius: 14px; background: #2a2723; color: #e9e2d6; font: 19px/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; display: grid; }
.w-chat pre .del { color: #f0938b; } .w-chat pre .add { color: #9ad2a4; }
.w-chat .ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #00000014; font-family: -apple-system, "PingFang SC", "Hiragino Sans", sans-serif; font-size: 22px; }
.w-chat .ask p { flex: 1 1 260px; }
.w-chat .btn { padding: 8px 20px; border-radius: 10px; background: #c96442; color: #fff; font-weight: 600; }
.w-chat .btn.ghost { background: #efe9df; color: #2a2723; }
.w-chat .composer { width: 100%; max-width: 760px; margin-top: 18px; padding: 20px 24px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #0000001a; color: #a39c90; }
.w-chat code { font: 20px ui-monospace, Menlo, monospace; background: #f1ece3; padding: 2px 6px; border-radius: 6px; }

/* a music player */
.w-music { background: #1d1b22; color: #f2eff5; }
.w-music .chrome { color: #a8a2b0; }
.w-music .main { gap: 34px; padding: 10px 40px 34px; flex-wrap: wrap; align-content: flex-start; overflow: hidden; }
.w-music .art { width: min(320px, 38%); aspect-ratio: 1; border-radius: 18px; background: radial-gradient(circle at 30% 30%, #f5b38a, #c4507a 45%, #3b2a7a 85%); box-shadow: 0 20px 40px -10px #0008; }
.w-music .now { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.w-music .now strong { font-size: 34px; }
.w-music .now span { color: #a8a2b0; }
.w-music .progress { height: 8px; border-radius: 4px; background: #ffffff22; margin-top: 18px; }
.w-music .progress::before { content: ""; display: block; width: 38%; height: 100%; border-radius: 4px; background: #f2eff5; }
.w-music .controls { display: flex; gap: 30px; margin-top: 18px; font-size: 34px; }
.w-music ol { flex: 1 1 100%; margin: 0; padding: 0; list-style: none; display: grid; }
.w-music li { display: flex; justify-content: space-between; padding: 14px 6px; border-top: 1px solid #ffffff14; color: #cfcad6; }
.w-music li:first-child { color: #f5b38a; }

/* a messenger */
.w-msg { background: #fff; color: #1f2426; }
.w-msg .chrome { background: #f6f6f6; color: #6b6f72; }
.w-msg .list { width: 34%; min-width: 220px; border-right: 1px solid #e6e6e6; padding: 10px 0; overflow: hidden; }
.w-msg .list p { display: flex; align-items: center; gap: 14px; padding: 12px 18px; white-space: nowrap; }
.w-msg .list p:first-child { background: #eef6f1; }
.w-msg .list i { width: 50px; height: 50px; border-radius: 50%; background: var(--c); flex: none; }
.w-msg .talk { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #efeae2; overflow: hidden; }
.w-msg .talk p { max-width: 70%; padding: 12px 18px; border-radius: 16px; background: #fff; }
.w-msg .talk p.me { align-self: flex-end; background: #d9fdd3; }

/* the touch on the iPad */
.finger { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #ffffffcc; box-shadow: 0 0 0 2px #0003, 0 6px 16px #0004; opacity: 0; pointer-events: none; }
.finger::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.finger.tap::after { animation: ripple .6s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

/* ---------- hands ---------- */
.hands { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .hands { grid-template-columns: 1fr; } }
/* A ten-second loop: a swipe scrolls the page up and back, a two-finger tap opens a menu, a held drag selects. */
.gesture { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; container-type: inline-size; }
.gesture .app { position: absolute; inset: 6cqi 6cqi 0; border-radius: 2.6cqi 2.6cqi 0 0; background: #fff; box-shadow: 0 0 0 1px #0000001a, 0 10px 30px -10px #0003; overflow: hidden; display: flex; flex-direction: column; }
.gesture .top { height: 8cqi; flex: none; display: flex; align-items: center; gap: 1.6cqi; padding: 0 4cqi; border-bottom: 1px solid #0000000f; }
.gesture .top .t { width: 22cqi; height: 2.2cqi; border-radius: 1.1cqi; background: #c9cdd1; margin-right: auto; }
.gesture .top i { width: 3cqi; height: 3cqi; border-radius: .8cqi; background: #e2e4e6; }
.gesture .view { flex: 1; overflow: hidden; }
.gesture .scroll { padding: 5cqi 6cqi; display: grid; gap: 2.4cqi; animation: scroll 10s infinite; }
.gesture .scroll span { height: 2cqi; border-radius: 1cqi; background: #dfe2e5; }
.gesture .scroll .h { width: 46%; height: 3.6cqi; border-radius: 1.4cqi; background: #2b3236; }
.gesture .pic { height: 22cqi; border-radius: 2cqi; background: linear-gradient(135deg, #3f787d, #accdd0 55%, #f2d6b8); margin: 1cqi 0; }
.gesture .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqi; margin: 1cqi 0; }
.gesture .grid b { height: 16cqi; border-radius: 1.8cqi; background: linear-gradient(160deg, #c4507a33, #3b2a7a55); }
.gesture .grid b + b { background: linear-gradient(160deg, #f5b38a66, #c9855a44); }
.gesture .sel { position: relative; }
.gesture .sel::after { content: ""; position: absolute; left: 0; top: -.8cqi; bottom: -.8cqi; width: 0; border-radius: .6cqi; background: #3d6a7299; animation: select 10s infinite; }
.gesture .menu { position: absolute; left: 46%; top: 30%; width: 32%; padding: 1.4cqi; border-radius: 2.2cqi; background: #f6f6f6f2; box-shadow: 0 0 0 1px #0000001f, 0 14px 40px -6px #0004; display: grid; gap: 1.1cqi; opacity: 0; transform: scale(.94); transform-origin: 0 0; animation: menu 10s infinite; }
.gesture .menu span { height: 2.6cqi; border-radius: 1cqi; background: #dfe1e3; }
.gesture .menu span:first-child { background: #3d6a72; }
.gesture .touch { position: absolute; width: 6cqi; height: 6cqi; margin: -3cqi; border-radius: 50%; background: #3d6a7240; box-shadow: 0 0 0 .4cqi #3d6a72; opacity: 0; }
.gesture .s1 { left: 70%; animation: swipe-up 10s infinite; }
.gesture .s2 { left: 70%; animation: swipe-down 10s infinite; }
.gesture .t1 { left: 43%; top: 29%; animation: tap2 10s infinite; }
.gesture .t2 { left: 49%; top: 27%; animation: tap2 10s infinite; }
.gesture .t3 { left: 14%; top: 40.5%; animation: drag 10s infinite; }
@keyframes scroll { 0%, 4% { transform: none; } 14%, 20% { transform: translateY(-26cqi); } 30%, 100% { transform: none; } }
@keyframes swipe-up { 0%, 2% { opacity: 0; top: 72%; } 4% { opacity: 1; top: 72%; } 14% { opacity: 1; top: 37%; } 16%, 100% { opacity: 0; top: 37%; } }
@keyframes swipe-down { 0%, 18% { opacity: 0; top: 37%; } 20% { opacity: 1; top: 37%; } 30% { opacity: 1; top: 72%; } 32%, 100% { opacity: 0; top: 72%; } }
@keyframes tap2 { 0%, 38% { opacity: 0; transform: scale(1.4); } 41% { opacity: 1; transform: scale(1); } 46%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes menu { 0%, 42% { opacity: 0; transform: scale(.94); } 45%, 58% { opacity: 1; transform: none; } 62%, 100% { opacity: 0; transform: scale(.94); } }
@keyframes drag { 0%, 64% { opacity: 0; left: 14%; transform: scale(1.4); } 67%, 71% { opacity: 1; left: 14%; transform: scale(1); } 85% { opacity: 1; left: 76%; } 89%, 100% { opacity: 0; left: 76%; } }
@keyframes select { 0%, 71% { width: 0; } 85%, 95% { width: 85%; } 100% { width: 0; } }

/* ---------- voice ---------- */
.voice .sticky { justify-content: center; align-items: center; }
.voice .say { position: absolute; left: 0; right: 0; top: 11vh; text-align: center; font-size: clamp(44px, 8vw, 104px); font-weight: 700; }
.voice .say.a { color: var(--glow); }
.voice .say.q span { position: relative; display: inline-block; }
.scribble { position: absolute; left: -6%; top: 8%; width: 112%; height: 84%; overflow: visible; }
.scribble path { fill: none; stroke: var(--glow); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.keys { position: absolute; left: 50%; bottom: 8vh; width: min(980px, 94vw); transform: translateX(-50%); display: grid; gap: min(10px, 1vw); padding: min(18px, 1.8vw); border-radius: 22px; background: #1c1f22; }
.keys div { display: flex; gap: min(10px, 1vw); }
.keys span { flex: 1 1 0; height: min(66px, 7vw); border-radius: min(12px, 1.2vw); background: #3a3e42; box-shadow: inset 0 -2px 0 #0006; color: #c9cdd1; font: 500 clamp(11px, 1.6vw, 20px)/min(66px, 7vw) -apple-system, sans-serif; text-align: center; will-change: transform; }
.keys span.w15 { flex-grow: 1.5; } .keys span.w2 { flex-grow: 2.2; } .keys span.w6 { flex-grow: 6; }
.voice-app { position: absolute; left: 50%; top: 56%; width: min(560px, 76vw); transform: translate(-50%, -50%); transform-origin: 50% 50%; }
.voice-app .field { min-height: 132px; padding: 24px 28px; border-radius: 22px; background: #f7f4ee; color: #2a2723; display: flex; flex-wrap: wrap; gap: 10px 9px; align-content: flex-start; box-shadow: 0 30px 80px -20px #000c; }
.voice-app .field .w { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.voice-app .field .g { width: 8px; border-radius: 3px; background: #2a2723; opacity: .8; }
.voice-app .field .caret { width: 3px; height: 26px; margin-top: -5px; background: #c96442; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.orb { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #3d6a72; box-shadow: 0 10px 30px -6px #0009, inset 0 0 0 1px #ffffff2a; display: grid; place-items: center; color: #fff; border: 0; padding: 0; }
.orb svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.voice-app .orb { position: absolute; right: -22px; bottom: -32px; }
.orb .wave { display: none; gap: 4px; align-items: center; height: 26px; }
.orb .wave i { width: 4px; height: 30%; border-radius: 2px; background: #fff; animation: wave .9s ease-in-out infinite; }
.orb .wave i:nth-child(2) { animation-delay: -.2s; } .orb .wave i:nth-child(3) { animation-delay: -.5s; } .orb .wave i:nth-child(4) { animation-delay: -.7s; } .orb .wave i:nth-child(5) { animation-delay: -.35s; }
.orb.listening { background: var(--glow); color: #0e1011; box-shadow: 0 0 0 10px #accdd033, 0 0 60px #accdd066; }
.orb.listening svg { display: none; }
.orb.listening .wave { display: flex; }
.orb.listening .wave i { background: #0e1011; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--glow); opacity: 0; }
.orb.tap::after { animation: ripple .6s ease-out; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.voice-text { padding-top: 0; }

/* ---------- the action button ---------- */
.dial-sec .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .dial-sec .split { grid-template-columns: 1fr; } }
.dial-demo { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.dial-demo .orb { position: absolute; left: 50%; top: 50%; margin: -32px 0 0 -32px; cursor: pointer; z-index: 2; transition: transform .2s; }
.dial-demo.open .orb { transform: scale(.9); }
.slot { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: #2a2f33f0; color: #e7ecee; display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px #000a, inset 0 0 0 1px #ffffff22; opacity: 0; transform: translate(0, 0) scale(.3); transition: transform .28s cubic-bezier(.3, 1.4, .5, 1), opacity .2s, background .15s; transition-delay: calc(var(--i) * 18ms); }
.slot svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slot b { font: 600 17px/1 -apple-system, sans-serif; }
.dial-demo.open .slot { opacity: 1; transform: translate(var(--x), var(--y)) scale(1); }
.slot.hot { background: var(--glow); color: #0e1011; }
.dial-demo .toast { position: absolute; left: 50%; bottom: 9%; transform: translate(-50%, 8px); padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--text); font-size: 16px; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s; }
.dial-demo .toast.on { opacity: 1; transform: translate(-50%, 0); }
.dial-demo .toast kbd { font: inherit; color: var(--accent); margin-left: 8px; }
.dial-demo .try { position: absolute; left: 0; right: 0; top: 4%; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- desktops ---------- */
.desks-demo { margin-top: 56px; display: grid; justify-items: center; gap: 28px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.tab-shot { position: relative; width: min(760px, 100%); aspect-ratio: 1180 / 820; border-radius: 22px; background: #0e1011; box-shadow: 0 0 0 10px #18191b, 0 0 0 11px #45484b; overflow: hidden; container-type: inline-size; }
.tab-shot .glow { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 6cqi 0.6cqi color-mix(in srgb, var(--tint) 75%, transparent); border-radius: inherit; transition: box-shadow .5s; z-index: 2; }
.tab-shot .view { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.tab-shot .view.on { opacity: 1; }
.tab-shot .mini-side { position: absolute; left: 0; top: 0; bottom: 0; width: 25.4%; background: #f3f1ec; padding: 3cqi 1.6cqi; display: grid; gap: 1.2cqi; align-content: start; }
.tab-shot .mini-side span { height: 2.6cqi; border-radius: 1cqi; background: #dcdcd6; }
.tab-shot .mini-side span.on { background: #3d6a72; }
.tab-shot .mini-side .host { height: 2.2cqi; width: 70%; background: var(--tint); border-radius: 1cqi; margin-bottom: 1.4cqi; }
.tab-shot .mini-desk { position: absolute; background: radial-gradient(120% 90% at 20% 10%, #3f787d, #1e3b45 40%, #141a2a 75%); overflow: hidden; }
.tab-shot .mini-desk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3%; background: #ffffff30; }
.tab-shot .mini-win { position: absolute; border-radius: 1.4cqi; background: #f7f4ee; box-shadow: 0 1cqi 3cqi #0006; }
.tab-shot .mini-win.dark { background: #1d1b22; }
.tab-shot .mini-win.app { padding: 5cqi 6cqi; display: grid; gap: 2.2cqi; align-content: start; }
.tab-shot .mini-win.app span { height: 1.8cqi; border-radius: .9cqi; background: #d9d3c8; }
.tab-shot .mini-win.app span.me { justify-self: end; width: 40%; height: 5cqi; border-radius: 2cqi; background: #e9e2d6; }
.tab-shot .mini-win.app span.code { height: 9cqi; border-radius: 1.4cqi; background: #2a2723; }
.tab-shot .mini-dock { position: absolute; left: 30%; right: 30%; bottom: 2%; height: 6%; border-radius: 1.4cqi; background: #ffffff33; }
.tints { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tints button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px transparent; transition: box-shadow .2s; }
.tints button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
@media (max-width: 420px) { .tints { gap: 8px; } .tints button { width: 30px; height: 30px; } }
.tints-label { color: var(--muted); font-size: 15px; margin-top: -12px; }

/* ---------- connection ---------- */
.link { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .link { grid-template-columns: 1fr; } }
.pairing { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pairing .dev { border-radius: 18px; padding: 26px 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.pairing .dev small { display: block; color: var(--muted); font-size: 14px; }
.pairing .code { display: block; white-space: nowrap; margin-top: 10px; font: 600 clamp(20px, 2.4vw, 28px)/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--accent); }
.pairing .wire { width: clamp(40px, 6vw, 80px); height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 28px 2px; animation: flow 1.2s linear infinite; position: relative; }
.pairing .wire svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); background: var(--bg); padding: 2px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
@keyframes flow { to { background-position: 28px 0; } }

/* ---------- fastest path ---------- */
.path { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .path { grid-template-columns: 1fr; } }
.card { border-radius: 26px; padding: 26px; background: #15191b; box-shadow: 0 0 0 1px #ffffff14; display: grid; gap: 22px; }
.gauges { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; align-items: center; }
.gauges .lat strong { font-size: 52px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gauges .lat small, .gauges .ring small { display: block; color: var(--stage-muted); font-size: 13px; }
.gauges .lat em { font-style: normal; font-size: 16px; color: var(--stage-muted); margin-left: 4px; }
.ring { position: relative; text-align: center; }
.ring svg { width: 84px; height: 84px; margin: 0 auto; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring circle:first-child { stroke: #ffffff14; }
.ring circle + circle { stroke: var(--glow); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring b { position: absolute; left: 0; right: 0; top: 30px; font-size: 19px; font-variant-numeric: tabular-nums; }
.paths { display: grid; gap: 8px; }
.paths p { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #ffffff0a; transition: background .4s, box-shadow .4s; }
.paths p span:nth-child(2) { font-variant-numeric: tabular-nums; color: var(--stage-muted); }
.paths p i { width: 10px; height: 10px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--stage-muted); }
.paths p.on { background: #accdd01f; box-shadow: inset 0 0 0 1px #accdd055; }
.paths p.on i { background: var(--glow); box-shadow: none; }
.paths-note { color: var(--glow); font-size: 14px; min-height: 1.4em; transition: opacity .4s; }

/* ---------- the two apps ---------- */
.get h2 { margin-bottom: 48px; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--text); }
.sheet section { padding: 26px 0 0; display: grid; gap: 14px; align-content: start; }
.sheet section + section { border-left: 1px solid var(--line); padding-left: clamp(20px, 4vw, 48px); }
.sheet section:first-child { padding-right: clamp(20px, 4vw, 48px); }
.sheet .kind { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheet h3 { font-size: clamp(26px, 3vw, 34px); }
.sheet dl { margin: 6px 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; }
.sheet p { color: var(--muted); font-size: 15px; }
.sheet .button { justify-self: start; }
@media (max-width: 720px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet section + section { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .gesture *, .pairing .wire, .orb .wave i { animation: none !important; }
  .gesture .menu { opacity: 1; transform: none; }
}
