/* tastemaker · macro: Scene deck (one gesture = one scene, falls back to a scrolling page) · nav: N3 floating bar · hero: H2 split demo · scenes: F3 acts (tidy, gapless, lyrics, cover flight) + F2 bento · close: C2 over the rising logo planet · mood: technical-calm, app palette, per-scene cover-art tint · contrast: text 16.7:1, text-2 8.1:1, text-3 5.4:1, accent 8.5:1, white on primary 4.8:1 · critique: ShowTell 5 · Phil 4 · Hier 5 · Spec 5 · Restr 4 · Var 5 */
/* atmosphere-site · styles.css · The Atmosphere website: app tokens, scene deck, scenes and their acts */

:root {
  --bg: #0b0d12;
  --bg-2: #0f1117;
  --surface: #171a23;
  --surface-2: #1d212c;
  --border: #2a2f3d;
  --hairline: rgba(236, 238, 244, 0.08);
  --text: #eceef4;
  --text-2: #b7bccb;
  --text-3: #8c92a5;
  --primary: #5b63e6;
  --primary-hover: #6970ee;
  --on-primary: #ffffff;
  --accent: #9aa4ff;
  --accent-soft: rgba(154, 164, 255, 0.16);
  --ok: #3ecf8e;
  --warn: #e7b34f;
  --glass: rgba(15, 17, 23, 0.72);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --r-ctl: 8px; --r-card: 12px; --r-shot: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --top: 88px;
  --bottom: 96px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.022em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, 1.3rem + 4vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 1.15rem + 2vw, 3rem); line-height: 1.06; }
p { margin: 0; }
a { color: inherit; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
h2 code { color: var(--accent); letter-spacing: 0; }
kbd { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: var(--s4); top: -60px; z-index: 100; padding: var(--s2) var(--s4); background: var(--surface); border-radius: var(--r-ctl); }
.skip:focus { top: var(--s4); }
.accent { color: var(--accent); }

/* backdrops: pre-blurred cover art, one per scene, crossfaded */
.backdrops { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.backdrops img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; opacity: 0; }
.backdrops img[data-bg="orbit"] { opacity: 0.7; }
.backdrops::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(11, 13, 18, 0.45), rgba(11, 13, 18, 0.9) 70%), linear-gradient(rgba(11, 13, 18, 0.35), rgba(11, 13, 18, 0.55)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 48px; padding: 0 var(--s6); border-radius: var(--r-ctl); border: 1px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px -12px rgba(91, 99, 230, 0.8); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sm { height: 36px; padding: 0 var(--s4); font-size: 14px; box-shadow: none; }
.btn-lg { height: 56px; padding: 0 var(--s8); font-size: 16px; }

/* nav */
.nav { position: fixed; top: var(--s4); left: 50%; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: var(--s6); width: max-content; max-width: calc(100vw - 24px); padding: 8px 8px 8px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8); }
.nav-brand img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-ctl); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); background: rgba(236, 238, 244, 0.07); }
@media (max-width: 640px) { .nav-links { display: none; } .nav { gap: var(--s4); } }

/* scenes: shared */
.scene { position: relative; }
.frame { width: 100%; max-width: 1280px; margin-inline: auto; padding: var(--top) var(--gutter) var(--bottom); }
.copy { display: grid; gap: var(--s5); align-content: center; min-width: 0; }
.copy > p { color: var(--text-2); font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem); max-width: 34em; }
.copy.center { justify-items: center; text-align: center; }
.copy.center > p { margin-inline: auto; }
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.flip .copy { order: 2; }
.stack { display: grid; gap: clamp(24px, 4vh, 40px); justify-items: center; align-content: center; }
.visual { min-width: 0; }
.hero-shot img, .get-shot > img:first-child { border-radius: var(--r-shot); border: 1px solid rgba(236, 238, 244, 0.1); box-shadow: var(--shadow); }

/* deck mode: one scene per screen */
html.deck-on, html.deck-on body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.deck-on .deck { position: fixed; inset: 0; }
html.deck-on .scene { position: absolute; inset: 0; display: grid; align-items: center; visibility: hidden; }
html.deck-on .scene.on, html.deck-on:not(.ready) .s-hero { visibility: visible; }
html.motion:not(.deck-on) .scene:not([data-seen]) .in { opacity: 0; }
html.deck-on .frame { height: 100%; height: 100svh; display: grid; align-content: center; }
/* flow mode: a normal page */
html:not(.deck-on) .frame { padding-block: clamp(36px, 7vh, 72px); }
html:not(.deck-on) .s-hero .frame { padding-top: calc(var(--top) + 16px); }
html:not(.deck-on) .s-close .frame { padding-bottom: calc(var(--bottom) + 24px); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.copy > .lede { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin-top: var(--s2); }
.meta { color: var(--text-3); font-size: 13px; }
.hero-shot { margin: 0 calc(-1 * var(--gutter)) 0 0; perspective: 1600px; }
.hero-shot img { width: 100%; max-height: min(64svh, 760px); object-fit: cover; object-position: 0 0; transform: rotateY(-8deg) rotateX(4deg); transform-origin: 0 50%; }

/* tidy */
.crumb { display: inline-flex; align-items: center; gap: var(--s2); color: var(--accent); font-size: 14px; font-weight: 600; }
.tidy-stage { position: relative; list-style: none; margin: 0; padding: var(--s3); display: grid; gap: 2px; border-radius: 16px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.tidy-item { position: relative; height: clamp(52px, 8svh, 64px); }
.mess, .row { position: absolute; inset: 0; display: flex; align-items: center; }
.mess { width: max-content; max-width: 100%; height: 38px; top: 50%; margin-top: -19px; padding: 0 var(--s4); border-radius: var(--r-ctl); background: #262b38; border: 1px dashed #4a5166; font: 13px/1.2 var(--mono); color: #c9cddb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--s4); align-content: center; padding: 0 var(--s3); border-radius: var(--r-ctl); }
.row img { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 7px; }
.row b { font-weight: 600; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row i { grid-column: 2; font-style: normal; font-size: 13px; color: var(--text-2); line-height: 1.3; }
.row time { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* gapless */
.gap-stage { width: 100%; max-width: 1040px; display: grid; gap: var(--s8); padding: clamp(20px, 3vw, 36px); border-radius: 20px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.gap-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.modes { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: rgba(11, 13, 18, 0.6); border: 1px solid var(--hairline); }
.seg { height: 36px; padding: 0 var(--s4); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text-2); font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg:hover { color: var(--text); }
.seg.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.readout { display: flex; gap: var(--s3); align-items: baseline; font-size: 15px; }
.ro-time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.lanes { position: relative; height: clamp(170px, 26svh, 230px); overflow-x: clip; }
.lane { position: absolute; top: 0; height: 46%; }
.lane-a { left: 0; width: 50%; }
.lane-b { top: 54%; left: 50%; width: 64%; }
.lane-label { position: absolute; top: -4px; left: 0; display: inline-flex; align-items: center; gap: var(--s2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.lane-label img { width: 22px; height: 22px; border-radius: 4px; }
.wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; }
.wave rect { fill: var(--accent); }
.lane-b .wave rect { fill: #d5d9ff; }
.lanes.xfade .lane-a .wave { -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.lanes.xfade .lane-b .wave { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.seam { position: absolute; top: -6px; bottom: -6px; left: 50%; border-left: 1px dashed rgba(154, 164, 255, 0.6); }
.seam-tag { position: absolute; top: 46%; left: 0; transform: translate(-50%, -50%); padding: 3px 10px; border-radius: 999px; background: #262b4a; color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.playhead { position: absolute; top: -10px; bottom: -10px; left: 0; width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, 0.7); }

/* lyrics */
.np-card { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s2); }
.np-card img { width: 64px; height: 64px; border-radius: 10px; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.8); }
.np-card b { display: block; font-family: var(--font-display); font-size: 17px; }
.np-card span { color: var(--text-2); font-size: 14px; }
.lyr { height: clamp(300px, 52svh, 480px); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.lyr-lines { list-style: none; margin: 0; padding: 0; }
.lyr-lines li { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 0.9rem + 1.8vw, 2.5rem); line-height: 1.18; padding-block: 0.3em; color: #fff; opacity: 0.28; transform-origin: 0 50%; }
.lyr-lines li.on { opacity: 1; }

/* get */
.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.tree li { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s4); border-radius: var(--r-ctl); background: var(--glass); border: 1px solid var(--hairline); font-weight: 600; font-size: 15px; }
.tree li .i { color: var(--accent); }
.tree li small { margin-left: auto; color: var(--text-3); font-size: 13px; font-weight: 400; }
.fine { display: flex; gap: var(--s3); align-items: flex-start; color: var(--text-2); font-size: 14px; }
.fine .i { color: var(--ok); margin-top: 3px; }
.get-shot { position: relative; margin: 0; }
.get-shot > img:first-child { width: 100%; max-height: 62svh; object-fit: cover; object-position: 0 0; }
.flyer { position: absolute; left: 18.6%; top: 22.8%; width: 12.2%; aspect-ratio: 1; border-radius: 6px; opacity: 0; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }

/* everything else */
.bento { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(130px, 22svh, 230px)); gap: var(--s3); }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--hairline); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s10) var(--s4) var(--s4); background: linear-gradient(transparent, rgba(11, 13, 18, 0.94) 60%); font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.t-stats { grid-column: span 2; grid-row: span 2; }
.t-stats > img { object-position: 60% 18%; }
.t-search > img { object-position: 52% 4%; }
.t-artist > img { object-position: 64% 0; }
.t-discord > img { object-position: 0 0; }
.t-theme > img { object-position: 30% 20%; }
.t-theme .wipe-top { clip-path: inset(0 0 0 var(--wipe)); }
.wipe-line { position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 2px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.chips li { display: inline-flex; align-items: center; gap: var(--s2); height: 38px; padding: 0 var(--s4); border-radius: 999px; background: var(--glass); border: 1px solid var(--hairline); color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chips .i { color: var(--accent); }

/* close */
.s-close { overflow: hidden; }
.emblem { width: clamp(96px, 14svh, 150px); height: auto; margin-bottom: calc(-1 * var(--s2)); filter: drop-shadow(0 18px 40px rgba(91, 99, 230, 0.35)); }
.close { display: grid; justify-items: center; align-content: center; gap: var(--s6); text-align: center; position: relative; }
.close h2 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.2rem); max-width: 13em; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); color: var(--text-2); font-size: 14px; }
.facts li + li::before { content: "·"; margin-right: var(--s5); color: var(--text-3); }
.note { display: flex; gap: var(--s3); align-items: flex-start; max-width: 560px; padding: var(--s3) var(--s4); border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--hairline); color: var(--text-2); font-size: 13.5px; text-align: left; }
.note .i { color: var(--warn); margin-top: 2px; }
.note b { color: var(--text); }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); }
.foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); text-decoration: none; font-size: 14px; white-space: nowrap; }
.foot a:hover { color: var(--text); }

/* now playing = scene navigator */
.np { position: fixed; left: 50%; bottom: calc(var(--s4) + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: auto minmax(0, 240px) auto; align-items: center; column-gap: var(--s4); width: max-content; max-width: calc(100vw - 24px); padding: 8px 12px 12px 8px; border-radius: 14px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85); transform: translateX(-50%); }
.np-art { width: 40px; height: 40px; border-radius: 8px; }
.np-text { display: grid; min-width: 0; line-height: 1.25; }
.np-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-text > span { font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.np-ctl { display: flex; align-items: center; gap: 2px; }
.np-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.np-btn:hover { color: var(--text); background: rgba(236, 238, 244, 0.08); }
.np-play { background: var(--text); color: var(--bg); }
.np-play:hover { background: #fff; color: var(--bg); }
.np-play > span { display: grid; }
.np-play .ic-pause, .np.playing .ic-play { display: none; }
.np.playing .ic-pause { display: grid; }
.np-btn:disabled { opacity: 0.35; cursor: default; }
.np-track { position: absolute; left: 60px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(236, 238, 244, 0.12); overflow: hidden; }
.np-fill { position: absolute; inset: 0; background: var(--text); transform-origin: 0 50%; transform: scaleX(0.14); }

/* narrower screens */
@media (max-width: 960px) {
  :root { --top: 80px; --bottom: 92px; }
  .split, .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
  .split.flip .copy { order: 0; }
  .hero-shot { margin-right: calc(-1 * var(--gutter)); }
  .hero-shot img { transform: none; max-height: 46svh; border-top-right-radius: 0; border-bottom-right-radius: 0; }
  .get-shot > img:first-child { max-height: 40svh; }
  .lyr { height: clamp(220px, 34svh, 340px); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(120px, 16svh, 170px); }
  .t-stats { grid-column: span 2; grid-row: span 1; }
  .t-discord { display: none; }
}
@media (max-width: 560px) {
  .np { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s3); width: calc(100vw - 24px); }
  .row i { display: none; }
  .tree li small { display: none; }
  .chips li { height: 34px; font-size: 13px; }
}

@media (max-width: 760px) {
  .asw-menu-btn { bottom: calc(90px + env(safe-area-inset-bottom)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .seg, .np-btn, .nav-links a, .foot a { transition: opacity 120ms linear; }
}
