/* kylersimzer.com. Same design language as stems.fm, GODMIX and Sunstrology:
   black, one off-white ink, Geist and Geist Mono, hairline borders, quiet surfaces, fast motion
   (finished to the standard of linear.app). The only colour on the site is the red on-air light. */
:root {
  color-scheme: dark;
  --ink: 236, 235, 230;
  --bg: #000;
  --bg-1: #08090a;
  --bg-2: #0f1011;
  --bg-3: #16171a;
  --fg: #ecebe6;
  --fg-2: rgba(var(--ink), 0.72);
  --fg-3: rgba(var(--ink), 0.48);
  --fg-4: rgba(var(--ink), 0.3);
  --line: rgba(var(--ink), 0.09);
  --line-2: rgba(var(--ink), 0.14);
  --line-3: rgba(var(--ink), 0.22);
  --red: #ff3b30;
  --glass: rgba(0, 0, 0, 0.72);
  --sans: 'Geist', 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --wide: 1120px;
  --narrow: 760px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--fg); scroll-padding-top: calc(var(--nav) + 16px); }
body { font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
ul, ol { list-style: none; }
:focus-visible { outline: 1.5px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(var(--ink), 0.9); color: #000; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--fg); color: #000; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); background: var(--glass); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--wide); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.ks { width: 24px; height: 24px; color: var(--fg); }
.nav nav { display: flex; gap: 2px; margin: 0 auto; }
.nav nav a { padding: 6px 12px; font-size: 13px; color: var(--fg-3); border-radius: 999px; transition: color 0.15s, background 0.15s; }
.nav nav a:hover { color: var(--fg); }
.nav nav a[aria-current='page'] { color: var(--fg); background: rgba(var(--ink), 0.07); }
.nav-listen { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; font-size: 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); transition: border-color 0.15s, color 0.15s; }
.nav-listen:hover { color: var(--fg); border-color: var(--line-3); }
.nav-listen i, .btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-4); transition: background 0.3s; }
.radio-on .nav-listen i, .radio-on .btn .dot { background: var(--red); animation: on-air 4s ease-in-out infinite; }

/* ── type and buttons ── */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg-3); margin-bottom: 12px; }
.lede { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; color: var(--fg-2); max-width: 46ch; text-wrap: pretty; }
.lede a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.lede a:hover { text-decoration-color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease); }
.btn:hover { background: var(--bg-3); border-color: var(--line-3); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--fg); color: #000; border-color: var(--fg); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-primary .dot { background: rgba(0, 0, 0, 0.35); }
.btn-quiet { height: 32px; padding: 0 12px; font-size: 13px; color: var(--fg-2); background: none; }

/* ── home: hero ── */
.hero { padding: clamp(72px, 14vh, 150px) var(--gutter) 64px; display: grid; justify-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 4px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--fg-2); background: var(--bg-1); margin-bottom: 32px; transition: border-color 0.15s, color 0.15s; }
.pill:hover { color: var(--fg); border-color: var(--line-3); }
.pill-tag { height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(var(--ink), 0.1); color: var(--fg); font-size: 12px; font-weight: 500; }
.display { font-size: clamp(48px, 10vw, 112px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 30%, rgba(var(--ink), 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.hero .lede { margin: 0 auto 36px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* The reel: two rows of photos drifting in opposite directions, faded at the edges. */
.reel { display: grid; gap: 12px; padding: 24px 0 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.reel-row { display: flex; gap: 12px; width: max-content; animation: drift 120s linear infinite; }
.reel-row.rev { animation-direction: reverse; animation-duration: 140s; }
.reel:hover .reel-row { animation-play-state: paused; }
.reel img { width: clamp(220px, 24vw, 340px); aspect-ratio: 1456 / 816; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-1); }
@keyframes drift { to { transform: translateX(-50%); } }

/* ── sections ── */
.block { padding: 96px 0 0; }
.block-head { margin-bottom: 32px; }
.block-head.row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.block-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.block-head .sub { color: var(--fg-3); margin-top: 8px; max-width: 52ch; }

/* The Hexology: six cells, released ones bright, the rest waiting. */
.hex { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-1); }
.hex li { border-right: 1px solid var(--line); }
.hex li:last-child { border-right: 0; }
.hex a, .hex .soon { display: grid; gap: 4px; padding: 28px 20px 22px; height: 100%; transition: background 0.2s; }
.hex a:hover { background: var(--bg-2); }
.hex .n { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; }
.hex .t { font-size: 13px; color: var(--fg-2); }
.hex .d { font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.hex .soon .n { color: var(--fg-4); }
.hex .latest .d::after { content: ' · latest'; color: var(--fg-2); }

/* Project cards. */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { position: relative; display: grid; align-content: start; gap: 10px; min-height: 190px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); transition: border-color 0.2s, transform 0.25s var(--ease); }
.card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.card-k { font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.card p { color: var(--fg-3); font-size: 14px; }
.card-go { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--fg-2); }
.card:hover .card-go { color: var(--fg); }

/* Gallery: the photos are shot on black, so they sit straight on the page. */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery button { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); aspect-ratio: 1456 / 816; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.4s; opacity: 0; }
.gallery img.in { opacity: 1; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:hover { border-color: var(--line-3); }

/* ── page headers (Music, Projects, Info) ── */
.page-head { padding: clamp(56px, 10vh, 96px) 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2); transition: color 0.15s, border-color 0.15s; }
.chip:hover { color: var(--fg); border-color: var(--line-3); }

/* ── music ── */
.album { padding: 48px 0; border-bottom: 1px solid var(--line); }
.album-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; margin-bottom: 20px; }
.album-n { font-size: clamp(56px, 9vw, 96px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; }
.album-t h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.album-t p { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.album-play { height: 32px; font-size: 13px; }
.album.soon .album-n { color: var(--fg-4); }
.tracks { display: grid; }
.trk { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 0 -12px; width: calc(100% + 24px); border-radius: 8px; text-align: left; font-size: 14px; color: var(--fg-2); transition: background 0.12s, color 0.12s; }
.trk:hover:not(:disabled) { background: var(--bg-2); color: var(--fg); }
.trk:disabled { cursor: default; }
.trk .i { font-family: var(--mono); font-size: 12px; color: var(--fg-4); text-align: right; position: relative; height: 16px; }
.trk .i svg { position: absolute; right: 0; top: 0; opacity: 0; color: var(--fg); }
.trk:hover:not(:disabled) .i span { opacity: 0; }
.trk:hover:not(:disabled) .i svg { opacity: 1; }
.trk .d { font-family: var(--mono); font-size: 12px; color: var(--fg-4); }
.trk .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk.now { color: var(--fg); }
.trk.now .i span { opacity: 0; }
.trk.now .i::after { content: ''; position: absolute; right: 2px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); }
.radio-on .trk.now .i::after { background: var(--red); animation: on-air 4s ease-in-out infinite; }
.trk.now:hover .i::after { display: none; }
.note { margin-top: 16px; font-size: 13px; color: var(--fg-4); }
.page-head .lede a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.page-head .lede a:hover { text-decoration-color: var(--fg-2); }

/* Freestyle to song */
.origins { padding: 56px 0 48px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav) + 8px); }
.origins h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.origins .sub { font-size: 14px; color: var(--fg-3); margin: 4px 0 20px; }
.olist { display: grid; gap: 8px; }
.orig { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 4px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); transition: border-color 0.15s; }
.orig:hover, .orig.on { border-color: var(--line-3); }
.o-play { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); transition: transform 0.15s var(--ease); }
.o-play:active { transform: scale(0.94); }
.o-t { min-width: 0; display: grid; }
.o-t b { font-weight: 500; font-size: 14px; }
.o-t span { font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-ab { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.o-ab button { height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: var(--fg-3); transition: background 0.15s, color 0.15s; }
.o-ab button[aria-pressed="true"] { background: var(--bg-3, var(--line-2)); color: var(--fg); }
.o-bar { grid-column: 2 / -1; height: 14px; display: flex; align-items: center; cursor: pointer; position: relative; }
.o-bar::before { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line-2); }
.o-bar i { position: relative; height: 2px; width: 0; border-radius: 2px; background: var(--fg-2); }
.orig.on .o-bar i { background: var(--fg); }
.olist:not(:has(.orig)) li { font-size: 14px; color: var(--fg-3); padding: 6px 0; }

/* ── projects ── */
.plist { margin: -8px 0 8px; }
.plist a { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; transition: color 0.15s; }
.plist b { font-weight: 500; }
.plist span { color: var(--fg-3); }
.plist em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--fg-4); }
.plist a:hover span { color: var(--fg-2); }
.project { padding: 72px 0 24px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav) + 8px); }
.project:last-child { border-bottom: 0; }
.project h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.project .tagline { font-size: 18px; color: var(--fg-2); margin: 8px 0 28px; }
.project > p { color: var(--fg-2); margin-bottom: 16px; max-width: 62ch; }
.project .btn { margin-top: 16px; }
.project.focus h2 { animation: focus 1.2s var(--ease); }
@keyframes focus { from { opacity: 0.3; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; counter-reset: s; }
.steps li { padding: 18px 18px 20px; border-right: 1px solid var(--line); background: var(--bg-1); display: grid; gap: 4px; counter-increment: s; }
.steps li:last-child { border-right: 0; }
.steps b { font-weight: 500; }
.steps b::before { content: '0' counter(s); display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--fg-4); margin-bottom: 10px; }
.steps span { font-size: 13px; color: var(--fg-3); }

/* ── info ── */
.facts { margin: 32px 0 16px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--fg-3); }
.facts a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.prose h2, .links h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 56px 0 14px; }
.prose p, .prose li { color: var(--fg-2); max-width: 64ch; }
.prose p + p { margin-top: 12px; }
.prose b { color: var(--fg); font-weight: 500; }
.prose ul { display: grid; gap: 6px; }
.prose ul li { padding-left: 18px; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 1px; background: var(--fg-4); }
.prose .muted { font-family: var(--mono); font-size: 12px; color: var(--fg-4); margin: -8px 0 14px; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--fg-4); font-family: var(--mono); transition: transform 0.2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 16px; }
.linkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-bottom: 32px; }
.linkgrid a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); font-size: 14px; transition: border-color 0.15s, background 0.15s; }
.linkgrid a:hover { border-color: var(--line-3); background: var(--bg-2); }
.linkgrid em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--fg-4); }

/* ── footer ── */
.foot { margin-top: 120px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.foot-brand { display: grid; gap: 8px; align-content: start; font-size: 13px; color: var(--fg-3); }
.foot-brand .ks { width: 28px; height: 28px; margin-bottom: 8px; }
.foot-brand p { color: var(--fg); font-weight: 500; }
.foot-brand a:hover { color: var(--fg); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h3 { font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.foot-cols a { display: block; font-size: 13px; color: var(--fg-3); padding: 3px 0; transition: color 0.15s; }
.foot-cols a:hover { color: var(--fg); }
.foot-base { display: flex; justify-content: center; gap: 16px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-4); }
.has-radio .foot-base { padding-bottom: 200px; }

/* ── the radio ── */
.radio { position: fixed; z-index: 60; right: 16px; bottom: 16px; width: 300px; padding: 12px 14px 12px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(10, 11, 12, 0.86); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6); font-size: 13px; transition: width 0.3s var(--ease); }
.r-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.r-toggle { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 2px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.r-toggle:hover { color: var(--fg); }
.r-live { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-4); transition: background 0.3s, box-shadow 0.3s; }
.radio.on-air .r-live { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18), 0 0 12px rgba(255, 59, 48, 0.6); animation: on-air 4s ease-in-out infinite; }
.radio.on-air .r-toggle { color: var(--fg); }
@keyframes on-air { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.r-modes { display: flex; padding: 2px; border-radius: 8px; background: rgba(var(--ink), 0.06); }
.r-modes button { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; color: var(--fg-3); transition: background 0.15s, color 0.15s; }
.r-modes button[aria-pressed='true'] { background: rgba(var(--ink), 0.14); color: var(--fg); }
.r-body { display: grid; gap: 10px; margin-top: 10px; }
.r-now { display: grid; min-width: 0; }
.r-kicker { font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.r-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-bar { position: relative; height: 16px; cursor: pointer; }
.r-bar::before, .r-bar i { content: ''; position: absolute; left: 0; top: 7px; height: 2px; border-radius: 2px; }
.r-bar::before { right: 0; background: rgba(var(--ink), 0.12); }
.r-bar i { width: var(--p, 0%); background: var(--fg); }
.radio[data-listen='live'] .r-bar { cursor: default; }
.radio[data-listen='live'] .r-bar i { background: var(--fg-2); }
.r-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.r-time { font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.r-dur { text-align: right; }
.radio[data-listen='live'] .r-dur::before { content: 'live · '; color: var(--red); opacity: 0; transition: opacity 0.3s; }
.radio[data-listen='live'].on-air .r-dur::before { opacity: 0.9; }
.r-ctrl { display: flex; gap: 4px; }
.r-ctrl button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--fg-2); transition: background 0.12s, color 0.12s; }
.r-ctrl button:hover { background: rgba(var(--ink), 0.08); color: var(--fg); }
.r-ctrl .r-play { background: var(--fg); color: #000; }
.r-ctrl .r-play:hover { background: #fff; color: #000; }
.r-vol { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.r-vol input { flex: 1; accent-color: var(--fg); height: 16px; }
.radio.closed { width: auto; padding: 6px 12px 6px 10px; border-radius: 999px; }
.radio.closed .r-body, .radio.closed .r-modes { display: none; }

/* ── lightbox ── */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(8px); animation: fade 0.2s var(--ease); }
.lightbox img { max-width: min(92vw, 1456px); max-height: 84vh; border-radius: 12px; }
.lb-x { position: absolute; top: 16px; right: 20px; font-size: 28px; color: var(--fg-3); width: 44px; height: 44px; }
.lb-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 64px; font-size: 36px; color: var(--fg-3); }
.lb-x:hover, .lb-arrow:hover { color: var(--fg); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-n { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; font-size: 12px; color: var(--fg-4); }
@keyframes fade { from { opacity: 0; } }

/* Pages fade in when the route changes. */
.page:not([hidden]) { animation: fade 0.35s var(--ease); }

@media (max-width: 860px) {
  .hex { grid-template-columns: repeat(3, 1fr); }
  .hex li:nth-child(3) { border-right: 0; }
  .hex li:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav-in { gap: 8px; }
  .nav nav a { padding: 6px 9px; }
  .nav-listen { padding: 0 10px; }
  .album-head { grid-template-columns: auto 1fr; }
  .album-play { grid-column: 1 / -1; justify-self: start; }
  .plist a { grid-template-columns: 1fr auto; }
  .plist span { grid-column: 1; grid-row: 2; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .linkgrid { grid-template-columns: 1fr; }
  .orig { grid-template-columns: 36px 1fr; }
  .o-play { grid-row: span 2; }
  .o-t span { white-space: normal; }
  .o-ab { justify-self: start; margin-top: 6px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .radio { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .radio.closed { left: auto; }
  .lb-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
