/* Raju Mistri — worksite radio.
   Palette: cement grey, rust orange, warm lamp yellow.
   No web fonts: system stacks render Devanagari well on Android/Windows and
   cost zero round-trips, which is the whole point of this build. */

/* ---- type ----
   Inter for everything, Rozha One for Devanagari display. The unicode-range on
   Rozha means it is only ever fetched and applied for Devanagari codepoints —
   Latin inside the same heading falls through to Inter automatically, so the
   two can share a font stack without fighting. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/inter-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/inter-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/rozha-one-devanagari-400.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  --bg: #14120f;
  --bg-2: #1c1917;
  --bg-3: #262220;
  --line: #3a332e;
  --text: #f0e9e2;
  --muted: #a49a90;
  --rust: #e8791f;
  --rust-dim: #b45c17;
  --lamp: #f5c451;
  --radius: 10px;
  --wrap: 46rem;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans",
    "Noto Sans Devanagari", "Nirmala UI", Roboto, Arial, sans-serif;
  /* Rozha covers the Devanagari; Inter picks up any Latin in the same string. */
  --display: "Rozha One", "Inter", Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  /* faint grit, like cement dust on a screen */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(232, 121, 31, 0.07), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(245, 196, 81, 0.05), transparent 40%);
}

a { color: var(--lamp); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rust); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; font-weight: 700; }
h1 {
  font-family: var(--display); font-weight: 400;
  /* Sized for the full phrase "राजू मिस्त्री की प्लेलिस्ट", not the short name —
     at the old 4rem cap it wrapped badly on a laptop. */
  font-size: clamp(1.9rem, 5.6vw, 3.3rem);
  line-height: 1.12; letter-spacing: .005em;
}
.brand-hi, .rot-hi, .h2-hi, .hero .kicker, .live-rot {
  font-family: var(--display); font-weight: 400;
}
.brand-hi { font-size: 1.45rem; }
.rot-hi { font-size: 1.35rem; }
.hero .kicker { font-size: 1.15rem; letter-spacing: 0; }
h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); margin-top: 0; }

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto;
  clip: auto; padding: 0.5rem 0.9rem; background: var(--rust); color: #000;
  border-radius: var(--radius); z-index: 100;
}

/* ---- header / footer ---- */

.site-head {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  align-items: baseline; justify-content: space-between;
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; }
.brand-hi { font-size: 1.25rem; font-weight: 700; color: var(--rust); }
.brand-en { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem 4rem; }

.site-foot {
  max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem;
}
.foot-legal { color: #7d746b; font-size: 0.82rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-by { margin: 1.1rem 0 0; font-size: 0.82rem; }
.foot-by a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid rgba(240, 233, 226, .18); padding-bottom: 1px;
}
.foot-by a:hover { color: var(--rust); border-bottom-color: var(--rust); }

/* ---- hero ---- */

.hero { padding: 2.5rem 0 1.5rem; }
.hero-sub { padding: 2rem 0 1rem; }
.kicker {
  margin: 0 0 0.4rem; color: var(--rust); font-size: 0.95rem; letter-spacing: 0.02em;
}
.kicker a { color: var(--rust); text-decoration: none; }
.h1-en {
  display: block; font-family: var(--sans);
  font-size: 0.3em; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(240,233,226,.62); font-weight: 600; margin-top: 0.7rem;
}
.shayari {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--lamp); margin: .35rem 0 .9rem; max-width: 30rem;
  transition: opacity .32s ease;
}
.lede { font-size: 1.05rem; color: #d6cdc4; max-width: 38rem; }
/* Hinglish sets a touch larger and looser — it is read aloud in the head, and
   the Latin transliteration of Hindi needs more room than English prose. */
.lede-hi { font-size: 1.08rem; line-height: 1.72; color: #ded5cb; max-width: 36rem; }
.meta-line { color: var(--muted); font-size: 0.92rem; }

/* ---- player ---- */

/* Two rows: controls on top, a full-width scrubber underneath. Cramming the
   seek bar under the title left it squeezed into a third of the pill and made
   the whole thing read as a jumble. */
.player {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-direction: column; gap: .55rem;
  padding: .7rem .85rem .6rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.pl-top { display: flex; align-items: center; gap: .7rem; }
.pl-bottom { display: flex; align-items: center; gap: .6rem; }

/* The YouTube iframe IS the artwork tile: a 16:9 frame cropped to a square by
   over-sizing it and centring, so the player reads as a music pill rather than
   a video embed — while the video itself stays on screen and playable. */
.pl-art {
  position: relative; flex: none; width: 3.1rem; height: 3.1rem;
  border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #0c0a09; padding: 0;
  transition: width .3s ease, height .3s ease, border-radius .3s ease;
}
.pl-art-frame { position: absolute; inset: 0; display: block; }
.pl-art iframe {
  position: absolute; top: 50%; left: 50%;
  width: 178%; height: 100%;            /* 16:9 cropped to fill a square */
  transform: translate(-50%, -50%); border: 0; display: block;
  pointer-events: none;                 /* the tile handles the click */
}
/* Before playback the tile is a brick face rather than an empty black square. */
.pl-art-idle {
  position: absolute; inset: 0;
  background-color: #2a201a;
  background-image:
    linear-gradient(90deg, transparent 0 47%, #1b1512 47% 50%, transparent 50%),
    linear-gradient(0deg, transparent 0 88%, #1b1512 88% 100%);
  background-size: 22px 11px, 22px 11px;
}
.player.is-open .pl-art-idle { display: none; }

/* A live video frame at 50px reads as a glitch; this settles it into artwork. */
.pl-art iframe { filter: saturate(.92) contrast(1.06) brightness(.95); }
.pl-art::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 -8px 14px rgba(0,0,0,.35);
  pointer-events: none;
}
.player.is-loading .pl-art { animation: artPulse 1.1s ease-in-out infinite; }
@keyframes artPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* Expanded: the tile breaks out of the control row into a real 16:9 video. */
.player.is-video .pl-top { flex-wrap: wrap; }
.player.is-video .pl-art {
  flex: 1 1 100%; width: 100%; height: auto; aspect-ratio: 16/9;
  border-radius: 14px; order: -1; margin-bottom: .3rem;
}
.player.is-video .pl-art iframe { width: 100%; height: 100%; filter: none; }
.player.is-video .pl-art::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.player.is-video .pl-eq, .player.is-video .pl-art-idle { display: none; }

/* Equalizer over the tile while something is playing. */
.pl-eq {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  display: none; align-items: flex-end; justify-content: center; gap: 2px;
  padding-bottom: 4px; background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.player.is-playing .pl-eq { display: flex; }
.pl-eq i { width: 3px; background: var(--lamp); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.pl-eq i:nth-child(1) { height: 40%; animation-delay: -.1s; }
.pl-eq i:nth-child(2) { height: 75%; animation-delay: -.45s; }
.pl-eq i:nth-child(3) { height: 55%; animation-delay: -.25s; }
.pl-eq i:nth-child(4) { height: 85%; animation-delay: -.6s; }
@keyframes eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.pl-btn {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
  font-size: .95rem; cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s, color .2s, transform .15s;
}
.pl-btn:hover { border-color: var(--rust); color: var(--rust); transform: scale(1.06); }
.pl-main { background: var(--rust); border-color: var(--rust); color: #14120f; width: 2.45rem; height: 2.45rem; font-size: 1rem; }
.pl-main:hover { background: var(--lamp); border-color: var(--lamp); color: #14120f; }
.pl-btn[aria-pressed="true"] { border-color: var(--lamp); color: var(--lamp); }

.pl-now { flex: 1 1 6rem; min-width: 0; }
.pl-label { display: block; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { display: block; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }

/* Seek bar. The handle is a brick — small, but it makes the control
   unmistakably this site's rather than a default range input. It only appears
   on hover or focus so the resting state stays clean. */
.pl-seek { position: relative; flex: 1; height: 16px; cursor: pointer; display: flex; align-items: center; }
.pl-rail { position: relative; flex: 1; height: 4px; border-radius: 3px; background: rgba(240,233,226,.14); overflow: hidden; }
.pl-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--rust-dim), var(--rust) 60%, var(--lamp)); }
.pl-brick {
  position: absolute; top: 50%; left: 0; width: 13px; height: 9px; margin-left: -6px;
  transform: translateY(-50%) scale(.001); transform-origin: center;
  border-radius: 2px;
  background: linear-gradient(#d57431, #a04d17); border: 1px solid #7d3a12;
  box-shadow: 0 0 8px rgba(232,121,31,.65); pointer-events: none;
  transition: transform .18s ease;
}
.pl-seek:hover .pl-brick, .pl-seek:focus-visible .pl-brick { transform: translateY(-50%) scale(1); }
.pl-seek:hover .pl-rail { height: 6px; }
.pl-rail { transition: height .18s ease; }
.pl-seek:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; border-radius: 4px; }
.pl-time {
  flex: none; font-size: .7rem; color: var(--muted);
  font-variant-numeric: tabular-nums; min-width: 2.6rem;
}
#pl-dur { text-align: right; }

.pl-ctrls, .pl-side { display: flex; align-items: center; gap: .3rem; flex: none; }
.pl-side { padding-left: .35rem; margin-left: .1rem; border-left: 1px solid var(--line); }

/* Volume: the slider stays collapsed until the group is hovered or focused, so
   it costs no width at rest but is one gesture away. */
.pl-vol { display: flex; align-items: center; gap: .3rem; }
.pl-vol-range {
  width: 0; opacity: 0; padding: 0; margin: 0;
  transition: width .22s ease, opacity .22s ease;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.pl-vol:hover .pl-vol-range,
.pl-vol:focus-within .pl-vol-range { width: 4.5rem; opacity: 1; }
.pl-vol-range::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: rgba(240,233,226,.18); }
.pl-vol-range::-moz-range-track { height: 4px; border-radius: 3px; background: rgba(240,233,226,.18); }
.pl-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--rust);
  border: 1px solid #7d3a12;
}
.pl-vol-range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--rust); border: 1px solid #7d3a12;
}
.pl-vol-range:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; border-radius: 4px; }

/* Keyboard hints — the shortcuts already existed but nothing advertised them. */
.pl-keys {
  display: flex; flex-wrap: wrap; gap: .3rem .9rem;
  padding-top: .5rem; margin-top: .1rem; border-top: 1px solid var(--line);
  font-size: .66rem; letter-spacing: .04em; color: rgba(240,233,226,.38);
  text-transform: uppercase;
}
.pl-keys span { display: inline-flex; align-items: center; gap: .25rem; }
.pl-keys kbd {
  font: inherit; font-size: .62rem; line-height: 1;
  padding: .18rem .32rem; border-radius: 4px;
  border: 1px solid rgba(240,233,226,.18); background: rgba(240,233,226,.05);
  color: rgba(240,233,226,.62);
}
@media (max-width: 620px) { .pl-keys { display: none; } }
.player-idle .pl-keys { display: none; }
.player-idle .pl-main { background: var(--bg-3); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.player-idle .pl-seek, .player-idle .pl-time { visibility: hidden; }

@media (max-width: 620px) {
  .player { flex-wrap: wrap; gap: .5rem; }
  .pl-now { flex: 1 1 100%; order: 3; }
  .pl-time { order: 4; }
  .pl-side { margin-left: auto; }
}

/* ---- track list ---- */

.tracks { margin: 1.5rem 0 2.5rem; }
.track-list { list-style: none; margin: 0; padding: 0; }
.track {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line);
}
.track:hover { background: var(--bg-2); }
.track.is-playing { background: var(--bg-3); }
.track.is-playing .track-title { color: var(--rust); }

.track-play {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; display: grid; place-items: center; position: relative;
}
.track-play:hover { border-color: var(--rust); color: var(--rust); }
.track-num { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.track-icon { display: none; font-size: 0.75rem; }
.track-play:hover .track-num { display: none; }
.track-play:hover .track-icon { display: block; }

.track-meta { flex: 1; min-width: 0; }
.track-title { display: block; color: var(--text); text-decoration: none; font-weight: 600; }
.track-title:hover { color: var(--lamp); }
.track-sub {
  display: block; font-size: 0.82rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-mood {
  flex: none; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 99px;
  padding: 0.15rem 0.55rem;
}
.track.is-hidden { display: none; }
.empty { color: var(--muted); font-style: italic; }

/* ---- rotations ---- */

.rotations { margin: 2.5rem 0; }
.section-sub { color: var(--muted); margin-top: -0.25rem; }
.rot-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 34rem) { .rot-grid { grid-template-columns: 1fr 1fr; } }

.rot-card {
  display: block; padding: 1rem; text-decoration: none; color: inherit;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.rot-card:hover { border-color: var(--rust); background: var(--bg-3); }
.rot-hi { display: block; font-size: 1.1rem; font-weight: 700; color: var(--rust); }
.rot-en {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem;
}
.rot-blurb { display: block; font-size: 0.9rem; color: #cdc4bb; }
.rot-count { display: block; margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted); }

/* ---- prose / faq ---- */

.prose { margin: 3rem 0; max-width: 38rem; }
.prose p { color: #d6cdc4; }
.faq { margin: 3rem 0; }
.faq dt { font-weight: 700; margin-top: 1.1rem; }
.faq dd { margin: 0.3rem 0 0; color: #d6cdc4; }

/* ---- filter ---- */

.filter-bar { margin: 1.5rem 0 0.5rem; }
#song-filter {
  width: 100%; padding: 0.7rem 0.9rem; font: inherit; font-size: 0.95rem;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
}
#song-filter:focus { outline: 2px solid var(--rust); outline-offset: 1px; }

/* ---- scene: brick wall + hanging bulb, no images ---- */

.hero-scene { position: relative; isolation: isolate; }
.scene { position: absolute; inset: -1.5rem -1.25rem auto; height: 100%; z-index: -1; overflow: hidden; }

.scene-wall {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(90deg, transparent 0 48%, #0f0d0b 48% 50%, transparent 50%),
    linear-gradient(0deg, transparent 0 92%, #0f0d0b 92% 100%);
  background-size: 96px 30px, 96px 30px;
  background-position: 0 0, 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.scene-wire {
  position: absolute; top: -1.5rem; left: 22%; width: 2px; height: 4.5rem;
  background: linear-gradient(#4a423b, #2a2522);
}
.scene-bulb {
  position: absolute; top: 3rem; left: calc(22% - 9px); width: 20px; height: 26px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 35%, #fff2cf, #f5c451 55%, #b8862a);
  box-shadow: 0 0 28px 14px rgba(245, 196, 81, 0.16), 0 0 90px 50px rgba(245, 196, 81, 0.07);
  animation: flicker 7s infinite;
}
@keyframes flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.72; }
  98.5% { opacity: 0.94; }
}

.scene-dust { position: absolute; inset: 0; }
.scene-dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(245, 196, 81, 0.5);
  left: calc(6% + var(--i) * 6.6%);
  animation: drift calc(16s + var(--i) * 1.7s) linear infinite;
  animation-delay: calc(var(--i) * -2.1s);
  opacity: 0;
}
@keyframes drift {
  0% { transform: translateY(105%) translateX(0); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-15%) translateX(28px); opacity: 0; }
}

/* ---- live strip ---- */

.live {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding: 0.6rem 0.9rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px;
  width: fit-content; max-width: 100%; font-size: 0.92rem;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #4ade80; flex: none;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.live-label { color: var(--muted); }
.live-rot { color: var(--lamp); font-weight: 700; text-decoration: none; }
.live-rot:hover { text-decoration: underline; }
.live-clock {
  color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums;
  padding-left: 0.6rem; border-left: 1px solid var(--line);
}

/* ---- rotation clock ---- */

.h2-hi { font-size: 0.62em; color: var(--muted); font-weight: 600; }
.rot-card { position: relative; }
.rot-clock {
  display: inline-block; margin-bottom: 0.45rem; padding: 0.1rem 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px;
}
.rot-card.is-live { border-color: var(--rust); background: var(--bg-3); }
.rot-card.is-live .rot-clock { color: var(--lamp); border-color: var(--rust-dim); }
.rot-card.is-live::after {
  content: "LIVE"; position: absolute; top: 0.85rem; right: 0.9rem;
  font-size: 0.62rem; letter-spacing: 0.14em; font-weight: 700;
  color: #14120f; background: #4ade80; padding: 0.12rem 0.4rem; border-radius: 3px;
}

/* ---- hazri card ---- */

.hazri { margin: 3.5rem 0; }
.hz-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.hz-form input, .hz-form select {
  flex: 1 1 11rem; min-width: 0; padding: 0.7rem 0.9rem; font: inherit; font-size: 0.95rem;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.hz-form input:focus, .hz-form select:focus { outline: 2px solid var(--rust); outline-offset: 1px; }

.btn-primary, .btn-ghost {
  flex: none; padding: 0.7rem 1.3rem; font: inherit; font-weight: 700; font-size: 0.95rem;
  border-radius: var(--radius); cursor: pointer;
}
.btn-primary { background: var(--rust); border: 1px solid var(--rust); color: #14120f; }
.btn-primary:hover { background: var(--lamp); border-color: var(--lamp); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

.hz-out { margin-top: 1.5rem; }
#hz-canvas {
  display: block; width: 100%; max-width: 20rem; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.hz-actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }

/* ---- photographic hero backdrop (only when site.heroImage.src is set) ---- */

/* `overflow-x: clip` contains the full-bleed children WITHOUT creating a scroll
   container — `hidden` would silently break the sticky player. */
body { overflow-x: clip; }

/* The image is the screen, not a band at the top: fixed to the viewport, with
   the page scrolling over it. `dvh` so mobile browser chrome cannot leave a gap. */
.site-bg { position: fixed; inset: 0; height: 100dvh; z-index: -3; overflow: hidden; }
.site-bg img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: var(--pos, center);
  /* Scale is kept as low as it can go while still leaving headroom for the
     parallax to move into. `cover` already upscales this artwork ~1.13x to fill
     the viewport height, so every extra percent here is visible softness —
     the old 1.07→1.13 animation was pushing the total past 1.27x. Drift is now
     translate-only inside a fixed 1.04. */
  transform: scale(1.04);
  animation: bgDrift 46s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bgDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.04) translate3d(-1.1%, -0.7%, 0); }
}

/* The sun sits low-left in the artwork; this breathes warmth over it so the
   sky feels lit rather than printed. */
.site-glow {
  position: fixed; inset: 0; height: 100dvh; z-index: -2; pointer-events: none;
  background: radial-gradient(circle 42vmin at 20% 74%,
    rgba(255, 186, 84, .22), rgba(255, 150, 60, .07) 45%, transparent 70%);
  animation: glowBreathe 11s ease-in-out infinite alternate;
}
@keyframes glowBreathe { from { opacity: .55; } to { opacity: 1; } }

/* Vignette + scrim. This artwork is BRIGHT on the left, so the weight is at the
   bottom — a poster-style band under the text — rather than a dark left edge,
   which would turn the sunset to mud. */
.site-veil {
  position: fixed; inset: 0; height: 100dvh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 105% 85% at 50% 38%, transparent 32%, rgba(0,0,0,.38) 100%),
    linear-gradient(90deg, rgba(20,18,15,calc(var(--scrim) * .5)), transparent 58%),
    linear-gradient(180deg,
      rgba(20,18,15,calc(var(--scrim) * .55)) 0%,
      rgba(20,18,15,.04) 26%,
      rgba(20,18,15,calc(var(--scrim) * .8)) 60%,
      rgba(20,18,15,calc(var(--scrim) * 1.4)) 84%,
      var(--bg) 100%);
}

/* Separate top and bottom scrims rather than one vertical gradient. Two bands
   let the middle of the artwork stay completely clean while both edges still
   hold text — a single gradient always dims the centre as a side effect. */
.site-scrim-top {
  position: fixed; inset: 0 0 auto; height: 10rem; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,18,15,.75), rgba(20,18,15,.25) 55%, transparent);
}
.site-scrim-bottom {
  position: fixed; inset: auto 0 0; height: 16rem; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(20,18,15,.85), transparent);
}

/* Film grain over everything. Generated from SVG turbulence — no image request,
   and it hides the banding that big smooth gradients get on 8-bit displays. */
.site-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Dust in the light. Drifts up and sideways, like the beams in the artwork. */
.site-dust { position: fixed; inset: 0; height: 100dvh; z-index: -1; pointer-events: none; }
.site-dust i {
  position: absolute; bottom: -6px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 220, 160, .55);
  left: calc(3% + var(--i) * 5.4%);
  animation: dustRise calc(19s + var(--i) * 1.6s) linear infinite;
  animation-delay: calc(var(--i) * -2.4s);
  opacity: 0;
}
@keyframes dustRise {
  0%   { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  12%  { opacity: .75; }
  80%  { opacity: .45; }
  100% { transform: translate3d(34px, -78vh, 0) scale(1.25); opacity: 0; }
}

/* Let the fixed image through — body would otherwise paint over it. */
body.has-backdrop {
  background-color: transparent; background-image: none;
  /* One gutter for header, hero and sheet so they share a left edge. Centres a
     68rem content band on wide screens instead of the 46rem reading column,
     which left the headline stranded in the middle of the artwork. */
  --gutter: max(2.25rem, calc(50vw - 33rem));
}

/* The header is a centred 46rem column, so its gradient only painted that strip
   and read as a floating dark rectangle. Full width, same gutter as the hero. */
body.has-backdrop .site-head {
  max-width: none; margin: 0;
  padding-inline: var(--gutter);
  background: linear-gradient(180deg, rgba(8,7,6,.82), rgba(8,7,6,.3) 62%, transparent);
  border-bottom: 0;
  position: relative; z-index: 5;
}

/* First screen is the artwork, full viewport height, with the player pill
   floating near the bottom of it — the pattern both competitors use. */
.hero.on-backdrop {
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--gutter);
  min-height: calc(100dvh - 14rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 1rem;
}
.hero.on-backdrop .lede { max-width: 34rem; }

/* Glass pill over the artwork, not a panel on the content sheet. */
body.has-backdrop .player {
  /* Docks with a gap rather than flush to the edge, so it reads as a floating
     pill throughout rather than snapping into a toolbar. */
  top: .75rem;
  margin: 1.5rem auto 6rem;
  width: min(44rem, calc(100vw - 2.5rem));
  border-radius: 26px;
  background: rgba(16, 14, 13, .58);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .09);
}
body.has-backdrop .player.is-open { border-radius: 20px; }
.hero.on-backdrop h1, .hero.on-backdrop .lede, .hero.on-backdrop .kicker {
  text-shadow: 0 2px 20px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.9);
}
.hero.on-backdrop .live { background: rgba(15,13,11,.72); backdrop-filter: blur(10px); }

/* Staggered entrance — the page assembles itself rather than appearing at once. */
.hero.on-backdrop .kicker,
.hero.on-backdrop h1,
.hero.on-backdrop .lede,
.hero.on-backdrop .live {
  animation: riseIn .9s cubic-bezier(.2, .75, .25, 1) backwards;
}
.hero.on-backdrop .kicker { animation-delay: .12s; }
.hero.on-backdrop h1     { animation-delay: .24s; }
.hero.on-backdrop .lede  { animation-delay: .40s; }
.hero.on-backdrop .live  { animation-delay: .56s; }
body.has-backdrop .player { animation: riseIn .9s cubic-bezier(.2,.75,.25,1) .68s backwards; }

@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Rotation cards and the hazri block lift in as they enter the viewport. */
.reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1); }
.reveal.is-in { opacity: 1; transform: none; }
.rot-card { transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.rot-card:hover { transform: translateY(-3px); }

/* Everything below the first screen scrolls over the photo on an opaque sheet,
   so the long-form content stays readable. */
/* Not fully opaque: 92% ink over a light blur, so the artwork stays faintly
   present behind the content instead of being cut off by a hard edge. The top
   border is what makes it read as a panel laid over the image. */
.sheet {
  position: relative;
  background: rgba(20, 18, 15, .93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(240, 233, 226, .10);
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
}

/* Wider measure on the immersive page — the 46rem reading column looks pinched
   under a full-bleed hero. Prose keeps its own narrower max-width. */
body.has-backdrop main { max-width: 54rem; }

/* Cards: hairline border on a barely-there fill, warming on hover. */
body.has-backdrop .rot-card {
  border-radius: 12px;
  border-color: rgba(240, 233, 226, .12);
  background: rgba(240, 233, 226, .03);
  padding: 1.25rem;
}
body.has-backdrop .rot-card:hover {
  border-color: rgba(232, 121, 31, .5);
  background: rgba(240, 233, 226, .06);
}

/* Badges float above the artwork, so they need their own glass. */
body.has-backdrop .rot-clock,
body.has-backdrop .track-mood {
  background: rgba(20, 18, 15, .55);
  border-color: rgba(240, 233, 226, .15);
  backdrop-filter: blur(6px);
  letter-spacing: .1em;
}

/* Outline pill, matching the "listen on" affordances the competitors use. */
.btn-ghost { border-radius: 999px; border-color: rgba(240, 233, 226, .25); padding-inline: 1.4rem; }
.btn-ghost:hover { border-color: var(--rust); }
.sheet::before {
  content: ""; position: absolute; left: 0; right: 0; top: -4rem; height: 4rem;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
/* main's own bottom padding sits outside .sheet, which left a strip of the fixed
   photo showing between the last section and the footer. Move the space inside. */
body.has-backdrop main { padding-bottom: 0; }
body.has-backdrop .sheet { padding-bottom: 4rem; }

/* The footer is a centred 46rem column, so a plain background only painted that
   column and the photo showed down both sides. box-shadow spreads the same colour
   to the viewport edges; clip-path lets it bleed sideways without bleeding down. */
body.has-backdrop .site-foot {
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
}

/* The sticky player needs its own ground once it detaches over the photo. */
body.has-backdrop .player { background: rgba(22,19,17,.92); backdrop-filter: blur(16px); }

/* ---- variant preview chrome (never ships on the real home page) ---- */

.vbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem;
  margin: 0 -1.25rem 1rem; padding: 0.6rem 1.25rem;
  background: #000; border-bottom: 1px solid var(--line); font-size: 0.82rem;
}
.vbar-tag { font-weight: 700; color: var(--rust); }
.vbar-note { color: var(--muted); flex: 1 1 14rem; min-width: 0; }
.vbar-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.vbar-nav a {
  min-width: 1.9rem; text-align: center; padding: 0.15rem 0.4rem; border-radius: 4px;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.vbar-nav a:hover { border-color: var(--rust); color: var(--rust); }
.vbar-nav a.on { background: var(--rust); border-color: var(--rust); color: #000; font-weight: 700; }
.vbar-all { letter-spacing: 0.06em; }

.vlist { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.6rem; }
.vlist a {
  display: flex; gap: 0.9rem; align-items: baseline; padding: 0.9rem 1rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
}
.vlist a:hover { border-color: var(--rust); background: var(--bg-3); }
.vlist-id { color: var(--rust); font-weight: 700; font-variant-numeric: tabular-nums; }
.vlist-body strong { display: block; }
.vlist-body span { color: var(--muted); font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .scene-dust, .site-dust { display: none; }
  /* The animation carried the entrance state, so restore it explicitly. */
  .hero.on-backdrop .kicker, .hero.on-backdrop h1,
  .hero.on-backdrop .lede, .hero.on-backdrop .live,
  body.has-backdrop .player, .reveal { opacity: 1; transform: none; }
  .site-bg img { transform: scale(1.07); }
}

/* The spelling-variants line: present for the people who type it the other way,
   quiet enough not to read as keyword stuffing. */
.spelling { font-size: .92rem; color: var(--muted); }
.spelling strong { color: #cdc4bb; font-weight: 600; }
