/* dylafm.app -- one stylesheet, no framework.
 *
 * The device in the hero wears the app's own seven finishes (core/designsystem's
 * skins, colour for colour). The page takes a quiet tint from the finish chosen.
 */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* --- Finishes: the app's skins ------------------------------------------------------ */
[data-skin="graphite"]  { --s-bg:#24292C; --s-panel:#192124; --s-raised:#394247; --s-inset:#11191C; --s-text:#F2F5F3; --s-text2:#A4B2AD; --s-progress:#DCE9E3; --s-chip:#DCE9E3; --s-chip-text:#202925; --s-highlight:#7D8B88; --s-shadow:#080D0F; --s-wheel:#3B4447; --s-wheel-center:#2A3437; --s-wheel-ink:#D8E2DD; --s-accent:#8FB3A4; }
[data-skin="classic"]   { --s-bg:#F3F3EF; --s-panel:#E3E8E0; --s-raised:#FBFBF8; --s-inset:#D9E0D5; --s-text:#27312C; --s-text2:#4D5D53; --s-progress:#344F43; --s-chip:#344F43; --s-chip-text:#F5F8F2; --s-highlight:#FFFFFF; --s-shadow:#929D96; --s-wheel:#F9F9F6; --s-wheel-center:#EBEEE9; --s-wheel-ink:#657269; --s-accent:#344F43; }
[data-skin="crimson"]   { --s-bg:#902D38; --s-panel:#49252D; --s-raised:#A8444C; --s-inset:#301920; --s-text:#FFF1EC; --s-text2:#EAC0BB; --s-progress:#FFEDE5; --s-chip:#FFEDE5; --s-chip-text:#63232E; --s-highlight:#EAA09F; --s-shadow:#4D121E; --s-wheel:#F3EDE3; --s-wheel-center:#E7DED3; --s-wheel-ink:#795D59; --s-accent:#A8343F; }
[data-skin="miniBlue"]  { --s-bg:#BFD6DF; --s-panel:#DCE7E8; --s-raised:#D6E7ED; --s-inset:#CDDCE0; --s-text:#253E49; --s-text2:#3F5865; --s-progress:#274F61; --s-chip:#274F61; --s-chip-text:#F0F8FA; --s-highlight:#F1FBFF; --s-shadow:#6C8C9B; --s-wheel:#F4F7F5; --s-wheel-center:#E4EBE8; --s-wheel-ink:#63777A; --s-accent:#2F6A80; }
[data-skin="miniPink"]  { --s-bg:#E3BECA; --s-panel:#EBDFE2; --s-raised:#F1D8E0; --s-inset:#DDCDD3; --s-text:#49313D; --s-text2:#644858; --s-progress:#69394F; --s-chip:#69394F; --s-chip-text:#FFF3F7; --s-highlight:#FFF4F7; --s-shadow:#AC8193; --s-wheel:#FAF5F3; --s-wheel-center:#EEE5E4; --s-wheel-ink:#7A686E; --s-accent:#8E4A69; }
[data-skin="champagne"] { --s-bg:#E0D0AF; --s-panel:#E7E3D7; --s-raised:#F1E6CF; --s-inset:#DAD5C5; --s-text:#463D2D; --s-text2:#5E523F; --s-progress:#59492D; --s-chip:#59492D; --s-chip-text:#FFF8E9; --s-highlight:#FFF9E9; --s-shadow:#A39370; --s-wheel:#FAF7EF; --s-wheel-center:#EEE9DC; --s-wheel-ink:#786F5D; --s-accent:#8A6A33; }
[data-skin="silver"]    { --s-bg:#CFD5D5; --s-panel:#E0E6E1; --s-raised:#E8EDED; --s-inset:#D1DAD4; --s-text:#2C3733; --s-text2:#4B5B52; --s-progress:#334D40; --s-chip:#334D40; --s-chip-text:#F3F8F3; --s-highlight:#FFFFFF; --s-shadow:#879594; --s-wheel:#F8F9F5; --s-wheel-center:#E9EEEA; --s-wheel-ink:#69776F; --s-accent:#3D6353; }

/* --- The page ----------------------------------------------------------------------- */
:root {
  --paper: #F7F4EE;
  --paper-2: #EFEAE0;
  --ink: #1F2420;
  --ink-2: #545B55;
  --line: rgba(31, 36, 32, 0.12);
  --card: rgba(255, 255, 255, 0.62);
  --tint: color-mix(in oklab, var(--s-bg) 30%, var(--paper));
  --accent: var(--s-accent);
  --radius: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121517;
    --paper-2: #181C1F;
    --ink: #EEF1EE;
    --ink-2: #A3ACA7;
    --line: rgba(238, 241, 238, 0.12);
    --card: rgba(255, 255, 255, 0.05);
    --tint: color-mix(in oklab, var(--s-bg) 14%, var(--paper));
    --accent: color-mix(in oklab, var(--s-accent) 55%, #F3EEE4);
  }
}
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(55% 50% at 78% 40%, color-mix(in oklab, var(--s-bg) 30%, transparent), transparent 70%),
      radial-gradient(40% 40% at 10% 90%, color-mix(in oklab, var(--s-bg) 12%, transparent), transparent 70%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 16px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--ink-2); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.35em;
  text-wrap: balance;
}
.display.small { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.display em { font-style: italic; color: var(--accent); transition: color 0.6s var(--ease); }
.eyebrow {
  margin: 0 0 14px;
  font: 600 0.8rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.new {
  display: inline-block; margin-left: 6px; padding: 2px 8px 1px; border-radius: 999px;
  background: var(--accent); color: var(--paper); letter-spacing: 0.08em; font-size: 0.7rem; vertical-align: 1px;
}
.lede, .section-lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.section-lede { margin-inline: auto; }
.text-link { color: var(--accent); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* --- Buttons ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  font-weight: 600; line-height: 1; white-space: nowrap;
  padding: 14px 22px; font-size: 0.98rem;
  transition: transform 0.25s var(--ease), background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-small { padding: 10px 16px; font-size: 0.92rem; }
.btn-large { padding: 17px 26px; font-size: 1.02rem; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.5); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-icon { width: 20px; height: 20px; }

/* --- Header -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.5rem/1 var(--serif); }
.brand em { font-style: italic; color: var(--accent); transition: color 0.6s var(--ease); }
.brand-mark { width: 30px; height: auto; color: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .header-row .btn { margin-left: auto; } }

/* --- Hero ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(28px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(60% 55% at 78% 40%, color-mix(in oklab, var(--s-bg) 55%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, color-mix(in oklab, var(--s-bg) 25%, transparent), transparent 70%);
  transition: background 0.6s var(--ease);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.hero .display { font-size: clamp(3rem, 7.2vw, 6rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
.release-meta { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.hero-device { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .cta { justify-content: center; }
}

/* --- The device ---------------------------------------------------------------------- */
.device {
  --w: clamp(270px, 30vw, 340px);
  width: var(--w);
  padding: calc(var(--w) * 0.055);
  padding-bottom: calc(var(--w) * 0.09);
  border-radius: calc(var(--w) * 0.14);
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--s-highlight) 40%, var(--s-bg)) 0%, var(--s-bg) 38%, color-mix(in oklab, var(--s-shadow) 30%, var(--s-bg)) 100%);
  box-shadow:
    inset 0 1.5px 0 color-mix(in oklab, var(--s-highlight) 70%, transparent),
    inset 0 -2px 6px color-mix(in oklab, var(--s-shadow) 35%, transparent),
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 30px 60px -20px color-mix(in oklab, var(--s-shadow) 80%, transparent),
    0 60px 120px -40px rgba(0, 0, 0, 0.35);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.device-screen {
  aspect-ratio: 1 / 1.02;
  border-radius: calc(var(--w) * 0.075);
  background: var(--s-inset);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--s-shadow) 35%, transparent), 0 1px 0 color-mix(in oklab, var(--s-highlight) 60%, transparent);
}
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 14px 3px; font: 600 11px/1 var(--sans); color: var(--s-text); background: var(--s-panel);
}
.status-icons { display: flex; gap: 3px; align-items: flex-end; }
.status-icons i { display: block; width: 3px; background: var(--s-text); border-radius: 1px; }
.status-icons i:nth-child(1) { height: 5px; } .status-icons i:nth-child(2) { height: 7px; } .status-icons i:nth-child(3) { height: 9px; }
.screen-inner { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 9px; background: var(--s-panel); color: var(--s-text);
  font: 700 13px/1 var(--sans); letter-spacing: 0.16em;
}
.titlebar-mark { width: 20px; height: auto; color: var(--s-text); }
.menu-view { flex: 1; position: relative; overflow: hidden; background: var(--s-inset); }
.menu { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 0; transition: transform 0.28s var(--ease); }
.menu li {
  --row: calc(var(--w) * 0.132);
  height: var(--row); padding: 0 14px; display: flex; flex-direction: column; justify-content: center;
  color: var(--s-text); cursor: pointer; transition: background-color 0.18s, color 0.18s;
}
.row-title { font: 600 calc(var(--w) * 0.05)/1.15 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font: 400 calc(var(--w) * 0.037)/1.25 var(--sans); color: var(--s-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu li.on { background: var(--s-progress); color: var(--s-bg); }
.menu li.on .row-sub { color: color-mix(in oklab, var(--s-bg) 72%, transparent); }
[data-skin="graphite"] .menu li.on, [data-skin="crimson"] .menu li.on { color: var(--s-chip-text); }
[data-skin="graphite"] .menu li.on .row-sub, [data-skin="crimson"] .menu li.on .row-sub { color: color-mix(in oklab, var(--s-chip-text) 72%, transparent); }
.menu li.press { filter: brightness(1.15); }
.np-strip {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--s-panel); color: var(--s-text);
  border-top: 1px solid color-mix(in oklab, var(--s-shadow) 25%, transparent);
}
.np-art { width: 30px; height: 30px; border-radius: 7px; flex: none; background: conic-gradient(from 210deg, #2b1d10, #f0b34a, #d9653b, #ffe2a3, #2b1d10); }
.np-text { display: flex; flex-direction: column; min-width: 0; font-size: 11.5px; line-height: 1.25; }
.np-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-text span { color: var(--s-text2); }
.np-bars { margin-left: auto; display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.np-bars i { display: block; width: 3px; border-radius: 2px; background: var(--s-text); animation: eq 1.1s ease-in-out infinite; }
.np-bars i:nth-child(2) { animation-delay: -0.35s; } .np-bars i:nth-child(3) { animation-delay: -0.7s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.wheel {
  --d: calc(var(--w) * 0.74);
  position: relative; width: var(--d); height: var(--d); margin: calc(var(--w) * 0.08) auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, color-mix(in oklab, #fff 35%, var(--s-wheel)), var(--s-wheel) 60%, color-mix(in oklab, var(--s-shadow) 18%, var(--s-wheel)));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.55), inset 0 -3px 8px color-mix(in oklab, var(--s-shadow) 30%, transparent), 0 2px 6px color-mix(in oklab, var(--s-shadow) 40%, transparent);
  color: var(--s-wheel-ink);
  cursor: grab; touch-action: none;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
.wheel:active { cursor: grabbing; }
.wheel:focus-visible { outline-offset: 5px; border-radius: 50%; }
.wheel-icon { position: absolute; width: 16%; height: 16%; display: grid; place-items: center; pointer-events: none; }
.wheel-icon svg { width: 100%; height: 100%; }
.wheel-top { top: 6%; left: 42%; } .wheel-bottom { bottom: 6%; left: 42%; }
.wheel-left { left: 6%; top: 42%; width: 14%; height: 14%; } .wheel-right { right: 6%; top: 42%; width: 14%; height: 14%; }
.wheel-center {
  position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, color-mix(in oklab, #fff 30%, var(--s-wheel-center)), var(--s-wheel-center));
  color: var(--s-wheel-ink);
  box-shadow: 0 1px 2px color-mix(in oklab, var(--s-shadow) 45%, transparent), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.12s, background 0.6s var(--ease);
}
.wheel-center svg { width: 40%; height: 40%; margin-left: 4%; }
.wheel-center:active, .wheel-center.press { transform: translate(-50%, -50%) scale(0.95); }
.wheel-hint { margin: 18px 0 0; font-size: 0.85rem; color: var(--ink-2); }
.hint-keys { display: none; }
@media (hover: hover) and (pointer: fine) { .hint-touch { display: none; } .hint-keys { display: inline; } }

.finishes { display: flex; gap: 10px; margin-top: 16px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--s-bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.finish-name { margin: 10px 0 0; font: italic 400 1.15rem/1 var(--serif); color: var(--ink-2); }
.swatch-graphite { --s-bg:#24292C; } .swatch-classic { --s-bg:#F3F3EF; } .swatch-crimson { --s-bg:#902D38; } .swatch-miniBlue { --s-bg:#BFD6DF; }
.swatch-miniPink { --s-bg:#E3BECA; } .swatch-champagne { --s-bg:#E0D0AF; } .swatch-silver { --s-bg:#CFD5D5; }

/* --- Ticker -------------------------------------------------------------------------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--paper-2); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li { display: flex; align-items: center; gap: 14px; padding: 16px 22px; font: italic 400 1.35rem/1 var(--serif); white-space: nowrap; }
.ticker-mark { width: 18px; height: auto; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- The gallery: what it does, one film each ----------------------------------------- */
.gallery-section { padding: clamp(56px, 8vw, 110px) 0; }
.gallery {
  list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
}
.card { text-align: center; }
.card-film {
  position: relative; display: block; width: min(100%, 300px); margin: 0 auto 20px; padding: 8px; border: 0; cursor: pointer;
  aspect-ratio: 9 / 16; border-radius: 32px;
  background: linear-gradient(160deg, #3b3f41, #16191a);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card-film:hover { transform: translateY(-6px); box-shadow: 0 44px 80px -36px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.18); }
.card-film video { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; background: #111; }
.card-sound {
  position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px 7px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0.9; transition: opacity 0.3s;
}
.card-sound svg { width: 14px; height: 14px; }
.card .eyebrow { margin-bottom: 8px; }
.card-title { margin: 0; font: 400 clamp(1.7rem, 2.4vw, 2.2rem)/1.05 var(--serif); text-wrap: balance; }
.card-title em { font-style: italic; color: var(--accent); transition: color 0.6s var(--ease); }
.card-line { margin: 8px auto 0; max-width: 22em; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
/* Phones: a row to swipe through, not a long column. */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74vw; gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; }
}

/* --- Private, and the rest: words as chips -------------------------------------------- */
.private { padding: clamp(56px, 8vw, 110px) 0; background: var(--tint); transition: background 0.6s var(--ease); }
.private .display { margin-bottom: 26px; }
.pills { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills li {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  background: var(--ink); color: var(--paper);
}
.pills-quiet li { background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.more { padding: clamp(40px, 6vw, 72px) 0; }
.more .pills { margin: 0; }

.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
.player::backdrop { background: rgba(8, 10, 11, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player-frame { position: relative; }
.player video { height: min(88vh, 900px); width: auto; max-width: 94vw; aspect-ratio: 9 / 16; border-radius: 20px; background: #000; }
.player-close {
  position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, 0.5);
}
.player-close svg { width: 20px; height: 20px; }

/* --- Developers ------------------------------------------------------------------------ */
.devs { padding: clamp(56px, 8vw, 110px) 0; background: var(--paper-2); }
.devs-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.devs-line { color: var(--ink-2); max-width: 30em; margin: 0 0 22px; }
.caps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.caps li { display: flex; align-items: baseline; gap: 12px; }
.caps code {
  flex: none; min-width: 9.2em; text-align: center; padding: 3px 9px; border-radius: 8px; font: 500 0.8rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--card); border: 1px solid var(--line); color: var(--accent);
}
.caps span { color: var(--ink-2); font-size: 0.97rem; }
.caps b { color: var(--ink); font-weight: 600; }
.code {
  margin: 0; border-radius: 18px; overflow: hidden; background: #15191b; color: #d7dfda;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1d2225; font: 500 0.78rem/1 var(--sans); color: #8b9691; }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4246; }
.code-bar span { margin-left: 8px; }
.code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 0.84rem/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.code .k { color: #c792ea; } .code .t { color: #ffcb6b; } .code .f { color: #82aaff; } .code .s { color: #c3e88d; } .code .c { color: #6f7d77; font-style: italic; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; border-radius: 999px;
  border: 1px dashed var(--line); color: var(--ink-2); font-weight: 600; font-size: 0.95rem;
}
.soon-icon { width: 18px; height: 18px; }
.soon span { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--paper); font-size: 0.75rem; letter-spacing: 0.04em; }
@media (max-width: 860px) { .devs-grid { grid-template-columns: 1fr; } }
.devs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* --- The developers page ----------------------------------------------------------------- */
.devs-page .wrap.narrow { width: min(860px, 100% - 32px); }
.lead-line { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.soon-line { margin: 20px 0 8px; }
.toc {
  position: sticky; top: 64px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 26px -8px 10px; padding: 10px 8px; background: color-mix(in oklab, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 0.88rem; color: var(--ink-2); }
.toc a:hover { background: var(--card); color: var(--ink); }
.flow { list-style: none; counter-reset: flow; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow li { counter-increment: flow; padding: 14px 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.flow li::before { content: counter(flow); display: block; font: 400 1.6rem/1 var(--serif); color: var(--accent); margin-bottom: 6px; }
.flow b { display: block; color: var(--ink); }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr 1fr; } }
.prose code { font: 0.86em ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 1px 6px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.doc-code { margin: 18px 0 22px; }
.doc-code pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: 16px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td { color: var(--ink-2); }
.devs-page h2 { scroll-margin-top: 130px; }
.devs-end { margin-top: 3em; font-size: 1.05rem; }

/* --- Download ------------------------------------------------------------------------ */
.download { padding: clamp(56px, 9vw, 120px) 0; background: var(--tint); transition: background 0.6s var(--ease); }
.download-card {
  text-align: center; padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px); border-radius: 32px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.35);
}
.download-mark { width: 64px; height: auto; margin: 0 auto 18px; color: var(--accent); }
.download-card .btn { margin-top: 10px; }
.release-line { margin: 16px 0 0; font-size: 0.9rem; color: var(--ink-2); }
.how { margin: 6px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.fingerprint { margin: 22px auto 0; max-width: 560px; text-align: left; font-size: 0.92rem; color: var(--ink-2); }
.fingerprint summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.fingerprint code { display: block; margin: 8px 0 10px; padding: 12px; border-radius: 12px; background: var(--paper-2); font-size: 0.8rem; word-break: break-all; color: var(--ink); }

/* --- FAQ ----------------------------------------------------------------------------- */
.faq { padding: clamp(56px, 8vw, 104px) 0; }
.faq-list { display: grid; gap: 10px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* --- Footer -------------------------------------------------------------------------- */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand p { margin: 10px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: flex-start; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-github { display: inline-flex; align-items: center; gap: 7px; }
.footer-github svg { width: 16px; height: 16px; }
.footer-fine { margin-top: 28px; font-size: 0.8rem; color: var(--ink-2); }

/* --- Pages (privacy, 404) ------------------------------------------------------------ */
.page { padding: clamp(40px, 7vw, 96px) 0; }
.prose { font-size: 1.05rem; }
.prose h2 { font: 400 1.9rem/1.15 var(--serif); margin: 2.2em 0 0.4em; }
.prose h3 { font-size: 1.05rem; margin: 1.6em 0 0.3em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose .updated { font-size: 0.9rem; }
.not-found { text-align: center; padding: clamp(64px, 12vw, 160px) 0; }
.not-found .lyre { width: 80px; height: auto; margin: 0 auto 20px; color: var(--accent); }

/* --- Motion -------------------------------------------------------------------------- */
/* Only once the script runs (it reveals what is already on screen first): without it, everything shows. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .np-bars i { animation: none; }
  .menu, .btn, .swatch, .card-film { transition: none; }
}
