:root {
  --page: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --soft: #6e6e73;
  --link: #0066cc;
  --orange: #c2410c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
  --move: cubic-bezier(.65, 0, .2, 1);
  --nav: 44px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); scrollbar-color: #c7c7cc transparent; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 19px/1.47 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
h1, h2, p, ol, ul { margin: 0; padding: 0; }
h1, h2 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
ol, ul { list-style: none; }
a { color: var(--link); text-decoration: none; }
::selection { background: #b3d4fc; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(0, 102, 204, .55); outline-offset: 2px; border-radius: 4px; }

/* Site navigation */
.nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; height: var(--nav); padding: 0 var(--gutter); background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 .5px 0 rgba(0, 0, 0, .12); font-size: 14px; }
.nav a { color: var(--ink); }
.nav .nav-action { color: var(--link); }

/* Opening */
.hero { padding: clamp(48px, 8vh, 88px) var(--gutter) clamp(28px, 4vh, 44px); text-align: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.05; letter-spacing: -.021em; }
.hero-sub { max-width: 30em; margin: 20px auto 0; color: var(--soft); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.32; letter-spacing: -.016em; }
.hero-note { margin-top: 14px; color: var(--soft); font-size: 14px; }

/* The trip: one Mac, pinned, and the camera moves over its screen. */
.trip { position: relative; height: 760svh; margin-top: calc(-1 * clamp(84px, 14vh, 120px)); }
.stage { position: sticky; top: var(--nav); display: flex; flex-direction: column; align-items: center; height: calc(100svh - var(--nav)); padding: 0 var(--gutter) clamp(14px, 3vh, 32px); overflow: clip; }

.captions { position: relative; flex: none; width: min(720px, 100%); height: clamp(112px, 17vh, 150px); text-align: center; }
.captions li { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(12px, 2vh, 22px); opacity: 0; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.captions li.is-active { opacity: 1; transform: none; transition: opacity 420ms ease 90ms, transform 620ms var(--out) 90ms; pointer-events: auto; }
.captions h2 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.024em; }
.captions p { margin-top: 6px; color: var(--soft); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.34; }

.mac { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; }
.mac-lid { position: relative; width: var(--mac-width, 100%); padding: clamp(6px, .9vw, 12px); border-radius: clamp(14px, 1.6vw, 22px); background: #0b0b0d; box-shadow: 0 0 0 1px #3a3a3f, 0 30px 60px -18px rgba(30, 25, 55, .35), 0 12px 24px -12px rgba(30, 25, 55, .25); transform-origin: 50% 100%; }
.viewport { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: clamp(7px, .8vw, 11px); background: #27335f; }
.mac-base { flex: none; position: relative; width: calc(var(--mac-width, 100%) * 1.13); height: clamp(10px, 1.3vw, 18px); border-radius: 0 0 clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px); background: linear-gradient(#e4e4e8, #b6b6bc 72%, #8d8d93); box-shadow: 0 16px 24px -14px rgba(30, 25, 55, .5); }
.mac-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 42%; margin-left: -7%; border-radius: 0 0 7px 7px; background: linear-gradient(#a8a8ae, #cfcfd4); }

/* The screen is drawn at a fixed 1280 by 800 and moved as one piece. */
.screen { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; transform-origin: 0 0; transition: transform 950ms var(--move); color: #1b1f24; font: 400 13px/1.3 var(--font); letter-spacing: 0; }
.screen.no-move { transition: none; }
.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; }

.menubar { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 18px; height: 28px; padding: 0 12px 0 16px; color: #fff; background: rgba(30, 28, 56, .36); font-weight: 500; }
.menubar-app { font-weight: 700; }
.menubar-menu { opacity: .92; }
.menubar-right { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.menubar-clock { min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.status { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 0; border-radius: 5px; color: inherit; background: rgba(255, 255, 255, .2); font: inherit; cursor: pointer; transition: background-color 140ms ease, transform 140ms var(--out); }
.status:active { transform: scale(.97); }

/* The roller keeps the baseline because it clips with clip-path, not overflow. */
.roll { display: inline-block; position: relative; clip-path: inset(-.04em -.08em); }
.roll-size { visibility: hidden; }
.roll-track { position: absolute; inset: 0 0 auto auto; display: block; }
.roll-track > span { display: block; text-align: right; }
.title { display: inline-flex; white-space: pre; font-variant-numeric: tabular-nums; }
.title > * { flex: none; }

/* The panel, from PanelView. */
.panel-host { position: absolute; top: 34px; left: 830px; width: 340px; transform-origin: 60% -8px; opacity: 0; transform: scale(.96) translateY(-4px); visibility: hidden; transition: opacity 110ms ease, transform 110ms var(--out), visibility 0s 110ms; }
.panel-host.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 150ms ease, transform 240ms var(--out), visibility 0s; }
.panel { padding: 14px; border-radius: 12px; background: rgba(248, 248, 251, .97); box-shadow: 0 22px 54px rgba(20, 16, 44, .42), 0 0 0 .5px rgba(20, 16, 44, .28); font-size: 12px; line-height: 1.35; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.swap { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; color: #4b5563; background: none; cursor: pointer; transition: transform 280ms var(--out), background-color 140ms ease; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background-color 200ms ease, transform 140ms var(--out); }
.row:active { transform: scale(.985); }
.row.is-followed { background: rgba(10, 88, 208, .12); }
.row-main, .row-sub { display: block; min-width: 0; }
.row-top { display: flex; align-items: baseline; gap: 6px; }
.row-time { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row-delay { font-size: 13px; font-weight: 600; color: var(--orange); }
.row-label, .row-sub { color: #566070; }
.row-stale-wrap { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 260ms var(--out), visibility 0s 260ms; }
.row-stale { display: block; overflow: hidden; min-height: 0; color: var(--orange); }
.row.is-stale .row-stale-wrap { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 260ms var(--out), visibility 0s; }
.bell { flex: none; color: #8a93a0; transition: color 160ms ease; }
.bell-body { fill: transparent; transition: fill 160ms ease; }
.row.is-followed .bell { color: #0a58d0; }
.row.is-followed .bell-body { fill: currentColor; }
.panel-foot { margin-top: 8px; padding-top: 8px; border-top: .5px solid rgba(0, 0, 0, .15); color: #566070; }

/* A notification. */
.note { position: absolute; top: 326px; left: 830px; width: 340px; display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 16px; background: rgba(248, 248, 251, .97); box-shadow: 0 14px 36px rgba(20, 16, 44, .36); font-size: 12.5px; line-height: 1.32; }
.note-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; background: linear-gradient(#3f6fc4, #204a96); font-size: 18px; font-weight: 700; }
.note-text { display: grid; gap: 1px; }
.note-text strong { font-size: 13px; font-weight: 600; }

/* After the trip. */
.film { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(72px, 11vw, 150px); text-align: center; }
.film h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.026em; }
.film video { display: block; width: min(1120px, 100%); height: auto; margin: clamp(24px, 3vw, 40px) auto 0; border-radius: clamp(12px, 1.6vw, 22px); background: #f5f5f7; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 50px -24px rgba(30, 25, 55, .35); }
.stations { padding: clamp(72px, 11vw, 150px) var(--gutter); background: var(--mist); text-align: center; }
.stations h2, .build h2, .close h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.026em; }
.station-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; max-width: 1040px; margin: clamp(24px, 3vw, 40px) auto 0; color: var(--soft); font-size: clamp(19px, 2vw, 26px); line-height: 1.42; letter-spacing: -.016em; }
.station-list li:not(:last-child)::after { content: "·"; margin: 0 .5em; color: #b0b0b6; }

.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px clamp(32px, 6vw, 96px); max-width: 1180px; margin: 0 auto; padding: clamp(72px, 11vw, 150px) var(--gutter); }
.build-text { display: grid; gap: 20px; color: #424245; }

.close { padding: clamp(72px, 11vw, 150px) var(--gutter); background: var(--mist); text-align: center; }
.close > p:not(.close-links) { margin-top: 12px; color: var(--soft); font-size: clamp(19px, 1.7vw, 22px); }
.close-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 28px; font-size: 17px; }
.button { padding: 12px 22px; border-radius: 980px; color: #fff; background: var(--link); transition: background-color 160ms ease, transform 140ms var(--out); }
.button:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .close-links a:not(.button):hover { text-decoration: underline; }
  .status:hover { background: rgba(255, 255, 255, .34); }
  .swap:hover { background: rgba(0, 0, 0, .07); }
  .row:hover { background: rgba(0, 0, 0, .05); }
  .row.is-followed:hover { background: rgba(10, 88, 208, .17); }
  .button:hover { background: #006edb; }
}

/* Without the script the captions read as a plain list above a still Mac. */
html:not(.js) .trip { height: auto; }
html:not(.js) .stage { position: static; height: auto; }
html:not(.js) .captions { height: auto; }
html:not(.js) .captions li { position: static; opacity: 1; transform: none; padding: 12px 0; }

@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .trip { height: 640svh; margin-top: -96px; }
  .stage { padding-bottom: 16px; }
  .captions { height: 142px; }
  .mac-lid { flex: 1; min-height: 0; padding: 0; border-radius: 22px; background: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 18px 36px -16px rgba(30, 25, 55, .4); }
  .viewport { height: 100%; aspect-ratio: auto; border-radius: 22px; }
  .mac-base { display: none; }
  .build { grid-template-columns: minmax(0, 1fr); }
  .station-list { display: block; }
  .station-list li:not(:last-child)::after { content: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 8.4vw; }
}

@media (prefers-reduced-motion: reduce) {
  .screen { transition: none; }
  .mac-lid { transform: none !important; }
  .captions li, .captions li.is-active { transform: none; transition: opacity 160ms ease; }
  .panel-host, .panel-host.is-open { transform: none; }
  .status, .row, .button, .swap { transform: none !important; }
}
