@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Shantell Sans";
  src: url("assets/fonts/shantell-sans-500.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #e9e5ec;
  --paper-rule: #c9c2cd;
  --ink: #170b07;
  --ink-soft: #4a3d3a;
  --on-ink: #f4f0f5;
  --on-ink-soft: #bdb2b9;
  --orange: #ff8a3d;
  --magenta: #d2457f;
  /* The dark surfaces of the app itself */
  --app-panel: #141416;
  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.3, 1.2, 0.5, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1328px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --section: clamp(72px, 9vw, 128px);
  --shadow: 0 28px 56px -18px rgba(23, 11, 7, 0.45);
}

/* Each track brings the accent that the app takes from its cover. */
[data-track="1"] { --field: #72acd1; --on: var(--ink); --acc: #72acd1; --acc2: #61b2aa; }
[data-track="2"] { --field: #d1bb27; --on: var(--ink); --acc: #d1bb27; --acc2: #b25a21; }
[data-track="3"] { --field: #d11f24; --on: #fff; --acc: #d11f24; --acc2: #b21b67; }
[data-track="4"] { --field: #a373d1; --on: var(--ink); --acc: #a373d1; --acc2: #6462b2; }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: var(--ink-soft) var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--magenta);
}

::selection { background: var(--magenta); color: #fff; }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
.field :focus-visible, .privacy :focus-visible, .site-footer :focus-visible { outline-color: currentColor; }

.ico, .ico-fill { width: 18px; height: 18px; flex: none; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; }

h1, h2, h3 { margin: 0; font-family: var(--sans); text-wrap: balance; }
h1, h2 { font-weight: 800; font-stretch: 75%; letter-spacing: -0.012em; line-height: 0.94; }
h1 { font-size: clamp(3.1rem, min(7.4vw, 11.5vh), 6rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 87%; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.9em; }
b, strong { font-weight: 700; }

/* Top line: brand and navigation */

.top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--edge); height: 72px;
}
.brand { font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }


.top nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-weight: 550; font-size: 15.5px; }
.top nav a { text-decoration: none; padding: 8px 0; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.top nav .nav-install { padding: 9px 16px; border-radius: 10px; background: var(--ink); color: var(--on-ink); transition: background-color 0.2s; }
.top nav .nav-install:hover { background: #a82f63; color: #fff; text-decoration: none; }

/* Hero */

.hero { position: relative; overflow: clip; }

.hero-copy {
  position: relative; z-index: 2;
  width: min(100%, calc(var(--edge) + 620px));
  padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 4vw, 56px) var(--edge);
}
.lead { max-width: 33em; margin-top: 28px; font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.5; }

.cmd {
  display: flex; align-items: center; gap: 12px;
  max-width: 660px; margin-top: 36px;
  padding: 7px 7px 7px 18px;
  background: var(--ink); color: var(--on-ink);
  border-radius: 14px;
}
.cmd-prompt { color: var(--orange); font: 500 15px/1 var(--mono); flex: none; }
.cmd-text {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-size: 14.5px; line-height: 44px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  padding-right: 24px;
}
.cmd-text::-webkit-scrollbar { display: none; }
.cmd-copy {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 44px; padding: 0 16px 0 13px;
  border: 0; border-radius: 9px;
  background: var(--paper); color: var(--ink);
  font: 650 15px/1 var(--sans); cursor: pointer;
  transition: background-color 0.2s;
}
.cmd-copy:hover { background: #fff; }
.cmd-copy:active { background: var(--orange); }
.cmd-copy:focus-visible { outline-color: var(--orange); }
.cmd-copy .ico-check { display: none; }
.cmd-copy.copied { background: var(--orange); }
.cmd-copy.copied .ico-copy { display: none; }
.cmd-copy.copied .ico-check { display: block; }


/* Two ways to install: the download button and the Terminal command */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.btn-dl {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 24px 0 20px; border-radius: 14px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 650; font-size: 17px; text-decoration: none;
  transition: background-color 0.2s, transform 0.12s;
}
.btn-dl:hover { background: #a82f63; color: #fff; }
.btn-dl:active { transform: scale(0.98); }
.btn-dl .ico { width: 20px; height: 20px; }
.get-meta { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.btn-try { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 17px; text-decoration: none; }
.btn-try:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn-try .ico { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn-try:hover .ico { transform: translateX(3px); }


/* The flight: a 1280px canvas, the tile takes 41.25% of it */

.flight {
  position: absolute; z-index: 1;
  width: min(900px, 66vw); aspect-ratio: 1;
  right: max(-9vw, -130px); top: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.flight canvas, .flight-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
}
.flight canvas { opacity: 0; }
.flight.live canvas { opacity: 1; }
.flight.live .flight-still { opacity: 0; }
.flight-shadow {
  position: absolute; left: 30.5%; top: 30.5%; width: 39%; height: 39%;
  border-radius: 22%; background: #000;
  box-shadow: 0 40px 70px -24px rgba(23, 11, 7, 0.55);
}

/* Services */

.services {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center;
  padding: var(--section) var(--edge);
  border-top: 1.5px solid var(--ink);
}
.services-copy p { margin-top: 24px; font-size: 1.12rem; max-width: 30em; }
.window { margin: 0; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.window img { width: 100%; height: auto; }
.window-bar { position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: #1d1b1e; color: #a7a5ae; font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a474d; }
.window-bar span { position: absolute; left: 0; right: 0; text-align: center; }

/* Colour fields. Each one puts its app surface where the Mac puts it. */

.field {
  position: relative; overflow: clip;
  background: var(--field); color: var(--on);
  transition: background-color 0.18s, color 0.18s;
}
.field-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px clamp(32px, 6vw, 96px);
  padding: 0 var(--edge);
}
.field-copy { max-width: 35em; }
.field-copy p, .field-head p { margin-top: 24px; font-size: 1.12rem; }
.field ::selection { background: var(--ink); color: #fff; }

.facts { list-style: none; margin: 28px 0 0; padding: 0; }
.facts li { padding: 11px 0; border-top: 1.5px solid color-mix(in srgb, var(--on) 30%, transparent); font-weight: 550; }
.facts li:last-child { border-bottom: 1.5px solid color-mix(in srgb, var(--on) 30%, transparent); }

/* Menu bar */

.macbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 34px; padding: 0 clamp(12px, 2vw, 22px);
  background: rgba(23, 11, 7, 0.86); color: #fff;
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans);
  white-space: nowrap;
}
.macbar-left, .macbar-right { display: flex; align-items: center; gap: 20px; }
.macbar-left b { font-weight: 700; }
.macbar-item {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background-color 0.15s;
}
.macbar-item:hover { background: rgba(255, 255, 255, 0.12); }
.macbar-item[aria-expanded="true"] { background: rgba(255, 255, 255, 0.24); }
.macbar-item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.macbar-item img { width: 18px; height: 18px; border-radius: 4px; }
.macbar-progress { position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.macbar-progress i { display: block; width: calc(var(--p, 0) * 100%); height: 100%; background: var(--acc); transition: background-color 0.6s; }
.macbar-sys { width: 19px; height: 13px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
.macbar-clock { font-variant-numeric: tabular-nums; }

.field-menubar .field-inner { align-items: start; padding-bottom: 40px; }
.field-menubar .field-copy { padding-top: clamp(96px, 14vw, 200px); }
.panel-slot { width: 300px; height: 460px; }

/* The panel, rebuilt from PlayerPanel.swift. JS puts it below the menu bar item. */
.panel {
  position: absolute; z-index: 2; top: 40px; left: var(--panel-x, auto); right: var(--edge); width: 300px; padding: 14px;
  border-radius: 12px; color: #f2f2f5;
  background:
    radial-gradient(110px 45px at 50% 82%, color-mix(in srgb, var(--acc) 30%, transparent), transparent),
    #141416;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), var(--shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans);
  transform-origin: 50% 0;
  transition: opacity 0.2s, transform 0.35s var(--spring), visibility 0s;
}
.panel.closed { opacity: 0; transform: translateY(-8px) scale(0.97); visibility: hidden; transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s; }
.p-cover { position: relative; aspect-ratio: 1; border-radius: 9px; background: #222 center / cover; overflow: hidden; }
.p-cover i { position: absolute; inset: 0; background: center / cover; animation: cover-in 0.4s var(--ease); }
@keyframes cover-in { from { opacity: 0; transform: scale(1.04); } }
.p-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0 8px; }
.p-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.p-title { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.p-artist { font-size: 13px; color: #999aa3; overflow: hidden; text-overflow: ellipsis; }
.p-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  font-size: 11px; font-weight: 600; color: #b5b5bc;
}
.p-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); transition: background-color 0.6s; }
.p-progress { position: relative; height: 12px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.p-progress:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 3px; }
.p-progress > i { position: relative; display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.p-progress b {
  display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--acc2), var(--acc));
  box-shadow: 0 0 4px color-mix(in srgb, var(--acc) 70%, transparent);
}
.p-times { display: flex; justify-content: space-between; margin-top: 2px; font: 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: #999aa3; }
.p-controls { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.p-controls button { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.p-controls button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.p-play {
  width: 40px; height: 40px; margin-right: 4px; border-radius: 50%;
  background: var(--acc) !important; color: #0d0d10 !important;
  box-shadow: 0 2px 16px color-mix(in srgb, var(--acc) 55%, transparent);
  transition: background-color 0.6s, box-shadow 0.6s, transform 0.12s;
}
.p-play:active { transform: scale(0.94); }
.p-play .ico-fill { width: 17px; height: 17px; }
.p-skip { width: 30px; height: 30px; border-radius: 7px; }
.p-skip:hover { background: rgba(255, 255, 255, 0.08) !important; }
.p-skip .ico-fill { width: 16px; height: 16px; }
.p-pip { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; color: #8d8d96; }
.p-pip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Note that points at the next button, until the first skip */
.p-skip-ann.ann { --ann-color: var(--ink); --ann-target-gap: 20px; display: inline-grid; padding: 0; transition: opacity 0.3s; }
.p-skip-ann.ann::after { font-size: 1.35rem; font-weight: 500; }
.p-skip-ann.ann::before, .p-skip-ann.ann::after { transition: opacity 0.3s; }
.p-skip-ann.gone::before, .p-skip-ann.gone::after { opacity: 0; }

.field-note {
  padding: 0 var(--edge) 40px; font-size: 15px;
}

/* Miniplayer */

.field-mini { padding: var(--section) 0 clamp(40px, 5vw, 64px); }
.field-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start;
   padding: 0 var(--edge);
}
.field-head p { margin-top: 0; }

.mini-stage { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; touch-action: none; }
.mini-wrap { position: relative; max-width: calc(100% - 32px); }
.mini-wrap .mini { max-width: 100%; }

/* Hand-drawn note that points at the resize corner, until the first drag */
.mini-ann.ann {
  position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; padding: 0;
  --ann-color: var(--on); --ann-target-gap: 2px; --ann-label-max-width: 220px;
  pointer-events: none; transition: opacity 0.4s;
}
.mini-ann.ann::after { font-size: 1.35rem; font-weight: 500; }
.mini-ann.gone { opacity: 0; }
/* Hand-drawn note next to the notch, until the first interaction */
.notch-ann.ann {
  position: absolute; top: 0; left: 50%; width: 1px; height: calc(32 * var(--u)); padding: 0;
  --ann-color: var(--on); --ann-target-gap: 2px;
  pointer-events: none; transition: opacity 0.3s;
}
.notch-ann.ann::after { font-size: 1.35rem; font-weight: 500; }
.notch-ann.gone, .notch:not([data-mode="idle"]) + .notch-ann { opacity: 0; }

/* The resize corner pulses until the first drag */
@keyframes corner-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.45); }
}
@keyframes corner-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

.mini {
  --pad: 10px;
  position: relative;
  width: var(--w); height: var(--h);
  max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px;
  padding: var(--pad);
  background: var(--app-panel); color: #f3f2f5;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans);
  transition: width 0.45s var(--ease), height 0.45s var(--ease);
}
.mini.dragging { transition: none; }
.mini-cover { flex: none; height: 100%; aspect-ratio: 1; border-radius: 8px; background: #2a2a2e url("assets/img/cover-2.webp") center / cover; }
.mini-meta { flex: 1; min-width: 0; }
.mini-title, .mini-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-title { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.mini-artist { color: #9a9aa3; font-size: 14px; margin-top: 2px; }
.mini-service, .mini-time { display: none; }
.mini-controls { display: flex; align-items: center; gap: 10px; flex: none; }
.mini-skip { color: #e9e9ee; display: grid; place-items: center; }
.mini-skip .ico-fill { width: 20px; height: 20px; }
.mini-play {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--acc); color: #1a1505;
  box-shadow: 0 4px 22px color-mix(in srgb, var(--acc) 55%, transparent);
}
.mini-play .ico-fill { width: 20px; height: 20px; }
.mini-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); }
.mini-progress i { display: block; width: 33%; height: 100%; background: linear-gradient(90deg, var(--acc2), var(--acc)); }
.mini-handle {
  position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; z-index: 2;
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.6);
  cursor: nwse-resize;
}
.mini-handle .ico { width: 16px; height: 16px; }
.mini:hover .mini-handle, .mini.dragging .mini-handle { color: #fff; }
.mini.untouched .mini-handle { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .mini.untouched .mini-handle { border-radius: 50%; animation: corner-ring 1.4s var(--ease) infinite; }
  .mini.untouched .mini-handle .ico { animation: corner-pulse 1.4s var(--ease) infinite; }
}

.mini[data-layout="cover"] { padding: 0; }
.mini[data-layout="cover"] .mini-cover { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.mini[data-layout="cover"] .mini-meta,
.mini[data-layout="cover"] .mini-controls { display: none; }

.mini[data-layout="slim"] .mini-skip { display: none; }
.mini[data-layout="slim"] .mini-play { width: 40px; height: 40px; }

.mini[data-layout="large"] {
  --pad: 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto; row-gap: 0; column-gap: 16px;
  align-items: start;
}
.mini[data-layout="large"] .mini-cover { grid-row: 1 / -1; height: calc(var(--h) - 2 * var(--pad)); max-height: calc(var(--w) * 0.45); align-self: center; }
.mini[data-layout="large"] .mini-meta { grid-column: 2; }
.mini[data-layout="large"] .mini-title { font-size: 17px; }
.mini[data-layout="large"] .mini-service {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07);
  color: #a8a8b0; font-size: 13px; font-weight: 600;
}
.mini[data-layout="large"] .mini-service i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.mini[data-layout="large"] .mini-progress { position: static; grid-column: 2; grid-row: 3; height: 3px; border-radius: 3px; overflow: hidden; }
.mini[data-layout="large"] .mini-time { grid-column: 2; grid-row: 4; display: flex; justify-content: space-between; margin-top: 6px; font: 12px/1 var(--mono); color: #9a9aa3; }
.mini[data-layout="large"] .mini-controls { grid-column: 2; grid-row: 5; margin-top: 8px; }

.seg { display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 8px auto 0; }
.seg button {
  border: 1.5px solid var(--on); background: none; color: var(--on); cursor: pointer;
  font: 600 15px/1 var(--sans); height: 40px; padding: 0 16px; border-radius: 10px;
  transition: background-color 0.2s, color 0.2s;
}
.seg button:hover { background: color-mix(in srgb, var(--on) 14%, transparent); }
.seg button[aria-pressed="true"] { background: var(--on); color: var(--field); }

/* Notch */

.field-notch { --u: min(1.15px, calc((100vw - 2 * var(--edge)) / 487)); padding-bottom: var(--section); }
.bezel { position: sticky; top: 0; z-index: 4; height: calc(32.5 * var(--u)); }
/* The notch, rebuilt from Notch.swift. One app point is var(--u). */
.notch {
  --r: 10; --w: 273; --h: 32;
  position: absolute; left: 50%; top: 0;
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  transform: translateX(-50%);
  background: #000; color: #fff;
  border-radius: 0 0 calc(var(--r) * var(--u)) calc(var(--r) * var(--u));
  overflow: hidden;
  cursor: pointer; touch-action: pan-y; overscroll-behavior: contain;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans);
  -webkit-user-select: none; user-select: none;
  transition: width 0.5s var(--spring), height 0.5s var(--spring), border-radius 0.5s var(--spring);
}
.notch:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.notch[data-mode="hover"] { --r: 13; --w: 485; }
.notch[data-mode="moment"] { --r: 20; --w: 430; --h: 78; }

.n-row { position: relative; height: calc(32 * var(--u)); }
.n-left, .n-right { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; }
.n-left { left: calc(12 * var(--u)); gap: calc(8 * var(--u)); }
.n-right { right: calc(12 * var(--u)); }
.n-cover {
  flex: none; width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: calc(5 * var(--u));
  background: #222 center / cover;
}
.n-marquee {
  width: calc(106 * var(--u)); overflow: hidden; white-space: nowrap;
  font-size: calc(12 * var(--u)); font-weight: 600;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.n-line { display: inline-block; padding-left: calc(6 * var(--u)); }
.n-time { font: calc(11 * var(--u)) / 1 ui-monospace, "SF Mono", Menlo, monospace; color: #9a9aa3; white-space: nowrap; }
.n-bars { display: flex; align-items: flex-end; gap: calc(2 * var(--u)); height: calc(14 * var(--u)); }
.n-bars i {
  width: calc(2.5 * var(--u)); height: calc(var(--l, 3) * var(--u)); border-radius: calc(1.25 * var(--u));
  background: linear-gradient(0deg, var(--acc2), var(--acc));
  transition: height 0.12s ease-out;
}
.n-flash { width: calc(12 * var(--u)); height: calc(12 * var(--u)); color: var(--acc); }

/* What shows in which mode */
.n-marquee, .n-time, .n-flash { display: none; }
.notch[data-mode="hover"] .n-marquee, .notch[data-mode="hover"] .n-time { display: block; }
.notch[data-mode="hover"] .n-bars, .notch[data-mode="moment"] .n-row .n-cover, .notch[data-mode="moment"] .n-bars { display: none; }
.notch[data-mode="hover"] .n-line { animation: marquee 9s linear 0.8s infinite; }
.notch.flashing .n-flash { display: block; animation: flash-in 0.15s ease-out; }
.notch.flashing .n-bars, .notch.flashing .n-time { display: none; }
@keyframes marquee { 0%, 8% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes flash-in { from { transform: scale(0.4); opacity: 0; } }

.n-moment {
  display: flex; align-items: center; gap: calc(10 * var(--u));
  height: calc(40 * var(--u)); padding: 0 calc(16 * var(--u));
  opacity: 0; transform: translateY(calc(-6 * var(--u)));
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.notch[data-mode="moment"] .n-moment { opacity: 1; transform: none; transition-delay: 0.12s; }
.n-moment .n-cover { width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(6 * var(--u)); }
.n-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(2 * var(--u)); white-space: nowrap; }
.n-title { font-size: calc(13 * var(--u)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.n-artist { font-size: calc(11 * var(--u)); color: #9a9aa3; overflow: hidden; text-overflow: ellipsis; }
.n-badge {
  display: inline-flex; align-items: center; gap: calc(6 * var(--u)); flex: none;
  padding: calc(5 * var(--u)) calc(10 * var(--u)) calc(5 * var(--u)) calc(8 * var(--u));
  border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  font-size: calc(11 * var(--u)); font-weight: 600; color: #b5b5bc;
}
.n-badge i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: var(--acc); }

.n-progress {
  position: absolute; bottom: 0; height: calc(2 * var(--u));
  left: calc((var(--r) + 2) * var(--u)); right: calc((var(--r) + 2) * var(--u));
  border-radius: calc(1 * var(--u)); background: rgba(255, 255, 255, 0.14);
  transition: left 0.5s var(--spring), right 0.5s var(--spring);
}
.n-progress i {
  display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--acc2), var(--acc));
  box-shadow: 0 0 calc(4 * var(--u)) color-mix(in srgb, var(--acc) 70%, transparent);
}

.notch-space { height: calc(79 * var(--u) + 48px); }

.field-notch .field-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
.gestures { margin: 0; }
.gestures > div {
  display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 12px 0; border-top: 1.5px solid color-mix(in srgb, var(--on) 35%, transparent);
  cursor: default;
}
.gestures > div:last-child { border-bottom: 1.5px solid color-mix(in srgb, var(--on) 35%, transparent); }
.gestures > div:hover { border-top-color: var(--on); }
.gestures dt { font-weight: 700; }
.gestures dd { margin: 0; }


/* Privacy */

.privacy { background: var(--ink); color: var(--on-ink); padding: var(--section) var(--edge); }
.privacy-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin-top: 40px; font-size: 1.12rem; color: var(--on-ink-soft); }
.privacy em { font-style: normal; font-weight: 650; color: var(--on-ink); }
.privacy-more { margin-top: 40px; font-weight: 600; }
.privacy ::selection, .site-footer ::selection { background: var(--orange); color: var(--ink); }

/* Install */

.install {
  background: var(--orange);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 88px); align-items: start;
   padding: var(--section) var(--edge);
}
.install-icon { grid-row: 1 / span 4; width: clamp(120px, 17vw, 220px); height: auto; filter: drop-shadow(0 22px 26px rgba(23, 11, 7, 0.4)); }
.install ::selection { background: var(--ink); color: #fff; }
.install :focus-visible { outline-color: var(--ink); }
.install > :not(.install-icon) { grid-column: 2; }
.install-lead { max-width: 40em; font-size: 1.12rem; }
.install-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin-top: 16px; }
.install-ways > div { padding-top: 18px; border-top: 1.5px solid var(--ink); scroll-margin-top: 24px; }
.install-ways h3 { margin-bottom: 16px; }
.install-ways p { margin-top: 14px; max-width: 34em; }
.install-ways em { font-style: normal; font-weight: 650; }
.install .cmd { margin-top: 0; }
.install-meta { font-size: 15px; }
.install-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin-top: 48px; }
.install-more > div { padding-top: 18px; border-top: 1.5px solid var(--ink); }
.install-more p { margin-top: 10px; }
.install-more em { font-style: normal; font-weight: 650; color: var(--ink); }
.code { margin: 14px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Footer */

.site-footer {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 48px; align-items: baseline;
  padding: 48px var(--edge) 56px;
  background: var(--ink); color: var(--on-ink);
  }
.foot-brand { font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -0.02em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; font-weight: 550; font-size: 15.5px; }
.foot-note { grid-column: 1 / -1; max-width: 62em; font-size: 14.5px; color: var(--on-ink-soft); }

/* Narrow screens */

@media (max-width: 1040px) {
  .flight { width: min(760px, 78vw); right: -22vw; transform: translateY(-64%); opacity: 0.999; }
  .hero-copy { width: min(100%, calc(var(--edge) + 540px)); }
}

@media (max-width: 820px) {
  .top nav a:not(.nav-install):not([href*="github"]) { display: none; }

  .hero { display: flex; flex-direction: column; }
  .flight { position: relative; right: auto; top: auto; transform: none; width: 96vw; margin: -14vw auto -24vw; }
  .hero-copy { width: auto; padding: 20px var(--edge) 0; }

  .services { grid-template-columns: minmax(0, 1fr); }

  .field-inner, .field-notch .field-inner, .field-head { grid-template-columns: minmax(0, 1fr); }
  .field-menubar .field-inner { padding-top: 8px; }
  .mini-ann.ann { --ann-text-x: -36px; }
  .field-menubar .field-copy { padding-top: 0; order: 2; }
  .panel-slot { justify-self: end; }
  .macbar-left span:nth-child(n + 3), .macbar-clock { display: none; }

  .privacy-cols, .install-more, .install-ways { grid-template-columns: minmax(0, 1fr); }
  .install { grid-template-columns: minmax(0, 1fr); }
  .install > :not(.install-icon) { grid-column: 1; }
  .install-icon { grid-row: auto; }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .cmd { padding-left: 14px; gap: 9px; }
  .cmd-copy-label { display: none; }
  .cmd-copy { padding: 0 13px; }
  .seg button { padding: 0 12px; }
  p { text-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
