/* Lumen's site, "Ambient": the screening room. Black, the films lit by their own light, big tight SF Pro headlines
   (the Mac's own type, so the site loads no fonts), a glass bar floating at the top, and every picture a real
   screenshot of Lumen playing an open film. Format colours only beside format names. */

:root {
  --bg: #000;
  --card: #0d0d0f;
  --raise: #161618;
  --edge: rgba(255, 255, 255, 0.08);
  --edge-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #808086; /* 4.9:1 on cards, 5.3:1 on black: the smallest text stays legible (WCAG AA) */
  --link: #8ea2ff;
  --hdr: #f2c230;
  --vision: #1bb4d3;
  --object: #db3a8c;
  --channels: #35b769;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--sans); letter-spacing: -0.011em; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(142, 162, 255, 0.3); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* The glass bar, floating over the page. */
.topbar { position: sticky; top: 14px; z-index: 10; display: flex; justify-content: center; padding: 0 var(--gutter); margin-top: 14px; }
.topbar .bar {
  display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(22, 22, 24, 0.62); border: 1px solid var(--edge);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  font-size: 14px; max-width: 100%;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.topbar nav { display: flex; gap: clamp(12px, 2.4vw, 22px); }
.topbar nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; }
.pill:hover { text-decoration: none; }
.pill.light { background: var(--text); color: #000; }
.pill.light:hover { background: #fff; }
.pill.ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.pill.ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Type */
h1, h2, .display { font-weight: 600; letter-spacing: -0.035em; margin: 0; }
.grad { background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); line-height: 1.45; max-width: 34em; }
.quiet { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.credit { color: var(--faint); font-size: 12px; text-align: center; margin: 18px auto 0; }
.credit a { color: inherit; }

/* Hero: the app's icon, a big centred line, then the player lit by its own film. */
.hero { text-align: center; padding: clamp(56px, 9vw, 104px) 0 0; }
.hero .icon { width: 88px; height: 88px; margin: 0 auto 28px; filter: drop-shadow(0 12px 36px rgba(255, 140, 70, 0.35)); }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: 1.0; }
.hero .lede { margin: 22px auto 0; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.ctas .pill { padding: 12px 22px; font-size: 15px; }
.needs { margin: 14px 0 0; color: var(--faint); font-size: 13px; }

.stage { position: relative; width: min(1240px, calc(100% - 2 * var(--gutter))); margin: clamp(48px, 7vw, 80px) auto 0; }
.stage .glow {
  position: absolute; inset: 2% 0 0; background: center 60% / cover no-repeat;
  filter: blur(70px) saturate(2) brightness(1.25); opacity: 0.95; pointer-events: none;
}
.stage > img, .stage > .frame { position: relative; border-radius: clamp(12px, 1.6vw, 22px); box-shadow: 0 0 0 1px var(--edge); }

/* Sections */
.section { padding: clamp(110px, 14vw, 160px) 0 0; }
.head { text-align: center; max-width: 780px; margin: 0 auto; }
.head h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; }
.head p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); margin: 18px auto 0; max-width: 36em; }

/* Before / after of one frame: the left picture underneath, the right one clipped to the divider. */
.compare { --pos: 50%; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; border-radius: clamp(12px, 1.6vw, 22px); box-shadow: 0 0 0 1px var(--edge); }
.compare img { width: 100%; height: auto; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare .after img { width: 100%; height: 100%; object-fit: cover; }
.compare input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare .line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); pointer-events: none; z-index: 2; }
.compare .knob {
  position: absolute; top: 50%; left: var(--pos); z-index: 2; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #1d1d1f; display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); pointer-events: none;
}
.compare .knob svg { width: 22px; height: 22px; }
.compare input:focus-visible ~ .knob { outline: 3px solid #fff; outline-offset: 3px; }
.tag {
  position: absolute; top: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: 13px; font-weight: 500;
}
.tag.left { left: 16px; }
.tag.right { right: 16px; }
.hdr .compare { margin-top: clamp(40px, 6vw, 64px); }

/* Picture facts under the slider, and the stats lines as proof. */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; margin-top: clamp(40px, 5vw, 56px); }
.facts h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.facts p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }
.proof { margin: clamp(36px, 5vw, 48px) auto 0; max-width: 860px; padding: 18px 18px 16px; }
.proof .scroll { overflow-x: auto; border-radius: 12px; }
.proof .scroll img { width: 100%; min-width: 640px; }
.proof figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; }

/* Sound: the copy beside a speaker map of the room, seen from above. */
.sound { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sound h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; }
.sound .lede { margin: 20px 0 0; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { color: var(--muted); padding-left: 22px; position: relative; max-width: 34em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--channels); }
.ticks b { color: var(--text); font-weight: 600; }
.room { margin: 0; }
.room svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(53, 183, 105, 0.12)); }
.room figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Cards: the folder and the library, and the bento of things the player does. */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: 28px; overflow: hidden; position: relative; min-width: 0; }
.card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.card p { color: var(--muted); margin: 8px 0 0; font-size: 16px; max-width: 30em; }
.label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 22px 26px 0; }
.label i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.label.after { color: var(--text); }
.label.after i { background: #fff; }

.ba { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.files { list-style: none; margin: 18px 0 0; padding: 0 26px 26px; font: 12.5px/1.9 ui-monospace, "SF Mono", Menlo, monospace; color: #d1d1d6; }
.files li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: calc(var(--d, 0) * 16px); }
.files li.dir { color: var(--faint); }
.files span { color: var(--faint); }
.ba .shot { padding: 18px 0 0 26px; }
/* The window runs on past the card's edge: cropped in place, so nothing overflows the page. */
.ba .shot img { border-radius: 12px 0 0 0; width: 100%; aspect-ratio: 1.32; object-fit: cover; object-position: left top; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.bento .card { padding: 30px 30px 0; display: flex; flex-direction: column; }
.bento .pic { margin-top: 26px; }
.c-film { grid-column: span 4; }
.bento .c-film { padding-right: 0; }
/* The picture runs to the card's right edge: the card has no right padding, its words do. */
.c-film h3, .c-film p { padding-right: 30px; }
.c-film .pic img { width: 100%; aspect-ratio: 1.39; object-fit: cover; object-position: left top; border-radius: 12px 0 0 0; }
.c-remote { grid-column: span 2; }
.c-remote .pic { width: 66%; margin: 28px auto 0; }
.c-remote .pic img { border-radius: 26px 26px 0 0; border: 6px solid #2a2a2e; border-bottom: 0; }
.c-disc, .c-server { grid-column: span 3; padding-bottom: 30px !important; }
.files.tight { margin-top: 20px; padding: 0; }
.sources { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.sources li { padding: 6px 12px; border-radius: 999px; background: var(--raise); border: 1px solid var(--edge); color: #d1d1d6; font-size: 13px; }

/* Specs: grouped columns with hairlines. */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; margin-top: clamp(40px, 6vw, 64px); }
.specs h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--edge); letter-spacing: -0.01em; }
.specs p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.code { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; transform: translateY(-1px); }

.privacy { text-align: center; padding: clamp(130px, 16vw, 180px) 0 clamp(100px, 12vw, 140px); }
.privacy h2 { font-size: clamp(42px, 6vw, 80px); line-height: 1.02; }
.privacy p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 30em; margin: 22px auto 0; }

.credits { border-top: 1px solid var(--edge); padding: 28px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.6; }
.credits p { max-width: 90ch; margin: 0 0 6px; }
.credits a { color: inherit; }

.foot { margin-top: 64px; border-top: 1px solid var(--edge); padding: 32px 0 56px; color: var(--faint); font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-size: 15px; margin-bottom: 10px; }
.foot p { margin: 0 0 6px; max-width: 46em; }
.foot a { color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }

/* Long-form pages: what's new, support, privacy, terms, acknowledgements, press. */
.page { padding: clamp(56px, 8vw, 96px) 0 0; }
.page h1.display { font-size: clamp(44px, 7vw, 80px); line-height: 1.02; margin-bottom: 14px; }
.page .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.page .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 30px; }
.button { display: inline-flex; align-items: center; border-radius: 999px; padding: 12px 22px; font-weight: 500; font-size: 15px; text-decoration: none; background: var(--text); color: #000; }
.button:hover { background: #fff; text-decoration: none; }
.textlink { color: var(--text); font-weight: 500; }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 52px 0 12px; line-height: 1.2; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 26px 0 6px; }
.prose p, .prose li { color: #d1d1d6; max-width: 68ch; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 0 0 0.5em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 20px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--edge); }
.prose th { font-weight: 600; }
.prose td { color: var(--muted); }
.prose code { font-size: 0.92em; background: var(--raise); padding: 1px 5px; border-radius: 4px; }
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 40px; padding: 30px 0; border-top: 1px solid var(--edge); }
.release h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.release .date { color: var(--muted); font-size: 14px; }
.release ul { margin: 0; padding-left: 1.1em; color: #d1d1d6; }
.release li { margin-bottom: 0.45em; }
.press-icons { display: flex; flex-wrap: wrap; gap: 28px; align-items: end; margin: 18px 0 8px; }
.press-icons figure { margin: 0; }
.press-icons figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* "Get notified" sign-up on the home page. The honeypot (.hp) is moved off screen, not display:none, so bots that
   skip hidden fields still see it; people never reach it (no tab stop, hidden from screen readers). */
.notify { text-align: center; padding: clamp(110px, 14vw, 160px) 0 0; }
.notify h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; }
.notify .lede { margin: 18px auto 0; }
.signup { max-width: 520px; margin: 34px auto 0; }
.signup .field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--raise); border: 1px solid var(--edge-strong); }
.signup .field:focus-within { border-color: var(--link); }
.signup input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; padding: 8px 4px 8px 16px; outline: none; }
.signup input[type=email]::placeholder { color: var(--faint); }
.signup .pill { border: 0; cursor: pointer; padding: 11px 20px; font: 500 15px var(--sans); }
.signup .pill:disabled { opacity: 0.5; cursor: default; }
.signup.done .field { opacity: 0.6; }
.signup .ts { display: flex; justify-content: center; margin-top: 14px; min-height: 0; }
.signup .ts:empty { margin-top: 0; }
.signup .status { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.signup .status[data-kind="ok"] { color: var(--channels); }
.signup .status[data-kind="error"] { color: #ff8a80; }
.signup .fine { color: var(--faint); font-size: 13px; line-height: 1.5; margin: 6px auto 0; max-width: 42em; }
.signup .fine a { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .ba { grid-template-columns: 1fr; }
  .ba .shot img { aspect-ratio: auto; border-radius: 12px 12px 0 0; }
  .ba .shot { padding: 18px 26px 0; }
  .bento { grid-template-columns: 1fr; }
  .c-film, .c-remote, .c-disc, .c-server { grid-column: auto; }
  .sound { grid-template-columns: 1fr; }
  .room { max-width: 440px; margin: 0 auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .c-remote .pic { width: 56%; }
  .specs { grid-template-columns: 1fr 1fr; }
  .release { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar nav { display: none; }
  .topbar .bar { width: 100%; justify-content: space-between; }
}
@media (max-width: 640px) {
  .topbar .bar { gap: 12px; padding-left: 12px; }
  .topbar nav a.hide-sm { display: none; }
  .topbar .bar .pill { padding: 8px 12px; font-size: 13px; }
  .specs, .facts { grid-template-columns: 1fr; }
  .tag { top: 10px; font-size: 12px; padding: 5px 10px; }
  .tag.left { left: 10px; }
  .tag.right { right: 10px; }
  .compare .knob { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .signup .field { border-radius: 22px; flex-wrap: wrap; }
  .signup input[type=email] { flex-basis: 100%; padding: 10px 14px; }
  .signup .pill { flex: 1; }
}
