/* Attunely home · desktop ≥1024px (desktop specialist). Rationale: home/media/desktop/DESKTOP.md. Scene takes go between their scene:ID desktop markers. */
:root {
  --frame: min(1360px, calc(100vw - 232px));
  --frame-x: calc((100vw - var(--frame)) / 2);
  --rail-x: calc(var(--frame-x) - 58px);
  --gap: clamp(40px, 4.6vw, 84px);
  --fig: clamp(380px, min(35vw, 56vh), 640px);
  --desk: clamp(400px, 40vw, 580px);
  --t-h1: clamp(54px, 5vw, 86px);
  --t-h2: clamp(40px, 3.7vw, 64px);
  --t-hour: clamp(46px, 4.3vw, 74px);
  --scene-pad: 104px;
  --rail: rgba(255, 253, 248, .22);
}
html { scroll-padding-top: 88px; scroll-padding-bottom: 24px; }

.nav { height: 76px; padding-inline: 28px; }
.nav__word { font-size: 21px; }
.mark { width: 36px; }
.dock { display: none; }

.scene::after, .faq::after {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: calc(var(--rail-x) - 7px); width: 14px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 6.25px, var(--rail) 6.25px 7.75px, transparent 7.75px);   /* one hairline, no ticks: the stations are the only marks on it */
}
.hero::after { top: 50%; }
.faq::after { bottom: 40%; }
.s-dawn, .s-finale, .faq { --rail: rgba(29, 22, 64, .2); }

.clock {
  position: fixed; z-index: 61; left: calc(var(--rail-x) - 27px); top: 50%; translate: 0 -50%;
  flex-direction: column; gap: 4px; width: 54px; height: auto; padding: 5px 0 10px;
  background: rgba(16, 11, 40, .66);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, .24), 0 16px 32px -14px rgba(8, 5, 26, .85);
}
.clock::after { inset: -4px; }
.clock:focus-visible { border-radius: 27px; outline-offset: 4px; }
.clock__disc { width: 44px; height: 44px; }
.clock__time { min-width: 0; width: min-content; font-size: 14px; line-height: 1.15; text-align: center; letter-spacing: 0; white-space: normal; }
:lang(en) .clock__time { min-width: 0; font-size: 13px; }
:root[data-sky-tone="light"] .clock { background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1px rgba(29, 22, 64, .12), 0 16px 32px -16px rgba(60, 74, 122, .55); }
.clock[aria-expanded="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 0 0 1px rgba(29, 22, 64, .1), 0 16px 32px -16px rgba(8, 5, 26, .7); }
.chapters { left: calc(var(--rail-x) + 44px); right: auto; top: 0; bottom: 0; width: 360px; height: fit-content; margin-block: auto; transform-origin: 0 50%; }

.scene__head .hour, .s-finale > h2 { position: relative; }
.s-finale > h2::before, .s-finale > h2::after { content: ""; position: absolute; top: calc(var(--t-h2) * .63); pointer-events: none; }
.scene__head .hour::before, .scene__head .hour::after { content: ""; position: absolute; top: calc(var(--t-hour) / 2); pointer-events: none; }
.scene__head .hour::before, .s-finale > h2::before {
  left: calc(var(--rail-x) - var(--frame-x) - 8px); width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: var(--station-fill, #1D1640); box-shadow: inset 0 0 0 3.5px var(--station, var(--cream)), 0 0 0 5px var(--station-halo, rgba(16, 11, 40, .55));
}
.scene__head .hour::after, .s-finale > h2::after { content: none; }   /* the station alone marks the hour: no connector dash */
.s-dawn, .s-finale { --station: var(--ink); --station-fill: #FFF6EE; --station-halo: rgba(255, 246, 238, .6); }
/* light (2026-10-24): the rail and its stations are ink on paper at every hour, and the open clock is the paper's inverse */
:root[data-theme="light"] :is(.scene, .faq) { --rail: rgba(29, 22, 64, .18); --station: var(--ink); --station-fill: #FFFDF8; --station-halo: rgba(250, 249, 255, .72); }
:root[data-theme="light"] .clock[aria-expanded="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 16px 32px -16px rgba(60, 74, 122, .55); }

.actor[class*="a--hero-"]::before {
  inset: -74% -30% -2%; opacity: 1;
  background:
    radial-gradient(34% 21% at 52% 64%, color-mix(in oklab, var(--glow) 62%, transparent), transparent 74%),
    conic-gradient(at 52% 0%, transparent 167deg, rgba(255, 240, 226, .055) 172deg, rgba(255, 240, 226, .1) 180deg, rgba(255, 240, 226, .055) 188deg, transparent 193deg);
  -webkit-mask: linear-gradient(transparent 4%, #000 40%); mask: linear-gradient(transparent 4%, #000 40%);
}
.actor[class*="a--hero-"] .actor__glow { left: 18%; width: 70%; top: 86%; height: 12%; }

.scene__head :is(h2, h3) { margin-top: 14px; line-height: 1.18; letter-spacing: .005em; }
.hour { gap: 8px 16px; }
.hour .hour__no { letter-spacing: -.015em; }
.nametag--lg { padding: 6px 16px 7px; font-size: 18px; }
.lede { font-size: 19px; line-height: 1.6; margin-top: 18px; }
:lang(en) .scene__head :is(h2, h3) { letter-spacing: -.012em; }

.scene { padding: var(--scene-pad) var(--frame-x) 88px; }
.scene__head, [data-stage] { width: auto; margin: 0; }
:is(.s-commander, .s-strategist, .s-table, .s-dawn) { min-height: max(760px, 100vh); }

/* scene:hero desktop */
/* round 9 at a desk (Phantom's hero): the sticker centred at full scale, the sub and the button right under it, the cast
   in a wide ring around them (chips at the sticker's shoulders, renders in the corners), one big cloud behind. */
.scene.hero { height: max(720px, 100vh); padding: 96px 0 36px; justify-content: center; }
.hero::after { content: none; }                                   /* no rail through the sticker */
.hero__copy { flex: none; }
.hero .sticker { font-size: min(9.4cqw, 17.5cqh, 140px); }
.hero:lang(en) .sticker { font-size: min(8.6cqw, 16cqh, 128px); line-height: 1.02; }
.hero__sub, .hero:lang(en) .hero__sub { margin-top: 6px; max-width: none; font-size: 22px; }
.hero__proof { margin-top: 22px; font-size: 18px; }
.hero__cta { width: min(470px, 100%); margin: 30px auto 0; }
.hero__blob--a { --bw: 92cqw; left: 4cqw; top: 22%; }
.hero__blob--b { --bw: 46cqw; left: -16cqw; top: 66%; }
.hero__blob--c { --bw: 30cqw; left: 78cqw; top: -6%; }
/* the cast is set from the sticker's real box (--stk = its font-size; zh: a narrow line over a wide one, EN the inverse),
   never as a bare % of the hero: the three chips flank the narrow line and the button, 28 px clear of the words; the
   renders keep one size order (commander large, scout and strategist medium, concierge and scientist small), two of them
   tucked behind the sticker's corners, every one clear of the nav. A chip anchored by its right edge uses transform
   (the explode animates translate and scale, so the two compose) */
.hero { --stk: min(9.4cqw, 17.5cqh, 140px); --nar: 1.85; }
.hero:lang(en) { --stk: min(8.6cqw, 16cqh, 128px); --nar: 1.9; }
.hero__o--commander { --w: min(17cqw, 31cqh); --x: calc(96% - min(17cqw, 31cqh)); --y: 13%; --r: 8deg; }
.hero__o--scout { --w: min(17cqw, 31cqh); --x: 3%; --y: 13%; }
.hero__o--strategist { --w: min(17cqw, 31cqh); --x: calc(95% - min(17cqw, 31cqh)); --y: 60%; --r: -7deg; }
.hero__o--concierge { --w: min(11cqw, 20cqh); --x: 31%; --y: 12%; --r: -5deg; --ex: -6cqw; --ey: -34cqh; }
.hero__o--scientist { --w: min(12cqw, 22cqh); --x: 4%; --y: 65%; --r: 6deg; --ex: -40cqw; --ey: 4cqh; }
.hero__c--draft { --x: calc(50% - var(--nar) * var(--stk) - 28px); --y: calc(34% - 38px); --r: -5deg; transform: translateX(-100%); }
.hero__c--plan { --x: min(calc(50% + 3.17 * var(--stk) + 28px), calc(100% - 232px)); --y: 54%; --r: 4deg; --z: 4; --ex: 32cqw; --ey: -10cqh; }   /* R10: on open sky under the General, so it keeps the clear glass; 28 px clear of the wide line's die-cut (3.17em half-width, outline included), never past the frame */
.hero:lang(en) .hero__c--draft { --y: calc(45.6% + 12px); }
.hero:lang(en) .hero__c--plan { --x: 76%; --y: 53%; }   /* under the wide first line, beside the narrow second */
.hero__c--sleep { --x: calc(50% - 263px); --y: 70%; --r: -3deg; --z: 4; transform: translateX(-100%); --ex: -32cqw; --ey: 6cqh; }
.hero .float .glass { scale: 1.12; }
.hero .hero__c--draft .glass, .hero .hero__c--sleep .glass { transform-origin: 100% 50%; }
/* a narrow desk (< 1288, where the plan chip at 1.12 no longer fits beside the wide line): the chips drop to the phone's .94
   so the plan chip stays 20+ px clear of the die-cut and the frame edge */
@media (max-width: 1287.98px) {
  .hero .float .glass { scale: .94; }
  .hero__c--plan { --x: min(calc(50% + 3.17 * var(--stk) + 24px), calc(100% - 188px)); }
}
.hero__s--1 { --x: 27%; --y: 26%; --s: 24px; }
.hero__s--2 { --x: 70%; --y: 14%; --s: 18px; }
.hero__s--3 { --x: 30%; --y: 86%; --s: 20px; }
.hero__s--4 { --x: 74%; --y: 82%; --s: 26px; }
.clock { display: none; }                                         /* R9: no side pill; the nav links carry the chapters */
/* /scene:hero desktop */

[data-stage] > :not(.actor) { align-self: start; }

/* scene:kingdom desktop */
/* round 10 · THE KINGDOM at a desk (Phantom's rhythm): the words on the left at display scale, the kingdom large on the
   right with its three chips; the cloud passage spans the whole width, rises over the hero's foot and parts. */
.scene.s-kingdom {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(740px, 53%)); column-gap: var(--gap); align-items: center;
  padding: 64px var(--frame-x) 56px; text-align: left;
}
.s-kingdom::after { content: none; }
.kd__pass { width: 112vw; margin-left: -56vw; }
.kd__half { --kd-rest-y: -4%; --kd-rest-s: .7; }
.kd__half--l { --kd-rest-x: -44%; }
.kd__half--r { --kd-rest-x: 44%; }
.kd__head { width: auto; margin: 0; }
.kd__tag { padding: 8px 17px 9px 13px; font-size: 17px; }
.kd__tag::before { width: 14px; height: 14px; }
.kd__title { margin-top: 22px; font-size: clamp(42px, 3.9vw, 64px); line-height: 1.16; text-wrap: nowrap; }
.kd__title:lang(en) { font-size: clamp(44px, 4vw, 66px); line-height: 1.04; }
.kd__lede, .kd__lede:lang(en) { max-width: 19em; margin: 20px 0 0; font-size: 20px; line-height: 1.55; text-wrap: pretty; }
.kd__stage { width: 100%; margin: 0; }
.kd__chip { gap: 12px; padding: 12px 22px 13px; border-radius: 20px; }
.kd__chip .glass__t > b { font-size: 13px; }
.kd__chip .glass__t > :last-child { font-size: 18px; }
.kd__c--light { --x: -25%; --y: 70%; }   /* every chip on open sky, beside or under the island, never over its buildings */
.kd__c--tea { right: -6%; --y: 78%; }
.kd__c--ally { --x: 1%; --y: 88%; }
.kd__s--1 { --x: 2%; --y: 22%; --s: 24px; }
.kd__s--3 { --x: 94%; --y: 52%; --s: 26px; }
/* /scene:kingdom desktop */

/* scene:team desktop */
/* round 9 · YOUR AI OFFICERS at a desk: the four cards in one row, each render rising well out of its card, the one
   short line shown under the headline, the chip hanging off the foot; the cards rise in one after another (left first). */
.scene.s-team { --pop: 124px; padding: 88px var(--frame-x) 120px; }
.s-team::after { content: none; }
.team__blob--a { --bw: 74vw; left: -20vw; top: 30%; }
.team__blob--b { --bw: 66vw; left: 48vw; top: -12%; }
.team__title { width: auto; font-size: clamp(48px, 4.2vw, 68px); }
.team__stage { width: min(100%, 1180px); margin-top: 36px; }
.officers { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(18px, 1.9vw, 28px); }
.officer { padding: 0 18px; border-radius: 32px; }
.officer:nth-child(2) { --ry: 84px; }
.officer:nth-child(3) { --ry: 112px; }
.officer:nth-child(4) { --ry: 140px; }
.officer__o { width: 86%; }
.officer .nametag { padding: 4px 12px 5px; font-size: 15px; }
.officer h3 { margin-top: 12px; font-size: clamp(23px, 1.95vw, 29px); }
.officer h3:lang(en) { font-size: clamp(21px, 1.65vw, 25px); }
.officer__line { display: block; font-size: 16px; }
.officer__c { margin-bottom: -26px; padding-top: 20px; }
.officer__chip { padding: 11px 18px 12px 14px; border-radius: 18px; }
.officer__chip .glass__t > b { font-size: 13px; }
.officer__chip .glass__t > :last-child, .officer__chip:lang(en) .glass__t > :last-child { font-size: 18px; }
.team__s--1 { --x: -2.4%; --y: 2%; --s: 24px; }
.team__s--2 { --x: calc(50% - 11px); --y: 4%; --s: 22px; }
.team__s--3 { --x: 100.6%; --y: 64%; --s: 18px; }
/* /scene:team desktop */

/* scene:roundtable desktop */
/* round 10 · THE ROUND TABLE at a desk: the composition on the left (the page alternates: kingdom words left, the
   round table's words right, the keyboard's words left again), the words on the right at display scale. */
.scene.s-round {
  display: grid; grid-template-columns: minmax(0, min(660px, 54%)) minmax(0, 1fr); column-gap: var(--gap); align-items: center;
  padding: 56px var(--frame-x) 48px; text-align: left;
}
.s-round::after { content: none; }
.round__blob { --bw: 84vw; left: -14vw; top: 6%; }
.round__head { grid-area: 1 / 2; width: auto; margin: 0; --rx: 36px; --ry: 0px; }
.round__title { font-size: clamp(50px, 4.6vw, 76px); line-height: 1.12; }
.round__title:lang(en) { font-size: clamp(48px, 4.3vw, 70px); line-height: 1.04; }
.round__lede, .round__lede:lang(en) { max-width: 19em; margin: 20px 0 0; font-size: 20px; line-height: 1.55; text-wrap: pretty; }
.round__stage { grid-area: 1 / 1; width: 100%; height: clamp(380px, 31vw, 450px); margin: 0; }
.round__say { gap: 12px; padding: 10px 20px 10px 10px; border-radius: 20px; }
.round__say .glass__face { width: 44px; height: 44px; }
.round__say .glass__t > b { font-size: 13px; }
.round__say .glass__t > :last-child { font-size: 19px; }
.round__c--a { --x: 0%; --y: 4%; }
.round__c--b { right: 0%; --y: 80%; }
.round__s--2 { --s: 26px; }
/* /scene:roundtable desktop */

/* scene:dawn desktop */
/* round 9 · ONE CLICK at a desk (Phantom's rhythm): the words on the left at display scale, the glass phone-card on the
   right (min(500px, 46%)) with the horizon over it where your line draws the mark; one screen, no rail. */
.scene.s-dawn {
  min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(500px, 46%)); column-gap: var(--gap); align-items: center;
  padding: 76px var(--frame-x) 68px; text-align: left;
}
.s-dawn::after { content: none; }
.s-dawn .dawn__head { text-align: left; }
.s-dawn .dawn__head h2 { margin: 0; font-size: clamp(52px, 4.7vw, 78px); line-height: 1.1; }
.s-dawn .dawn__head h2:lang(en) { font-size: clamp(50px, 4.4vw, 72px); letter-spacing: -.015em; }
.s-dawn .dawn__head .lede { max-width: 21em; margin-top: 18px; font-size: 20px; line-height: 1.55; text-wrap: pretty; }
.s-dawn .dawn { width: auto; margin: 0; }
.dawn__blob { --bw: 84vw; left: 26vw; top: 26%; --par: 60px; }
.dawn__orb { --bw: 30vw; left: 46vw; top: 6%; --par: 70px; }
.dawn__s--2 { --x: -5%; --s: 22px; }
.dawn__s--3 { --s: 24px; }
.s-dawn .dchat .bubble > span:not(.dchat__avatar) { font-size: 16px; }
.s-dawn .send__msg small { font-size: 12.5px; }
.s-dawn .kbd { padding: 12px; border-radius: 32px; }
.s-dawn .kbd__row { --pad: 12px; --send: 60px; --send-top: -5px; }
.s-dawn .kbd__field { height: 52px; padding: 0 16px; border-radius: 26px; font-size: 17px; }
.s-dawn .send__btn svg { width: 27px; height: 27px; }
.s-dawn .kbd__board { margin-top: 12px; padding: 10px; border-radius: 22px; }
.s-dawn .kbd__keys i { height: 26px; font-size: 14px; }
.s-dawn .kbd__warn { gap: 12px; padding: 10px 14px 10px 10px; }
.s-dawn .kbd__warn p { font-size: 15px; }
.s-dawn .kbd__warn b { font-size: 15.5px; }
.s-dawn .kbd__who, .s-dawn .kbd__who img { width: 40px; height: 40px; }
.s-dawn .kbd__act { margin-top: 10px; }
.s-dawn .kbd__face { min-height: 52px; font-size: 17px; }
.s-dawn .send__go { font-size: 24px; }
.s-dawn .kbd__cap { padding-top: 10px; }
.s-dawn .kbd__cap { font-size: 13px; }
/* /scene:dawn desktop */

/* scene:finale desktop */
/* round 10 · THE CLOSING LINE at a desk: one centred line at display scale with the crown leaning on its corner,
   the hero's desk button under it, then one quiet row: the store badges and a small QR card. */
.scene.s-finale { min-height: 0; padding: 72px var(--frame-x) 44px; }
.s-finale::after, .scene.s-finale > h2::before { content: none; }     /* the rail and its station are retired in R9 */
.fin__line, .fin__line:lang(en) { max-width: none; font-size: clamp(76px, 7.4vw, 120px); }
.fin__line:lang(en) { font-size: clamp(64px, 6.1vw, 98px); }
.fin__br { display: none; }
.fin__crown { --x: calc(min(7.4vw, 120px) * 3.5); --y: -26px; --w: clamp(120px, 10.4vw, 160px); }
.s-finale:lang(en) .fin__crown { --x: calc(min(6.1vw, 98px) * 4.75); --y: -14px; --w: clamp(110px, 9.4vw, 146px); }
.fin__s--1 { --x: calc(min(7.4vw, 120px) * -4.4); --y: 34px; --s: 24px; }
.fin__s--2 { --x: calc(min(7.4vw, 120px) * 4.7); --y: 110px; --s: 18px; }
.fin__s--3 { --x: calc(min(7.4vw, 120px) * 3.1); --y: -16px; --s: 20px; }
.fin__blob--a { --bw: 86vw; left: 7vw; top: -14%; }
.s-finale .fin__blob--b { --bw: 26vw; left: 72vw; top: 34%; }
.s-finale .finale__cta { width: min(100%, 720px); margin-top: 24px; }
.s-finale .dl.lg { display: flex; width: min(100%, 470px); margin: 0 auto; --g: 9px; --h: 75px; --fs: 28px; }
.s-finale .dl.lg .dl-in { gap: 14px; }
.s-finale .dl.lg :is(.dl-g, .dl-c) { width: 1.05em; height: 1.05em; }
.fin__get { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.s-finale .badges { margin: 0; }
.s-finale .store-badge:hover::before { opacity: .45; }
/* the QR, quiet: a small pearl card that says one thing (desktop only; never on a phone or tablet UA) */
.s-finale .qr { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 16px 8px 8px; border-radius: 16px; text-align: left; background: rgba(255, 255, 255, .62); box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(74, 90, 154, .12); color: var(--ink); }
.s-finale .qr img { width: 64px; height: 64px; flex: none; border-radius: 8px; background: #fff; }
.s-finale .qr figcaption { max-width: 13.5em; font: 600 13px/1.45 var(--font-body); color: var(--ink-2); text-wrap: balance; }
html[data-device-platform="ios"] .s-finale .qr, html[data-device-platform="android"] .s-finale .qr { display: none; }
/* /scene:finale desktop */

.faq { position: relative; }   /* the rail's last stretch; the FAQ sheet and the colophon are home/ending.css */

@media (max-width: 1279px) {
  :root { --frame: calc(100vw - 168px); --rail-x: calc(var(--frame-x) - 46px); --fig: clamp(330px, min(37vw, 56vh), 440px); --gap: 40px; --desk: clamp(380px, 44vw, 520px); }
  .clock { width: 48px; left: calc(var(--rail-x) - 24px); padding: 4px 0 9px; }
  .clock__disc { width: 38px; height: 38px; }
  .clock__time { font-size: 13px; }
  .nav__links { margin-left: 6px; }
  :root, :root:lang(en) { --t-h1: clamp(46px, 4.7vw, 54px); }
  .s-commander { grid-template-columns: minmax(0, 1fr) var(--fig); grid-template-rows: auto auto auto auto; }
  .s-commander > .scene__head { grid-area: 1 / 1 / 2 / 2; }
  .s-commander .a--hero-commander { grid-area: 1 / 2 / -1 / 3; }
  .s-commander .cmd__line { grid-area: 1 / 2 / -1 / 3; margin-left: 0; }
  .s-strategist .a--hero-strategist { margin-top: 300px; }
  .s-finale { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .qr { gap: 14px; padding: 14px; }
  .qr img { width: 100px; height: 100px; }
  .qr b { font-size: 16px; }
}

@media (hover: hover) and (pointer: fine) {
  :root:not([data-motion="off"]) .actor__rig { transition: translate .42s var(--ease); }
  :root:not([data-motion="off"]) .actor:hover .actor__rig { translate: 0 -7px; }
  :root:not([data-motion="off"]) .chip:hover:not(:active):not(.is-pressed) { translate: 0 -2px; }
  .store-badge:hover::before { opacity: .6; }
}
/* foundation: the desktop nav links, and the theme toggle with them */
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.nav__theme { margin-left: 4px; }
.nav__theme + .nav__end { margin-left: auto; }
.nav__links a { display: grid; place-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font: 700 15px/1 var(--font-body); letter-spacing: .04em; opacity: .86; }
.nav__links a:hover { opacity: 1; background: rgba(255, 253, 248, .08); }
:root[data-sky-tone="light"] .nav__links a:hover { background: rgba(29, 22, 64, .06); }

/* desk (owner, 2026-10-24): no resting prompt and no 「看隊友怎麼接」 hint (a teammate's reply still speaks in the slot), and
   the download button grows 1.5x, bottom held on the same line */
.hero__cta .dl.lg { --g: 9px; --h: 75px; --fs: 28px; }
.hero__cta .dl.lg .dl-in { gap: 14px; }
.hero__cta .dl.lg :is(.dl-g, .dl-c) { width: 1.05em; height: 1.05em; }
