/* Keydance website v3 — minimal, dark, quiet.
   Colours come from the app (KeydanceM1Theme.swift) and the MAS brand spec:
   graphite #111417 · text #EBE4D8 · orange #EE8035. No neon, no purple gradients, no stacked glass. */
:root {
  --bg: #111417;
  --bg-2: #15181b;
  --text: #ebe4d8;
  --text-2: #afaca3;
  --muted: #868581;
  --line: rgba(235, 228, 216, .09);
  --line-2: rgba(235, 228, 216, .16);
  --orange: #ee8035;
  --orange-hi: #f2a746;
  --serif: "Songti SC", "STSong", Baskerville, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --wrap: 1040px;
  --pad: clamp(20px, 5vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="en"] { --serif: Baskerville, "New York", "Iowan Old Style", Georgia, serif; }
body { margin: 0; line-height: 1.6; font-size: 16px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.kh { position: sticky; top: 0; z-index: 40; background: rgba(17, 20, 23, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.kh.scrolled { border-bottom-color: var(--line); }
.kh-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); height: 60px; display: flex; align-items: center; gap: 28px; }
.kh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.kh-brand img { width: 24px; height: 24px; border-radius: 6px; }
.kh-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.kh-nav a { text-decoration: none; color: var(--text-2); transition: color .2s; }
.kh-nav a:hover, .kh-nav a[aria-current] { color: var(--text); }
.kh-end { display: flex; align-items: center; gap: 14px; }
.kh-lang { text-decoration: none; background: none; border: 0; padding: 4px 0; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; letter-spacing: .04em; }
.kh-lang span { display: none; }
.kh-lang span.is-active { display: inline; }
.kh-lang:hover { color: var(--text); }
.kh-dl { font-size: 13px; text-decoration: none; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); transition: border-color .2s, background .2s; }
.kh-dl:hover { border-color: rgba(235, 228, 216, .32); background: rgba(235, 228, 216, .04); }
.kh-menu { display: none; width: 34px; height: 34px; border: 0; background: none; color: var(--text); cursor: pointer; padding: 0; }
.kh-menu svg { width: 20px; height: 20px; }

/* ---------- buttons & text ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 12px 22px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn-apple { width: 14px; height: 17px; fill: currentColor; margin-top: -2px; }
.btn-primary { background: var(--orange); color: #1b0f05; }
.btn-primary:hover { background: #f08f48; }
.link { color: var(--text-2); text-decoration: none; font-size: 15px; transition: color .2s; }
.link:hover { color: var(--text); }
.link::after { content: " →"; }
.label { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.serif { font-family: var(--serif); font-weight: 400; }
html[lang="zh-CN"] .serif { letter-spacing: .04em; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(48px, 8vh, 96px) 0 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.1; margin: 0 0 18px; letter-spacing: .02em; text-wrap: balance; }
html[lang="en"] .hero h1 { letter-spacing: -.01em; }
.hero .sub { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); max-width: 34em; margin: 0 auto 28px; text-wrap: balance; }
.hero .cta { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero .meta { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- live demo ---------- */
.stage { position: relative; margin: clamp(56px, 9vh, 88px) auto 0; max-width: 960px; padding: 0 var(--pad); }
.stage::before { content: ""; position: absolute; left: 50%; top: 20%; width: 640px; max-width: 90%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(238, 128, 53, .12), transparent); filter: blur(40px); pointer-events: none; }
.menubar { position: relative; height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 14px; border-radius: 10px 10px 0 0; font-size: 13px; color: rgba(235, 228, 216, .86);
  background: linear-gradient(180deg, #24272c, #1e2125); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .4); }
.menubar svg.apple { width: 12px; height: 14px; fill: currentColor; }
.menubar b { font-weight: 600; }
.menubar .m-dim { color: rgba(235, 228, 216, .62); }
.menubar .m-r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.m-kd { display: inline-flex; align-items: center; gap: 6px; padding: 2px 7px; border-radius: 5px; background: rgba(235, 228, 216, .14); font-variant-numeric: tabular-nums; }
.m-kd svg { width: 13px; height: 13px; }
.desk { position: relative; display: flex; justify-content: center; padding: 10px 0 56px; border-radius: 0 0 14px 14px;
  background: radial-gradient(120% 90% at 50% 0%, #1b1e22, #121417 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.demo-note { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.demo-note b { color: var(--text-2); font-weight: 500; }

/* the panel, at the app's own 400 pt width; scaled with zoom */
.kp { --kp-bg: #191b1e; --kp-card: #1e2024; --kp-raised: #282a2c; --kp-text: #ebe4d8; --kp-text-2: #afaca3; --kp-muted: #868581; --kp-line: #35373b;
  --kp-orange: #ee8035; --kp-orange-hi: #f2a746; --kp-cool: #6680b0; --kp-cool-hi: #7e9cd5; --kp-map: #13171c; --kp-empty: #1a1d1f; --kp-muted-line: rgba(235,228,216,.14);
  zoom: var(--kp-zoom, 1.2); width: 400px; position: relative; text-align: left; color: var(--kp-text); background: var(--kp-bg); border-radius: 14px; padding: 0 14px 14px; font-size: 11px; line-height: 1.35;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .11), 0 0 0 .5px rgba(0, 0, 0, .8), 0 24px 60px -10px rgba(0, 0, 0, .7); transition: background .3s, color .3s; }
.kp::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: var(--kp-bg); transform: translateX(-50%) rotate(45deg); box-shadow: -1px -1px 0 rgba(255, 255, 255, .11); transition: background .3s; }
.kp[data-theme="day"] { --kp-bg: #fbf5ec; --kp-card: #fef9f0; --kp-raised: #fffcf7; --kp-text: #1f1b17; --kp-text-2: #4f473d; --kp-muted: #807363; --kp-line: rgba(64,46,31,.12);
  --kp-orange: #f6500b; --kp-orange-hi: #ff8118; --kp-cool: #3e6ea6; --kp-cool-hi: #5490d1; --kp-map: #e6ebec; --kp-empty: #fbf5e9; --kp-muted-line: rgba(64,46,31,.14);
  box-shadow: 0 0 0 1px rgba(64,46,31,.14), 0 24px 60px -10px rgba(0, 0, 0, .7); }
.kp button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.kp-head { display: flex; align-items: center; gap: 8px; height: 50px; border-bottom: 1px solid var(--kp-line); margin: 0 -14px 12px; padding: 0 14px; }
.kp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--kp-orange); flex: none; }
.kp-title { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.kp-seg { margin-left: auto; display: flex; gap: 2px; }
.kp-seg button { padding: 5px 10px; border-radius: 7px; font-size: 11.5px; color: var(--kp-text-2); position: relative; }
.kp-seg button[aria-selected="true"] { background: var(--kp-raised); color: var(--kp-text); font-weight: 600; }
.kp-seg button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 2px; border-radius: 2px; background: var(--kp-orange); transform: translateX(-50%); }
.kp-icon { width: 26px; height: 26px; display: grid; place-items: center; color: var(--kp-text-2); }
.kp-icon svg { width: 15px; height: 15px; }
button.kp-icon:hover { color: var(--kp-text); }
.kp-body { display: grid; gap: 8px; }
.kp-body[hidden] { display: none; }
.kp-card { background: var(--kp-card); border-radius: 12px; padding: 10px 11px 11px; box-shadow: inset 0 0 0 1px var(--kp-line); transition: background .3s; }
.kp small { display: block; font-size: 10px; color: var(--kp-text-2); }
.kp strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.kp-muted { color: var(--kp-muted); font-size: 10px; }
.kp-sum { padding: 12px 12px 10px; }
.kp-sum-top { display: grid; grid-template-columns: 1fr 1.18fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--kp-line); }
.kp-big { display: block; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; margin: 2px 0 2px; }
.kp-delta { font-style: normal; font-size: 10px; font-weight: 600; color: var(--kp-orange-hi); }
.kp-agent small { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.kp-help { display: inline-grid; width: 12px; height: 12px; color: var(--kp-muted); font-style: normal; }
.kp-help svg { width: 12px; height: 12px; }
.kp-flow { display: flex; align-items: flex-end; gap: 6px; margin: 6px 0 4px; }
.kp-flow strong { display: block; font-size: 17px; line-height: 1.1; }
.kp-flow small { font-size: 9px; }
.kp-flow > i { font-style: normal; color: var(--kp-muted); padding-bottom: 12px; }
.kp-agent p { margin: 0; font-size: 9px; white-space: nowrap; color: var(--kp-text-2); font-weight: 600; }
.kp-agent p b { color: var(--kp-orange-hi); font-size: 11px; }
.kp-sum-bottom { display: grid; grid-template-columns: 1fr 1fr; padding-top: 8px; }
.kp-sum-bottom > div + div { border-left: 1px solid var(--kp-line); padding-left: 12px; }
.kp-mid { display: block; font-size: 22px; line-height: 1.2; margin-top: 2px; }
.kp-mid span { font-size: 15px; }
.kp-ch { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.kp-ch b { font-size: 12px; font-weight: 600; }
.kp-ch .kp-legend, .kp-ch .kp-muted, .kp-ch .kp-seg2 { margin-left: auto; }
.kp-legend { display: flex; align-items: center; gap: 2px; font-size: 9px; color: var(--kp-text-2); }
.kp-legend > i { width: 8px; height: 6px; border-radius: 1.5px; background: var(--kp-raised); }
.kp-legend > i:nth-of-type(2) { background: #4c3220; } .kp-legend > i:nth-of-type(3) { background: #8a5524; } .kp-legend > i:nth-of-type(4) { background: #c7752a; } .kp-legend > i:nth-of-type(5) { background: #f29a3a; }
.kp[data-theme="day"] .kp-legend > i:nth-of-type(1) { background: #ecddca; } .kp[data-theme="day"] .kp-legend > i:nth-of-type(2) { background: #f7cd9e; } .kp[data-theme="day"] .kp-legend > i:nth-of-type(3) { background: #f8b370; } .kp[data-theme="day"] .kp-legend > i:nth-of-type(4) { background: #fa7a24; } .kp[data-theme="day"] .kp-legend > i:nth-of-type(5) { background: #ff5408; }
.kp-legend2 { gap: 4px; }
.kp-legend2 .sq { width: 7px; height: 7px; border-radius: 1.5px; background: var(--kp-cool-hi) !important; }
.kp-legend2 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--kp-orange) !important; margin-left: 6px; }
/* keyboard */
.kp-kb { display: grid; gap: 3.2px; }
.kp-row { display: flex; gap: 3.2px; }
.kp-key { flex: 1 1 0; min-width: 0; height: 22.4px; position: relative; border-radius: 2.6px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(40, 42, 44, .72), rgba(26, 29, 31, .98)); color: rgba(175, 172, 163, .88); }
.kp-key::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--heat, none); box-shadow: inset 0 0 0 .6px var(--edge, transparent), var(--glow, none); }
.kp-key b { position: relative; font-size: 8.3px; font-weight: 500; line-height: 1; transform: translateY(-1px); }
.kp-key b.sm { font-size: 5.6px; letter-spacing: -.1px; white-space: nowrap; }
.kp-key i { position: absolute; right: 2.5px; bottom: 1.5px; font-style: normal; font-size: 5.6px; opacity: .62; color: var(--kp-text); font-variant-numeric: tabular-nums; }
.kp-key.lit { color: var(--kp-text); }
.kp-key.hit::after { content: ""; position: absolute; inset: -1px; border-radius: 3px; box-shadow: 0 0 0 1px var(--kp-orange-hi), 0 0 12px rgba(242, 167, 70, .7); animation: kp-hit .5s ease-out forwards; }
@keyframes kp-hit { to { opacity: 0; } }
.kp[data-theme="day"] .kp-key { background: linear-gradient(180deg, #fffcf7, #f6eee2); color: #807363; box-shadow: inset 0 0 0 .6px rgba(64,46,31,.12); }
.kp[data-theme="day"] .kp-key.lit { color: #1f1b17; }
/* rhythm */
.kp-ch2 { align-items: flex-start; }
.kp-ch2 > div:first-child { display: grid; gap: 2px; }
.kp-h2 { font-size: 14px !important; }
.kp-kpis { margin-left: auto; display: flex; gap: 14px; }
.kp-kpis strong { display: block; font-size: 15px; color: var(--kp-orange-hi); }
.kp-kpis strong span { font-size: 8.5px; color: var(--kp-text-2); font-weight: 500; }
.kp-rh { display: flex; align-items: flex-end; gap: 1.4px; height: 64px; margin-top: 18px; position: relative; border-bottom: 1px dashed var(--kp-muted-line); }
.kp-rh i { flex: 1; border-radius: 1px 1px 0 0; position: relative; }
.kp-rh i[data-peak]::before { content: "峰值 " attr(data-peak); position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 8.5px; font-style: normal; color: var(--kp-orange-hi); font-weight: 600; }
html[lang="en"] .kp-rh i[data-peak]::before { content: "Peak " attr(data-peak); }
.kp-rh i[data-peak]::after { content: ""; position: absolute; inset: -2px -3px 0; background: radial-gradient(closest-side, rgba(242, 167, 70, .35), transparent); }
.kp-axis { display: flex; justify-content: space-between; margin-top: 5px; font: 9px/1 var(--mono); color: var(--kp-text-2); }
.kp-ramp { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 9px; color: var(--kp-muted); }
.kp-ramp i { width: 70px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #5a4535, #c27630, #f4a043); }
/* screen heat */
.kp-map { position: relative; height: 104px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(var(--kp-muted-line) 1px, transparent 1px) 0 0 / 13.3px 13.3px, linear-gradient(90deg, var(--kp-muted-line) 1px, transparent 1px) 0 0 / 13.3px 13.3px, var(--kp-map); }
.kp-map .blob { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(126, 156, 213, .85), rgba(102, 128, 176, .35) 60%, transparent); filter: blur(5px); }
.kp[data-theme="day"] .kp-map .blob { background: radial-gradient(closest-side, rgba(84, 144, 209, .6), rgba(62, 110, 166, .25) 60%, transparent); }
.kp-map .clk { position: absolute; width: 3.5px; height: 3.5px; margin: -1.75px; border-radius: 50%; background: var(--kp-orange); }
.kp-map .clk.big { width: 7px; height: 7px; margin: -3.5px; box-shadow: 0 0 8px var(--kp-orange); }
/* stats view */
.kp-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp-tot strong { display: block; font-size: 20px; line-height: 1.2; }
.kp-seg2 { display: flex; gap: 2px; font-size: 9.5px; }
.kp-seg2 i { font-style: normal; padding: 2px 6px; border-radius: 5px; color: var(--kp-text-2); }
.kp-seg2 i.on { background: var(--kp-raised); color: var(--kp-text); }
.kp-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.kp-grid i { aspect-ratio: 1; border-radius: 2px; background: var(--kp-raised); }
.kp-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kp-top li { display: grid; grid-template-columns: 12px 44px 1fr 38px; align-items: center; gap: 6px; font-size: 10px; }
.kp-top li span { color: var(--kp-muted); }
.kp-top li i { height: 4px; border-radius: 2px; background: var(--kp-raised); position: relative; overflow: hidden; }
.kp-top li i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, #8a5524, var(--kp-orange-hi)); border-radius: inherit; }
.kp-top li em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--kp-text-2); }
.kp-date { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 12px; border-radius: 12px; background: var(--kp-card); box-shadow: inset 0 0 0 1px var(--kp-line); font-size: 12px; }
.kp-date b { margin-left: 22px; font-size: 13px; }
.kp-date .kp-off { margin-left: auto; color: var(--kp-muted); }

/* ---------- sections ---------- */
.sec { padding: clamp(96px, 14vh, 150px) 0 0; }
.sec h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.2; margin: 0 0 18px; letter-spacing: .02em; text-wrap: balance; }
html[lang="en"] .sec h2 { letter-spacing: -.005em; }
.sec .intro { color: var(--text-2); max-width: 34em; margin: 0; font-size: 17px; }
.rows { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(150px, .32fr) 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0; font-size: 16px; font-weight: 600; }
.rows p { margin: 0; color: var(--text-2); }
.rows .tag { display: inline-block; margin-left: 8px; font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; vertical-align: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
.two h3 { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin: 0 0 14px; }
.two ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.two li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.two li::before { content: "＋"; color: var(--orange); margin-right: 10px; font-size: 13px; }
.two .no li::before { content: "－"; color: var(--muted); }
.after { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.after a { color: var(--text-2); }
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 16px; color: var(--muted); font-size: 18px; font-weight: 300; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--text-2); max-width: 42em; }
.end { text-align: center; padding: clamp(110px, 16vh, 170px) 0 clamp(80px, 12vh, 120px); }
.end h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 46px); margin: 0 0 28px; letter-spacing: .04em; }
.end .meta { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.kf { border-top: 1px solid var(--line); }
.kf-in { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--pad) 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 13px; color: var(--muted); }
.kf-in nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.kf-in a { text-decoration: none; color: var(--text-2); }
.kf-in a:hover { color: var(--text); }
.kf-in .copy { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .kh-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px var(--pad) 16px; background: rgba(17, 20, 23, .97); border-bottom: 1px solid var(--line); margin: 0; }
  .kh-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .kh.open .kh-nav { display: flex; }
  .kh-menu { display: inline-grid; place-items: center; }
  .kh-end { margin-left: auto; }
  .rows li { grid-template-columns: 1fr; gap: 6px; }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .menubar .m-dim { display: none; }
}
@media (max-width: 600px) {
  .stage { padding: 0 12px; }
  .menubar { gap: 12px; font-size: 12px; }
  .desk { padding: 10px 0 28px; }
  .kp { --kp-zoom: calc((100vw - 48px) / 400); }
  .hero .cta { flex-direction: column; gap: 16px; }
  .kf-in .copy { margin-left: 0; width: 100%; }
  .kh-dl { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- feature showcases (loud, but still on brand: graphite + orange + the app's blue) ---------- */
.feat { padding-top: clamp(110px, 16vh, 170px); }
.feat-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.15; letter-spacing: .02em; margin: 0; }
html[lang="en"] .feat-title { letter-spacing: -.01em; }
.show { padding: clamp(110px, 16vh, 180px) 0 0; }
.show-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.show-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.label .pro { margin-left: 10px; font-size: 10px; letter-spacing: .1em; color: var(--orange-hi); border: 1px solid rgba(238, 128, 53, .45); border-radius: 4px; padding: 2px 5px; vertical-align: 1px; }
.show-h { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.16; margin: 0 0 18px; letter-spacing: .02em; text-wrap: balance; }
html[lang="en"] .show-h { letter-spacing: -.01em; }
.show-sub { color: var(--text-2); font-size: 17px; max-width: 30em; margin: 0; }
.big { text-align: right; }
.big-num { display: block; font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; font-weight: 600; font-size: clamp(88px, 13vw, 200px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffd29b 0%, var(--orange-hi) 38%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-cap { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 22em; margin-left: auto; }
.big-inline { text-align: left; margin: 6px 0 22px; }
.big-inline .big-num { font-size: clamp(80px, 10vw, 150px); }
.big-inline .big-cap { margin-left: 0; }

/* keyboard, full size */
.kb-stage { max-width: 1180px; margin: 56px auto 0; padding: 0 var(--pad); }
.kp.kb-big { width: 400px; zoom: var(--kb-zoom, 2.6); background: none; box-shadow: none; padding: 0; border-radius: 0; margin: 0 auto; }
.kp.kb-big::before { display: none; }
.kb-big .kp-key { border-radius: 2.4px; }

/* rhythm, full width */
.rh-big { display: flex; align-items: flex-end; gap: 3px; height: clamp(180px, 26vw, 300px); margin-top: 64px; border-bottom: 1px dashed rgba(235, 228, 216, .14); }
.rh-big i { flex: 1; height: 0; border-radius: 2px 2px 0 0; position: relative; transition: height .9s cubic-bezier(.2, .75, .15, 1); }
.rh-big.grown i { height: var(--h); }
.rh-big i.peak { box-shadow: 0 0 18px rgba(242, 167, 70, .6); }
.rh-big i.peak::before { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); font: 600 13px var(--mono); color: var(--orange-hi); opacity: 0; transition: opacity .6s 1.6s; }
.rh-big.grown i.peak::before { opacity: 1; }
.rh-big-axis { display: flex; justify-content: space-between; margin-top: 10px; font: 12px var(--mono); color: var(--muted); }

/* screen heat on a display */
.screen { position: relative; padding: 10px 10px 0; border-radius: 16px 16px 6px 6px; background: linear-gradient(180deg, #2a2d31, #1c1f22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.screen-foot { display: block; height: 12px; margin: 0 -24px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #2c2f33, #17191c); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.screen-in { position: relative; aspect-ratio: 16 / 10; border-radius: 8px 8px 0 0; overflow: hidden; margin-bottom: 10px;
  background: linear-gradient(rgba(235, 228, 216, .06) 1px, transparent 1px) 0 0 / 4% 6.4%, linear-gradient(90deg, rgba(235, 228, 216, .06) 1px, transparent 1px) 0 0 / 4% 6.4%, #13171c; }
.screen-in .blob { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(126, 156, 213, .9), rgba(102, 128, 176, .38) 60%, transparent); filter: blur(10px); opacity: 0; transform: scale(.6); transition: opacity 1.4s ease, transform 1.6s cubic-bezier(.2, .75, .15, 1); }
.screen-in .clk { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--orange); opacity: 0; transform: scale(0); transition: opacity .3s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.screen-in .clk.big { width: 14px; height: 14px; margin: -7px; box-shadow: 0 0 16px var(--orange); }
.screen-in.on .blob { opacity: 1; transform: none; }
.screen-in.on .clk { opacity: 1; transform: none; }
.screen-in .cursor { position: absolute; left: 50%; top: 50%; width: 14px; height: 20px; margin: -2px 0 0 -2px; transition: left 1.1s cubic-bezier(.45, 0, .2, 1), top 1.1s cubic-bezier(.45, 0, .2, 1);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20'%3E%3Cpath d='M1 1v15.5l4-3.6 2.6 5.8 2.5-1.1-2.5-5.6H13z' fill='%23fff' stroke='%23000' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.screen-in .ping { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 2px solid var(--orange-hi); animation: ping .9s ease-out forwards; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

/* agents */
.ag-center { text-align: center; }
.ag-num { display: inline-flex; align-items: flex-start; justify-content: center; }
.ag-num .big-num { font-size: clamp(140px, 22vw, 300px); }
.ag-x { font: 300 clamp(60px, 8vw, 110px)/1 -apple-system, "SF Pro Display", sans-serif; color: var(--orange); margin-top: .25em; margin-left: .04em; }
.ag-def { margin: 4px 0 40px; font: 13px var(--mono); color: var(--muted); }
.ag-center .show-sub { margin: 28px auto 0; }
.ag-flow { display: inline-grid; grid-template-columns: auto 120px auto; align-items: center; gap: 24px; margin-top: 18px; text-align: left; }
.mono-num { display: block; font-family: -apple-system, "SF Pro Display", sans-serif; font-weight: 600; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.ag-flow small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.ag-arrow { height: 2px; background: linear-gradient(90deg, rgba(238, 128, 53, .2), var(--orange)); position: relative; transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2, .75, .15, 1) .3s; }
.ag-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--orange); }
.show-ag.on .ag-arrow { transform: none; }
.ag-list { margin: 36px auto 0; max-width: 46em; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.ag-list span { white-space: nowrap; }
.feat-more { padding-top: clamp(80px, 12vh, 120px); }
.feat-more p { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

@media (max-width: 820px) {
  .show-grid, .show-split { grid-template-columns: 1fr; align-items: start; }
  .big { text-align: left; }
  .big-cap { margin-left: 0; }
  .rh-big { gap: 1.5px; }
  .ag-flow { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .ag-arrow { width: 2px; height: 40px; margin: 0 auto; background: linear-gradient(180deg, rgba(238, 128, 53, .2), var(--orange)); transform-origin: top; transform: scaleY(0); }
  .ag-arrow::after { right: -5px; top: auto; bottom: -8px; border: 6px solid transparent; border-top: 9px solid var(--orange); }
}
@media (prefers-reduced-motion: reduce) { .rh-big i { height: var(--h); } .screen-in .blob, .screen-in .clk { opacity: 1; transform: none; } .ag-arrow { transform: none; } }

/* ---------- hero: a real-looking Mac screen ---------- */
.stage { max-width: 1260px; margin-top: clamp(40px, 6vh, 64px); }
.stage::before { top: 30%; width: 900px; height: 70%; background: radial-gradient(closest-side, rgba(238, 128, 53, .16), rgba(102, 128, 176, .06) 60%, transparent); filter: blur(60px); }
.mac { position: relative; }
.stage { overflow-x: clip; overflow-y: visible; padding-left: max(var(--pad), 4.6%); padding-right: max(var(--pad), 4.6%); }
.mac-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px 18px 4px 4px; border: 11px solid #0b0c0e; border-bottom-width: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(0, 0, 0, .6), 0 60px 120px -40px rgba(0, 0, 0, .9); background: #0b0d10; }
.mac-screen::before { content: ""; position: absolute; top: 0; left: 50%; z-index: 5; width: 13%; height: 24px; transform: translateX(-50%); background: #0b0c0e; border-radius: 0 0 9px 9px; }
.mac-screen::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .06) 0%, transparent 28%, transparent 70%, rgba(255, 255, 255, .025)); }
.mac-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.mac-screen .menubar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 26px; border-radius: 0; padding: 0 16px; gap: 17px; font-size: 12.5px;
  background: rgba(20, 22, 26, .45); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: none; color: rgba(255, 255, 255, .92); }
.mac-screen .menubar .m-dim { color: rgba(255, 255, 255, .86); }
.mac-screen .m-r { gap: 15px; }
.mac-screen .m-kd { background: rgba(255, 255, 255, .22); color: #fff; }
.m-ico { width: 15px; height: 11px; color: rgba(255, 255, 255, .92); }
.m-batt { width: 22px; height: 11px; }
.mac-chin { position: relative; height: 18px; margin: 0 -4.5%; border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, #3a3d42 0, #24262a 30%, #16181b 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 30px 60px -20px rgba(0, 0, 0, .9); }
.mac-chin i { position: absolute; left: 50%; top: 0; width: 14%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #1b1d20; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); }
/* a document window behind the panel: shapes only, no readable content */
.mac-win { position: absolute; z-index: 2; left: 6%; top: 14%; width: 50%; height: 64%; border-radius: 12px; overflow: hidden;
  background: rgba(24, 26, 30, .78); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px -20px rgba(0, 0, 0, .8); }
.mw-bar { height: 30px; display: flex; gap: 7px; align-items: center; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .mw-bar i:nth-child(2) { background: #febc2e; } .mw-bar i:nth-child(3) { background: #28c840; }
.mw-body { display: grid; grid-template-columns: 26% 1fr; height: calc(100% - 30px); }
.mw-side { padding: 14px 12px; display: grid; align-content: start; gap: 10px; border-right: 1px solid rgba(255, 255, 255, .05); background: rgba(255, 255, 255, .02); }
.mw-side i { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); } .mw-side i:nth-child(2) { width: 70%; background: rgba(238, 128, 53, .35); } .mw-side i:nth-child(4) { width: 60%; }
.mw-code { padding: 16px 18px; display: grid; align-content: start; gap: 11px; }
.mw-code i { height: 6px; width: var(--w); border-radius: 3px; background: var(--c, rgba(255, 255, 255, .16)); opacity: .55; }
.mw-code i:nth-child(odd) { margin-left: 6%; }
.mac-pop { position: absolute; z-index: 3; top: 32px; right: 9%; }
.mac-pop .kp { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 .5px rgba(0, 0, 0, .8), 0 30px 80px -10px rgba(0, 0, 0, .85); }
.mac-pop .kp::before { left: auto; right: 58px; }
.desk { display: none; }

/* trust markers */
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 64px auto 0; padding-top: 0; }
.trust li { padding: 18px 20px; border-left: 1px solid var(--line); text-align: center; }
.trust li:first-child { border-left: 0; }
.trust b { display: block; font-size: 17px; font-weight: 600; color: var(--text); }
.trust span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* material: fine grain over everything, a little stage light per showcase */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.show { position: relative; }
.show::before { content: ""; position: absolute; left: 50%; top: 60px; width: min(1100px, 100%); height: 70%; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(60% 55% at 50% 0%, rgba(235, 228, 216, .045), transparent 70%); }
.show-kb::after { content: ""; position: absolute; left: 50%; bottom: -40px; width: min(1000px, 90%); height: 120px; transform: translateX(-50%); z-index: -1; background: radial-gradient(closest-side, rgba(238, 128, 53, .16), transparent); filter: blur(30px); }
.kb-big { -webkit-box-reflect: none; }
.big-num { filter: drop-shadow(0 18px 50px rgba(238, 128, 53, .22)); }
.screen { background: linear-gradient(180deg, #2d3035, #1b1e21); }
.btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 30px -10px rgba(238, 128, 53, .7); background: linear-gradient(180deg, #f39a52, var(--orange)); }
.btn-primary:hover { background: linear-gradient(180deg, #f6a865, #f08f48); }

@media (max-width: 900px) {
  .mac-win { display: none; }
  .mac-pop { right: 50%; transform: translateX(50%); }
  .mac-pop .kp::before { left: 50%; right: auto; }
  .mac-screen .menubar .m-dim, .m-time { display: none; }
}
@media (max-width: 700px) {
  .mac-screen { aspect-ratio: auto; height: auto; border-width: 7px; border-bottom-width: 9px; border-radius: 14px 14px 4px 4px; }
  .mac-screen::before { height: 16px; }
  .mac-pop { position: relative; top: auto; right: auto; transform: none; display: flex; justify-content: center; padding: 34px 0 18px; }
  .mac-chin { height: 12px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- background design: a dim keyboard behind everything ---------- */
html { background: var(--bg); }
body { background: transparent !important; }
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bgfx-grid, .bgfx-glow { position: absolute; inset: 0; }
.bgfx-grid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Crect x='6.5' y='6.5' width='43' height='43' rx='9' fill='none' stroke='%23ebe4d8' stroke-opacity='.04'/%3E%3Crect x='10.5' y='9.5' width='35' height='33' rx='7' fill='none' stroke='%23ebe4d8' stroke-opacity='.016'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 75% at 50% 48%, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 55%, #000 100%); mask-image: radial-gradient(60% 75% at 50% 48%, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 55%, #000 100%); }
.bgfx-glow { -webkit-mask-image: radial-gradient(60% 75% at 50% 48%, rgba(0, 0, 0, .35) 0%, #000 75%); mask-image: radial-gradient(60% 75% at 50% 48%, rgba(0, 0, 0, .35) 0%, #000 75%); }
/* keep long text calm: a soft veil behind reading columns */
.hero .wrap, .feat-intro, .show-head, .sec .wrap, .end .wrap { position: relative; }
.hero .wrap::before { content: ""; position: absolute; inset: -40px 10% -20px; z-index: -1; background: radial-gradient(closest-side, rgba(17, 20, 23, .92), rgba(17, 20, 23, .6) 60%, transparent); pointer-events: none; }

/* 24-hour ruler: 96 ticks, one per 15-minute bucket */
.ruler { max-width: var(--wrap); margin: clamp(88px, 13vh, 130px) auto 0; padding: 0 var(--pad); }
.ruler + .sec, .ruler + .feat { padding-top: clamp(72px, 10vh, 110px); }
.ruler-in { position: relative; height: 22px; border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, rgba(235, 228, 216, .22) 0 1px, transparent 1px calc(100% / 24)), repeating-linear-gradient(90deg, rgba(235, 228, 216, .12) 0 1px, transparent 1px calc(100% / 96));
  background-size: 100% 9px, 100% 5px; background-repeat: no-repeat; }
.ruler-in::after { content: ""; position: absolute; top: -1px; height: 1px; left: 0; width: var(--fill, 0%); background: linear-gradient(90deg, rgba(238, 128, 53, .1), var(--orange)); box-shadow: 0 0 10px rgba(238, 128, 53, .6); transition: width 2.4s cubic-bezier(.2, .75, .15, 1); }
.ruler.on .ruler-in::after { width: var(--to, 83%); }
.ruler-lb { display: flex; justify-content: space-between; margin-top: 2px; font: 10px var(--mono); color: var(--muted); letter-spacing: .06em; }
.ruler-lb b { font-weight: 400; color: var(--orange-hi); }
.show-num { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .12em; margin-right: 12px; }

/* ---------- home background, round 2: rendered keycap floors, stage light, editorial numerals ---------- */
html { background: radial-gradient(120% 60% at 50% 0%, #161a1e 0%, #111417 45%, #0d0f12 100%) fixed, #0e1013; }
body.home .bgfx-grid { display: none; }                 /* no all-over pattern on the home page */
.floor { position: absolute; left: 50%; width: 100vw; aspect-ratio: 3200 / 1400; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 58%, transparent 96%), linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 58%, transparent 96%), linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.floor-duo { background-image: image-set(url("floor-duo-2560.webp?v=c41040ae7e79") 1x); background-image: url("floor-duo-2560.webp?v=c41040ae7e79"); }
.floor-warm { background-image: url("floor-warm-2560.webp?v=7b2887cfe377"); }
.floor-cool { background-image: url("floor-cool-2560.webp?v=53556f98a78a"); }
@media (max-width: 900px) {
  .floor-duo { background-image: url("floor-duo-1280.webp?v=c0e622306b37"); }
  .floor-warm { background-image: url("floor-warm-1280.webp?v=4a3cd11add13"); }
  .floor-cool { background-image: url("floor-cool-1280.webp?v=c5b033f883ad"); }
}
/* the Mac stands on the floor: the render's horizon sits ~32% down the image */
.stage { overflow-x: visible; isolation: isolate; }
.floor-hero { top: calc(100% - 14vw); }
.demo-note { position: relative; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.trust { position: relative; }
.trust li { background: rgba(14, 16, 19, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* keyboard showcase: keyboard set on a warm floor, a soft beam from above */
.kb-stage { position: relative; isolation: isolate; }
.floor-kb { top: calc(100% - 14vw); }
.show-kb::before { background: conic-gradient(from 180deg at 50% -10%, transparent 160deg, rgba(242, 167, 70, .08) 175deg, rgba(242, 167, 70, .12) 180deg, rgba(242, 167, 70, .08) 185deg, transparent 200deg); top: 0; height: 100%; }
/* rhythm: an amber band of light behind the bars */
.show-rh .rh-big { position: relative; }
.show-rh .rh-big::before { content: ""; position: absolute; inset: 10% -6% -18% -6%; z-index: -1; background: radial-gradient(50% 60% at 80% 100%, rgba(238, 128, 53, .22), transparent 70%), radial-gradient(40% 50% at 35% 100%, rgba(242, 167, 70, .12), transparent 70%); filter: blur(10px); }
/* screen showcase: the display stands on a blue-lit floor */
.screen-stage { position: relative; isolation: isolate; }
.floor-sc { width: 62vw; top: calc(100% - 8.7vw); }
/* agents: the icon's two lights behind the big number */
.show-ag::before { background: radial-gradient(30% 40% at 40% 30%, rgba(238, 128, 53, .14), transparent 70%), radial-gradient(28% 38% at 62% 32%, rgba(102, 128, 176, .14), transparent 70%); top: 0; height: 80%; }
/* closing: the floor again, as a bookend */
.end { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(140px, 22vw, 300px); }
.floor-end { top: auto; bottom: -6vw; }
/* editorial numerals */
.ghost-num { position: absolute; z-index: -1; top: -.32em; left: -.06em; font: 700 clamp(160px, 22vw, 320px)/1 -apple-system, "SF Pro Display", sans-serif; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(235, 228, 216, .07); pointer-events: none; user-select: none; }
.show-head, .show-split, .ag-center { position: relative; isolation: isolate; }
.ghost-right { left: auto; right: -.04em; top: -.42em; }
.ghost-center { left: 50%; transform: translateX(-50%); top: -.28em; }
@media (max-width: 820px) {
  .ghost-num { font-size: 140px; }
  .floor-hero { width: 160vw; top: calc(100% - 22.4vw); }
  .floor-sc { width: 160vw; top: calc(100% - 22.4vw); }
  .floor-kb { width: 160vw; top: calc(100% - 22.4vw); }
}

/* the hint now sits above the Mac */
.demo-hint { margin: 28px auto 0; text-align: center; }
.demo-hint b { color: var(--orange-hi); }
.stage { margin-top: 22px; }
.end h2, .end .btn, .end .meta { position: relative; }
/* floors live inside isolated stages; keep every block of copy painted above them */
.show-split > div:not(.screen-stage), .show-head, .ag-center, .ruler, .trust, .demo-hint { position: relative; z-index: 1; }
@media (max-width: 820px) {
  .show-sc .show-split > div:not(.screen-stage) { margin-top: 30vw; }   /* let the lit floor finish before the copy starts */
}
body.home main { overflow-x: clip; }   /* floors and numerals bleed to the edges, never past them */

/* ---------- home background, round 3: the dark between the floors ---------- */
/* atmos.js: the day's rhythm as a contour map (00:00 left → 24:00 right), deeper than the page, plus drifting embers */
.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.atmos canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.atmos canvas:first-child { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px); mask-image: linear-gradient(180deg, transparent 0, #000 120px); }
