/* ==========================================================================
   Melech Basodeh · The King Is in the Field
   Golden-hour editorial system: cream ground, umber ink, honey-gold accent.
   ========================================================================== */

/* ---------- Fonts (self-hosted; multi-candidate src, graceful fallback) -- */

@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-italic-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Frank Ruhl Libre ships as hebrew/latin subsets; unicode-range keeps each lean */
@font-face {
  font-family: 'Frank Ruhl Libre';
  src: url('assets/fonts/frank-ruhl-libre-hebrew.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200F, U+20AA, U+25CC;
}

@font-face {
  font-family: 'Frank Ruhl Libre';
  src: url('assets/fonts/frank-ruhl-libre-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Tokens ------------------------------------------------------- */

:root {
  --cream: #faf6ec;
  --parchment: #f2eada;
  --card: #fffcf4;
  --ink: #2b2118;
  --ink-2: #5a4c3a;
  --bronze: #7a5512;
  --gold: #c08a2d;
  --honey: #e2a63d;
  --wheat: #eed9a4;
  --night: #241a0f;
  --night-2: #352612;
  --cream-on-dark: rgba(250, 246, 236, 0.92);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-hebrew: 'Frank Ruhl Libre', 'SBL Hebrew', 'Times New Roman', serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(43, 33, 24, 0.06), 0 14px 36px -14px rgba(43, 33, 24, 0.22);
  --shadow-lift: 0 2px 4px rgba(43, 33, 24, 0.07), 0 26px 48px -18px rgba(43, 33, 24, 0.32);
}

/* ---------- Base --------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  height: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; }

p { margin: 0; }

[hidden] { display: none !important; }

::selection { background: rgba(226, 166, 61, 0.35); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero :focus-visible,
.feature :focus-visible,
.footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--wheat);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  background: var(--night);
  color: var(--wheat);
  font: 600 0.9rem/1 var(--font-body);
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-300%);
}

.skip-link:focus-visible { transform: none; }

.shell {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

/* Grain — SVG turbulence tiled at whisper opacity so gradients keep tooth */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared: eyebrow, horizon rule, buttons ----------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--bronze);
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow [lang='he'] {
  font-family: var(--font-hebrew);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
}

.eyebrow__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.eyebrow--center { justify-content: center; }

/* The horizon: a field's edge at sunset, used as the section rule */
.horizon {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--bronze) 70%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}

.btn svg { flex: none; transition: transform 0.35s var(--ease-out); }

.btn--primary {
  background: linear-gradient(180deg, var(--honey), var(--gold));
  color: var(--night);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 12px 28px -10px rgba(0, 0, 0, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 18px 34px -12px rgba(0, 0, 0, 0.5);
}

.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: rgba(250, 246, 236, 0.08);
  color: var(--cream-on-dark);
  box-shadow: inset 0 0 0 1px rgba(250, 246, 236, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(250, 246, 236, 0.16);
  transform: translateY(-2px);
}

.btn--quiet {
  background: transparent;
  color: var(--wheat);
  box-shadow: inset 0 0 0 1px rgba(238, 217, 164, 0.4);
}

.btn--quiet:hover {
  background: rgba(238, 217, 164, 0.1);
  transform: translateY(-2px);
}

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--night);
  color: var(--cream-on-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture {
  display: block;
  height: 100%;
  animation: hero-settle 3s var(--ease-out) both;
}

.hero__media img {
  width: 100%;
  height: 130%;
  position: relative;
  top: -20%;
  object-fit: cover;
  object-position: center 60%;
  will-change: transform;
}

@keyframes hero-settle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 70% at 50% 38%, rgba(36, 26, 15, 0) 40%, rgba(36, 26, 15, 0.38) 100%),
    linear-gradient(180deg, rgba(36, 26, 15, 0.42) 0%, rgba(36, 26, 15, 0.12) 34%, rgba(36, 26, 15, 0.3) 62%, rgba(24, 17, 9, 0.82) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(5rem, 14vh, 8rem) 1.5rem clamp(6rem, 16vh, 9rem);
  max-width: 60rem;
}

.hero__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 clamp(1.2rem, 3vh, 2rem);
  color: var(--wheat);
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero__kicker::before,
.hero__kicker::after {
  content: '';
  width: 2.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 217, 164, 0.7));
}

.hero__kicker::after {
  background: linear-gradient(90deg, rgba(238, 217, 164, 0.7), transparent);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.9rem, 2.4vh, 1.5rem);
}

.hero__he {
  font-family: var(--font-hebrew);
  font-weight: 550;
  font-size: clamp(4rem, 14vw, 9.5rem);
  line-height: 1.04;
  color: var(--cream);
  text-shadow: 0 3px 50px rgba(20, 10, 0, 0.5);
}

.hero__en {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(0.98rem, 2.4vw, 1.4rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* balances the trailing tracking space */
  text-transform: uppercase;
  color: var(--wheat);
}

.hero__dek {
  margin: clamp(1.4rem, 3.4vh, 2.2rem) auto 0;
  max-width: 40ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: rgba(250, 246, 236, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.8rem, 4.5vh, 2.8rem);
}

.hero__cue {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: clamp(1.4rem, 4vh, 2.4rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(250, 246, 236, 0.75);
  transition: color 0.3s ease;
}

.hero__cue:hover { color: var(--wheat); }

.hero__cue svg { animation: cue-bob 2.6s ease-in-out infinite; }

@keyframes cue-bob {
  0%, 100% { transform: translateY(0);   opacity: 0.75; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* Hero load-in sequence */
.rise {
  opacity: 0;
  animation: rise-in 1s var(--ease-out) forwards;
  animation-delay: calc(var(--rise, 1) * 130ms + 0.15s);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Introduction ------------------------------------------------- */

.intro {
  padding: clamp(5.5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7.5rem);
}

.intro__grid {
  width: min(1060px, calc(100% - 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 65ch) 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.intro__title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}

.intro__body p + p { margin-top: 1.35rem; }

.intro__lede {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink);
}

.intro__body > p:not(.intro__lede):not(.eyebrow) {
  color: var(--ink-2);
  max-width: 62ch;
}

/* The central phrase — marker-highlighted serif italic */
.phrase {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 520;
  color: var(--bronze);
  background: linear-gradient(180deg, transparent 64%, rgba(238, 217, 164, 0.6) 64%);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Marginalia — a sefer's gloss beside the English text */
.intro__margin {
  position: sticky;
  top: clamp(4rem, 12vh, 7rem);
  padding-top: clamp(3rem, 8vw, 5.5rem);
  text-align: right;
}

.intro__marginal {
  font-family: var(--font-hebrew);
  font-weight: 500;
  font-size: clamp(3.2rem, 5.6vw, 4.6rem);
  line-height: 1.12;
  color: var(--bronze);
}

.intro__margin .horizon {
  margin: 1.4rem 0 1.1rem;
  background: linear-gradient(90deg, transparent, var(--gold) 55%, var(--bronze));
}

.intro__source {
  font: 500 0.82rem/1.6 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Library ------------------------------------------------------ */

.library {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(5.5rem, 12vw, 9rem);
  background: linear-gradient(180deg, var(--cream), var(--parchment) 22%);
}

.library__head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(3rem, 7vw, 5rem);
}

.horizon--head {
  width: min(280px, 60%);
  margin: 0 auto 2rem;
}

.library__title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.library__dek {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.05rem;
}

/* --- Featured booklet: night panel + sefer object ------------------------ */

.feature {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 24px;
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(226, 166, 61, 0.16), transparent 55%),
    linear-gradient(135deg, var(--night-2), var(--night) 70%);
  box-shadow: 0 30px 60px -30px rgba(36, 26, 15, 0.55);
  color: var(--cream-on-dark);
}

.feature__coverlink {
  display: block;
  justify-self: center;
  text-decoration: none;
  border-radius: 12px;
}

/* The sefer: spine on the right, fore-edge pages on the left */
.book {
  display: block;
  position: relative;
  width: min(250px, 62vw);
  aspect-ratio: 5 / 7;
  transform: perspective(1200px) rotateY(-8deg);
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45));
}

.feature__coverlink:hover .book,
.feature__coverlink:focus-visible .book {
  transform: perspective(1200px) rotateY(-3deg) translateY(-8px);
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.5));
}

.book__pages {
  position: absolute;
  left: -7px;
  top: 5px;
  bottom: 5px;
  width: 14px;
  border-radius: 3px 0 0 3px;
  background: repeating-linear-gradient(
    180deg,
    #f3e9d0 0 2px,
    #d8c9a4 2px 3px
  );
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.35);
}

.book__cover {
  position: absolute;
  inset: 0;
  border-radius: 3px 8px 8px 3px;
  background:
    radial-gradient(120% 90% at 20% 8%, rgba(255, 214, 140, 0.14), transparent 55%),
    linear-gradient(118deg, #5c3c1b 0%, #7a5226 42%, #45290f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 160, 0.1),
    inset -14px 0 26px rgba(0, 0, 0, 0.4),
    inset 3px 0 8px rgba(255, 224, 160, 0.08);
}

.book__frame {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(232, 195, 119, 0.75);
  outline: 1px solid rgba(232, 195, 119, 0.3);
  outline-offset: 4px;
  border-radius: 2px;
  padding: 1rem;
  text-align: center;
  color: #e8c377;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 0 18px rgba(232, 195, 119, 0.25);
}

.book__small {
  font-family: var(--font-hebrew);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.35em;
  margin-left: -0.35em; /* recenters tracked RTL text */
}

.book__main {
  font-family: var(--font-hebrew);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.6vw, 3.4rem);
  line-height: 1.14;
}

.book__rule {
  width: 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 195, 119, 0.8), transparent);
  margin-top: 0.3rem;
}

.book__foot {
  font-family: var(--font-hebrew);
  font-weight: 400;
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  opacity: 0.85;
}

.feature__eyebrow {
  margin: 0 0 1rem;
  color: var(--wheat);
  font: 600 0.76rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.feature__dek {
  margin-top: 1.1rem;
  max-width: 52ch;
  color: rgba(244, 235, 214, 0.82);
  line-height: 1.7;
}

.feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

/* --- Secondary cards ------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(43, 33, 24, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.card--video { cursor: pointer; }

.card--video:hover,
.card--audio:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.card__trigger:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: -4px;
  border-radius: calc(var(--radius) - 2px);
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.card--video:hover .card__media img,
.card__trigger:focus-visible .card__media img {
  transform: scale(1.05);
}

.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 26, 15, 0.05), rgba(36, 26, 15, 0.35));
  pointer-events: none;
}

.card__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(250, 246, 236, 0.92);
  color: var(--night);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}

.card__play svg { margin-left: 3px; }

.card--video:hover .card__play,
.card__trigger:focus-visible .card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--honey);
}

.card__badge {
  position: absolute;
  z-index: 1;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(24, 17, 9, 0.72);
  color: var(--cream);
  font: 600 0.76rem/1 var(--font-body);
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.4rem, 3vw, 1.9rem);
}

.card__kind {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  color: var(--bronze);
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(1.2rem, 2.2vw, 1.42rem);
  line-height: 1.28;
  letter-spacing: -0.005em;
}

.card__dek {
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Audio card ----------------------------------------------------------- */

.player {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem clamp(1.4rem, 3vw, 1.9rem) 1.4rem;
  margin-top: auto;
  border-top: 1px solid rgba(43, 33, 24, 0.08);
}

.player__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--honey), var(--gold));
  color: var(--night);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}

.player__toggle:hover { transform: scale(1.06); filter: brightness(1.06); }

.player__icon--play { margin-left: 2px; }

.player__icon--pause { display: none; }

.player.is-playing .player__icon--play { display: none; }
.player.is-playing .player__icon--pause { display: block; }

.player__scrub {
  flex: 1;
  padding: 0.7rem 0;
  cursor: pointer;
  touch-action: none;
}

.player__scrub:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
  border-radius: 8px;
}

.player__rail {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(43, 33, 24, 0.14);
}

.player__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--honey));
}

.player__knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--gold);
  box-shadow: 0 1px 4px rgba(43, 33, 24, 0.3);
}

.player__time {
  flex: none;
  display: flex;
  gap: 0.35rem;
  font: 500 0.82rem/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.player__sep { opacity: 0.5; }

/* --- Coming soon card ----------------------------------------------------- */

.card--soon {
  background: transparent;
  border: 1px dashed rgba(122, 85, 18, 0.38);
  box-shadow: none;
  justify-content: center;
}

.card--soon .card__title { color: var(--ink-2); }

.card--soon .card__dek { color: rgba(90, 76, 58, 0.75); }

.card__soon {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(192, 138, 45, 0.16);
  color: var(--bronze);
  font: 700 0.68rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Footer ------------------------------------------------------- */

.footer {
  background: var(--night);
  color: rgba(250, 246, 236, 0.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  text-align: center;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.horizon--footer {
  width: min(220px, 55%);
  background: linear-gradient(90deg, transparent, rgba(226, 166, 61, 0.7) 50%, transparent);
}

.footer__line {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer__line [lang='he'] {
  font-family: var(--font-hebrew);
  font-size: 1.05rem;
  color: var(--wheat);
}

/* ---------- Contact ------------------------------------------------------ */

.contact {
  margin-top: -0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(250, 246, 236, 0.66);
}

.contact__link {
  color: var(--wheat);
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 217, 164, 0.4);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.contact__link:hover {
  color: var(--honey);
  border-bottom-color: var(--honey);
}

/* ---------- Scroll reveals ----------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open { opacity: 1; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.lightbox__panel {
  position: relative;
  width: min(1040px, 100%);
}

.lightbox__frame {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

.lightbox__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__close {
  position: absolute;
  right: 0;
  top: -3.1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 246, 236, 0.12);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out);
}

.lightbox__close:hover {
  background: rgba(250, 246, 236, 0.24);
  transform: rotate(90deg);
}

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 980px) {
  .intro__grid { grid-template-columns: 1fr; }

  .intro__margin {
    position: static;
    padding-top: 0;
    margin-top: 1rem;
    text-align: left;
  }

  .intro__margin .horizon {
    background: linear-gradient(90deg, var(--bronze), var(--gold) 45%, transparent);
    max-width: 260px;
  }
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .feature__dek { margin-inline: auto; }

  .feature__actions { justify-content: center; }
}

@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 100%);
    margin-inline: auto;
  }

  .btn { justify-content: center; }
}

@media (max-width: 420px) {
  .player { flex-wrap: wrap; }

  .player__time {
    width: 100%;
    justify-content: flex-end;
    margin-top: -0.3rem;
  }
}

/* ---------- Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .hero__media picture { animation: none; }

  .hero__media img { will-change: auto; }

  .rise {
    animation: none;
    opacity: 1;
  }

  .hero__cue svg { animation: none; }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lightbox { transition: none; }

  .btn,
  .btn svg,
  .book,
  .card,
  .card__media img,
  .card__play,
  .player__toggle,
  .lightbox__close {
    transition: none;
  }

  .card--video:hover,
  .card--audio:hover { transform: none; }

  .card--video:hover .card__media img,
  .card__trigger:focus-visible .card__media img { transform: none; }
}
