/* =========================================================
   מכונת הזמן הציונית — 2026
   Concept: an old tube radio. Every year is a station.
   ========================================================= */

:root {
  /* palette */
  --walnut: #120e0b;      /* page background, the dark room */
  --bakelite: #1d1712;    /* raised surfaces */
  --parchment: #efe5d0;   /* primary text */
  --dust: #b3a58e;        /* secondary text */
  --accent: #86adf5;      /* tekhelet — the dial lamp, the only accent */
  --accent-deep: #2f5bd3;
  --accent-ink: #0a1022;  /* text on accent buttons */
  --needle: #f2ebdd;      /* white needle, like the flag's field */
  --line: rgba(239, 229, 208, 0.14);
  --glass: rgba(18, 14, 11, 0.72);

  /* type */
  --f-display: "Frank Ruhl Libre", "David", serif;
  --f-body: "Assistant", "Arial Hebrew", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* spacing (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  --gutter: clamp(16px, 4vw, 56px);
  --tuner-h: 112px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--walnut);
  color: var(--parchment);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 var(--s4);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5);
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--amber { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn--amber:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn--ghost { background: rgba(18,14,11,.4); border-color: var(--line); color: var(--parchment); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--walnut); box-shadow: 0 0 0 3px rgba(18,14,11,.25); }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 36px; padding: 0 var(--s4);
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(18,14,11,.45); backdrop-filter: blur(8px);
  font-size: 14px; cursor: pointer; color: var(--parchment);
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.chip--icon { width: 36px; padding: 0; }
#btn-sound[aria-pressed="false"] .wave { opacity: .2; }

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 40;
  display: grid; align-items: center;
  padding: var(--gutter);
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
body:not(.is-intro) .intro { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.intro__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(18,14,11,.94) 0%, rgba(18,14,11,.78) 38%, rgba(18,14,11,.15) 72%),
    linear-gradient(to top, rgba(18,14,11,.8), transparent 40%);
}
.intro__copy { position: relative; max-width: 560px; }
.intro__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(56px, 9vw, 128px); line-height: .9; letter-spacing: -0.01em;
  margin: 0 0 var(--s6);
}
.intro__title span { font-weight: 300; color: var(--accent); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent); }
.intro__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--parchment); opacity: .9; margin: 0 0 var(--s8); max-width: 46ch; }
.intro__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.intro__foot { margin-top: var(--s10); font-size: 14px; color: var(--dust); }

/* =========================================================
   STATION
   ========================================================= */
.station { position: fixed; inset: 0; }
.station__media { position: absolute; inset: 0; overflow: hidden; background: var(--walnut); }
.frame {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s var(--ease);
  will-change: transform, opacity;
}
.frame.is-on { opacity: 1; animation: drift 24s linear forwards; }
.frame.is-portrait { background-size: contain; background-repeat: no-repeat; background-position: 25% center; }
@keyframes drift {
  from { transform: scale(1.1) translate3d(1.5%, 0, 0); }
  to   { transform: scale(1.0) translate3d(-1%, -1%, 0); }
}
.noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; mix-blend-mode: screen; pointer-events: none; transition: opacity .35s; }
.station__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(18,14,11,.95) 0%, rgba(18,14,11,.82) 30%, rgba(18,14,11,.25) 62%, rgba(18,14,11,.05) 100%),
    linear-gradient(to top, rgba(18,14,11,.96) 0%, rgba(18,14,11,0) calc(var(--tuner-h) + 120px)),
    linear-gradient(to bottom, rgba(18,14,11,.7), transparent 120px);
}

/* top bar */
.topbar {
  position: absolute; inset-inline: 0; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--parchment); text-decoration: none; }
.brand__lamp { width: 30px; height: 30px; background: var(--accent); -webkit-mask: url(../media/brand/emblem-mask.png?v=2) center / contain no-repeat; mask: url(../media/brand/emblem-mask.png?v=2) center / contain no-repeat; box-shadow: 0 0 12px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 50%, transparent); }
@keyframes lamp { 50% { opacity: .65; } }
.topbar__tools { display: flex; gap: var(--s2); }

/* the story column */
.story {
  position: absolute; z-index: 4;
  top: 50%; inset-inline-start: var(--gutter);
  transform: translateY(calc(-50% - var(--tuner-h) / 2 + 20px));
  width: min(560px, calc(100vw - 2 * var(--gutter)));
}
.story > * { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.station.is-tuning .story > * { opacity: 0; transform: translateY(10px); }
.story > :nth-child(2) { transition-delay: .04s; } .story > :nth-child(3) { transition-delay: .1s; }
.story > :nth-child(4) { transition-delay: .16s; } .story > :nth-child(5) { transition-delay: .22s; }
.story > :nth-child(6) { transition-delay: .28s; } .story > :nth-child(7) { transition-delay: .34s; }

.story__eyebrow { font-family: var(--f-body); font-weight: 600; font-size: 15px; color: var(--accent); margin: 0; }
.story__eyebrow .sep { margin: 0 var(--s2); opacity: .5; }
.story__year {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(96px, 13vw, 200px); line-height: .85; letter-spacing: -0.03em;
  margin: var(--s2) 0 var(--s4);
  font-variant-numeric: lining-nums;
  color: var(--parchment);
  text-shadow: 0 0 60px color-mix(in srgb, var(--accent) 18%, transparent);
}
.story__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; margin: 0 0 var(--s3); }
.story__headline { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; margin: 0 0 var(--s5); color: var(--parchment); opacity: .92; }

.events { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s2); border-inline-start: 1px solid var(--line); padding-inline-start: var(--s4); }
.events li { display: grid; grid-template-columns: 92px 1fr; gap: var(--s3); font-size: 15px; line-height: 1.5; color: var(--dust); }
.events time { font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--accent); padding-top: 1px; white-space: nowrap; }
.events li span { color: var(--parchment); opacity: .86; }

.quote { margin: 0 0 var(--s5); padding: 0; }
.quote p { font-family: var(--f-display); font-size: 21px; font-weight: 500; line-height: 1.35; margin: 0 0 var(--s1); }
.quote p::before { content: "״"; color: var(--accent); }
.quote p::after { content: "״"; color: var(--accent); }
.quote cite { font-style: normal; font-size: 13px; color: var(--dust); }

.story__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* on air — song of the year */
.onair {
  position: absolute; z-index: 4;
  inset-inline-end: var(--gutter); bottom: calc(var(--tuner-h) + var(--s6));
  width: min(340px, 40vw);
  transition: opacity .6s var(--ease);
}
.station.is-tuning .onair { opacity: 0; }
.onair__btn {
  width: 100%; display: grid; grid-template-columns: 1fr 40px; grid-template-areas: "label play" "song play";
  align-items: center; gap: 2px var(--s3); text-align: start;
  padding: var(--s3) var(--s4); border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  cursor: pointer; transition: border-color .2s;
}
.onair__btn:hover { border-color: var(--accent); }
.onair__label { grid-area: label; font-family: var(--f-body); font-weight: 600; font-size: 12px; color: var(--accent); display: inline-flex; align-items: center; gap: var(--s2); }
.onair__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--needle); box-shadow: 0 0 8px var(--needle); }
.onair__song { grid-area: song; display: flex; flex-direction: column; line-height: 1.3; }
.onair__song strong { font-family: var(--f-display); font-size: 19px; font-weight: 700; }
.onair__song span { font-size: 14px; color: var(--dust); }
.onair__play { grid-area: play; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.onair__why { font-size: 13px; color: var(--dust); margin: var(--s2) var(--s1) 0; line-height: 1.5; }

/* photo credit */
.credit {
  position: absolute; z-index: 3; margin: 0;
  inset-inline-end: var(--gutter); top: 76px;
  max-width: min(380px, 40vw);
  font-size: 12px; line-height: 1.5; color: var(--dust); text-align: end;
  transition: opacity .6s;
}
.station.is-tuning .credit { opacity: 0; }
.credit a { color: var(--dust); text-decoration: underline; text-decoration-color: var(--line); }
.credit a:hover { color: var(--accent); }

/* =========================================================
   TUNER — the signature
   ========================================================= */
.tuner {
  position: absolute; z-index: 6; inset-inline: 0; bottom: 0;
  height: var(--tuner-h);
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--gutter) calc(var(--s4) + env(safe-area-inset-bottom));
}
.tuner__step {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bakelite); border: 1px solid var(--line); color: var(--parchment);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 14px rgba(0,0,0,.5);
}
.tuner__step:hover { color: var(--accent); border-color: var(--accent); }

.dial { position: relative; height: 80px; cursor: grab; touch-action: pan-y; }
.dial:active { cursor: grabbing; }
.dial__glass {
  position: absolute; inset: 0; overflow: hidden; border-radius: 10px;
  direction: ltr;
  background:
    radial-gradient(120% 140% at 50% 120%, color-mix(in srgb, var(--accent) 32%, transparent), color-mix(in srgb, var(--accent-deep) 12%, transparent) 45%, rgba(18,14,11,.0) 75%),
    linear-gradient(#211a13, #15100c);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: inset 0 0 24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08), 0 0 40px color-mix(in srgb, var(--accent) 8%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.dial__glass::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.07), transparent 45%);
}
.dial__scale { position: absolute; top: 0; bottom: 0; left: 50%; will-change: transform; }
.tick {
  position: absolute; bottom: 12px; width: 1px; height: 12px;
  background: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateX(-.5px);
}
.tick.is-decade { height: 22px; background: var(--accent); }
.tick.is-five { height: 16px; }
.tick__label {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 13px; color: var(--accent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
  white-space: nowrap; pointer-events: none;
}
.tick__hit {
  position: absolute; bottom: 0; left: 50%; width: 20px; height: 72px; transform: translateX(-50%);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.tick.is-current { background: var(--parchment); }
.dial__needle {
  position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px; transform: translateX(-1px);
  background: var(--needle); box-shadow: 0 0 10px color-mix(in srgb, var(--needle) 90%, transparent), 0 0 2px var(--needle);
  border-radius: 2px; pointer-events: none;
}
.dial__needle span {
  position: absolute; top: 2px; left: 8px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--parchment);
  opacity: 0; transition: opacity .2s;
}
.dial.is-dragging .dial__needle span { opacity: 1; }

/* =========================================================
   CINEMA
   ========================================================= */
.cinema { position: fixed; inset: 0; z-index: 60; background: #000; overflow: hidden; }
.cinema__stage { position: absolute; inset: 0; }
.cin-shot {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.cin-shot.is-portrait { background-size: contain; background-repeat: no-repeat; }
.cin-shot.is-portrait::before { /* blurred fill behind portrait photos */
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background: inherit; background-size: cover; filter: blur(30px) brightness(.45);
}
.cin-shot.is-on { opacity: 1; }
.cin-shot.kb-1 { animation: kb1 var(--dur, 9s) linear forwards; }
.cin-shot.kb-2 { animation: kb2 var(--dur, 9s) linear forwards; }
.cin-shot.kb-3 { animation: kb3 var(--dur, 9s) linear forwards; }
@keyframes kb1 { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes kb2 { from { transform: scale(1.16) translate(2%, 1%); } to { transform: scale(1.03); } }
@keyframes kb3 { from { transform: scale(1.06) translate(-2%, 0); } to { transform: scale(1.12) translate(2%, -1%); } }
.cinema__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.75) 100%),
    linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 38%);
}
.cinema__year {
  position: absolute; top: var(--s8); inset-inline-start: var(--gutter);
  font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6vw, 80px); line-height: 1;
  color: var(--parchment); opacity: .9;
  text-shadow: 0 2px 24px rgba(0,0,0,.9);
  transition: opacity .8s;
}
.cinema.is-card .cinema__year, .cinema.is-card .cinema__sub, .cinema.is-card .cinema__cap { opacity: 0; }
.cinema__card {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; gap: var(--s3);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), rgba(0,0,0,.92));
  opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease);
}
.cinema.is-card .cinema__card { opacity: 1; }
.cinema__card b { font-family: var(--f-display); font-weight: 300; font-size: clamp(96px, 16vw, 220px); line-height: .9; letter-spacing: -.03em; }
.cinema__card span { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3vw, 40px); color: var(--accent); }
.cinema__sub {
  position: absolute; inset-inline: var(--gutter); bottom: 96px; margin: 0 auto; max-width: 900px;
  text-align: center; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px); line-height: 1.4;
  text-shadow: 0 2px 18px rgba(0,0,0,.95), 0 0 2px #000;
  transition: opacity .5s;
}
.cinema__cap { position: absolute; top: var(--s10); inset-inline-end: var(--gutter); margin: 0; max-width: 360px; font-size: 12px; color: var(--dust); text-align: end; text-shadow: 0 1px 8px #000; }
.cinema__bar { position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: rgba(255,255,255,.1); }
.cinema__bar span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cinema__controls { position: absolute; z-index: 3; bottom: var(--s6); inset-inline-end: var(--gutter); display: flex; gap: var(--s2); }
.cinema__end {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: var(--s3);
  background: radial-gradient(ellipse at center, rgba(18,14,11,.82), rgba(0,0,0,.96));
  padding: var(--gutter);
}
.cinema__end-song { font-family: var(--f-display); font-size: clamp(28px, 4vw, 52px); font-weight: 700; margin: 0 0 var(--s4); line-height: 1.15; }
.cinema__end-song span { display: block; font-family: var(--f-body); font-size: 18px; font-weight: 400; color: var(--dust); margin-top: var(--s2); }
.cinema__end-actions { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }
.cinema__countdown { font-family: var(--f-body); font-size: 14px; color: var(--dust); min-height: 1em; }

/* =========================================================
   PLAYER + ARCHIVE
   ========================================================= */
.player { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--s4); background: rgba(8,6,4,.88); backdrop-filter: blur(6px); }
.player__box { width: min(960px, 100%); background: var(--bakelite); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.player__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); }
.player__head p { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.player__screen { aspect-ratio: 16 / 9; background: #000; }
.player__screen iframe, .player__screen video { width: 100%; height: 100%; border: 0; display: block; }
.player__note { margin: 0; padding: var(--s3) var(--s4); font-size: 13px; color: var(--dust); }

.archive { position: fixed; inset: 0; z-index: 70; overflow-y: auto; background: rgba(12,9,7,.97); padding: var(--s6) var(--gutter) var(--s16); }
.archive__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s6); position: sticky; top: calc(-1 * var(--s6)); padding: var(--s4) 0; background: rgba(12,9,7,.97); z-index: 1; }
.archive__head h2 { font-family: var(--f-display); font-size: 36px; margin: 0; }
.archive__decade { font-family: var(--f-mono); color: var(--accent); font-size: 14px; letter-spacing: .1em; margin: var(--s8) 0 var(--s3); }
.archive__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s3); }
.yr-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: var(--bakelite) center / cover no-repeat;
  text-align: start; padding: 0;
}
.yr-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,9,7,.95), rgba(12,9,7,.1) 60%); transition: background .3s; }
.yr-card:hover::after { background: linear-gradient(to top, rgba(12,9,7,.9), color-mix(in srgb, var(--accent) 12%, transparent)); }
.yr-card b { position: absolute; z-index: 1; bottom: 30px; inset-inline-start: var(--s3); font-family: var(--f-display); font-weight: 300; font-size: 34px; line-height: 1; }
.yr-card span { position: absolute; z-index: 1; bottom: 10px; inset-inline: var(--s3); font-size: 13px; color: var(--parchment); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archive__about { max-width: 720px; margin-top: var(--s16); color: var(--dust); font-size: 15px; line-height: 1.75; }
.archive__about h3 { font-family: var(--f-display); color: var(--parchment); font-size: 24px; margin: 0 0 var(--s3); }
.archive__about strong { color: var(--parchment); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  :root { --tuner-h: 96px; }
  body { overflow: hidden; }
  .station__shade {
    background:
      linear-gradient(to top, rgba(18,14,11,.98) 0%, rgba(18,14,11,.9) 55%, rgba(18,14,11,.2) 85%),
      linear-gradient(to bottom, rgba(18,14,11,.7), transparent 120px);
  }
  .frame { inset: 0 0 45% 0; }
  .story {
    top: auto; bottom: calc(var(--tuner-h) + 96px); transform: none;
    max-height: calc(100svh - var(--tuner-h) - 190px); overflow-y: auto;
    scrollbar-width: none;
  }
  .story__year { font-size: clamp(72px, 22vw, 120px); margin-bottom: var(--s2); }
  .events li { grid-template-columns: 76px 1fr; font-size: 14px; }
  .onair { inset-inline: var(--gutter); width: auto; bottom: calc(var(--tuner-h) + var(--s2)); }
  .onair__why { display: none; }
  .credit { top: 64px; max-width: 70vw; font-size: 11px; }
  .brand { font-size: 15px; }
  #btn-journey { display: none; }
  .tuner { grid-template-columns: 44px 1fr 44px; gap: var(--s2); }
  .tuner__step { width: 40px; height: 40px; }
  .cinema__sub { bottom: 80px; }
  .cinema__cap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .frame.is-on, .cin-shot { animation: none !important; }
}

.credit figcaption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.credit:hover figcaption { -webkit-line-clamp: unset; }

/* =========================================================
   PALETTES — inspired by the Land of Israel
   ========================================================= */
:root[data-palette="amber"]    { --accent: #f4b544; --accent-deep: #c9862a; --accent-ink: #120e0b; --needle: #e0412f; --dial-top: #211a13; --dial-bottom: #15100c; }
:root[data-palette="tekhelet"] { --accent: #86adf5; --accent-deep: #2f5bd3; --accent-ink: #0a1022; --needle: #f2ebdd; --dial-top: #161a24; --dial-bottom: #0e1016; }
:root[data-palette="stone"]    { --accent: #dcc7a1; --accent-deep: #a8875a; --accent-ink: #1a140e; --needle: #5b8ae6; --dial-top: #221c15; --dial-bottom: #15110c; }
:root[data-palette="olive"]    { --accent: #b9c27a; --accent-deep: #6f7a3a; --accent-ink: #12140a; --needle: #d0493c; --dial-top: #1b1c13; --dial-bottom: #11120b; }
:root[data-palette="deadsea"]  { --accent: #74d1c6; --accent-deep: #2e8c86; --accent-ink: #07130f; --needle: #e2804f; --dial-top: #141c1b; --dial-bottom: #0c1211; }

/* ---- design review fixes ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chip { min-height: 44px; }
.chip--icon { width: 44px; }
.tick__hit { width: 26px; }
.credit { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.8); }
.credit a { display: inline-block; padding-block: 6px; }
.intro__foot a { display: inline-block; padding-block: 12px; }
.station__media { background: radial-gradient(ellipse at 30% 40%, var(--bakelite), var(--walnut) 70%); }
@media (max-width: 900px) {
  .credit { top: 84px; font-size: 12px; }
  .tuner__step { width: 44px; height: 44px; }
  .story { bottom: calc(var(--tuner-h) + 104px); }
}

.brand__lamp { box-shadow: none; border-radius: 0; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 50%, transparent)); }
.intro__mark { width: clamp(72px, 8vw, 104px); aspect-ratio: 1; margin-bottom: var(--s5); background: var(--accent); -webkit-mask: url(../media/brand/emblem-mask.png?v=2) center / contain no-repeat; mask: url(../media/brand/emblem-mask.png?v=2) center / contain no-repeat; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 45%, transparent)); }
.cinema__card i { justify-self: center; width: 64px; aspect-ratio: 1; background: var(--accent); -webkit-mask: url(../media/brand/emblem-mask.png?v=2) center / contain no-repeat; mask: url(../media/brand/emblem-mask.png?v=2) center / contain no-repeat; }

/* critique B fixes */
.yr-card::after { background: linear-gradient(to top, rgba(12,9,7,.96) 0%, rgba(12,9,7,.82) 42%, rgba(12,9,7,.15) 85%); }
.yr-card b { font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.85); }
.archive__about p { max-width: 68ch; }
.brand { min-height: 44px; }
.credit a { padding-block: 10px; }

/* =========================================================
   CRITIQUE PASS 2 — readability, endings, mobile flow
   ========================================================= */
/* stronger read-side shade over bright photos */
.station__shade {
  background:
    linear-gradient(to left, rgba(18,14,11,.95) 0%, rgba(18,14,11,.9) 35%, rgba(18,14,11,.6) 58%, rgba(18,14,11,.15) 100%),
    linear-gradient(to top, rgba(18,14,11,.96) 0%, rgba(18,14,11,0) calc(var(--tuner-h) + 120px)),
    linear-gradient(to bottom, rgba(18,14,11,.7), transparent 120px);
}
.credit figcaption, .onair__why { background: var(--glass); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 8px; }
.credit { text-shadow: none; }
/* events: dates may be ranges */
.events li { grid-template-columns: minmax(92px, max-content) 1fr; }

/* narration on air */
.voice-chip { gap: var(--s2); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.voice-chip .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.voice-chip .bars i { width: 3px; height: 4px; background: currentColor; border-radius: 1px; }
.voice-chip.is-live .bars i { animation: vu .9s ease-in-out infinite; }
.voice-chip.is-live .bars i:nth-child(2) { animation-delay: .15s; }
.voice-chip.is-live .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes vu { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* chapter end: song first, then the menu */
.cinema__end-player { width: min(640px, 86vw); aspect-ratio: 16 / 9; margin: 0 auto var(--s4); border-radius: 12px; overflow: hidden; background: #000; }
.cinema__end-player:empty { display: none; }
.cinema__end-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.cinema__end .cinema__end-actions, .cinema__end .cinema__countdown { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.cinema__end.is-ready .cinema__end-actions, .cinema__end.is-ready .cinema__countdown { opacity: 1; transform: none; }

/* finale */
.finale { position: fixed; inset: 0; z-index: 75; background: var(--walnut); display: grid; align-items: center; padding: var(--gutter); overflow: hidden; }
.finale__mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(13, 1fr); grid-auto-rows: 1fr; opacity: .32; filter: grayscale(.6); }
.finale__mosaic span { background: center / cover no-repeat var(--bakelite); opacity: 0; }
.finale.is-on .finale__mosaic span { animation: tile-in .9s var(--ease) forwards; }
@keyframes tile-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.finale::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(18,14,11,.97) 0%, rgba(18,14,11,.88) 45%, rgba(18,14,11,.55) 100%); pointer-events: none; }
.finale__copy { position: relative; z-index: 1; max-width: 600px; }
.finale__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 7vw, 104px); line-height: .92; margin: 0 0 var(--s6); }
.finale__title span { font-weight: 300; color: var(--accent); }
.finale__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; margin: 0 0 var(--s8); max-width: 46ch; opacity: .92; }

/* archive */
.archive { background: var(--walnut); }
.archive__head { z-index: 3; background: var(--walnut); }
.yr-card { isolation: isolate; }
.yr-card[aria-current] { outline: 2px solid var(--accent); outline-offset: 3px; }

/* dial: label every five years, quieter */
.tick.is-five .tick__label { font-size: 11px; opacity: .55; }

@media (max-width: 900px) {
  /* the station becomes a natural scrolling page */
  .station { overflow-y: auto; overflow-x: hidden; padding-bottom: calc(var(--tuner-h) + 16px); }
  .station__media { position: sticky; top: 0; height: 56svh; margin-bottom: -22svh; }
  .frame { inset: 0; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .station__shade { background: linear-gradient(to top, var(--walnut) 0%, rgba(18,14,11,.55) 45%, rgba(18,14,11,.15) 75%), linear-gradient(to bottom, rgba(18,14,11,.7), transparent 120px); }
  .topbar { position: fixed; }
  .story { position: relative; top: auto; bottom: auto; inset-inline-start: auto; transform: none; width: auto; max-height: none; overflow: visible; margin: 0 var(--gutter); z-index: 4; }
  .onair { position: relative; inset: auto; bottom: auto; width: auto; margin: var(--s6) var(--gutter) 0; }
  .onair__why { display: block; }
  .tuner { position: fixed; background: linear-gradient(to top, var(--walnut) 60%, transparent); }
  .credit { position: absolute; top: 84px; inset-inline-end: var(--gutter); }
  #btn-journey { display: inline-flex; }
  .topbar { gap: var(--s2); padding-inline: var(--s4); }
  .topbar__tools .chip { padding: 0 var(--s3); }
  .events li { grid-template-columns: 1fr; gap: 0; }
  .archive__row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .finale__mosaic { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 420px) {
  .brand { font-size: 0; gap: 0; }
  .brand__lamp { width: 34px; height: 34px; }
}
@media (max-width: 900px) {
  .station__media { position: relative; }
  .topbar { background: linear-gradient(to bottom, rgba(18,14,11,.92) 55%, transparent); padding-bottom: var(--s6); }
}

/* YouTube box + fallback */
.yt-box, .yt-box iframe { width: 100%; height: 100%; display: block; border: 0; }
.yt-fallback { position: relative; display: grid; place-content: center; justify-items: center; gap: var(--s3); width: 100%; height: 100%; text-decoration: none; color: var(--parchment); background: #000 center / cover no-repeat; }
.yt-fallback::before { content: ""; position: absolute; inset: 0; background: rgba(12,9,7,.62); }
.yt-fallback > * { position: relative; }
.yt-fallback__btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s6); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; }
.yt-fallback:hover .yt-fallback__btn { background: color-mix(in srgb, var(--accent) 85%, white); }
.yt-fallback__note { font-size: 13px; color: var(--dust); }
.cinema.is-ended .cinema__sub, .cinema.is-ended .cinema__cap, .cinema.is-ended .cinema__year { opacity: 0; }

/* =========================================================
   PHASE 2 — bilingual, dial preview, radio broadcasts, sources
   ========================================================= */
/* English (LTR): mirror direction-dependent details */
[dir="ltr"] .tuner__step svg { transform: scaleX(-1); }
[dir="ltr"] .intro__shade { background: linear-gradient(to right, rgba(18,14,11,.94) 0%, rgba(18,14,11,.78) 38%, rgba(18,14,11,.15) 72%), linear-gradient(to top, rgba(18,14,11,.8), transparent 40%); }
[dir="ltr"] .intro__bg { object-position: 80% 50%; transform: scaleX(-1); }
[dir="ltr"] .station__shade { background: linear-gradient(to right, rgba(18,14,11,.95) 0%, rgba(18,14,11,.9) 35%, rgba(18,14,11,.6) 58%, rgba(18,14,11,.15) 100%), linear-gradient(to top, rgba(18,14,11,.96) 0%, rgba(18,14,11,0) calc(var(--tuner-h) + 120px)), linear-gradient(to bottom, rgba(18,14,11,.7), transparent 120px); }
[dir="ltr"] .finale::after { background: linear-gradient(to right, rgba(18,14,11,.97) 0%, rgba(18,14,11,.88) 45%, rgba(18,14,11,.55) 100%); }
[dir="ltr"] .story__title, [dir="ltr"] .intro__title, [dir="ltr"] .finale__title { letter-spacing: -0.01em; }
[lang="en"] body, [lang="en"] .btn, [lang="en"] .chip { font-family: var(--f-body); }
.lang-link { text-decoration: none; font-weight: 600; }
.intro__foot .lang-link { color: var(--accent); }

/* dial hover preview */
.dial__peek { position: absolute; bottom: calc(100% + 10px); left: 0; width: 200px; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: var(--s3); align-items: center;
  padding: var(--s2); border-radius: 12px; background: var(--bakelite);
  box-shadow: 0 10px 24px rgba(0,0,0,.6); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 8; }
.dial__peek.is-on { opacity: 1; transform: none; }
.dial__peek img { grid-row: 1 / 3; width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--walnut); }
.dial__peek b { font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1; color: var(--accent); }
.dial__peek span { font-size: 13px; line-height: 1.3; color: var(--parchment); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tick__hit:hover ~ *, .tick:hover { }
.tick:has(.tick__hit:hover) { background: var(--parchment); height: 26px; }

/* original radio broadcast in the chapter player */
.cinema__radio { position: absolute; top: var(--s8); left: 50%; transform: translateX(-50%); margin: 0; display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4); border-radius: 999px; background: rgba(12,9,7,.7); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: 14px; color: var(--parchment); backdrop-filter: blur(8px); z-index: 2; white-space: nowrap; max-width: calc(100vw - 2 * var(--gutter)); overflow: hidden; text-overflow: ellipsis; }
.cinema__radio b { color: var(--accent); font-weight: 700; }
.cinema__radio .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--needle); box-shadow: 0 0 8px var(--needle); }
.cinema__sub.is-radio { font-style: italic; color: color-mix(in srgb, var(--parchment) 88%, var(--accent)); }

/* sources */
.sources { margin-top: var(--s4); font-size: 13px; color: var(--dust); }
.sources summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--dust); text-decoration: underline; text-decoration-color: var(--line); }
.sources summary:hover { color: var(--accent); }
.sources ul { margin: 0; padding-inline-start: var(--s5); display: grid; gap: var(--s1); max-height: 160px; overflow-y: auto; }
.sources a { color: var(--dust); overflow-wrap: anywhere; }
.sources a:hover { color: var(--accent); }
@media (max-width: 900px) { .cinema__radio { top: var(--s6); font-size: 12px; } }
@media (min-width: 901px) {
  .story { top: 92px; bottom: calc(var(--tuner-h) + 16px); transform: none; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; scrollbar-width: none; }
  .story::-webkit-scrollbar { display: none; }
  .story > * { flex: none; }
  .story__year { font-size: clamp(88px, min(13vw, 17vh), 200px); }
}
@media (min-width: 901px) { .story { justify-content: safe center; } }
:root[lang="en"] .quote p::before { content: "“"; }
:root[lang="en"] .quote p::after { content: "”"; }

/* breathing photos (depth parallax) */
.depth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.depth-canvas.is-on { opacity: 1; }
.frame, .cin-shot { overflow: hidden; }

/* 3D radio on the opening screen */
.radio3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.6s var(--ease); cursor: grab; }
.intro.has-3d .radio3d { opacity: 1; }
.intro.has-3d .intro__bg { opacity: 0; transition: opacity 1.6s var(--ease); }
.intro__bg { transition: opacity 1.6s var(--ease); }
.intro__shade { pointer-events: none; z-index: 1; }
.intro__copy { z-index: 2; }
.intro.has-3d { background: radial-gradient(ellipse 60% 70% at 25% 40%, #3a2c1e 0%, #1a130e 45%, var(--walnut) 80%); }
[dir="ltr"] .intro.has-3d { background: radial-gradient(ellipse 60% 70% at 75% 40%, #3a2c1e 0%, #1a130e 45%, var(--walnut) 80%); }
@media (max-width: 900px) {
  .cinema__radio { top: 72px; }
  .cinema__sub.is-radio { font-size: 17px; line-height: 1.45; max-height: 42vh; overflow: hidden; }
}

/* English opening screen: two-line title, proper gutter, buttons on one row */
:root[lang="en"] .intro__title { font-size: clamp(48px, 6.4vw, 104px); line-height: .95; }
:root[lang="en"] .intro__copy { max-width: 640px; }
.intro { padding-inline: var(--gutter); }
.intro__actions .btn { white-space: nowrap; }

/* =========================================================
   OPENING: the wall of years
   ========================================================= */
.intro { overflow: hidden; }
.intro__wall { position: absolute; inset: -12% -4%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0 14px;
  transform: rotate(-6deg) scale(1.12); }
[dir="ltr"] .intro__wall { transform: rotate(6deg) scale(1.12); }
.wall__col { display: flex; flex-direction: column; gap: 14px; animation: wall-up 70s linear infinite; will-change: transform; }
.wall__col:nth-child(even) { animation-name: wall-down; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wall__card { position: relative; flex: none; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--bakelite) center / cover no-repeat; box-shadow: 0 14px 34px rgba(0,0,0,.5); filter: saturate(.9); transition: filter .3s, transform .3s var(--ease); }
.wall__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,9,7,.78), transparent 55%); }
.wall__card i { position: absolute; z-index: 1; bottom: 8px; inset-inline-start: 12px; font: 300 clamp(20px, 2vw, 30px)/1 var(--f-display); font-style: normal; color: var(--parchment); }
.wall__card:hover { filter: saturate(1.1) brightness(1.12); transform: scale(1.03); }
.intro.wall-hot .wall__col { animation-play-state: paused; }
.intro:not(.wall-hot) .wall__card { pointer-events: none; }
.intro__shade { background:
    linear-gradient(to left, rgba(18,14,11,.97) 0%, rgba(18,14,11,.9) 38%, rgba(18,14,11,.4) 70%, rgba(18,14,11,.55) 100%),
    linear-gradient(to top, rgba(18,14,11,.92), transparent 32%); }
[dir="ltr"] .intro__shade { background:
    linear-gradient(to right, rgba(18,14,11,.97) 0%, rgba(18,14,11,.9) 38%, rgba(18,14,11,.4) 70%, rgba(18,14,11,.55) 100%),
    linear-gradient(to top, rgba(18,14,11,.92), transparent 32%); }
.intro__shade { pointer-events: none; }
@media (max-width: 1100px) { .intro__wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) {
  .intro__wall { grid-template-columns: repeat(3, 1fr); gap: 10px; inset: -10% -8%; }
  .wall__col { gap: 10px; }
  .intro { align-items: end; }
  .intro__shade, [dir="ltr"] .intro__shade { background: linear-gradient(to top, rgba(18,14,11,.98) 0%, rgba(18,14,11,.92) 48%, rgba(18,14,11,.35) 80%, rgba(18,14,11,.5) 100%); }
}
@media (prefers-reduced-motion: reduce) { .wall__col { animation: none; } }

/* compact top bar on phones: logo mark only, single-line chips */
.topbar__tools .chip { white-space: nowrap; }
.lang-short { display: none; }
@media (max-width: 600px) {
  .brand { font-size: 0; gap: 0; min-width: 44px; }
  .brand__lamp { width: 34px; height: 34px; }
  .topbar { padding-inline: var(--s3); gap: var(--s2); }
  .topbar__tools { gap: 6px; }
  .topbar__tools .chip { padding: 0 var(--s3); font-size: 14px; }
  .topbar__tools .chip--icon { padding: 0; }
  .lang-long { display: none; }
  .lang-short { display: inline; font-weight: 700; letter-spacing: .02em; }
}
@media (max-width: 340px) { #btn-journey { display: none; } }
